|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmeshi.molecularElements.atoms.Atom
public class Atom
A generic atom.
Coordinates object
(coordinates)is associated with an atom
and handle all geometric issues(position, distance, forces etc.).
The "geometric" methods (x(),
y(),
distanceFrom(Atom), etc.)
are used to encapsulate this implementation. The Coordinates
object itself though, is publicly accessible. Removing the overhead of function calls accelerates
DistanceMatrix updating which is the bottleneck of
energy based calculations. It may though, open the way to spectacular bugs!!!.
AtomList| Field Summary | |
|---|---|
private int |
ATOM_BONDED_CAPACITY
Atoms bonded to this atom. |
private java.util.HashMap |
attributes
|
protected AtomList |
bonded
|
AtomCore |
core
|
private double |
energy
|
int |
ID
A unique identifier of the atom in the MolecularSystem. |
MolecularSystem |
molecularSystem
|
java.lang.String |
name
The atoms name. |
private static int |
numberOfAtoms
Number of atoms in all the molecular systems. |
private PdbLine |
pdbLine
|
private double |
reliability
|
protected Residue |
residue
Atom's Residue. |
private java.lang.Double |
temperatureFactor
|
| Constructor Summary | |
|---|---|
Atom(PdbLine line)
|
|
Atom(java.lang.String name,
Residue residue,
AtomType type,
Coordinates coordinates,
java.lang.Double temperatureFactor)
A generic atom with unspecified coordinates. |
|
| Method Summary | |
|---|---|
boolean |
active()
|
void |
addAttribute(MeshiAttribute attribute)
|
void |
addEnergy(double add)
|
void |
addToFx(double addMe)
Adds the parameter to the force operating on the atom in the X direction. |
void |
addToFy(double addMe)
Adds the parameter to the force operating on the atom in the Y direction. |
void |
addToFz(double addMe)
Adds the parameter to the force operating on the atom in the Z direction. |
void |
addToX(double addMe)
Adds the parameter to the X coordinate of the atom. |
void |
addToY(double addMe)
Adds the parameter to the Y coordinate of the atom. |
void |
addToZ(double addMe)
Adds the parameter to the Y coordinate of the atom. |
java.lang.String |
alternateLocation()
|
boolean |
backboneC()
|
boolean |
backboneCA()
|
boolean |
backboneH()
|
boolean |
backboneN()
|
boolean |
backboneO()
|
BBatom |
bbAtom()
|
AtomPair |
bond(Atom other)
Bonds the other atom to this one. |
AtomList |
bonded()
Returns the list of atoms bonded to this one. |
java.lang.String |
chain()
Returns the Atom's chain. |
java.lang.String |
comment()
Returns atom's comment. |
int |
compareTo(java.lang.Object obj)
|
void |
defrost()
|
double |
distanceFrom(Atom atom)
The distance between this atom and the parameter. |
void |
emptyBonded()
|
double |
energy()
|
void |
freeze()
|
boolean |
frozen()
|
double |
fx()
Returns the force operating on the atom in the X direction. |
double |
fy()
Returns the force operating on the atom in the Y direction. |
double |
fz()
Returns the force operating on the atom in the Z direction. |
MeshiAttribute |
getAttribute(int key)
|
void |
hide()
|
boolean |
isBackbone()
|
boolean |
isCarbon()
|
boolean |
isHydrogen()
|
boolean |
isNitrogen()
|
boolean |
isOxygen()
|
boolean |
isSulfur()
|
java.lang.String |
name()
|
boolean |
nameIs(java.lang.String keys)
Returns true if the protein's name is a substring of the String parameter seperated by spaces. |
boolean |
nameIs(StringList keys)
Returns true if the protein's name is included in the StringList parameter. |
boolean |
normal()
|
boolean |
nowhere()
|
int |
number()
A unique identifier of the atom in the molecular system. |
static int |
numberOfAtoms()
|
double |
occupancy()
|
PdbLine |
pdbLine()
|
void |
randomize(double radius,
Atom center)
|
void |
randomize(double radius,
double centerx,
double centery,
double centerz)
Move the atom to a random position within radius from (centerx,centery,centerz). |
double |
reliability()
|
void |
resetCoordinates()
|
void |
resetEnergy()
|
Residue |
residue()
Returns the atom's residue. |
java.lang.String |
residueName()
|
int |
residueNumber()
|
void |
setFx(double fx)
Sets the force operating on the atom in the X direction. |
void |
setFy(double fy)
Sets the force operating on the atom in the Y direction. |
void |
setFz(double fz)
Sets the force operating on the atom in the Z direction. |
void |
setMolecularSystem(MolecularSystem MolecularSystem)
|
void |
setReliability(double reliability)
|
void |
setResidue(Residue residue)
Set the atom residue. |
void |
setResidueNumber(int number)
|
void |
setStatus(AtomStatus status)
|
void |
setTemperatureFactor(java.lang.Double tf)
|
void |
setType(AtomType newType)
|
void |
setXYZ(Coordinates coor)
|
void |
setXYZ(double newx,
double newy,
double newz)
Sets the X,Y,Z coordinate of the atom. |
void |
setXYZ(double newx,
double newy,
double newz,
AtomStatus status)
|
java.lang.Double |
temperatureFactor()
|
java.lang.String |
toString()
|
AtomType |
type()
The atom type. |
java.lang.String |
verbose(int level)
Returns the atom as a PDB formatted String. |
double |
x()
Returns the X coordinate of the atom. |
double[] |
X()
|
double |
y()
Returns the Y coordinate of the atom. |
double[] |
Y()
|
double |
z()
Returns the Z coordinate of the atom. |
double[] |
Z()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public final AtomCore core
public final java.lang.String name
public final int ID
public MolecularSystem molecularSystem
private double energy
protected Residue residue
private java.lang.Double temperatureFactor
private final int ATOM_BONDED_CAPACITY
protected AtomList bonded
private static int numberOfAtoms
private PdbLine pdbLine
private double reliability
private java.util.HashMap attributes
| Constructor Detail |
|---|
public Atom(java.lang.String name,
Residue residue,
AtomType type,
Coordinates coordinates,
java.lang.Double temperatureFactor)
public Atom(PdbLine line)
| Method Detail |
|---|
public void setMolecularSystem(MolecularSystem MolecularSystem)
public final int number()
DistanceMatrix.
public AtomType type()
public void setType(AtomType newType)
public double reliability()
public void setReliability(double reliability)
public boolean nowhere()
public boolean active()
public PdbLine pdbLine()
public java.lang.String chain()
chain()public void setResidue(Residue residue)
residuepublic final Residue residue()
residuepublic boolean nameIs(java.lang.String keys)
namepublic boolean nameIs(StringList keys)
public final double x()
Coordinates.xpublic final double[] X()
public final double y()
Coordinates.Y()public final double[] Y()
public final double z()
Coordinates.Z()public final double[] Z()
public void addToX(double addMe)
Coordinates.addToX(double)public void addToY(double addMe)
Coordinates.addToY(double)public void addToZ(double addMe)
Coordinates.addToZ(double)
public void setXYZ(double newx,
double newy,
double newz)
public void setXYZ(double newx,
double newy,
double newz,
AtomStatus status)
public void setXYZ(Coordinates coor)
public void resetCoordinates()
public double fx()
Coordinates.fx()public double fy()
Coordinates.fy()public double fz()
Coordinates.fz()public void setFx(double fx)
Coordinates.setFx(double)public void setFy(double fy)
Coordinates.setFy(double)public void setFz(double fz)
Coordinates.setFz(double)public final void addToFx(double addMe)
Coordinates.addToFx(double)public final void addToFy(double addMe)
Coordinates.addToFy(double)public final void addToFz(double addMe)
Coordinates.addToFz(double)public final double distanceFrom(Atom atom)
public java.lang.String verbose(int level)
verbose in interface Verbosepublic java.lang.String toString()
toString in class java.lang.Object
public void randomize(double radius,
double centerx,
double centery,
double centerz)
public void randomize(double radius,
Atom center)
public java.lang.String comment()
public AtomList bonded()
bondedpublic AtomPair bond(Atom other)
public final int residueNumber()
public java.lang.String name()
public static int numberOfAtoms()
public double occupancy()
public java.lang.Double temperatureFactor()
public void setTemperatureFactor(java.lang.Double tf)
public java.lang.String alternateLocation()
public java.lang.String residueName()
public void freeze()
public void hide()
public boolean frozen()
public boolean normal()
public void defrost()
public int compareTo(java.lang.Object obj)
compareTo in interface java.lang.Comparablepublic void resetEnergy()
public void addEnergy(double add)
public double energy()
public final boolean isBackbone()
public final boolean backboneH()
public final boolean backboneN()
public final boolean backboneCA()
public final boolean backboneC()
public final boolean backboneO()
public final boolean isCarbon()
public final boolean isOxygen()
public final boolean isNitrogen()
public final boolean isSulfur()
public final boolean isHydrogen()
public final BBatom bbAtom()
public void setStatus(AtomStatus status)
public final void addAttribute(MeshiAttribute attribute)
addAttribute in interface Attributablepublic final MeshiAttribute getAttribute(int key)
getAttribute in interface Attributablepublic void setResidueNumber(int number)
public void emptyBonded()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||