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
Modifier and TypeFieldDescriptionprotected static long
ConstantangleTime=0
protected static long
ConstantangleTorsionTime=0
protected static long
ConstantbondTime=0
protected static long
ConstanttorsionTorsionTime=0
protected static long
ConstantoutOfPlaneBendTime=0
protected static long
ConstantpiOrbitalTorsionTime=0
protected static long
ConstantstretchBendTime=0
protected static long
ConstantstretchTorsionTime=0
protected static long
ConstanttorsionTime=0
protected static long
ConstanttorsionTorsionTime=0
protected static long
ConstantureyBradleyTime=0
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
ConstructorDescriptionMSGroup()
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 MSNode
Abstract method that should specify how to add various MSNodes subclasses (such as Atoms, Residues and Polymers) to the MSGroupvoid
assignBondedTerms
(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 void
finalize
(boolean finalizeGroups, ForceField forceField) Abstract method that should specify how to finalize a MSGroupvoid
This 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.boolean
Returns true if the MultiScaleGroup is finalized.void
print()
Prints the MSNode's nameprotected void
removeLeavesvoid
reOrderAtomsvoid
Sets the Angles node to t.void
Sets the MultiScaleGroup's angle-torsion node to t.void
Sets the Moieties node to t.void
Sets the Bonds node to t.void
setCenter
(double[] d) Set the value of Center to d.void
setColor
(RendererCache.ColorModel newColorModel, org.jogamp.vecmath.Color3f color, org.jogamp.java3d.Material mat) setColorvoid
setDanglingAtoms
(List<Atom> a) Sets the MultiScaleGroup's danglingAtoms member toa
.void
setFinalized
(boolean t) Specifies whether the MultiScaleGroup has been finalized.void
Sets the ImproperTorsion node to t.void
Sets the Out-of-Plane Bend node to t.void
Sets the MultiScaleGroup's Pi-Orbital Torsion node to t.void
Sets the Stretch-Bends node to t.void
Sets the MultiScaleGroup's stretch-torsion node to t.void
Sets the MultiScaleGroup's terms node to t.void
Sets the MultiScaleGroup's torsion node to t.void
Sets the MultiScaleGroup's Torsion-Torsion node to t.void
Sets the Urey-Bradley node to t.void
setView
(RendererCache.ViewModel newViewModel, List<org.jogamp.java3d.BranchGroup> newShapes) setViewtoString()
void
update()
updatevoid
updateAtomsvoid
updateBondsMethods 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, 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
-
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
- aString
object.
-
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
MSNode
object.
-
setAngles
Sets the Angles node to t.- Parameters:
t
- aMSNode
object.
-
getAtomByName
getAtomByName. -
getAtomNode
Returns the AtomNode.- Returns:
- a
MSNode
object.
-
setAtomNode
Sets the Moieties node to t.- Parameters:
t
- aMSNode
object.
-
getAtomNode
Returns the MSNode at the given index.- Parameters:
index
- The index of the AtomNode to return.- Returns:
- a
MSNode
object.
-
getAtomNode
Returns the AtomNode specified by the String n. -
getAtomNodeList
Returns a List of the AtomNode's children.- Returns:
- a
List
object.
-
getBond
Returns the Bond at the supplied index.- Parameters:
index
- The index of the Bond to return.- Returns:
- a
Bond
object.
-
getBond
Returns the Bond with the given id. -
getBonds
Returns the MultiScaleGroup's bonds FNode.- Returns:
- a
MSNode
object.
-
setBonds
Sets the Bonds node to t.- Parameters:
t
- aMSNode
object.
-
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
List
object.
-
setDanglingAtoms
Sets the MultiScaleGroup's danglingAtoms member toa
.- Parameters:
a
- aList
object.
-
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
MSNode
object.
-
getTorsions
Returns the MultiScaleGroup's Torsion MSNode.- Returns:
- a
MSNode
object.
-
setTorsions
Sets the MultiScaleGroup's torsion node to t.- Parameters:
t
- aMSNode
object.
-
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
- aMSNode
object.
-
setColor
public void setColor(RendererCache.ColorModel newColorModel, org.jogamp.vecmath.Color3f color, org.jogamp.java3d.Material mat) setColor- Specified by:
setColor
in interfaceROLS
- Overrides:
setColor
in classMSNode
- Parameters:
newColorModel
- aRendererCache.ColorModel
object.color
- aColor3f
object.mat
- aMaterial
object.
-
setImproperTorsions
Sets the ImproperTorsion node to t.- Parameters:
t
- aMSNode
object.
-
setOutOfPlaneBends
Sets the Out-of-Plane Bend node to t.- Parameters:
t
- aMSNode
object.
-
setPiOrbitalTorsions
Sets the MultiScaleGroup's Pi-Orbital Torsion node to t.- Parameters:
t
- aMSNode
object.
-
setStretchBends
Sets the Stretch-Bends node to t.- Parameters:
t
- aMSNode
object.
-
setStretchTorsions
Sets the MultiScaleGroup's stretch-torsion node to t.- Parameters:
t
- aMSNode
object.
-
setTerms
Sets the MultiScaleGroup's terms node to t.- Parameters:
t
- aMSNode
object.
-
setTorsionTorsions
Sets the MultiScaleGroup's Torsion-Torsion node to t.- Parameters:
t
- aMSNode
object.
-
setUreyBradleys
Sets the Urey-Bradley node to t.- Parameters:
t
- aMSNode
object.
-
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
-