|
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.BasicNonbondingShell
A default implementation of the NonbondingShell interface.
| Constructor Summary | |
BasicNonbondingShell()
Constructs a fully functional, empty BasicNonbondingShell. |
|
BasicNonbondingShell(OrbitalCollection orbitals)
Constructs a fully functional BasicNonbondingShell from
orbitals. |
|
| Method Summary | |
boolean |
containsElectron(Electron electron)
Returns true if the specified Electron is contained in this
collection, and false otherwise. |
boolean |
containsOrbital(Orbital orbital)
Returns true if the specified Orbital is contained in this
collection, and false otherwise. |
int |
countElectrons()
Returns the number of Electrons contained in this collection. |
int |
countOrbitals()
Returns the number of Orbitals contained in this Orbital collection. |
Electron |
getElectron(int index)
Returns the Electron located at the specified zero-based index. |
int |
getElectronIndex(Electron electron)
Returns the zero-based index of the specified Electron. |
static BasicNonbondingShell |
getNullSingleton()
Returns a singleton BasicNonbondingShell that is empty. |
Orbital |
getOrbital(int index)
Returns the Orbital located at the specified zero-based index. |
int |
getOrbitalIndex(Orbital orbital)
Returns the zero-based index of the specified Orbital. |
ElectronIterator |
iterateElectrons()
Returns an iterator over all Electrons in this collection. |
OrbitalIterator |
iterateOrbitals()
Returns an iterator over all Orbitals in this collection. |
Electron[] |
toElectronArray()
Returns a copy of the Electrons contained in this collection as an array. |
Orbital[] |
toOrbitalArray()
Returns a copy of the Orbitals 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 |
public BasicNonbondingShell()
BasicNonbondingShell.
public BasicNonbondingShell(OrbitalCollection orbitals)
BasicNonbondingShell from
orbitals.
orbitals - the OrbitalCollection
IllegalRepresentationException - if a valid NonbondingShell can
not be constructed from orbitals| Method Detail |
public boolean containsElectron(Electron electron)
ElectronCollectiontrue if the specified Electron is contained in this
collection, and false otherwise.
containsElectron in interface ElectronCollectionelectron - the Electron
true if contained, false otherwisepublic int countElectrons()
ElectronCollectionElectrons contained in this collection.
countElectrons in interface ElectronCollectionpublic int getElectronIndex(Electron electron)
ElectronCollectionElectron.
getElectronIndex in interface ElectronCollectionelectron - the atom
electronpublic Electron getElectron(int index)
ElectronCollectionElectron located at the specified zero-based index.
getElectron in interface ElectronCollectionindex - the index
Electron at index, or null
if the index is invalidpublic ElectronIterator iterateElectrons()
ElectronCollectionElectrons in this collection.
iterateElectrons in interface ElectronCollectionElectrons in this collectionpublic Electron[] toElectronArray()
ElectronCollection
toElectronArray in interface ElectronCollectionpublic boolean containsOrbital(Orbital orbital)
OrbitalCollectiontrue if the specified Orbital is contained in this
collection, and false otherwise.
containsOrbital in interface OrbitalCollectionorbital - the Orbital
true if contained, false otherwisepublic int countOrbitals()
OrbitalCollectionOrbitals contained in this Orbital collection.
countOrbitals in interface OrbitalCollectionpublic int getOrbitalIndex(Orbital orbital)
OrbitalCollectionOrbital.
getOrbitalIndex in interface OrbitalCollectionorbital - the Orbital
orbitalpublic OrbitalIterator iterateOrbitals()
OrbitalCollectionOrbitals in this collection.
iterateOrbitals in interface OrbitalCollectionOrbitals in this collectionpublic Orbital getOrbital(int index)
OrbitalCollectionOrbital located at the specified zero-based index.
getOrbital in interface OrbitalCollectionindex - the index
Orbital at index, or null
if the index is invalidpublic Orbital[] toOrbitalArray()
OrbitalCollectionOrbitals contained in this collection as an
array. The resulting array may be modified without changing the state
of this collection.
toOrbitalArray in interface OrbitalCollectionpublic static BasicNonbondingShell getNullSingleton()
BasicNonbondingShell that is empty.
This instance can be used as part of the NullObject Design Pattern
to fulfil the Molecule contract without providing an
underlying implementation.
BasicNonbondingShell
|
The Octet Molecular Representation Framework v0.8.2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||