Package ffx.potential.bonded
Class StretchBend
java.lang.Object
javax.swing.tree.DefaultMutableTreeNode
ffx.potential.bonded.MSNode
ffx.potential.bonded.BondedTerm
ffx.potential.bonded.StretchBend
- All Implemented Interfaces:
 BondedEnergy,ROLS,Serializable,Cloneable,Comparable<BondedTerm>,MutableTreeNode,TreeNode
The StretchBend class represents a Stretch-Bend formed between three linearly bonded atoms.
- Since:
 - 1.0
 - Author:
 - Michael J. Schnieders
 - See Also:
 
- 
Nested Class Summary
Nested classes/interfaces inherited from class ffx.potential.bonded.BondedTerm
BondedTerm.BondedComparator - 
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final AngleAngle this Stretch-Bend is based on.doubleEquilibrium angle.doubleFirst equilibrium bond distance.doubleSecond equilibrium bond distance.doubleForce constant.doubleForce constant.Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObjectFields inherited from interface ffx.potential.bonded.ROLS
MaxLengthScale - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(BondedTerm sb) doubleenergy(boolean gradient, int threadID, AtomicDoubleArray3D grad, AtomicDoubleArray3D lambdaGrad) energy.voidlog()logvoidsetRigidScale(double rigidScale) Setter for the fieldrigidScale.voidsetStretchBendType(StretchBendType stretchBendType) Setter for the fieldstretchBendType.toString()Methods inherited from class ffx.potential.bonded.BondedTerm
applyLambda, containsHydrogen, containsResolution, destroy, equals, getAtom, getAtomArray, getAtomArray, getAtoms, getBond, getID, getUse, getValue, hashCode, isConstrained, isLambdaScaled, isNeuralNetwork, print, removeNeuralNetworkTerms, setAtoms, setBonds, setColor, setConstraint, setID, setID_Key, setSelected, setValue, setViewMethods inherited from class ffx.potential.bonded.MSNode
contains, drawLabel, getAngleList, getAngleTorsionList, getAtomList, getAtomList, getBondList, getCenter, getChildList, getExtent, getImproperTorsionList, getList, getList, getMSCount, getMSNode, getMW, getName, getOutOfPlaneBendList, getPiOrbitalTorsionList, getStretchBendList, getStretchTorsionList, getTorsionList, getTorsionTorsionList, getTotalMass, getUreyBradleyList, isSelected, removeChild, setName, updateMethods inherited from class javax.swing.tree.DefaultMutableTreeNode
add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, insert, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObjectMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface ffx.potential.bonded.BondedEnergy
energy, energy, update 
- 
Field Details
- 
angleEq
public double angleEqEquilibrium angle. - 
bond0Eq
public double bond0EqFirst equilibrium bond distance. - 
bond1Eq
public double bond1EqSecond equilibrium bond distance. - 
angle
Angle this Stretch-Bend is based on. - 
force0
public double force0Force constant. - 
force1
public double force1Force constant. 
 - 
 - 
Constructor Details
- 
StretchBend
Constructor for the Stretch-Bend class.- Parameters:
 a- The Angle that this stretch-bend is based on.
 
 - 
 - 
Method Details
- 
compareTo
- Specified by:
 compareToin interfaceComparable<BondedTerm>- Overrides:
 compareToin classBondedTerm
 - 
energy
public double energy(boolean gradient, int threadID, AtomicDoubleArray3D grad, AtomicDoubleArray3D lambdaGrad) energy.Evaluate the Stretch-Bend energy.
- Specified by:
 energyin interfaceBondedEnergy- Parameters:
 gradient- If true, compute the gradient.threadID- The thread ID.grad- aAtomicDoubleArray3Dobject.lambdaGrad- aAtomicDoubleArray3Dobject.- Returns:
 - a double.
 
 - 
log
public void log()log - 
setRigidScale
public void setRigidScale(double rigidScale) Setter for the fieldrigidScale.- Parameters:
 rigidScale- a double.
 - 
setStretchBendType
Setter for the fieldstretchBendType.- Parameters:
 stretchBendType- aStretchBendTypeobject.
 - 
toString
Overridden toString method returns the MSNode's name
Overridden toString Method returns the Term's id.
Overridden toString Method returns the Term's id.
- Overrides:
 toStringin classBondedTerm
 
 -