|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
Molecule is the basic container for Atoms, Bonds, Electrons Angles, Torsion, Sequences, Features, Crystal and other objects. Molecules may contain other Molecules. When objects such as AtomArray are set or added they are deep-copied, to avoid unpleasant surprises later. In general Atom, AtomArray, Bond, BondArray should not be shared between different molecules. A molecule has only one set of Atoms and Bonds - if a molecule is created with AtomArray and an Atom is subsequently added, the components are effectively merged.
| Fields inherited from interface org.xmlcml.cml.CMLBase |
ANGLE,
ATOM,
ATOMARRAY,
BOND,
BONDARRAY,
BUILTIN,
CML,
CRYSTAL,
ELECTRON,
ELEMENT_COUNT,
ELEMENT_NAMES,
EXECUTE,
FEATURE,
FLOAT,
FLOAT_TYPE,
FLOATARRAY,
FLOATMATRIX,
FORMULA,
INTEGER,
INTEGER_TYPE,
INTEGERARRAY,
LINK,
LIST,
MOLECULE,
PACKAGE_NAME,
REACTION,
SEQUENCE,
STRING,
STRING_TYPE,
STRINGARRAY,
TORSION,
UNK,
UNK_ELEM,
UNKNOWN |
| Fields inherited from interface org.xmlcml.cml.HasCount |
COUNT |
| Fields inherited from interface uk.co.demon.ursus.dom.PMRElement |
CLASSNAME,
LOCAL,
QUALIFIED,
UNIVERSAL |
| Fields inherited from interface org.xmlcml.cml.HasTitle |
TITLE |
| Fields inherited from interface org.xmlcml.cml.HasDictRef |
DICTREF |
| Fields inherited from interface org.xmlcml.cml.HasId |
ID |
| Fields inherited from interface org.xmlcml.cml.HasConvention |
CONVENTION |
| Fields inherited from interface uk.co.demon.ursus.dom.PMRNode |
ATTRIBUTES,
CONTENT,
ELEMENTNAME,
IDLIST,
NESTED,
NESTEDATTS,
PACKAGENAME,
PRETTY,
SPLITFILES,
STYLE,
TAGGED,
UNTAGGED,
WHITESPACE,
XMLCONTENT |
| Fields inherited from interface org.w3c.dom.Node |
ATTRIBUTE_NODE,
CDATA_SECTION_NODE,
COMMENT_NODE,
DOCUMENT_FRAGMENT_NODE,
DOCUMENT_NODE,
DOCUMENT_TYPE_NODE,
ELEMENT_NODE,
ENTITY_NODE,
ENTITY_REFERENCE_NODE,
NOTATION_NODE,
PROCESSING_INSTRUCTION_NODE,
TEXT_NODE |
| Fields inherited from interface org.w3c.dom.Node |
ATTRIBUTE_NODE,
CDATA_SECTION_NODE,
COMMENT_NODE,
DOCUMENT_FRAGMENT_NODE,
DOCUMENT_NODE,
DOCUMENT_TYPE_NODE,
ELEMENT_NODE,
ENTITY_NODE,
ENTITY_REFERENCE_NODE,
NOTATION_NODE,
PROCESSING_INSTRUCTION_NODE,
TEXT_NODE |
| Fields inherited from interface org.xmlcml.cml.CMLBase |
ANGLE,
ATOM,
ATOMARRAY,
BOND,
BONDARRAY,
BUILTIN,
CML,
CRYSTAL,
ELECTRON,
ELEMENT_COUNT,
ELEMENT_NAMES,
EXECUTE,
FEATURE,
FLOAT,
FLOAT_TYPE,
FLOATARRAY,
FLOATMATRIX,
FORMULA,
INTEGER,
INTEGER_TYPE,
INTEGERARRAY,
LINK,
LIST,
MOLECULE,
PACKAGE_NAME,
REACTION,
SEQUENCE,
STRING,
STRING_TYPE,
STRINGARRAY,
TORSION,
UNK,
UNK_ELEM,
UNKNOWN |
| Fields inherited from interface uk.co.demon.ursus.dom.PMRElement |
CLASSNAME,
LOCAL,
QUALIFIED,
UNIVERSAL |
| Fields inherited from interface org.xmlcml.cml.HasTitle |
TITLE |
| Fields inherited from interface org.xmlcml.cml.HasDictRef |
DICTREF |
| Fields inherited from interface org.xmlcml.cml.HasId |
ID |
| Fields inherited from interface org.xmlcml.cml.HasConvention |
CONVENTION |
| Fields inherited from interface uk.co.demon.ursus.dom.PMRNode |
ATTRIBUTES,
CONTENT,
ELEMENTNAME,
IDLIST,
NESTED,
NESTEDATTS,
PACKAGENAME,
PRETTY,
SPLITFILES,
STYLE,
TAGGED,
UNTAGGED,
WHITESPACE,
XMLCONTENT |
| Fields inherited from interface org.w3c.dom.Node |
ATTRIBUTE_NODE,
CDATA_SECTION_NODE,
COMMENT_NODE,
DOCUMENT_FRAGMENT_NODE,
DOCUMENT_NODE,
DOCUMENT_TYPE_NODE,
ELEMENT_NODE,
ENTITY_NODE,
ENTITY_REFERENCE_NODE,
NOTATION_NODE,
PROCESSING_INSTRUCTION_NODE,
TEXT_NODE |
| Fields inherited from interface org.w3c.dom.Node |
ATTRIBUTE_NODE,
CDATA_SECTION_NODE,
COMMENT_NODE,
DOCUMENT_FRAGMENT_NODE,
DOCUMENT_NODE,
DOCUMENT_TYPE_NODE,
ELEMENT_NODE,
ENTITY_NODE,
ENTITY_REFERENCE_NODE,
NOTATION_NODE,
PROCESSING_INSTRUCTION_NODE,
TEXT_NODE |
| Method Summary | |
void |
addAngle(Angle angle)
adds the Angle to the Angle content of the Molecule. |
void |
addAtom(Atom atom)
adds the Atom to the Atom content of the Molecule. |
void |
addBond(Bond bond)
adds the Bond to the Bond content of the Molecule. |
void |
addElectron(Electron electron)
Adds a Electron to the Molecule content. |
void |
addFeature(Feature feature)
Adds a Feature to the Molecule content. |
void |
addMolecule(Molecule molecule)
Adds a Molecule to the Molecule content. |
void |
addSequence(Sequence sequence)
Adds a Sequence to the Molecule content. |
void |
addTorsion(Torsion torsion)
adds the Torsion to the Torsion content of the Molecule. |
void |
deleteAngle(Angle angle)
deletes the Angle from the Angle content of the Molecule. |
void |
deleteAtom(Atom atom)
deletes the Atom from the Atom content of the Molecule. |
void |
deleteBond(Bond bond)
deletes the Bond from the Bond content of the Molecule. |
void |
deleteElectron(Electron electron)
Deletes a Electron from the Molecule content. |
void |
deleteFeature(Feature feature)
Deletes a Feature from the Molecule content. |
void |
deleteMolecule(Molecule molecule)
Deletes a Molecule from the Molecule content. |
void |
deleteSequence(Sequence sequence)
Deletes a Sequence from the Molecule content. |
void |
deleteTorsion(Torsion torsion)
deletes the Torsion from the Torsion content of the Molecule. |
java.util.Vector |
getAngleVector()
extracts ALL the Angles as a Vector |
AtomArray |
getAtomArray()
packs current Atoms into an AtomArray |
Atom |
getAtomById(java.lang.String id)
|
int |
getAtomCount()
|
java.util.Hashtable |
getAtomIdTable()
|
java.util.Vector |
getAtomVector()
extracts ALL the Atoms as a Vector |
Bond |
getBond(Atom atom1,
Atom atom2)
get a bond from the atoms - order is irrelevant |
BondArray |
getBondArray()
extracts ALL the bonds in a single BondArray. |
int |
getBondCount()
|
java.util.Vector |
getBondVector()
extracts ALL the Bonds as a Vector |
double |
getCount()
|
Crystal |
getCrystal()
extracts Crystal if present |
java.util.Vector |
getElectronVector()
extracts ALL the Electrons as a Vector |
Feature |
getFeature()
extracts the FIRST Feature if any present |
java.util.Vector |
getFeatureVector()
extracts ALL the Features as a Vector |
java.util.Vector |
getMoleculeVector()
extracts ALL the Molecules as a Vector |
Sequence |
getSequence()
extracts the FIRST Sequence if any present |
java.util.Vector |
getSequenceVector()
extracts ALL the Sequences as a Vector |
java.util.Vector |
getTorsionVector()
extracts ALL the Torsions as a Vector |
void |
run(Execute execute)
run an <execute> child |
void |
setCount(double count)
|
void |
setCrystal(Crystal crystal)
replaces Crystal information; if null, deletes any existing Crystal |
| Methods inherited from interface org.xmlcml.cml.HasCount |
updateDOMHasCount |
| Method Detail |
public void run(Execute execute)
throws java.lang.Exception
public AtomArray getAtomArray()
public void addAtom(Atom atom)
throws CMLException
public void deleteAtom(Atom atom)
throws CMLException
Atom - atom to be deletedpublic java.util.Vector getAtomVector()
public java.util.Hashtable getAtomIdTable()
public Atom getAtomById(java.lang.String id)
public int getAtomCount()
public BondArray getBondArray()
public void addBond(Bond bond)
throws CMLException
public void deleteBond(Bond bond)
throws CMLException
public java.util.Vector getBondVector()
public Bond getBond(Atom atom1,
Atom atom2)
Atom - atom1 first atomAtom - atom2 other atompublic int getBondCount()
public void addAngle(Angle angle)
public void deleteAngle(Angle angle)
public java.util.Vector getAngleVector()
public void addTorsion(Torsion torsion)
public void deleteTorsion(Torsion torsion)
public java.util.Vector getTorsionVector()
public Crystal getCrystal()
public void setCrystal(Crystal crystal)
Crystal - the crystallographic informationpublic Sequence getSequence()
public void addSequence(Sequence sequence)
Sequence - the sequence to be added. null is ignoredpublic void deleteSequence(Sequence sequence)
Sequence - the sequence to be deleted. null is ignoredpublic java.util.Vector getSequenceVector()
public Feature getFeature()
public void addFeature(Feature feature)
Feature - the feature to be added. null is ignoredpublic void deleteFeature(Feature feature)
Feature - the feature to be deleted. null is ignoredpublic java.util.Vector getFeatureVector()
public void addElectron(Electron electron)
Electron - the electron to be added. null is ignoredpublic void deleteElectron(Electron electron)
Electron - the electron to be deleted. null is ignoredpublic java.util.Vector getElectronVector()
public void addMolecule(Molecule molecule)
Molecule - the molecule to be added. null is ignoredpublic void deleteMolecule(Molecule molecule)
Molecule - the molecule to be deleted. null is ignoredpublic java.util.Vector getMoleculeVector()
public void setCount(double count)
public double getCount()
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||