|
The Octet Molecular Representation Framework v0.8.2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.octet.model.MoleculeDecorator
MoleculeDecorator forwards all requests to a Molecule
that it decorates. This design follows the "Decorator Pattern" which,
among other consequences, enables responsibilities to be dynamically assigned and
revoked to Molecules at run-time. Subclassing
MoleculeDecorator provides a conventient way to implement this concept.
| Constructor Summary | |
protected |
MoleculeDecorator(Molecule molecule)
Constructs a MoleculeDecorator that will decorate the
specified Molecule. |
| Method Summary | |
boolean |
containsAtom(Atom atom)
Returns true if the specified Atom is contained in this
collection, and false otherwise. |
boolean |
containsAtomPair(Atom source,
Atom target)
Returns true if an AtomPair connecting
source and target is contained in this
collection. |
boolean |
containsAtomPair(AtomPair pair)
Returns true if an AtomPair matching
pair is contained in this collection. |
boolean |
containsBondingSystem(BondingSystem system)
Returns true if a BondingSystem matching
system is contained in this collection. |
int |
countAtomPairs()
Returns the number of AtomPairs contained in this collection. |
int |
countAtoms()
Returns the number of Atoms contained in this atom collection. |
int |
countBondingSystems()
Returns the number of BondingSystems contained in this collection. |
int |
countBondingSystems(Atom atom)
Returns the number of BondingSystems in which the specified Atom particpates. |
int |
countImplicitHydrogens(Atom atom)
Returns the number of implicit hydrogens associated with atom. |
int |
countNeighbors(Atom atom)
Returns the number of Atoms connected to atom in the context of
this AtomGraph. |
int |
countNonbondingValenceElectrons(Atom atom)
Returns the total number of nonbonding valence electrons associeated with atom. |
Atom |
getAtom(int index)
Returns the Atom located at the specified zero-based index. |
int |
getAtomIndex(Atom atom)
Returns the zero-based index of the specified Atom. |
AtomPair |
getAtomPair(Atom source,
Atom target)
Returns an AtomPair containing the specified source
and target Atoms. |
AtomPair |
getAtomPair(int index)
Returns the AtomPair corresponding to the specified integer index. |
int |
getAtomPairIndex(AtomPair pair)
Returns the index of the specified AtomPair. |
BondingSystem |
getBondingSystem(int index)
Returns the BondingSystem located at the specified zero-based index. |
int |
getBondingSystemIndex(BondingSystem system)
Returns the zero-based index of the specified BondingSystem. |
Configuration |
getConfiguration(Atom atom)
Returns the Configuration of the specified Atom. |
Conformation |
getConformation()
Returns the Conformation of this Molecule. |
NonbondingShell |
getNonbondingShell(Atom atom)
Returns the NonbondingShell of the specified Atom. |
AtomPairIterator |
iterateAtomPairs()
Returns an iterator over all AtomPairs in this collection. |
AtomIterator |
iterateAtoms()
Returns an iterator over all Atoms in this collection. |
BondingSystemIterator |
iterateBondingSystems()
Returns an iterator over all BondingSystems in this collection. |
BondingSystemIterator |
iterateBondingSystems(Atom atom)
Returns an iterator over all BondingSystems in which the specified Atom
participates. |
AtomIterator |
iterateNeighbors(Atom atom)
Returns an iterator over all neighbors of atom in the context of this
AtomGraph. |
Atom[] |
toAtomArray()
Returns a copy of the Atoms contained in this collection as an array. |
AtomPair[] |
toAtomPairArray()
Returns a copy of the atom pairs contained in this collection as an array. |
BondingSystem[] |
toBondingSystemArray()
Returns a copy of the bonding systems contained in this collection as an array. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
protected MoleculeDecorator(Molecule molecule)
MoleculeDecorator that will decorate the
specified Molecule.
| Method Detail |
public boolean containsAtom(Atom atom)
AtomCollectiontrue if the specified Atom is contained in this
collection, and false otherwise.
containsAtom in interface AtomCollectionatom - the Atom
true if contained, false otherwisepublic int countAtoms()
AtomCollectionAtoms contained in this atom collection.
countAtoms in interface AtomCollectionpublic AtomIterator iterateAtoms()
AtomCollectionAtoms in this collection.
iterateAtoms in interface AtomCollectionAtoms in this collectionpublic boolean containsBondingSystem(BondingSystem system)
BondingSystemCollectiontrue if a BondingSystem matching
system is contained in this collection.
containsBondingSystem in interface BondingSystemCollectionsystem - the BondingSystem to search for
true if found, false otherwisepublic int countBondingSystems()
BondingSystemCollectionBondingSystems contained in this collection.
countBondingSystems in interface BondingSystemCollectionBondingSystems contained in this collection.public BondingSystemIterator iterateBondingSystems()
BondingSystemCollectionBondingSystems in this collection.
iterateBondingSystems in interface BondingSystemCollectionBondingSystems in this collectionpublic boolean containsAtomPair(AtomPair pair)
AtomPairCollectiontrue if an AtomPair matching
pair is contained in this collection.
containsAtomPair in interface AtomPairCollectionpair - the AtomPair to search for
true if found, false otherwise
public boolean containsAtomPair(Atom source,
Atom target)
AtomPairCollectiontrue if an AtomPair connecting
source and target is contained in this
collection.
containsAtomPair in interface AtomPairCollectionsource - the source atomtarget - the target atom
true if the atom pair exists, false otherwise
public AtomPair getAtomPair(Atom source,
Atom target)
AtomPairCollectionAtomPair containing the specified source
and target Atoms. If no such pair is found,
null is returned.
getAtomPair in interface AtomPairCollectionsource - the source atomtarget - the target atom
AtomPairpublic int countAtomPairs()
AtomPairCollectionAtomPairs contained in this collection.
countAtomPairs in interface AtomPairCollectionAtomPairs contained in this collection.public AtomPairIterator iterateAtomPairs()
AtomPairCollectionAtomPairs in this collection.
iterateAtomPairs in interface AtomPairCollectionAtomPairs in this collectionpublic Atom getAtom(int index)
AtomCollectionAtom located at the specified zero-based index.
getAtom in interface AtomCollectionindex - the index
Atom at index, or null
if the index is invalidpublic int getAtomIndex(Atom atom)
AtomCollectionAtom.
getAtomIndex in interface AtomCollectionatom - the atom
atompublic int getBondingSystemIndex(BondingSystem system)
BondingSystemCollectionBondingSystem.
getBondingSystemIndex in interface BondingSystemCollectionsystem - the BondingSystem
systempublic AtomPair getAtomPair(int index)
AtomPairCollectionAtomPair corresponding to the specified integer index.
getAtomPair in interface AtomPairCollectionindex - the index to search for
AtomPair at the specified indexpublic int getAtomPairIndex(AtomPair pair)
AtomPairCollectionAtomPair.
getAtomPairIndex in interface AtomPairCollectionpair - the AtomPair to search for
AtomPairpublic Atom[] toAtomArray()
AtomCollection
toAtomArray in interface AtomCollectionpublic BondingSystem[] toBondingSystemArray()
BondingSystemCollection
toBondingSystemArray in interface BondingSystemCollectionpublic AtomPair[] toAtomPairArray()
AtomPairCollection
toAtomPairArray in interface AtomPairCollectionpublic int countNeighbors(Atom atom)
AtomGraphAtoms connected to atom in the context of
this AtomGraph. This value will be less than or equal to the value returned
by atom.countNeighbors().
countNeighbors in interface AtomGraphatom - the Atom to examine
atompublic AtomIterator iterateNeighbors(Atom atom)
AtomGraphatom in the context of this
AtomGraph. This iterator may contain only a subset of the Atoms
returned by atom.iterateNeighbors(), depending on the nature of this
AtomGraph.
iterateNeighbors in interface AtomGraphatom - the Atom to examine
atompublic int countBondingSystems(Atom atom)
MoleculeAtom particpates.
countBondingSystems in interface Moleculeatom - the Atom
Atom particpatespublic int countNonbondingValenceElectrons(Atom atom)
Moleculeatom.
This number includes any electrons contained in the NonbondingShell of
atom.
countNonbondingValenceElectrons in interface Moleculeatom - the Atom
atompublic Configuration getConfiguration(Atom atom)
MoleculeConfiguration of the specified Atom. Configuration
refers to the spatial arrangement of neighboring Atoms around a
central Atom that do not result from rotation about an
AtomPair.
getConfiguration in interface Moleculepublic Conformation getConformation()
MoleculeConformation of this Molecule.
getConformation in interface MoleculeConformation of this Moleculepublic BondingSystemIterator iterateBondingSystems(Atom atom)
MoleculeAtom
participates.
iterateBondingSystems in interface Moleculeatom - the Atom
Atom
participatespublic NonbondingShell getNonbondingShell(Atom atom)
MoleculeNonbondingShell of the specified Atom.
getNonbondingShell in interface Moleculeatom - the Atom
public int countImplicitHydrogens(Atom atom)
Moleculeatom.
countImplicitHydrogens in interface Moleculeatom - the Atom
public BondingSystem getBondingSystem(int index)
BondingSystemCollectionBondingSystem located at the specified zero-based index.
getBondingSystem in interface BondingSystemCollectionindex - the index
BondingSystem at index
|
The Octet Molecular Representation Framework v0.8.2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||