|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.sdsc.mbt.StructureComponent
edu.sdsc.mbt.Bond
Implements a StructureComponent container for bond information. This may be a covalent or a hydrogen bond.
StructureComponent
,
Atom
,
Serialized FormField Summary | |
float |
order
|
short |
quality
|
short |
render
|
static java.lang.String |
TYPE_COVALENT
Type for a covalent bond (bonding interaction due to electron sharing). |
static java.lang.String |
TYPE_HYDROGEN
Type for a hydrogen bond (bonding interaction due to partial charges). |
static java.lang.String |
TYPE_IONIC
Type for an ionic bond (bonding interaction due to electrostatic attraction between cations and anions). |
boolean |
visible
|
Fields inherited from class edu.sdsc.mbt.StructureComponent |
structure |
Constructor Summary | |
Bond(Atom atom0,
Atom atom1)
Constructor variant used when there will likely be no atom list (eg: when only sequence data is loaded). |
Method Summary | |
java.lang.Object |
clone()
Clone this object. |
void |
copy(StructureComponent structureComponent)
Copy all of the field values from the parameter object into "this". |
boolean |
equals(java.lang.Object o)
One Bond is equal to another Bond if they hashCode values are equal. |
Atom |
getAtom(int index)
Get the specified Atom record that forms this Bond. |
static java.lang.String |
getClassName()
This method returns the fully qualified name of this class. |
double |
getDistance()
Get the distance for the bond. |
static double |
getDistance(Atom atom0,
Atom atom1)
|
Atom |
getReferenceAtom()
|
java.lang.String |
getStructureComponentType()
This method returns the fully qualified name of this class. |
boolean |
isVisible()
|
void |
setOrder(float order)
Set the bond order (the number of covalently shared electron pairs). |
void |
setOrderOnly(float order)
This method sets order without editing atoms' hybridization states it is used in the loading of data with predefined bonding to avoid overwriting of hybridization data in subsequent passes over atoms that participate in bonds of different orders |
void |
setReferenceAtom(Atom atom)
|
void |
setReferenceAtom(int index)
|
Methods inherited from class edu.sdsc.mbt.StructureComponent |
getStructure, setStructure |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String TYPE_COVALENT
public static final java.lang.String TYPE_HYDROGEN
public static final java.lang.String TYPE_IONIC
public float order
public short render
public short quality
public boolean visible
Constructor Detail |
public Bond(Atom atom0, Atom atom1)
Method Detail |
public void copy(StructureComponent structureComponent)
copy
in class StructureComponent
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class StructureComponent
java.lang.CloneNotSupportedException
public boolean equals(java.lang.Object o)
public static java.lang.String getClassName()
This name is used by the StructureComponentRegistry class to enable dynamic registration and discovery of new StructureComponent sub-classes/types. The name is also used to create a unique integer indentifier for each type in order to make run-time type comparisons fast.
public java.lang.String getStructureComponentType()
getStructureComponentType
in class StructureComponent
public void setOrder(float order)
#getOrder( )
public void setOrderOnly(float order)
order
- public double getDistance()
public static final double getDistance(Atom atom0, Atom atom1)
public Atom getAtom(int index)
public void setReferenceAtom(int index)
public void setReferenceAtom(Atom atom)
public Atom getReferenceAtom()
public boolean isVisible()
isVisible
in class StructureComponent
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |