|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmeshi.geometry.Distance
public class Distance
The distance between two meshi.molecularElements.atoms
.
Almost any measurable feature of a molecule is related to distances
between pairs of meshi.molecularElements.atoms.
Thus, The calculation of distances (and their inverse and derivatives)
are typically a computational bottleneck in computational structural
biology applications. In all applications that we are aware of (Please,
enlighten us if you know better) distance calculation is done as part
of the procedures that use it (say, as part of the van-der-Waals energy
calculation). As a result the distance between two atoms may be calculated
more then once. For example the distance between two atoms may be
calculated both during angle and torsion angle energies calculations.
In Meshi We tried to consentrate all distance related issues in a few
classes: this one, its subclasses and the closely connected
class DistanceMatrix.
Possible pitfalls
update
method is explicitly called.
| Field Summary | |
|---|---|
AtomCore |
atom1
This object represent the distance between atom1 and atom2. |
int |
atom1Number
|
AtomCore |
atom2
This object represent the distance between atom1 and atom2. |
protected int |
atom2Number
|
private AttributesRack |
attributes
|
double |
distance
The distance between atom1 & atom2 Not that the public accessability of of this variable improves computational efficiency but opens a wide door for bugs. |
double |
dx
atom1.x - atom2.x Not that the protected accessability of of this variable improves computational efficiency but opens a wide door for bugs. |
double |
dy
atom1.y - atom2.y Not that the protected accessability of of this variable improves computational efficiency but opens a wide door for bugs. |
double |
dz
atom1.z - atom2.z Not that the protected accessability of of this variable improves computational efficiency but opens a wide door for bugs. |
static double |
INFINITE_DISTANCE
|
double |
invDistance
The inverse of the distance between atom1 & atom2. |
AtomType |
largeType
|
protected DistanceMode |
mode
|
AtomType |
smallType
|
| Constructor Summary | |
|---|---|
Distance(AtomCore atom1,
AtomCore atom2,
double dx,
double dy,
double dz,
double distance)
|
|
| Method Summary | |
|---|---|
void |
addAttribute(MeshiAttribute attribute)
|
Atom |
atom1()
Get atom1. |
Atom |
atom2()
Get atom2. |
int |
atom2Number()
|
double |
dDistanceDx()
The derivative of the distance between atom1 & atom2 by the X coordinate of atom1. |
double |
dDistanceDy()
The derivative of the distance between atom1 & atom2 by the Y coordinate of atom1. |
double |
dDistanceDz()
The derivative of the distance between atom1 & atom2 by the Z coordinate of atom1. |
boolean |
dead()
|
double |
distance()
Get the distance between atom1 and atom2. |
double |
dx()
|
double |
dy()
|
double |
dz()
|
MeshiAttribute |
getAttribute(int key)
|
double |
invDistance()
Get the inverse of the distance between atom1 and atom2. |
DistanceMode |
mode()
|
void |
setMode(DistanceMode mode)
|
java.lang.String |
toString()
|
protected void |
update(double rMax2)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final double INFINITE_DISTANCE
public final AtomCore atom1
public final AtomCore atom2
public final int atom1Number
protected int atom2Number
protected DistanceMode mode
public double invDistance
public double distance
public double dx
public double dy
public double dz
public final AtomType largeType
public final AtomType smallType
private AttributesRack attributes
| Constructor Detail |
|---|
public Distance(AtomCore atom1, AtomCore atom2, double dx, double dy, double dz, double distance)
| Method Detail |
|---|
public final void addAttribute(MeshiAttribute attribute)
addAttribute in interface Attributablepublic final MeshiAttribute getAttribute(int key)
getAttribute in interface Attributableprotected void update(double rMax2)
public double distance()
public double invDistance()
public double dDistanceDx()
public double dDistanceDy()
public double dDistanceDz()
public Atom atom1()
public Atom atom2()
public int atom2Number()
public double dx()
public double dy()
public double dz()
public java.lang.String toString()
toString in class java.lang.Objectpublic final DistanceMode mode()
public void setMode(DistanceMode mode)
public boolean dead()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||