|
The Octet Molecular Representation Framework v0.8.2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
AtomPairCollection represents an immutable
group of AtomPairs. Any AtomPair may be present, but
null is disallowed. AtomPairs from different
Molecules may or may not be present, depending on implementation.
AtomPairCollection 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 |
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. |
int |
countAtomPairs()
Returns the number of AtomPairs contained in this collection. |
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. |
AtomPairIterator |
iterateAtomPairs()
Returns an iterator over all AtomPairs in this collection. |
AtomPair[] |
toAtomPairArray()
Returns a copy of the atom pairs contained in this collection as an array. |
| Method Detail |
public boolean containsAtomPair(AtomPair pair)
true if an AtomPair matching
pair is contained in this collection.
pair - the AtomPair to search for
true if found, false otherwise
public boolean containsAtomPair(Atom source,
Atom target)
true if an AtomPair connecting
source and target is contained in this
collection.
source - the source atomtarget - the target atom
true if the atom pair exists, false otherwise
public AtomPair getAtomPair(Atom source,
Atom target)
AtomPair containing the specified source
and target Atoms. If no such pair is found,
null is returned.
source - the source atomtarget - the target atom
AtomPair
NoSuchAtomPairException - if no AtomPair connecting source and target
could be foundpublic int countAtomPairs()
AtomPairs contained in this collection.
AtomPairs contained in this collection.public AtomPairIterator iterateAtomPairs()
AtomPairs in this collection.
AtomPairs in this collectionpublic int getAtomPairIndex(AtomPair pair)
AtomPair.
pair - the AtomPair to search for
AtomPairpublic AtomPair getAtomPair(int index)
AtomPair corresponding to the specified integer index.
index - the index to search for
AtomPair at the specified index
java.lang.IndexOutOfBoundsException - if index is less than zero
or greater than or equal to the number of AtomPairspublic AtomPair[] toAtomPairArray()
|
The Octet Molecular Representation Framework v0.8.2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||