45#include "types/RestraintStamp.hpp"
51 RestraintStamp::RestraintStamp() {
52 DefineParameter(Type,
"restraintType");
54 DefineOptionalParameter(MolIndex,
"molIndex");
55 DefineOptionalParameter(ObjectSelection,
"objectSelection");
56 DefineOptionalParameter(DisplacementSpringConstant,
57 "displacementSpringConstant");
58 DefineOptionalParameter(AbsoluteSpringConstant,
"absoluteSpringConstant");
59 DefineOptionalParameter(TwistSpringConstant,
"twistSpringConstant");
60 DefineOptionalParameter(SwingXSpringConstant,
"swingXSpringConstant");
61 DefineOptionalParameter(SwingYSpringConstant,
"swingYSpringConstant");
63 DefineOptionalParameter(AbsolutePositionZ,
"absolutePositionZ");
64 DefineOptionalParameter(RestrainedTwistAngle,
"restrainedTwistAngle");
65 DefineOptionalParameter(RestrainedSwingXAngle,
"restrainedSwingXAngle");
66 DefineOptionalParameter(RestrainedSwingYAngle,
"restrainedSwingYAngle");
67 DefineOptionalParameterWithDefaultValue(Print,
"print",
true);
70 RestraintStamp::~RestraintStamp() {}
72 void RestraintStamp::validate() {
73 DataHolder::validate();
75 Type, isEqualIgnoreCase(
"Object") || isEqualIgnoreCase(
"Molecular"));
76 CheckParameter(DisplacementSpringConstant, isNonNegative());
77 CheckParameter(AbsoluteSpringConstant, isNonNegative());
78 CheckParameter(TwistSpringConstant, isNonNegative());
79 CheckParameter(SwingXSpringConstant, isNonNegative());
80 CheckParameter(SwingYSpringConstant, isNonNegative());
This basic Periodic Table class was originally taken from the data.cpp file in OpenBabel.