Class Atom
- All Implemented Interfaces:
ROLS,Serializable,Cloneable,Comparable<Atom>,MutableTreeNode,TreeNode
- Since:
- 1.0
- Author:
- Michael J. Schnieders
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enumElement symbols for the first 109 elements.static enum -
Field Summary
FieldsModifier and TypeFieldDescriptionConstantAtomColorstatic Comparator<Atom> Compare two atoms (implementation of the Comparator interface).Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObjectFields inherited from interface ffx.potential.bonded.ROLS
MaxLengthScale -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new Atom similar to an existing Atom (e.g. for tiling a solvent box over a solute).Constructor used when parsing XYZ files.Atom(int xyzIndex, String name, Character altLoc, double[] xyz, String resName, int resSeq, Character chainID, double occupancy, double tempFactor, String segID) Constructor used when parsing PDB files.Atom(int xyzIndex, String name, Character altLoc, double[] xyz, String resName, int resSeq, Character chainID, double occupancy, double tempFactor, String segID, boolean built) Constructor for Atom.Default constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddToAnisouGradient(double[] anisouGradient) addToAnisouGradientvoidaddToLambdaXYZGradient(double x, double y, double z) addToLambdaXYZGradientvoidaddToOccupancyGradient(double occupancyGradient) addToOccupancyGradientvoidaddToTempFactorGradient(double tempFactorGradient) addToTempFactorGradientvoidaddToXYZGradient(double x, double y, double z) addToXYZGradientvoidaddToXYZGradient(int axis, double value) addToXYZGradient.booleanapplyLambdaintdescribe(Atom.Descriptions type) describe.voiddrawLabel(org.jogamp.java3d.Canvas3D canvas, org.jogamp.java3d.J3DGraphics2D g2d, org.jogamp.java3d.Node node) drawLabelfinal booleanGet the list of 1-2 atoms ordered by XYZ index.Get the list of 1-3 atoms ordered by XYZ index.Get the list of 1-4 atoms ordered by XYZ index.Get the list of 1-5 atoms ordered by XYZ index.voidgetAcceleration(double[] acceleration) Getter for the fieldacceleration.Getter for the fieldaltLoc.getAngle.Getter for the fieldangles.double[]getAnisou(double[] anisou) Getter for the fieldanisou.double[]getAnisouAcceleration(double[] anisouAcceleration) Getter for the fieldanisouAcceleration.double[]getAnisouGradient(double[] anisouGradient) Getter for the fieldanisouGradient.double[]getAnisouPreviousAcceleration(double[] anisouPreviousAcceleration) Getter for the fieldanisouPreviousAcceleration.double[]getAnisouVelocity(double[] anisouVelocity) Getter for the fieldanisouVelocity.final intgetArrayIndex.intGets the Atomic NumberReturns a List of all Atoms below the present MSNode.Getter for the fieldatomType.int[]Getter for the fieldaxisAtomIndices.getBondgetBonds()Gets the list of the Bonds this Atom helps to formbooleangetBuilt()If true, this atom was built during PDB file parsing.Get the chain namedoubleGets the partial atomic chargedoublegetCharge(ForceField ff) Gets the partial atomic charge.booleanGetter for the fieldelectrostatics.doubleGets the Epsilon valueintGetter for the fieldformFactorIndex.doubleGetter for the fieldformFactorWidth.doubleGetter for the fieldformFactorWidth.intGets the Atomic HybridizationgetIdent()Gets the atom IDfinal intgetIndex()Getter for the fieldindex.getKey()Gets the atom KeyvoidgetLambdaXYZGradient(double[] x) getLambdaXYZGradientdoublegetMass()Gets the Atomic Mass.intGetter for the fieldmoleculeNumber.Getter for the fieldmultipoleType.final intgetNumAnglesintCount the number of bonded hydrogen.final intGets the number of atoms bonded to this Atomfinal intgetNumDihedralsdoubleGetter for the fieldoccupancy.doubleGetter for the fieldoccupancyAccelerationy.doubleGetter for the fieldoccupancyGradient.doubleGetter for the fieldoccupancyPreviousAccelerationy.doubleGetter for the fieldoccupancyVelocity.Getter for the fieldpolarizeType.voidgetPreviousAcceleration(double[] previousAcceleration) Getter for the fieldpreviousAcceleration.final doublegetRedX()Gets the reduced x coordinate (van der Waals center).double[]getRedXYZvoidgetRedXYZ(double[] x) getRedXYZfinal doublegetRedY()Gets the reduced y coordinate (van der Waals center).final doublegetRedZ()Gets the reduced z coordinate (van der Waals center).Get the residue nameintgetResidueNumberGetter for the fieldresolution.getSegID()Getter for the fieldsegID.doublegetSigma()Gets the Sigma valuegetSoluteTypedoubleGetter for the fieldtempFactor.doubleGetter for the fieldtempFactorAcceleration.doubleGetter for the fieldtempFactorGradient.doubleGetter for the fieldtempFactorPreviousAcceleration.doubleGetter for the fieldtempFactorVelocity.final intDual-topology atom index.final intGet the topology index of this atom.getTorsion(Atom atom2, Atom atom3, Atom atom4) Finds a Torsion which contains this atom, and atoms 2, 3, and 4.Getter for the fieldtorsions.org.jogamp.vecmath.Vector3dgetTrajectoryCoords(int position) getTrajectoryCoordsintgetTrajectoryLengthintgetType()getTypebooleangetUse()If true, this atom should be used in potential energy functions.voidgetV3D(org.jogamp.vecmath.Vector3d temp) Gets the Atom's Cartesian Coordinates return The Cartesian CoordinatesdoublegetVDWR()Gets the van der Waals radius.getVDWTypevoidgetVelocity(double[] velocity) Getter for the fieldvelocity.final doublegetX()Gets the x coordinategetXYZ()getXYZdouble[]getXYZ(double[] xyz) getXYZvoidgetXYZGradient(double[] x) getXYZGradientfinal intGetter for the fieldxyzIndex.final doublegetY()Gets the y coordinatefinal doublegetZ()Gets the z coordinateinthashCode()booleanis_1_3booleanAre these atoms 1-4 bonded?booleanAre these atoms 1-5 bonded?booleanAre these atoms 1-6 bonded?booleanAre these atoms 1-7 bonded?booleanAre these atoms 1-8 bonded?booleanis_12_or_13(Atom a) is_12_or_13booleanisActive()If active, the coordinates of this atom can be modified.booleanChecks to see if an Atom is bonded to this AtombooleanisDeuteriumbooleanCheck if this atom is a Halogen (F, Cl, Br, I)booleanisHeavy()isHeavy checks whether this Atom is a heavy (non-hydrogen) atom.booleanisHetero()isHeterobooleanisHydrogenbooleanisModRes()isModResbooleanIf true, this atom is part of a molecule whose intramolecular interactions are handled by a neural network.booleanDetermine if atom is in a ring with second atom WARNING: Does not work for 8+ membered rings...booleanIf true, this atom is at a special position.booleanisSpecialPositionSymOp(int symOp) If true, this atom is at a special position for the specified symmetry operation.booleanisStale()isStalebooleanisTrigonalbooleanisVisiblevoidmove(double[] d) Add a vector to the Atom's current position vectorvoidmoveTo(double[] d) Moves the atom to the specified locationvoidmoveTo(double a, double b, double c) moveTovoidmoveTo(org.jogamp.vecmath.Vector3d v) moveTofinal voidprint()Prints the MSNode's namefinal voidvoidvoidrotate(double[][] d) Applies a rotation matrix to the atom's coordinates.voidsetAcceleration(double[] acceleration) Setter for the fieldacceleration.voidsetAcceleration(double x, double y, double z) Setter for the fieldacceleration.voidsetActive(boolean active) If active, the coordinates of this atom can be modified.voidSetter for the fieldaltLoc.voidsetAnglevoidsetAnisou(double[] anisou) Setter for the fieldanisou.voidsetAnisouAcceleration(double[] anisouAcceleration) Setter for the fieldanisouAcceleration.voidsetAnisouGradient(double[] anisouGradient) Setter for the fieldanisouGradient.voidsetAnisouPreviousAcceleration(double[] anisouPreviousAcceleration) Setter for the fieldanisouPreviousAcceleration.voidsetAnisouVelocity(double[] anisouVelocity) Setter for the fieldanisouVelocity.voidsetApplyLambda(boolean applyState) setApplyLambdavoidsetAtomType(AtomType atomType) Setter for the fieldatomType.voidsetAxisAtoms(Atom... set) Setter for the fieldaxisAtoms.voidSpecify that this Atom is part of a BondvoidsetBuilt(boolean built) Setter for the fieldbuilt.voidsetChainID(Character chainID) Set the chain name.voidsetColor(RendererCache.ColorModel newColorModel, org.jogamp.vecmath.Color3f newCol, org.jogamp.java3d.Material newMat) setColorvoidsetCurrentCycle(int cycle) setCurrentCyclevoidsetElectrostatics(boolean electrostatics) Setter for the fieldelectrostatics.voidsetFormFactorIndex(int formFactorIndex) Setter for the fieldformFactorIndex.voidsetFormFactorWidth(double width) Setter for the fieldformFactorWidth.voidsetHetero(boolean hetatm) setHeterovoidsetLambdaXYZGradient(double x, double y, double z) setLambdaXYZGradientvoidsetMass(double mass) Set the Atomic Mass.voidsetModRes(boolean modres) setModResvoidsetMoleculeNumber(int molecule) Setter for the fieldmoleculeNumber.voidsetMultipoleType(MultipoleType multipoleType) Setter for the fieldmultipoleType.voidsetNeuralNetwork(boolean neuralNetwork) If true, this atom is part of a molecule whose intramolecular interactions are handled by a neural network.voidsetOccupancy(double occupancy) Setter for the fieldoccupancy.voidsetOccupancyAcceleration(double occupancyAcceleration) Setter for the fieldoccupancyAcceleration.voidsetOccupancyGradient(double occupancyGradient) Setter for the fieldoccupancyGradient.voidsetOccupancyPreviousAcceleration(double occupancyPreviousAcceleration) Setter for the fieldoccupancyPreviousAcceleration.voidsetOccupancyVelocity(double occupancyVelocity) Setter for the fieldoccupancyVelocity.voidsetPolarizeType(PolarizeType polarizeType) Setter for the fieldpolarizeType.voidsetPreviousAcceleration(double[] previousAcceleration) Setter for the fieldpreviousAcceleration.voidsetRedXYZ(double[] redXYZ) setXYZvoidsetResidueNumber(int resNumber) setResidueNumbervoidsetResName(String resName) Setter for the fieldresName.voidsetResolution(Atom.Resolution resolution) Setter for the fieldresolution.voidSet this atom's seg ID.voidsetSelected(boolean selected) Setter for the fieldselected.voidsetSoluteType(SoluteType soluteType) setSoluteTypevoidsetSpecialPositionSymOps(List<Integer> specialPositionSymOps) Set the symmetry operations that leave this atom's molecule at a special position.voidsetTempFactor(double tempFactor) Setter for the fieldtempFactor.voidsetTempFactorAcceleration(double tempFactorAcceleration) Setter for the fieldtempFactorAcceleration.voidsetTempFactorGradient(double tempFactorGradient) Setter for the fieldtempFactorGradient.voidsetTempFactorPreviousAcceleration(double tempFactorPreviousAcceleration) Setter for the fieldtempFactorPreviousAcceleration.voidsetTempFactorVelocity(double tempFactorVelocity) Setter for the fieldtempFactorVelocity.final voidsetTopologyAtomIndex(int topologyAtomIndex) Dual-topology atom index.final voidsetTopologyIndex(int topologyIndex) Set the topology index of this atom.voidsetTorsion(Torsion torsion) setTorsionvoidsetUse(boolean use) If true, this atom should be used in potential energy functions.voidsetVDWType(VDWType vdwType) setVDWTypevoidsetVelocity(double[] velocity) Setter for the fieldvelocity.voidsetVelocity(double x, double y, double z) Setter for the fieldvelocity.voidsetView(RendererCache.ViewModel newViewModel, List<org.jogamp.java3d.BranchGroup> newShapes) setViewvoidsetXYZ(double[] xyz) setXYZvoidsetXYZGradient(double x, double y, double z) setXYZGradientfinal voidsetXyzIndex(int set) Setter for the fieldxyzIndex.toString()voidupdate()updateMethods inherited from class ffx.potential.bonded.MSNode
contains, destroy, getAngleList, getAngleTorsionList, getAtomList, getBondList, getCenter, getChildList, getExtent, getImproperTorsionList, getList, getList, getMSCount, getMSNode, getMW, getName, getOutOfPlaneBendList, getPiOrbitalTorsionList, getStretchBendList, getStretchTorsionList, getTorsionList, getTorsionTorsionList, getTotalMass, getUreyBradleyList, isSelected, removeChild, setNameMethods 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, setAllowsChildren, setParent, setUserObject
-
Field Details
-
AtomColor
ConstantAtomColor -
XYZIndexComparator
Compare two atoms (implementation of the Comparator interface).First, if atom1.equals(atom2), then 0 is returned.
Next, atoms are compared based on their atomic number. A heavier atom is greater than (comes after) a lighter atom.
Finally, atoms are compared based on their XYZ index. A lower XYZ index is less than (comes before) a higher index.
-
-
Constructor Details
-
Atom
Default constructor.- Parameters:
name- The Atom's PDB name.- Since:
- 1.0
-
Atom
Constructor used when parsing XYZ files.- Parameters:
xyzIndex- Contiguous, unique atom index between 1..nAtoms.name- The Atom's molecular mechanics name.atomType- Molecular mechanics atom type.xyz- Cartesian coordinates.- Since:
- 1.0
-
Atom
public Atom(int xyzIndex, String name, Character altLoc, double[] xyz, String resName, int resSeq, Character chainID, double occupancy, double tempFactor, String segID) Constructor used when parsing PDB files.- Parameters:
xyzIndex- Contiguous, unique atom index between 1..nAtoms.name- The Atom's molecular mechanics name.altLoc- The alternate locations (' ' or 'A' or 'B' etc.).xyz- Cartesian coordinates.resName- Residue name.resSeq- Residue sequence number.chainID- Possible redundant chain ID.occupancy- Crystallographic occupancy.tempFactor- Crystallographic B-factor.segID- Unique segment ID.- Since:
- 1.0.
-
Atom
public Atom(int xyzIndex, String name, Character altLoc, double[] xyz, String resName, int resSeq, Character chainID, double occupancy, double tempFactor, String segID, boolean built) Constructor for Atom.- Parameters:
xyzIndex- The atom's contiguous, unique index between 1..nAtoms.name- The Atom's name.altLoc- The alternate location identifier (null or ' ' for no alternate location).xyz- The Cartesian coordinates.resName- The residue name.resSeq- The residue sequence number.chainID- Possible redundant chain ID.occupancy- Crystallographic occupancy.tempFactor- Crystallographic B-factor.segID- Unique segment ID.built- True if this atom was built during the parsing of a file.
-
Atom
Creates a new Atom similar to an existing Atom (e.g. for tiling a solvent box over a solute). Will not include some properties such as velocity, acceleration, etc.- Parameters:
xyzIndex- Index of the new Atom.copyFrom- Atom to copy attributes from.xyz- Cartesian coordinates to place this new Atom at.resSeq- Residue sequence number.chainID- Chain identifier.segID- Segment identifier.
-
-
Method Details
-
addToAnisouGradient
public void addToAnisouGradient(double[] anisouGradient) addToAnisouGradient- Parameters:
anisouGradient- an array of double.
-
addToLambdaXYZGradient
public void addToLambdaXYZGradient(double x, double y, double z) addToLambdaXYZGradient- Parameters:
x- a double.y- a double.z- a double.
-
addToOccupancyGradient
public void addToOccupancyGradient(double occupancyGradient) addToOccupancyGradient- Parameters:
occupancyGradient- a double.
-
addToTempFactorGradient
public void addToTempFactorGradient(double tempFactorGradient) addToTempFactorGradient- Parameters:
tempFactorGradient- a double.
-
addToXYZGradient
public void addToXYZGradient(double x, double y, double z) addToXYZGradient- Parameters:
x- a double.y- a double.z- a double.
-
addToXYZGradient
public void addToXYZGradient(int axis, double value) addToXYZGradient.- Parameters:
axis- The axis to add to.value- The value to add.
-
applyLambda
public boolean applyLambda()applyLambda- Returns:
- a boolean.
-
compareTo
Implementation of the Comparable interface.
- Specified by:
compareToin interfaceComparable<Atom>
-
describe
describe.- Parameters:
type- aAtom.Descriptionsobject.- Returns:
- a
Stringobject.
-
drawLabel
public void drawLabel(org.jogamp.java3d.Canvas3D canvas, org.jogamp.java3d.J3DGraphics2D g2d, org.jogamp.java3d.Node node) drawLabel -
equals
MSNode equality := same class and same name. Consider replacing with a Comparator<MSNode> for cases where non-reference equality is desired.
-
get12List
Get the list of 1-2 atoms ordered by XYZ index.- Returns:
- Returns the 1-2 list.
-
get13List
Get the list of 1-3 atoms ordered by XYZ index.- Returns:
- Returns the 1-3 list.
-
get14List
Get the list of 1-4 atoms ordered by XYZ index.- Returns:
- Returns the 1-4 list.
-
get15List
Get the list of 1-5 atoms ordered by XYZ index.- Returns:
- Returns the 1-5 list.
-
getAcceleration
public void getAcceleration(double[] acceleration) Getter for the fieldacceleration.- Parameters:
acceleration- an array of double.
-
getAltLoc
Getter for the fieldaltLoc.- Returns:
- a
Characterobject.
-
setAltLoc
Setter for the fieldaltLoc.- Parameters:
a- aCharacterobject.
-
getAngle
getAngle. -
getAngles
Getter for the fieldangles.- Returns:
- a
ArrayListobject.
-
getAnisou
public double[] getAnisou(@Nullable double[] anisou) Getter for the fieldanisou.- Parameters:
anisou- the anisou array to fill.- Returns:
- The passed in anisou array filled with the tensor values, or a new array if anisou is null or too small.
-
getAnisouAcceleration
public double[] getAnisouAcceleration(@Nullable double[] anisouAcceleration) Getter for the fieldanisouAcceleration.- Parameters:
anisouAcceleration- the anisou acceleration array to fill.- Returns:
- The passed in anisou acceleration array filled with the tensor values, or a new array if anisouAcceleration is null or too small.
-
getAnisouGradient
public double[] getAnisouGradient(@Nullable double[] anisouGradient) Getter for the fieldanisouGradient.- Parameters:
anisouGradient- the anisou gradient array to fill.- Returns:
- The passed in anisou gradient array filled with the tensor values, or a new array if anisouGradient is null or too small.
-
getAnisouPreviousAcceleration
public double[] getAnisouPreviousAcceleration(@Nullable double[] anisouPreviousAcceleration) Getter for the fieldanisouPreviousAcceleration.- Parameters:
anisouPreviousAcceleration- the anisou previous acceleration array to fill.- Returns:
- The passed in anisou previous acceleration array filled with the tensor values, or a new array if anisouPreviousAcceleration is null or too small.
-
getAnisouVelocity
public double[] getAnisouVelocity(@Nullable double[] anisouVelocity) Getter for the fieldanisouVelocity.- Parameters:
anisouVelocity- the anisou velocity array to fill.- Returns:
- the passed in anisou velocity array filled with the tensor values, or a new array if anisouVelocity is null or too small.
-
getTopologyAtomIndex
public final int getTopologyAtomIndex()Dual-topology atom index.- Returns:
- The index of this atom in the dual-topology atom array.
-
setTopologyAtomIndex
public final void setTopologyAtomIndex(int topologyAtomIndex) Dual-topology atom index.- Parameters:
topologyAtomIndex- The index of this atom in the dual-topology atom array.
-
getTopologyIndex
public final int getTopologyIndex()Get the topology index of this atom.- Returns:
- The topology index of this atom in the dual-topology atom array.
-
setTopologyIndex
public final void setTopologyIndex(int topologyIndex) Set the topology index of this atom.- Parameters:
topologyIndex- The topology index of this atom in a dual topology system.
-
getArrayIndex
public final int getArrayIndex()getArrayIndex.- Returns:
- The index of this atom in the array of atoms (xyzIndex - 1).
-
getAtomList
Returns a List of all Atoms below the present MSNode.- Overrides:
getAtomListin classMSNode- Returns:
- a new
Listobject.
-
getAtomType
Getter for the fieldatomType.- Returns:
- a
AtomTypeobject.
-
setAtomType
Setter for the fieldatomType.- Parameters:
atomType- aAtomTypeobject.
-
getAtomicNumber
public int getAtomicNumber()Gets the Atomic Number- Returns:
- Atomic Number
-
getAxisAtomIndices
public int[] getAxisAtomIndices()Getter for the fieldaxisAtomIndices.- Returns:
- the axis atom indices.
-
getBond
getBond -
getBonds
Gets the list of the Bonds this Atom helps to form- Returns:
- A list of the bonds this atom helps to form
-
getBuilt
public boolean getBuilt()If true, this atom was built during PDB file parsing.- Returns:
- true if this atom was built during parsing of a PDB file.
-
setBuilt
public void setBuilt(boolean built) Setter for the fieldbuilt.- Parameters:
built- a boolean.
-
getChainID
Get the chain name- Returns:
- String
-
setChainID
Set the chain name.- Parameters:
chainID- The chain ID of this atom.
-
getCharge
Gets the partial atomic charge- Returns:
- partial atomic charge
- Throws:
IllegalStateException- If the atom does not have a known multipole type.
-
getCharge
Gets the partial atomic charge.- Parameters:
ff- If multipole type has not yet been assigned, search this force field.- Returns:
- partial atomic charge
- Throws:
IllegalStateException- If a multipole type could not be found and ff is null.
-
getElectrostatics
public boolean getElectrostatics()Getter for the fieldelectrostatics.- Returns:
- a boolean.
-
setElectrostatics
public void setElectrostatics(boolean electrostatics) Setter for the fieldelectrostatics.- Parameters:
electrostatics- a boolean.
-
getEpsilon
public double getEpsilon()Gets the Epsilon value- Returns:
- Epsilon value
-
getFormFactorIndex
public int getFormFactorIndex()Getter for the fieldformFactorIndex.- Returns:
- The index of the form factor in the form factor array.
-
setFormFactorIndex
public void setFormFactorIndex(int formFactorIndex) Setter for the fieldformFactorIndex.- Parameters:
formFactorIndex- The index of the form factor in the form factor array.
-
getFormFactorWidth
public double getFormFactorWidth()Getter for the fieldformFactorWidth.- Returns:
- a double.
-
setFormFactorWidth
public void setFormFactorWidth(double width) Setter for the fieldformFactorWidth.- Parameters:
width- a double.
-
getFormFactorWidth2
public double getFormFactorWidth2()Getter for the fieldformFactorWidth.- Returns:
- a double.
-
getHybridization
public int getHybridization()Gets the Atomic Hybridization- Returns:
- Atomic Hybridization
-
getIdent
Gets the atom ID- Returns:
- atom ID
-
getIndex
public final int getIndex()Getter for the fieldindex.- Returns:
- The index of this atom in the molecular assembly.
-
getKey
Gets the atom Key- Returns:
- atom Key
-
getLambdaXYZGradient
public void getLambdaXYZGradient(double[] x) getLambdaXYZGradient- Parameters:
x- an array of double.
-
getMass
public double getMass()Gets the Atomic Mass.- Returns:
- Atomic Mass
-
setMass
public void setMass(double mass) Set the Atomic Mass.- Parameters:
mass- The mass of the atom.
-
getMoleculeNumber
public int getMoleculeNumber()Getter for the fieldmoleculeNumber.- Returns:
- The molecule number of this atom.
-
setMoleculeNumber
public void setMoleculeNumber(int molecule) Setter for the fieldmoleculeNumber.- Parameters:
molecule- The molecule number of this atom.
-
getMultipoleType
Getter for the fieldmultipoleType.- Returns:
- a
MultipoleTypeobject.
-
setMultipoleType
Setter for the fieldmultipoleType.- Parameters:
multipoleType- aMultipoleTypeobject.
-
getNumAngles
public final int getNumAngles()getNumAngles- Returns:
- The number of angles involving this atom.
-
getNumBonds
public final int getNumBonds()Gets the number of atoms bonded to this Atom- Returns:
- Number of atoms bonded to this atom
-
getNumDihedrals
public final int getNumDihedrals()getNumDihedrals- Returns:
- The number of dihedrals involving this atom.
-
getNumberOfBondedHydrogen
public int getNumberOfBondedHydrogen()Count the number of bonded hydrogen.- Returns:
- the count.
-
getOccupancy
public double getOccupancy()Getter for the fieldoccupancy.- Returns:
- a double.
-
setOccupancy
public void setOccupancy(double occupancy) Setter for the fieldoccupancy.- Parameters:
occupancy- a double.
-
getOccupancyAcceleration
public double getOccupancyAcceleration()Getter for the fieldoccupancyAccelerationy.- Returns:
- a double.
-
setOccupancyAcceleration
public void setOccupancyAcceleration(double occupancyAcceleration) Setter for the fieldoccupancyAcceleration.- Parameters:
occupancyAcceleration- a double.
-
getOccupancyGradient
public double getOccupancyGradient()Getter for the fieldoccupancyGradient.- Returns:
- a double.
-
setOccupancyGradient
public void setOccupancyGradient(double occupancyGradient) Setter for the fieldoccupancyGradient.- Parameters:
occupancyGradient- a double.
-
getOccupancyPreviousAcceleration
public double getOccupancyPreviousAcceleration()Getter for the fieldoccupancyPreviousAccelerationy.- Returns:
- a double.
-
setOccupancyPreviousAcceleration
public void setOccupancyPreviousAcceleration(double occupancyPreviousAcceleration) Setter for the fieldoccupancyPreviousAcceleration.- Parameters:
occupancyPreviousAcceleration- a double.
-
getOccupancyVelocity
public double getOccupancyVelocity()Getter for the fieldoccupancyVelocity.- Returns:
- a double.
-
setOccupancyVelocity
public void setOccupancyVelocity(double occupancyVelocity) Setter for the fieldoccupancyVelocity.- Parameters:
occupancyVelocity- a double.
-
getPolarizeType
Getter for the fieldpolarizeType.- Returns:
- a
PolarizeTypeobject.
-
setPolarizeType
Setter for the fieldpolarizeType.- Parameters:
polarizeType- aPolarizeTypeobject.
-
getPreviousAcceleration
public void getPreviousAcceleration(double[] previousAcceleration) Getter for the fieldpreviousAcceleration.- Parameters:
previousAcceleration- an array of double.
-
getRedX
public final double getRedX()Gets the reduced x coordinate (van der Waals center). Will refer to xyz[] if not initialized.- Returns:
- Reduced x coordinate
-
getRedXYZ
public void getRedXYZ(double[] x) getRedXYZ- Parameters:
x- an array of double.
-
getRedXYZ
public double[] getRedXYZ()getRedXYZ- Returns:
- an array of double.
-
setRedXYZ
public void setRedXYZ(double[] redXYZ) setXYZ- Parameters:
redXYZ- an array of double.
-
getRedY
public final double getRedY()Gets the reduced y coordinate (van der Waals center). Will refer to xyz[] if not initialized.- Returns:
- Reduced y coordinate
-
getRedZ
public final double getRedZ()Gets the reduced z coordinate (van der Waals center). Will refer to xyz[] if not initialized.- Returns:
- Reduced z coordinate
-
getResidueName
Get the residue name- Returns:
- String
-
getResidueNumber
public int getResidueNumber()getResidueNumber- Returns:
- The residue number of this atom.
-
setResidueNumber
public void setResidueNumber(int resNumber) setResidueNumber- Parameters:
resNumber- this atom's residue number.
-
getResolution
Getter for the fieldresolution.- Returns:
- a
Atom.Resolutionobject.
-
setResolution
Setter for the fieldresolution.- Parameters:
resolution- aAtom.Resolutionobject.
-
getSegID
Getter for the fieldsegID.- Returns:
- a
Stringobject.
-
setSegID
Set this atom's seg ID.- Parameters:
segID- The segID of this atom.
-
getSigma
public double getSigma()Gets the Sigma value- Returns:
- Sigma value
-
getTempFactor
public double getTempFactor()Getter for the fieldtempFactor.- Returns:
- a double.
-
setTempFactor
public void setTempFactor(double tempFactor) Setter for the fieldtempFactor.- Parameters:
tempFactor- a double.
-
getTempFactorAcceleration
public double getTempFactorAcceleration()Getter for the fieldtempFactorAcceleration.- Returns:
- a double.
-
setTempFactorAcceleration
public void setTempFactorAcceleration(double tempFactorAcceleration) Setter for the fieldtempFactorAcceleration.- Parameters:
tempFactorAcceleration- a double.
-
getTempFactorGradient
public double getTempFactorGradient()Getter for the fieldtempFactorGradient.- Returns:
- a double.
-
setTempFactorGradient
public void setTempFactorGradient(double tempFactorGradient) Setter for the fieldtempFactorGradient.- Parameters:
tempFactorGradient- a double.
-
getTempFactorPreviousAcceleration
public double getTempFactorPreviousAcceleration()Getter for the fieldtempFactorPreviousAcceleration.- Returns:
- a double.
-
setTempFactorPreviousAcceleration
public void setTempFactorPreviousAcceleration(double tempFactorPreviousAcceleration) Setter for the fieldtempFactorPreviousAcceleration.- Parameters:
tempFactorPreviousAcceleration- a double.
-
getTempFactorVelocity
public double getTempFactorVelocity()Getter for the fieldtempFactorVelocity.- Returns:
- a double.
-
setTempFactorVelocity
public void setTempFactorVelocity(double tempFactorVelocity) Setter for the fieldtempFactorVelocity.- Parameters:
tempFactorVelocity- a double.
-
getTorsion
Finds a Torsion which contains this atom, and atoms 2, 3, and 4.- Parameters:
atom2- Atom number 2.atom3- Atom number 3.atom4- Atom number 4.- Returns:
- Torsion the Torsion if found, or null if not found.
-
getTorsions
Getter for the fieldtorsions.- Returns:
- a
ArrayListobject.
-
getTrajectoryCoords
public org.jogamp.vecmath.Vector3d getTrajectoryCoords(int position) getTrajectoryCoords- Parameters:
position- The position in the trajectory.- Returns:
- a
Vector3dobject.
-
getTrajectoryLength
public int getTrajectoryLength()getTrajectoryLength- Returns:
- The length of the trajectory.
-
getType
public int getType()getType- Returns:
- The type of this atom.
-
getUse
public boolean getUse()If true, this atom should be used in potential energy functions.- Returns:
- true if this atom should be included in the potential energy.
-
setUse
public void setUse(boolean use) If true, this atom should be used in potential energy functions.- Parameters:
use- a boolean.
-
getV3D
public void getV3D(org.jogamp.vecmath.Vector3d temp) Gets the Atom's Cartesian Coordinates return The Cartesian Coordinates- Parameters:
temp- aVector3dobject.
-
getVDWR
public double getVDWR()Gets the van der Waals radius.- Returns:
- a double.
-
getVDWType
getVDWType- Returns:
- a
VDWTypeobject.
-
setVDWType
setVDWType- Parameters:
vdwType- aVDWTypeobject.
-
getSoluteType
getSoluteType- Returns:
- a
SoluteTypeobject.
-
setSoluteType
setSoluteType- Parameters:
soluteType- aSoluteTypeobject.
-
getVelocity
public void getVelocity(double[] velocity) Getter for the fieldvelocity.- Parameters:
velocity- an array of double.
-
getX
public final double getX()Gets the x coordinate- Returns:
- x coordinate
-
getXYZ
public double[] getXYZ(@Nullable double[] xyz) getXYZ- Parameters:
xyz- an array of double.- Returns:
- the original array with updated coordinates, or a new array if xyz was null.
-
getXYZ
getXYZ- Returns:
- a new Double3 containing this Atom's coordinates.
-
setXYZ
public void setXYZ(double[] xyz) setXYZ- Parameters:
xyz- an array of double.
-
getXYZGradient
public void getXYZGradient(double[] x) getXYZGradient- Parameters:
x- an array of double.
-
getXyzIndex
public final int getXyzIndex()Getter for the fieldxyzIndex.- Returns:
- The index of this atom in XYZ files.
-
setXyzIndex
public final void setXyzIndex(int set) Setter for the fieldxyzIndex.- Parameters:
set- The index of this atom in XYZ files.
-
getY
public final double getY()Gets the y coordinate- Returns:
- y coordinate
-
getZ
public final double getZ()Gets the z coordinate- Returns:
- z coordinate
-
hashCode
public int hashCode() -
isActive
public boolean isActive()If active, the coordinates of this atom can be modified.- Returns:
- true if this atom's coordinates, b-factors, etc. can be modified.
-
setActive
public void setActive(boolean active) If active, the coordinates of this atom can be modified.- Parameters:
active- a boolean.
-
isNeuralNetwork
public boolean isNeuralNetwork()If true, this atom is part of a molecule whose intramolecular interactions are handled by a neural network.- Returns:
- true if this atom is part of a molecule whose intramolecular interactions are handled by a neural network.
-
setNeuralNetwork
public void setNeuralNetwork(boolean neuralNetwork) If true, this atom is part of a molecule whose intramolecular interactions are handled by a neural network.- Parameters:
neuralNetwork- a boolean.
-
isSpecialPosition
public boolean isSpecialPosition()If true, this atom is at a special position.- Returns:
- True if this atom is at a special position.
-
setSpecialPositionSymOps
Set the symmetry operations that leave this atom's molecule at a special position.- Parameters:
specialPositionSymOps- The symmetry operations that leave this atom's molecule at a special position.
-
isSpecialPositionSymOp
public boolean isSpecialPositionSymOp(int symOp) If true, this atom is at a special position for the specified symmetry operation.- Parameters:
symOp- The symmetry operation to check.- Returns:
- True if this atom is at a special position for the specified symmetry operation.
-
isBonded
Checks to see if an Atom is bonded to this Atom- Parameters:
a- Atom to check- Returns:
- True if Atom
ais bonded to thisthis atom
-
isDeuterium
public boolean isDeuterium()isDeuterium- Returns:
- a boolean.
-
isHeavy
public boolean isHeavy()isHeavy checks whether this Atom is a heavy (non-hydrogen) atom.- Returns:
- True if this is a heavy atom.
-
isHetero
public boolean isHetero()isHetero- Returns:
- a boolean.
-
setHetero
public void setHetero(boolean hetatm) setHetero- Parameters:
hetatm- a boolean.
-
isHydrogen
public boolean isHydrogen()isHydrogen- Returns:
- a boolean.
-
isHalogen
public boolean isHalogen()Check if this atom is a Halogen (F, Cl, Br, I)- Returns:
- a boolean.
-
isModRes
public boolean isModRes()isModRes- Returns:
- a boolean.
-
setModRes
public void setModRes(boolean modres) setModRes- Parameters:
modres- a boolean.
-
isRing
Determine if atom is in a ring with second atom WARNING: Does not work for 8+ membered rings...- Parameters:
a2- aAtomobject.- Returns:
- a boolean.
-
isStale
public boolean isStale()isStale- Returns:
- a boolean.
-
isTrigonal
public boolean isTrigonal()isTrigonal- Returns:
- a boolean.
-
isVisible
public boolean isVisible()isVisibleTrue if this Atom's Sphere or Vector is visible
- Returns:
- a boolean.
-
is_12_or_13
is_12_or_13- Parameters:
a- aAtomobject.- Returns:
- a boolean.
-
is_1_3
is_1_3- Parameters:
atom- aAtomobject.- Returns:
- a boolean.
-
is_1_4
Are these atoms 1-4 bonded?- Parameters:
atom- aAtomobject.- Returns:
- a boolean.
-
is_1_5
Are these atoms 1-5 bonded?- Parameters:
atom- aAtomobject.- Returns:
- a boolean.
-
is_1_6
Are these atoms 1-6 bonded?- Parameters:
atom- aAtomobject.- Returns:
- a boolean.
-
is_1_7
Are these atoms 1-7 bonded?- Parameters:
atom- aAtomobject.- Returns:
- a boolean.
-
is_1_8
Are these atoms 1-8 bonded?- Parameters:
atom- aAtomobject.- Returns:
- a boolean.
-
move
public void move(double[] d) Add a vector to the Atom's current position vector- Parameters:
d- Vector to add to the current position
-
moveTo
public void moveTo(double a, double b, double c) moveTo- Parameters:
a- a double.b- a double.c- a double.
-
moveTo
public void moveTo(double[] d) Moves the atom to the specified location- Parameters:
d- Location to move this Atom to
-
moveTo
public void moveTo(org.jogamp.vecmath.Vector3d v) moveTo- Parameters:
v- aVector3dobject.
-
print
public final void print()Prints the MSNode's namePrints the atom identity and Cartesian coordinates to the logger.
-
print
-
removeFromParent
public void removeFromParent()- Specified by:
removeFromParentin interfaceMutableTreeNode- Overrides:
removeFromParentin classDefaultMutableTreeNode
-
rotate
public void rotate(double[][] d) Applies a rotation matrix to the atom's coordinates.- Parameters:
d- The rotation matrix to apply.
-
setAcceleration
public void setAcceleration(double[] acceleration) Setter for the fieldacceleration.- Parameters:
acceleration- an array of double.
-
setAcceleration
public void setAcceleration(double x, double y, double z) Setter for the fieldacceleration.- Parameters:
x- X-accelerationy- Y-accelerationz- Z-acceleration
-
setAngle
setAngle- Parameters:
a- aAngleobject.
-
setAnisou
public void setAnisou(double[] anisou) Setter for the fieldanisou.- Parameters:
anisou- an array of double.
-
setAnisouAcceleration
public void setAnisouAcceleration(double[] anisouAcceleration) Setter for the fieldanisouAcceleration.- Parameters:
anisouAcceleration- an array of double.
-
setAnisouGradient
public void setAnisouGradient(double[] anisouGradient) Setter for the fieldanisouGradient.- Parameters:
anisouGradient- an array of double.
-
setAnisouPreviousAcceleration
public void setAnisouPreviousAcceleration(double[] anisouPreviousAcceleration) Setter for the fieldanisouPreviousAcceleration.- Parameters:
anisouPreviousAcceleration- an array of double.
-
setAnisouVelocity
public void setAnisouVelocity(double[] anisouVelocity) Setter for the fieldanisouVelocity.- Parameters:
anisouVelocity- an array of double.
-
setApplyLambda
public void setApplyLambda(boolean applyState) setApplyLambda- Parameters:
applyState- a boolean.
-
setAxisAtoms
Setter for the fieldaxisAtoms.- Parameters:
set- aAtomobject.
-
setBond
Specify that this Atom is part of a Bond- Parameters:
b- Bond that this Atom is part of
-
setColor
public void setColor(RendererCache.ColorModel newColorModel, org.jogamp.vecmath.Color3f newCol, org.jogamp.java3d.Material newMat) setColorPolymorphic setColor method.
- Specified by:
setColorin interfaceROLS- Overrides:
setColorin classMSNode- Parameters:
newColorModel- aRendererCache.ColorModelobject.newCol- aColor3fobject.newMat- aMaterialobject.
-
setCurrentCycle
public void setCurrentCycle(int cycle) setCurrentCycle- Parameters:
cycle- Sets the current cycle to the specified value.
-
setLambdaXYZGradient
public void setLambdaXYZGradient(double x, double y, double z) setLambdaXYZGradient- Parameters:
x- a double.y- a double.z- a double.
-
setPreviousAcceleration
public void setPreviousAcceleration(double[] previousAcceleration) Setter for the fieldpreviousAcceleration.- Parameters:
previousAcceleration- an array of double.
-
setResName
Setter for the fieldresName.- Parameters:
resName- aStringobject.
-
setSelected
public void setSelected(boolean selected) Setter for the fieldselected.- Overrides:
setSelectedin classMSNode- Parameters:
selected- a boolean.
-
setTorsion
setTorsion- Parameters:
torsion- aTorsionobject.
-
setVelocity
public void setVelocity(double[] velocity) Setter for the fieldvelocity.- Parameters:
velocity- an array of double.
-
setVelocity
public void setVelocity(double x, double y, double z) Setter for the fieldvelocity.- Parameters:
x- X-velocityy- Y-velocityz- Z-velocity
-
setView
public void setView(RendererCache.ViewModel newViewModel, List<org.jogamp.java3d.BranchGroup> newShapes) setViewPolymorphic setView method.
-
setXYZGradient
public void setXYZGradient(double x, double y, double z) setXYZGradient- Parameters:
x- a double.y- a double.z- a double.
-
toString
Overridden toString method returns the MSNode's name
-
update
public void update()updateJava3D transforms are not updated unless they are visible. This allows better performance for rendering partial structures during an interactive dynamics run or during trajectory playback.
-