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, ureyBradleyTime
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
Fields inherited from interface ffx.potential.bonded.ROLS
MaxLengthScale
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionAbstract method that should specify how to add various MSNodes subclasses (such as Atoms, Residues and Polymers) to the MSGroupboolean
void
finalize
(boolean finalizeGeometry, ForceField forceField) Abstract method that should specify how to finalize a MSGroupgetAtomGetter for the fieldchainID
.getKey()
Getter for the fieldresidueName
.int
getResidueNumbergetSegID()
Getter for the fieldsegID
.int
hashCode()
void
Setter for the fieldchainID
.void
Sets the name of this NodeObject to n.void
setResidueNum
(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, updateBonds
Methods 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, setSelected
Methods 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
- aCharacter
object.
-
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:MSNode
MSNode 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
Character
object.
-
getKey
-
getResidueName
Getter for the fieldresidueName
.- Returns:
- a
String
object.
-
getResidueNumber
public int getResidueNumber()getResidueNumber- Returns:
- The residue number.
-
getSegID
Getter for the fieldsegID
.- Returns:
- a
String
object.
-
hashCode
public int hashCode()Description copied from class:MSNode
-
setName
Sets the name of this NodeObject to n.
-