Package ffx.potential.bonded
Class Polymer
java.lang.Object
javax.swing.tree.DefaultMutableTreeNode
ffx.potential.bonded.MSNode
ffx.potential.bonded.MSGroup
ffx.potential.bonded.Polymer
- All Implemented Interfaces:
ROLS
,Serializable
,Cloneable
,MutableTreeNode
,TreeNode
The Polymer class encapsulates a peptide or nucleotide chain.
- 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 MSGroupvoid
addMultiResidue
(MultiResidue multiResidue) addMultiResidue.createJoint
(Residue residue1, Residue residue2, ForceField forceField) boolean
void
finalize
(boolean finalizeGroups, ForceField forceField) Abstract method that should specify how to finalize a MSGroupGetter for the fieldchainID
.getFirstResidueboolean
getLink()
Getter for the fieldlink
.Get lists of the phi and psi torsions.getResidue
(int resNum) getResiduegetResidue
(String resName, int resNum, boolean create) getResiduegetResidue
(String resName, int resNum, boolean create, Residue.ResidueType defaultRT) getResiduegetResiduesint
hashCode()
void
setChainID
(Character chainID) Set the Polymer chainID.void
setColor
(RendererCache.ColorModel newColorModel, org.jogamp.vecmath.Color3f color, org.jogamp.java3d.Material mat) setColorvoid
setLink
(boolean link) Setter for the fieldlink
.void
Set the Polymer segID.void
setView
(RendererCache.ViewModel newViewModel, List<org.jogamp.java3d.BranchGroup> newShapes) setViewMethods 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, setDanglingAtoms, setFinalized, setImproperTorsions, setOutOfPlaneBends, setPiOrbitalTorsions, setStretchBends, setStretchTorsions, setTerms, setTorsions, setTorsionTorsions, setUreyBradleys, 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, 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
-
CHAIN_IDS
- See Also:
-
-
Constructor Details
-
Polymer
Polymer constructor.- Parameters:
chainID
- Possibly redundant PDB chainID.segID
- Unique identifier from A-Z,0-9, then 1A-1Z,10-19, etc.
-
Polymer
Polymer constructor.- Parameters:
chainID
- Possibly redundant PDB chainID.segID
- Unique identifier from A-Z,0-9, then 1A-1Z,10-19, etc.link
- a boolean.
-
Polymer
Polymer Constructor.- Parameters:
chainID
- aCharacter
object.segID
- A unique identifier from A-Z,0-9, then 1A-1Z,10-19, etc.residues
- Represents a MSNode where the Polymer's residues have been attached.
-
-
Method Details
-
addMSNode
Abstract method that should specify how to add various MSNodes subclasses (such as Atoms, Residues and Polymers) to the MSGroupA generic method for adding a MSNode to the Polymer.
-
setChainID
Set the Polymer chainID. The residues that form the polymer are also updated.- Parameters:
chainID
- The chainID to use.
-
setSegID
Set the Polymer segID. The residues that form the polymer are also updated.- Parameters:
segID
- The segID to use.
-
addMultiResidue
addMultiResidue.- Parameters:
multiResidue
- aMultiResidue
object.
-
createJoint
Joiner joins Moieties m1 and m2 and returns the Geometry objects formed in a Joint.
-
equals
MSNode equality := same class and same name. Consider replacing with a Comparator<MSNode> for cases where non-reference equality is desired.
Overridden equals method.
-
finalize
Abstract method that should specify how to finalize a MSGroupFinalize should be called after all the Residues have been added to the Polymer. This method in turn calls the Finalize method of each Residue, then forms Joints between adjacent Residues in the Polymer
-
getChainID
Getter for the fieldchainID
.- Returns:
- a
Character
object.
-
getFirstResidue
getFirstResidue- Returns:
- a
Residue
object.
-
getLink
public boolean getLink()Getter for the fieldlink
.- Returns:
- a boolean.
-
setLink
public void setLink(boolean link) Setter for the fieldlink
.- Parameters:
link
- a boolean.
-
getPhiPsiList
Get lists of the phi and psi torsions.- Returns:
- A List of Dihedral objects representing the Phi/Psi angles of the Polymer.
-
getResidue
getResidue- Parameters:
resNum
- The residue number.- Returns:
- a
Residue
object.
-
getResidue
getResidue -
getResidue
public Residue getResidue(String resName, int resNum, boolean create, Residue.ResidueType defaultRT) getResidue- Parameters:
resName
- The residue name.resNum
- The residue number.create
- If true, create the residue if it does not exist.defaultRT
- Default ResidueType if it cannot be assigned.- Returns:
- a
Residue
object.
-
getResidues
getResidues- Returns:
- a
List
object.
-
hashCode
public int hashCode() -
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 classMSGroup
- Parameters:
newColorModel
- aRendererCache.ColorModel
object.color
- aColor3f
object.mat
- aMaterial
object.
-
setView
public void setView(RendererCache.ViewModel newViewModel, List<org.jogamp.java3d.BranchGroup> newShapes) setView
-