Package ffx.potential.bonded
Class MSGroup
java.lang.Object
javax.swing.tree.DefaultMutableTreeNode
ffx.potential.bonded.MSNode
ffx.potential.bonded.MSGroup
- All Implemented Interfaces:
 ROLS,Serializable,Cloneable,MutableTreeNode,TreeNode
- Direct Known Subclasses:
 MolecularAssembly,Molecule,Polymer,Residue
The MSGroup class has one sub-node containing atoms, and one that contains molecular
 mechanics/geometry terms.
- Since:
 - 1.0
 - Author:
 - Michael J. Schnieders
 - See Also:
 
- 
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static longConstantangleTime=0protected static longConstantangleTorsionTime=0protected static longConstantbondTime=0protected static longConstanttorsionTorsionTime=0protected static longConstantoutOfPlaneBendTime=0protected static longConstantpiOrbitalTorsionTime=0protected static longConstantstretchBendTime=0protected static longConstantstretchTorsionTime=0protected static longConstanttorsionTime=0protected static longConstanttorsionTorsionTime=0protected static longConstantureyBradleyTime=0Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObjectFields inherited from interface ffx.potential.bonded.ROLS
MaxLengthScale - 
Constructor Summary
ConstructorsConstructorDescriptionMSGroup()Default Constructor initializes a MultiScaleGroup and a few of its sub-nodes.Constructs a MultiScaleGroup object with name n.Constructs a MultiScaleGroup object with name n and sets its AtomGroup node equals to node. - 
Method Summary
Modifier and TypeMethodDescriptionabstract MSNodeAbstract method that should specify how to add various MSNodes subclasses (such as Atoms, Residues and Polymers) to the MSGroupvoidassignBondedTerms(ForceField forceField) assignBondedTermscreateJoint(Bond bond, MSGroup group1, MSGroup group2, ForceField forceField) Create a joint between two chemical groups.createJoint(MSGroup group1, MSGroup group2, ForceField forceField) Joiner joins Moieties m1 and m2 and returns the Geometry objects formed in a Joint.abstract voidfinalize(boolean finalizeGroups, ForceField forceField) Abstract method that should specify how to finalize a MSGroupvoidThis method constructs a List of atoms which are under-constrained.Returns the MultiScaleGroup's angles FNode.getAtomByName(String n, boolean caseInsensitive) getAtomByName.Returns the AtomNode.getAtomNode(int index) Returns the MSNode at the given index.Returns the AtomNode specified by the String n.Returns a List of the AtomNode's children.getBond(int index) Returns the Bond at the supplied index.Returns the Bond with the given id.getBonds()Returns the MultiScaleGroup's bonds FNode.double[]Returns the MultiScaleGroup's center as a double[3].Returns the MultiScaleGroup's dangling Atoms list.double[]getMultiScaleCenter(boolean w) This method finds the Geometrical center of this MultiScaleGroup, or the atomicWeight-weighted center if w is set to true, and returns it as a double[3].Returns the MultiScaleGroup's terms FNode.Returns the MultiScaleGroup's Torsion MSNode.booleanReturns true if the MultiScaleGroup is finalized.voidprint()Prints the MSNode's nameprotected voidremoveLeavesvoidreOrderAtomsvoidSets the Angles node to t.voidSets the MultiScaleGroup's angle-torsion node to t.voidSets the Moieties node to t.voidSets the Bonds node to t.voidsetCenter(double[] d) Set the value of Center to d.voidsetColor(RendererCache.ColorModel newColorModel, org.jogamp.vecmath.Color3f color, org.jogamp.java3d.Material mat) setColorvoidsetDanglingAtoms(List<Atom> a) Sets the MultiScaleGroup's danglingAtoms member toa.voidsetFinalized(boolean t) Specifies whether the MultiScaleGroup has been finalized.voidSets the ImproperTorsion node to t.voidSets the Out-of-Plane Bend node to t.voidSets the MultiScaleGroup's Pi-Orbital Torsion node to t.voidSets the Stretch-Bends node to t.voidSets the MultiScaleGroup's stretch-torsion node to t.voidSets the MultiScaleGroup's terms node to t.voidSets the MultiScaleGroup's torsion node to t.voidSets the MultiScaleGroup's Torsion-Torsion node to t.voidSets the Urey-Bradley node to t.voidsetView(RendererCache.ViewModel newViewModel, List<org.jogamp.java3d.BranchGroup> newShapes) setViewtoString()voidupdate()updatevoidupdateAtomsvoidupdateBondsMethods inherited from class ffx.potential.bonded.MSNode
contains, destroy, drawLabel, equals, getAngleList, getAngleTorsionList, getAtomList, getAtomList, getBondList, getCenter, getChildList, getExtent, getImproperTorsionList, getList, getList, getMSCount, getMSNode, getMW, getName, getOutOfPlaneBendList, getPiOrbitalTorsionList, getStretchBendList, getStretchTorsionList, getTorsionList, getTorsionTorsionList, getTotalMass, getUreyBradleyList, hashCode, isSelected, removeChild, setName, 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 
- 
Field Details
- 
bondTime
protected static long bondTimeConstantbondTime=0 - 
angleTime
protected static long angleTimeConstantangleTime=0 - 
stretchBendTime
protected static long stretchBendTimeConstantstretchBendTime=0 - 
ureyBradleyTime
protected static long ureyBradleyTimeConstantureyBradleyTime=0 - 
outOfPlaneBendTime
protected static long outOfPlaneBendTimeConstantoutOfPlaneBendTime=0 - 
torsionTime
protected static long torsionTimeConstanttorsionTime=0 - 
stretchTorsionTime
protected static long stretchTorsionTimeConstantstretchTorsionTime=0 - 
angleTorsionTime
protected static long angleTorsionTimeConstantangleTorsionTime=0 - 
piOrbitalTorsionTime
protected static long piOrbitalTorsionTimeConstantpiOrbitalTorsionTime=0 - 
torsionTorsionTime
protected static long torsionTorsionTimeConstanttorsionTorsionTime=0 - 
improperTorsionTime
protected static long improperTorsionTimeConstanttorsionTorsionTime=0 
 - 
 - 
