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
FieldsFields 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 MSGroupvoidaddMultiResidue(MultiResidue multiResidue) addMultiResidue.createJoint(Residue residue1, Residue residue2, ForceField forceField) Form a Joint between two residues.booleanvoidfinalize(boolean finalizeGroups, ForceField forceField) Abstract method that should specify how to finalize a MSGroupGetter for the fieldchainID.getFirstResiduebooleangetLink()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) getResiduegetResiduesinthashCode()voidsetChainID(Character chainID) Set the Polymer chainID.voidsetColor(RendererCache.ColorModel newColorModel, org.jogamp.vecmath.Color3f color, org.jogamp.java3d.Material mat) setColorvoidsetLink(boolean link) Setter for the fieldlink.voidSet the Polymer segID.voidsetView(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, 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, 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
- 
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- aCharacterobject.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- aMultiResidueobject.
 - 
createJoint
Form a Joint between two residues.- Parameters:
 residue1- The first Residue.residue2- The second Residue.forceField- The ForceField to use for the Joint.- Returns:
 - a 
Jointobject. 
 - 
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 
Characterobject. 
 - 
getFirstResidue
getFirstResidue- Returns:
 - a 
Residueobject. 
 - 
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 
Residueobject. 
 - 
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 
Residueobject. 
 - 
getResidues
getResidues- Returns:
 - a 
Listobject. 
 - 
hashCode
public int hashCode() - 
setColor
public void setColor(RendererCache.ColorModel newColorModel, org.jogamp.vecmath.Color3f color, org.jogamp.java3d.Material mat) setColor- Specified by:
 setColorin interfaceROLS- Overrides:
 setColorin classMSGroup- Parameters:
 newColorModel- aRendererCache.ColorModelobject.color- aColor3fobject.mat- aMaterialobject.
 - 
setView
public void setView(RendererCache.ViewModel newViewModel, List<org.jogamp.java3d.BranchGroup> newShapes) setView 
 -