Class Atom
- All Implemented Interfaces:
ROLS
,Serializable
,Cloneable
,Comparable<Atom>
,MutableTreeNode
,TreeNode
- Since:
- 1.0
- Author:
- Michael J. Schnieders
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
static enum
Element symbols for the first 109 elements.static enum
-
Field Summary
Modifier and TypeFieldDescriptionConstantAtomColor
static Comparator
<Atom> Compare two atoms (implementation of the Comparator interface).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
ConstructorDescriptionCreates 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 TypeMethodDescriptionvoid
addToAnisouGradient
(double[] anisouGradient) addToAnisouGradientvoid
addToLambdaXYZGradient
(double x, double y, double z) addToLambdaXYZGradientvoid
addToOccupancyGradient
(double occupancyGradient) addToOccupancyGradientvoid
addToTempFactorGradient
(double tempFactorGradient) addToTempFactorGradientvoid
addToXYZGradient
(double x, double y, double z) addToXYZGradientvoid
addToXYZGradient
(int axis, double value) addToXYZGradient.boolean
applyLambdaint
describe
(Atom.Descriptions type) describe.void
drawLabel
(org.jogamp.java3d.Canvas3D canvas, org.jogamp.java3d.J3DGraphics2D g2d, org.jogamp.java3d.Node node) drawLabelfinal boolean
Get 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.void
getAcceleration
(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 int
getArrayIndex.int
Gets 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 formboolean
getBuilt()
If true, this atom was built during PDB file parsing.Get the chain namedouble
Gets the partial atomic chargedouble
getCharge
(ForceField ff) Gets the partial atomic charge.boolean
Getter for the fieldelectrostatics
.double
Gets the Epsilon valueint
Getter for the fieldformFactorIndex
.double
Getter for the fieldformFactorWidth
.double
Getter for the fieldformFactorWidth
.int
Gets the Atomic HybridizationgetIdent()
Gets the atom IDfinal int
getIndex()
Getter for the fieldindex
.getKey()
Gets the atom Keyvoid
getLambdaXYZGradient
(double[] x) getLambdaXYZGradientdouble
getMass()
Gets the Atomic Mass.int
Getter for the fieldmoleculeNumber
.Getter for the fieldmultipoleType
.final int
getNumAnglesint
Count the number of bonded hydrogen.final int
Gets the number of atoms bonded to this Atomfinal int
getNumDihedralsdouble
Getter for the fieldoccupancy
.double
Getter for the fieldoccupancyAccelerationy
.double
Getter for the fieldoccupancyGradient
.double
Getter for the fieldoccupancyPreviousAccelerationy
.double
Getter for the fieldoccupancyVelocity
.Getter for the fieldpolarizeType
.void
getPreviousAcceleration
(double[] previousAcceleration) Getter for the fieldpreviousAcceleration
.final double
getRedX()
Gets the reduced x coordinate (van der Waals center).double[]
getRedXYZvoid
getRedXYZ
(double[] x) getRedXYZfinal double
getRedY()
Gets the reduced y coordinate (van der Waals center).final double
getRedZ()
Gets the reduced z coordinate (van der Waals center).Get the residue nameint
getResidueNumberGetter for the fieldresolution
.getSegID()
Getter for the fieldsegID
.double
getSigma()
Gets the Sigma valuegetSoluteTypedouble
Getter for the fieldtempFactor
.double
Getter for the fieldtempFactorAcceleration
.double
Getter for the fieldtempFactorGradient
.double
Getter for the fieldtempFactorPreviousAcceleration
.double
Getter for the fieldtempFactorVelocity
.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.Vector3d
getTrajectoryCoords
(int position) getTrajectoryCoordsint
getTrajectoryLengthint
getType()
getTypeboolean
getUse()
If true, this atom should be used in potential energy functions.void
getV3D
(org.jogamp.vecmath.Vector3d temp) Gets the Atom's Cartesian Coordinates return The Cartesian Coordinatesdouble
getVDWR()
Gets the van der Waals radius.getVDWTypevoid
getVelocity
(double[] velocity) Getter for the fieldvelocity
.final double
getX()
Gets the x coordinategetXYZ()
getXYZdouble[]
getXYZ
(double[] xyz) getXYZvoid
getXYZGradient
(double[] x) getXYZGradientfinal int
Getter for the fieldxyzIndex
.final double
getY()
Gets the y coordinatefinal double
getZ()
Gets the z coordinateint
hashCode()
boolean
is_1_3boolean
Are these atoms 1-4 bonded?boolean
Are these atoms 1-5 bonded?boolean
Are these atoms 1-6 bonded?boolean
Are these atoms 1-7 bonded?boolean
Are these atoms 1-8 bonded?boolean
is_12_or_13
(Atom a) is_12_or_13boolean
isActive()
If active, the coordinates of this atom can be modified.boolean
Checks to see if an Atom is bonded to this Atomboolean
isDeuteriumboolean
Check if this atom is a Halogen (F, Cl, Br, I)boolean
isHeavy()
isHeavy checks whether this Atom is a heavy (non-hydrogen) atom.boolean
isHetero()
isHeteroboolean
isHydrogenboolean
isModRes()
isModResboolean
If true, this atom is part of a molecule whose intramolecular interactions are handled by a neural network.boolean
Determine if atom is in a ring with second atom WARNING: Does not work for 8+ membered rings...boolean
If true, this atom is at a special position.boolean
isSpecialPositionSymOp
(int symOp) If true, this atom is at a special position for the specified symmetry operation.boolean
isStale()
isStaleboolean
isTrigonalboolean
isVisiblevoid
move
(double[] d) Add a vector to the Atom's current position vectorvoid
moveTo
(double[] d) Moves the atom to the specified locationvoid
moveTo
(double a, double b, double c) moveTovoid
moveTo
(org.jogamp.vecmath.Vector3d v) moveTofinal void
print()
Prints the MSNode's namefinal void
void
void
rotate
(double[][] d) rotate.void
setAcceleration
(double[] acceleration) Setter for the fieldacceleration
.void
setAcceleration
(double x, double y, double z) Setter for the fieldacceleration
.void
setActive
(boolean active) If active, the coordinates of this atom can be modified.void
Setter for the fieldaltLoc
.void
setAnglevoid
setAnisou
(double[] anisou) Setter for the fieldanisou
.void
setAnisouAcceleration
(double[] anisouAcceleration) Setter for the fieldanisouAcceleration
.void
setAnisouGradient
(double[] anisouGradient) Setter for the fieldanisouGradient
.void
setAnisouPreviousAcceleration
(double[] anisouPreviousAcceleration) Setter for the fieldanisouPreviousAcceleration
.void
setAnisouVelocity
(double[] anisouVelocity) Setter for the fieldanisouVelocity
.void
setApplyLambda
(boolean applyState) setApplyLambdavoid
setAtomType
(AtomType atomType) Setter for the fieldatomType
.void
setAxisAtoms
(Atom... set) Setter for the fieldaxisAtoms
.void
Specify that this Atom is part of a Bondvoid
setBuilt
(boolean built) Setter for the fieldbuilt
.void
setChainID
(Character chainID) Set the chain name.void
setColor
(RendererCache.ColorModel newColorModel, org.jogamp.vecmath.Color3f newCol, org.jogamp.java3d.Material newMat) setColorvoid
setCurrentCycle
(int cycle) setCurrentCyclevoid
setElectrostatics
(boolean electrostatics) Setter for the fieldelectrostatics
.void
setFormFactorIndex
(int formFactorIndex) Setter for the fieldformFactorIndex
.void
setFormFactorWidth
(double width) Setter for the fieldformFactorWidth
.void
setHetero
(boolean hetatm) setHeterovoid
setLambdaXYZGradient
(double x, double y, double z) setLambdaXYZGradientvoid
setMass
(double mass) Set the Atomic Mass.void
setModRes
(boolean modres) setModResvoid
setMoleculeNumber
(int molecule) Setter for the fieldmoleculeNumber
.void
setMultipoleType
(MultipoleType multipoleType) Setter for the fieldmultipoleType
.void
setNeuralNetwork
(boolean neuralNetwork) If true, this atom is part of a molecule whose intramolecular interactions are handled by a neural network.void
setOccupancy
(double occupancy) Setter for the fieldoccupancy
.void
setOccupancyAcceleration
(double occupancyAcceleration) Setter for the fieldoccupancyAcceleration
.void
setOccupancyGradient
(double occupancyGradient) Setter for the fieldoccupancyGradient
.void
setOccupancyPreviousAcceleration
(double occupancyPreviousAcceleration) Setter for the fieldoccupancyPreviousAcceleration
.void
setOccupancyVelocity
(double occupancyVelocity) Setter for the fieldoccupancyVelocity
.void
setPolarizeType
(PolarizeType polarizeType) Setter for the fieldpolarizeType
.void
setPreviousAcceleration
(double[] previousAcceleration) Setter for the fieldpreviousAcceleration
.void
setRedXYZ
(double[] redXYZ) setXYZvoid
setResidueNumber
(int resNumber) setResidueNumbervoid
setResName
(String resName) Setter for the fieldresName
.void
setResolution
(Atom.Resolution resolution) Setter for the fieldresolution
.void
Set this atom's seg ID.void
setSelected
(boolean selected) Setter for the fieldselected
.void
setSoluteType
(SoluteType soluteType) setSoluteTypevoid
setSpecialPositionSymOps
(List<Integer> specialPositionSymOps) Set the symmetry operations that leave this atom's molecule at a special position.void
setTempFactor
(double tempFactor) Setter for the fieldtempFactor
.void
setTempFactorAcceleration
(double tempFactorAcceleration) Setter for the fieldtempFactorAcceleration
.void
setTempFactorGradient
(double tempFactorGradient) Setter for the fieldtempFactorGradient
.void
setTempFactorPreviousAcceleration
(double tempFactorPreviousAcceleration) Setter for the fieldtempFactorPreviousAcceleration
.void
setTempFactorVelocity
(double tempFactorVelocity) Setter for the fieldtempFactorVelocity
.void
setTorsion
(Torsion torsion) setTorsionvoid
setUse
(boolean use) If true, this atom should be used in potential energy functions.void
setVDWType
(VDWType vdwType) setVDWTypevoid
setVelocity
(double[] velocity) Setter for the fieldvelocity
.void
setVelocity
(double x, double y, double z) Setter for the fieldvelocity
.void
setView
(RendererCache.ViewModel newViewModel, List<org.jogamp.java3d.BranchGroup> newShapes) setViewvoid
setXYZ
(double[] xyz) setXYZvoid
setXYZGradient
(double x, double y, double z) setXYZGradientfinal void
setXyzIndex
(int set) Setter for the fieldxyzIndex
.toString()
void
update()
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, setName
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, 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
- aString
object.altLoc
- aCharacter
object.xyz
- an array ofinvalid reference
double
resName
- aString
object.resSeq
- The residue sequence number.chainID
- aCharacter
object.occupancy
- The crystallographic occupancy.tempFactor
- The crystallographic B-factor.segID
- aString
object.built
- a boolean.
-
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:
compareTo
in interfaceComparable<Atom>
-
describe
describe.- Parameters:
type
- aAtom.Descriptions
object.- Returns:
- a
String
object.
-
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
Character
object.
-
setAltLoc
Setter for the fieldaltLoc
.- Parameters:
a
- aCharacter
object.
-
getAngle
getAngle. -
getAngles
Getter for the fieldangles
.- Returns:
- a
ArrayList
object.
-
getAnisou
public double[] getAnisou(double[] anisou) Getter for the fieldanisou
.- Parameters:
anisou
- an array ofinvalid reference
double
- Returns:
- an array of double.
-
getAnisouAcceleration
public double[] getAnisouAcceleration(double[] anisouAcceleration) Getter for the fieldanisouAcceleration
.- Parameters:
anisouAcceleration
- an array ofinvalid reference
double
- Returns:
- an array of double.
-
getAnisouGradient
public double[] getAnisouGradient(double[] anisouGradient) Getter for the fieldanisouGradient
.- Parameters:
anisouGradient
- an array ofinvalid reference
double
- Returns:
- an array of double.
-
getAnisouPreviousAcceleration
public double[] getAnisouPreviousAcceleration(double[] anisouPreviousAcceleration) Getter for the fieldanisouPreviousAcceleration
.- Parameters:
anisouPreviousAcceleration
- an array ofinvalid reference
double
- Returns:
- an array of double.
-
getAnisouVelocity
public double[] getAnisouVelocity(double[] anisouVelocity) Getter for the fieldanisouVelocity
.- Parameters:
anisouVelocity
- an array ofinvalid reference
double
- Returns:
- an array of double.
-
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:
getAtomList
in classMSNode
- Returns:
- a new
List
object.
-
getAtomType
Getter for the fieldatomType
.- Returns:
- a
AtomType
object.
-
setAtomType
Setter for the fieldatomType
.- Parameters:
atomType
- aAtomType
object.
-
getAtomicNumber
public int getAtomicNumber()Gets the Atomic Number- Returns:
- Atomic Number
-
getAxisAtomIndices
public int[] getAxisAtomIndices()Getter for the fieldaxisAtomIndices
.- Returns:
- an array of
invalid reference
int
-
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
MultipoleType
object.
-
setMultipoleType
Setter for the fieldmultipoleType
.- Parameters:
multipoleType
- aMultipoleType
object.
-
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
PolarizeType
object.
-
setPolarizeType
Setter for the fieldpolarizeType
.- Parameters:
polarizeType
- aPolarizeType
object.
-
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.Resolution
object.
-
setResolution
Setter for the fieldresolution
.- Parameters:
resolution
- aAtom.Resolution
object.
-
getSegID
Getter for the fieldsegID
.- Returns:
- a
String
object.
-
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
ArrayList
object.
-
getTrajectoryCoords
public org.jogamp.vecmath.Vector3d getTrajectoryCoords(int position) getTrajectoryCoords- Parameters:
position
- The position in the trajectory.- Returns:
- a
Vector3d
object.
-
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
- aVector3d
object.
-
getVDWR
public double getVDWR()Gets the van der Waals radius.- Returns:
- a double.
-
getVDWType
getVDWType- Returns:
- a
VDWType
object.
-
setVDWType
setVDWType- Parameters:
vdwType
- aVDWType
object.
-
getSoluteType
getSoluteType- Returns:
- a
SoluteType
object.
-
setSoluteType
setSoluteType- Parameters:
soluteType
- aSoluteType
object.
-
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
a
is 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
- aAtom
object.- 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
- aAtom
object.- Returns:
- a boolean.
-
is_1_3
is_1_3- Parameters:
atom
- aAtom
object.- Returns:
- a boolean.
-
is_1_4
Are these atoms 1-4 bonded?- Parameters:
atom
- aAtom
object.- Returns:
- a boolean.
-
is_1_5
Are these atoms 1-5 bonded?- Parameters:
atom
- aAtom
object.- Returns:
- a boolean.
-
is_1_6
Are these atoms 1-6 bonded?- Parameters:
atom
- aAtom
object.- Returns:
- a boolean.
-
is_1_7
Are these atoms 1-7 bonded?- Parameters:
atom
- aAtom
object.- Returns:
- a boolean.
-
is_1_8
Are these atoms 1-8 bonded?- Parameters:
atom
- aAtom
object.- 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
- aVector3d
object.
-
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:
removeFromParent
in interfaceMutableTreeNode
- Overrides:
removeFromParent
in classDefaultMutableTreeNode
-
rotate
public void rotate(double[][] d) rotate.- Parameters:
d
- an array ofinvalid reference
double
-
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
- aAngle
object.
-
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
- aAtom
object.
-
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:
setColor
in interfaceROLS
- Overrides:
setColor
in classMSNode
- Parameters:
newColorModel
- aRendererCache.ColorModel
object.newCol
- aColor3f
object.newMat
- aMaterial
object.
-
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
- aString
object.
-
setSelected
public void setSelected(boolean selected) Setter for the fieldselected
.- Overrides:
setSelected
in classMSNode
- Parameters:
selected
- a boolean.
-
setTorsion
setTorsion- Parameters:
torsion
- aTorsion
object.
-
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.
-