|
The Octet Molecular Representation Framework v0.8.2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
BondingSystemCollection represents an immutable
group of BondingSystems. Any BondingSystem may be
present, but null is disallowed. BondingSystems from
different Molecules may or not be present, depending on
implementation.
BondingSystemCollection places the additional restriction on implementors
that all methods are consistent - they can be assumed to return the same results
throughout the Object's lifetime.
| Method Summary | |
boolean |
containsBondingSystem(BondingSystem system)
Returns true if a BondingSystem matching
system is contained in this collection. |
int |
countBondingSystems()
Returns the number of BondingSystems contained in this collection. |
int |
countBondingSystems(Atom atom)
Returns the number of BondingSystems in this collection in which
atom participates. |
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. |
BondingSystemIterator |
iterateBondingSystems()
Returns an iterator over all BondingSystems in this collection. |
BondingSystemIterator |
iterateBondingSystems(Atom atom)
Returns an iterator over all BondingSystems in which
atom participates. |
BondingSystem[] |
toBondingSystemArray()
Returns a copy of the bonding systems contained in this collection as an array. |
| Method Detail |
public boolean containsBondingSystem(BondingSystem system)
true if a BondingSystem matching
system is contained in this collection.
system - the BondingSystem to search for
true if found, false otherwisepublic int countBondingSystems()
BondingSystems contained in this collection.
BondingSystems contained in this collection.public int countBondingSystems(Atom atom)
BondingSystems in this collection in which
atom participates.
atom - the Atom
BondingSystems in this collection in which
atom participatespublic BondingSystem getBondingSystem(int index)
BondingSystem located at the specified zero-based index.
index - the index
BondingSystem at index
java.lang.IndexOutOfBoundsException - if index is less than zero
or greater than or equal to the number of Atomspublic int getBondingSystemIndex(BondingSystem system)
BondingSystem.
system - the BondingSystem
systempublic BondingSystemIterator iterateBondingSystems()
BondingSystems in this collection.
BondingSystems in this collectionpublic BondingSystemIterator iterateBondingSystems(Atom atom)
BondingSystems in which
atom participates.
atom - the Atom
BondingSystems in which
atom participatespublic BondingSystem[] toBondingSystemArray()
|
The Octet Molecular Representation Framework v0.8.2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||