Constructor Details
- 
MSGroup
public MSGroup()Default Constructor initializes a MultiScaleGroup and a few of its sub-nodes. - 
MSGroup
Constructs a MultiScaleGroup object with name n.- Parameters:
 n- aStringobject.
 - 
MSGroup
Constructs a MultiScaleGroup object with name n and sets its AtomGroup node equals to node. 
 - 
 - 
Method Details
- 
addMSNode
Abstract method that should specify how to add various MSNodes subclasses (such as Atoms, Residues and Polymers) to the MSGroup - 
assignBondedTerms
assignBondedTerms- Parameters:
 forceField- the ForceField to use when creating bonded terms.
 - 
createJoint
Create a joint between two chemical groups. - 
createJoint
Joiner joins Moieties m1 and m2 and returns the Geometry objects formed in a Joint. - 
finalize
Abstract method that should specify how to finalize a MSGroup- Parameters:
 finalizeGroups- a boolean.forceField- the ForceField parameters to use when finalizing the MSGroup.
 - 
findDangelingAtoms
public void findDangelingAtoms()This method constructs a List of atoms which are under-constrained. (i.e. They can except more bonds) - 
getAngles
Returns the MultiScaleGroup's angles FNode.- Returns:
 - a 
MSNodeobject. 
 - 
setAngles
Sets the Angles node to t.- Parameters:
 t- aMSNodeobject.
 - 
getAtomByName
getAtomByName. - 
getAtomNode
Returns the AtomNode.- Returns:
 - a 
MSNodeobject. 
 - 
setAtomNode
Sets the Moieties node to t.- Parameters:
 t- aMSNodeobject.
 - 
getAtomNode
Returns the MSNode at the given index.- Parameters:
 index- The index of the AtomNode to return.- Returns:
 - a 
MSNodeobject. 
 - 
getAtomNode
Returns the AtomNode specified by the String n. - 
getAtomNodeList
Returns a List of the AtomNode's children.- Returns:
 - a 
Listobject. 
 - 
getBond
Returns the Bond at the supplied index.- Parameters:
 index- The index of the Bond to return.- Returns:
 - a 
