|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.strbio.mol.Molecule
public class Molecule
Class to represent a molecule.
Version 1.1, 7/22/99 - added data field. Version 1.01, 3/30/99 - set MAX_NAME_LENGTH to avoid crashing printf Version 1.0, 4/16/98 - original version
Atom
,
AtomNode
Field Summary | |
---|---|
DLinkedList |
atoms
pointer to the atoms, if there are any (if not, this is null) |
Data |
data
data that is known about this molecule. |
static int |
MAX_NAME_LENGTH
maximum name length, currently 4096 chars. |
java.lang.String |
name
Name of this molecule. |
Constructor Summary | |
---|---|
Molecule()
Constructor makes everything null. |
|
Molecule(Molecule q)
copy another molecule, including the atoms. |
Method Summary | |
---|---|
Atom |
atomSearch(java.lang.String name)
Search the atoms of this molecule for the first atom with a given name. |
void |
clear()
Forget everything you know about this molecule. |
void |
copyAtoms(Molecule q)
copy the atoms from another molecule. |
void |
rotate(DMatrix rot)
rotate all atoms by multiplying by a 3x3 rotation matrix. |
void |
transform(DMatrix trans)
transform the position of all atoms. |
void |
translate(DVector trans)
translate all atoms by adding a DVector(3) to their coordinates. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public java.lang.String name
public DLinkedList atoms
public static final int MAX_NAME_LENGTH
public Data data
Constructor Detail |
---|
public Molecule()
public Molecule(Molecule q)
Method Detail |
---|
public void clear()
public final void copyAtoms(Molecule q)
public final Atom atomSearch(java.lang.String name)
public void translate(DVector trans)
Atom.translate(org.strbio.math.DVector)
public void rotate(DMatrix rot)
Atom.rotate(org.strbio.math.DMatrix)
public void transform(DMatrix trans)
Atom.transform(org.strbio.math.DMatrix)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |