46 |
|
#include "utils/simError.h" |
47 |
|
namespace oopse { |
48 |
|
|
49 |
+ |
DirectionalAtomType::DirectionalAtomType() : AtomType() { |
50 |
+ |
myResponsibilities_["is_Directional"] = true; |
51 |
+ |
atp.is_Directional = 1; |
52 |
+ |
|
53 |
+ |
myResponsibilities_["Dipole"] = false; |
54 |
+ |
myResponsibilities_["SplitDipole"] = false; |
55 |
+ |
myResponsibilities_["Quadrupole"] = false; |
56 |
+ |
myResponsibilities_["GayBerne"] = false; |
57 |
+ |
myResponsibilities_["Sticky"] = false; |
58 |
+ |
myResponsibilities_["StickyPower"] = false; |
59 |
+ |
myResponsibilities_["Shape"] = false; |
60 |
+ |
|
61 |
+ |
} |
62 |
+ |
|
63 |
+ |
void DirectionalAtomType::copyAllData(AtomType* at) { |
64 |
+ |
AtomType::copyAllData(at); |
65 |
+ |
myResponsibilities_["is_Directional"] = true; |
66 |
+ |
atp.is_Directional = 1; |
67 |
+ |
} |
68 |
+ |
|
69 |
+ |
void DirectionalAtomType::setDipole() { |
70 |
+ |
myResponsibilities_["is_Dipole"] = true; |
71 |
+ |
atp.is_Dipole = 1; |
72 |
+ |
} |
73 |
+ |
void DirectionalAtomType::setSplitDipole() { |
74 |
+ |
myResponsibilities_["is_SplitDipole"] = true; |
75 |
+ |
atp.is_SplitDipole = 1; |
76 |
+ |
} |
77 |
+ |
void DirectionalAtomType::setQuadrupole() { |
78 |
+ |
myResponsibilities_["is_Quadrupole"] = true; |
79 |
+ |
atp.is_Quadrupole = 1; |
80 |
+ |
} |
81 |
+ |
void DirectionalAtomType::setGayBerne() { |
82 |
+ |
myResponsibilities_["is_GayBerne"] = true; |
83 |
+ |
atp.is_GayBerne = 1; |
84 |
+ |
} |
85 |
+ |
void DirectionalAtomType::setSticky() { |
86 |
+ |
myResponsibilities_["is_Sticky"] = true; |
87 |
+ |
atp.is_Sticky = 1; |
88 |
+ |
} |
89 |
+ |
void DirectionalAtomType::setStickyPower() { |
90 |
+ |
myResponsibilities_["is_StickyPower"] = true; |
91 |
+ |
atp.is_StickyPower = 1; |
92 |
+ |
} |
93 |
+ |
void DirectionalAtomType::setShape() { |
94 |
+ |
myResponsibilities_["is_Shape"] = true; |
95 |
+ |
atp.is_Shape = 1; |
96 |
+ |
} |
97 |
+ |
|
98 |
|
void DirectionalAtomType::complete() { |
99 |
|
|
100 |
|
AtomType::complete(); |