Package ffx.potential.bonded
Class Molecule
java.lang.Object
javax.swing.tree.DefaultMutableTreeNode
ffx.potential.bonded.MSNode
ffx.potential.bonded.MSGroup
ffx.potential.bonded.Molecule
- All Implemented Interfaces:
ROLS,Serializable,Cloneable,MutableTreeNode,TreeNode
The Molecule class is a general container used for simple compounds or in cases where more
specialized classes have not been implemented.
- Since:
- 1.0
- Author:
- Michael J. Schnieders
- See Also:
-
Field Summary
Fields inherited from class ffx.potential.bonded.MSGroup
angleTime, angleTorsionTime, bondTime, improperTorsionTime, outOfPlaneBendTime, piOrbitalTorsionTime, stretchBendTime, stretchTorsionTime, torsionTime, torsionTorsionTime, ureyBradleyTimeFields 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 TypeMethodDescriptionAbstract method that should specify how to add various MSNodes subclasses (such as Atoms, Residues and Polymers) to the MSGroupbooleanvoidfinalize(boolean finalizeGeometry, ForceField forceField) Abstract method that should specify how to finalize a MSGroupgetAtomGetter for the fieldchainID.getKey()Getter for the fieldresidueName.intgetResidueNumbergetSegID()Getter for the fieldsegID.inthashCode()voidSetter for the fieldchainID.voidSets the name of this NodeObject to n.voidsetResidueNum(int residueNum) Setter for the fieldresidueNum.Methods inherited from class ffx.potential.bonded.MSGroup
assignBondedTerms, createJoint, createJoint, findDangelingAtoms, getAngles, getAtomByName, getAtomNode, getAtomNode, getAtomNode, getAtomNodeList, getBond, getBond, getBonds, getCenter, getDanglingAtoms, getMultiScaleCenter, getTermNode, getTorsions, isFinalized, print, removeLeaves, reOrderAtoms, setAngles, setAngleTorsions, setAtomNode, setBonds, setCenter, setColor, setDanglingAtoms, setFinalized, setImproperTorsions, setOutOfPlaneBends, setPiOrbitalTorsions, setStretchBends, setStretchTorsions, setTerms, setTorsions, setTorsionTorsions, setUreyBradleys, setView, toString, update, updateAtoms, updateBondsMethods inherited from class ffx.potential.bonded.MSNode
contains, destroy, 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, setSelectedMethods 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, setUserObject
-
Constructor Details
-
Method Details
-
setChainID
Setter for the fieldchainID.- Parameters:
c- aCharacterobject.
-
setResidueNum
public void setResidueNum(int residueNum) Setter for the fieldresidueNum.- Parameters:
residueNum- The molecule number.
-
addMSNode
Abstract method that should specify how to add various MSNodes subclasses (such as Atoms, Residues and Polymers) to the MSGroupAllows adding Atom MSNodes to the Molecule.
-
equals
Description copied from class:MSNodeMSNode equality := same class and same name. Consider replacing with a Comparator<MSNode> for cases where non-reference equality is desired.
-
finalize
Abstract method that should specify how to finalize a MSGroup -
getAtom
getAtom -
getChainID
Getter for the fieldchainID.- Returns:
- a
Characterobject.
-
getKey
-
getResidueName
Getter for the fieldresidueName.- Returns:
- a
Stringobject.
-
getResidueNumber
public int getResidueNumber()getResidueNumber- Returns:
- The residue number.
-
getSegID
Getter for the fieldsegID.- Returns:
- a
Stringobject.
-
hashCode
public int hashCode()Description copied from class:MSNode -
setName
Sets the name of this NodeObject to n.
-