|
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.BasicHalfPlane
A default implementation of the HalfPlane interface.
| Constructor Summary | |
BasicHalfPlane(AtomCollection atoms,
int[] positions)
Constructs a BasicHalfPlane from atoms and positions. |
|
| 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. |
static HalfPlane |
getNullInstance()
|
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 BasicHalfPlane(AtomCollection atoms,
int[] positions)
BasicHalfPlane from atoms and positions.
The integer located at index i of positions will specify the position of the
ith Atom of atoms. Positive values specify the upper part of
the plane. Negative values specify the lower part of the plane. Zero specifies the
midpoint.
| 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 otherwisepublic static HalfPlane getNullInstance()
|
The Octet Molecular Representation Framework v0.8.2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||