|
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.SimpleHalfPlane
An implementation of the HalfPlane interface that is optimized for those cases
in which a HalfPlane contains only one Atom. Aside from cis-alkenes,
there is no common molecular stereochemical feature that uses multi-Atom HalfPlanes,
so this class can afford considerable savings in access time and memory allocation over
BasicHalfPlane.
| Constructor Summary | |
SimpleHalfPlane(Atom atom,
int position)
Constructs a SimpleHalfPlane that contains atom at the indicated
position. |
|
| Method Summary | |
int |
countAtoms()
Returns the number of Atoms contained by this HalfPlane. |
int |
countLowerAtoms()
Returns the number of Atoms contained in the lower region of this
HalfPlane. |
int |
countUpperAtoms()
Returns the number of Atoms contained in the upper region of this
HalfPlane. |
Atom |
getIntersectionAtom()
Returns the Atom located at the bisector of this HalfPlane,
or null if none exists. |
boolean |
hasIntersectionAtom()
Returns true if this HalfPlane has an Atom
located on the bisector, or false otherwise. |
AtomIterator |
iterateLowerAtoms()
Returns an iterator over all Atoms appearing in the lower region of
this HalfPlane. |
AtomIterator |
iterateUpperAtoms()
Returns an iterator over all Atoms appearing in the upper region of
this HalfPlane. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SimpleHalfPlane(Atom atom,
int position)
SimpleHalfPlane that contains atom at the indicated
position. Positive values of position indicate the upper region,
negative values indicate the lower region, and zero indicates the intersection position.
| Method Detail |
public int countAtoms()
HalfPlaneAtoms contained by this HalfPlane.
countAtoms in interface HalfPlaneAtoms contained by this HalfPlanepublic AtomIterator iterateLowerAtoms()
HalfPlaneAtoms appearing in the lower region of
this HalfPlane.
iterateLowerAtoms in interface HalfPlaneAtoms appearing in the lower region of
this HalfPlanepublic int countLowerAtoms()
HalfPlaneAtoms contained in the lower region of this
HalfPlane.
countLowerAtoms in interface HalfPlaneAtoms contained in the lower region of this
HalfPlanepublic AtomIterator iterateUpperAtoms()
HalfPlaneAtoms appearing in the upper region of
this HalfPlane.
iterateUpperAtoms in interface HalfPlaneAtoms appearing in the upper region of
this HalfPlanepublic int countUpperAtoms()
HalfPlaneAtoms contained in the upper region of this
HalfPlane.
countUpperAtoms in interface HalfPlaneAtoms contained in the upper region of this
HalfPlanepublic Atom getIntersectionAtom()
HalfPlaneAtom located at the bisector of this HalfPlane,
or null if none exists. This is an optional operation. Implementors
may throw an UnsupportedOperationException to indicate this.
getIntersectionAtom in interface HalfPlaneAtom located at the bisector of this HalfPlane,
or null if none existspublic boolean hasIntersectionAtom()
HalfPlanetrue if this HalfPlane has an Atom
located on the bisector, or false otherwise. This is an optional
operation. Implementors may throw an UnsupportedOperationException
to indicate this.
hasIntersectionAtom in interface HalfPlaneHalfPlane has an Atom
located on the bisector, or false otherwise
|
The Octet Molecular Representation Framework v0.8.2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||