Bondobject. 
 - 
getBond
Returns the Bond with the given id. - 
getBonds
Returns the MultiScaleGroup's bonds FNode.- Returns:
 - a 
MSNodeobject. 
 - 
setBonds
Sets the Bonds node to t.- Parameters:
 t- aMSNodeobject.
 - 
getCenter
public double[] getCenter()Returns the MultiScaleGroup's center as a double[3].- Returns:
 - an array of double.
 
 - 
setCenter
public void setCenter(double[] d) Set the value of Center to d.- Parameters:
 d- an array of double.
 - 
getDanglingAtoms
Returns the MultiScaleGroup's dangling Atoms list.- Returns:
 - a 
Listobject. 
 - 
setDanglingAtoms
Sets the MultiScaleGroup's danglingAtoms member toa.- Parameters:
 a- aListobject.
 - 
getMultiScaleCenter
public double[] getMultiScaleCenter(boolean w) This method finds the Geometrical center of this MultiScaleGroup, or the atomicWeight-weighted center if w is set to true, and returns it as a double[3].- Parameters:
 w- a boolean.- Returns:
 - an array of double.
 
 - 
getTermNode
Returns the MultiScaleGroup's terms FNode.- Returns:
 - a 
MSNodeobject. 
 - 
getTorsions
Returns the MultiScaleGroup's Torsion MSNode.- Returns:
 - a 
MSNodeobject. 
 - 
setTorsions
Sets the MultiScaleGroup's torsion node to t.- Parameters:
 t- aMSNodeobject.
 - 
isFinalized
public boolean isFinalized()Returns true if the MultiScaleGroup is finalized.- Returns:
 - a boolean.
 
 - 
setFinalized
public void setFinalized(boolean t) Specifies whether the MultiScaleGroup has been finalized.- Parameters:
 t- a boolean.
 - 
print
public void print()Prints the MSNode's namePrints the MultiScaleGroup's Atoms and Bonds.
 - 
reOrderAtoms
public void reOrderAtoms()reOrderAtoms - 
setAngleTorsions
Sets the MultiScaleGroup's angle-torsion node to t.- Parameters:
 t- aMSNodeobject.
 - 
setColor
public void setColor(RendererCache.ColorModel newColorModel, org.jogamp.vecmath.Color3f color, org.jogamp.java3d.Material mat) setColor- Specified by:
 setColorin interfaceROLS- Overrides:
 setColorin classMSNode- Parameters:
 newColorModel- aRendererCache.ColorModelobject.color- aColor3fobject.mat- aMaterialobject.
 - 
setImproperTorsions
Sets the ImproperTorsion node to t.- Parameters:
 t- aMSNodeobject.
 - 
setOutOfPlaneBends
Sets the Out-of-Plane Bend node to t.- Parameters:
 t- aMSNodeobject.
 - 
setPiOrbitalTorsions
Sets the MultiScaleGroup's Pi-Orbital Torsion node to t.- Parameters:
 t- aMSNodeobject.
 - 
setStretchBends
Sets the Stretch-Bends node to t.- Parameters:
 t- aMSNodeobject.
 - 
setStretchTorsions
Sets the MultiScaleGroup's stretch-torsion node to t.- Parameters:
 t- aMSNodeobject.
 - 
setTerms
Sets the MultiScaleGroup's terms node to t.- Parameters:
 t- aMSNodeobject.
 - 
setTorsionTorsions
Sets the MultiScaleGroup's Torsion-Torsion node to t.- Parameters:
 t- aMSNodeobject.
 - 
setUreyBradleys
Sets the Urey-Bradley node to t.- Parameters:
 t- aMSNodeobject.
 - 
setView
public void setView(RendererCache.ViewModel newViewModel, List<org.jogamp.java3d.BranchGroup> newShapes) setView - 
toString
Overridden toString method returns the MSNode's name
Returns the MSGroup's name.
 - 
update
public void update()update - 
updateAtoms
public void updateAtoms()updateAtoms - 
updateBonds
public void updateBonds()updateBonds - 
removeLeaves
protected void removeLeaves()removeLeaves 
 -