|
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.BasicPaddleWheel
A default implementation of the PaddleWheel interface.
| Constructor Summary | |
BasicPaddleWheel(HalfPlaneCollection planes,
AtomPair axis)
Constructs a BasicPaddleWheel from planes and axis. |
|
| Method Summary | |
boolean |
containsHalfPlane(HalfPlane halfPlane)
Returns true if the specified HalfPlane is contained in this
collection, and false otherwise. |
int |
countHalfPlanes()
Returns the number of HalfPlanes contained in this HalfPlane collection. |
AtomPair |
getAxis()
Returns the AtomPair containing the central Atom
as its source and the neighbor Atom as its target. |
HalfPlane |
getHalfPlane(int index)
Returns the HalfPlane located at the specified zero-based index. |
int |
getHalfPlaneIndex(HalfPlane halfPlane)
Returns the zero-based index of the specified Atom. |
HalfPlaneIterator |
iterateHalfPlanes()
Returns an iterator over all HalfPlanes in this collection. |
HalfPlaneIterator |
iterateHalfPlanes(HalfPlane halfPlane)
Returns an iterator over all HalfPlanes in this PaddleWheel
starting from halfPlane in the forward (clockwise) sense. |
HalfPlaneIterator |
iterateHalfPlanesReverse(HalfPlane halfPlane)
Returns an iterator over all HalfPlanes in this PaddleWheel
starting from halfPlane in the reverse (anticlockwise) sense. |
HalfPlane[] |
toHalfPlaneArray()
Returns a copy of the HalfPlanes 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 BasicPaddleWheel(HalfPlaneCollection planes,
AtomPair axis)
BasicPaddleWheel from planes and axis.
planes - the HalfPlaneCollection to useaxis - the axis to use
IllegalRepresenationException - if planes has zero elements| Method Detail |
public AtomPair getAxis()
PaddleWheelAtomPair containing the central Atom
as its source and the neighbor Atom as its target.
getAxis in interface PaddleWheelAtomPair containing the central Atom
as its source and the neighbor Atom as its targetpublic HalfPlaneIterator iterateHalfPlanes(HalfPlane halfPlane)
PaddleWheelHalfPlanes in this PaddleWheel
starting from halfPlane in the forward (clockwise) sense.
iterateHalfPlanes in interface PaddleWheelhalfPlane - the HalfPLane at which iteration will begin
HalfPlanes in this
PaddleWheel starting from halfPlanepublic HalfPlaneIterator iterateHalfPlanesReverse(HalfPlane halfPlane)
PaddleWheelHalfPlanes in this PaddleWheel
starting from halfPlane in the reverse (anticlockwise) sense.
iterateHalfPlanesReverse in interface PaddleWheelhalfPlane - the HalfPLane at which iteration will begin
HalfPlanes in this
PaddleWheel starting from halfPlanepublic boolean containsHalfPlane(HalfPlane halfPlane)
HalfPlaneCollectiontrue if the specified HalfPlane is contained in this
collection, and false otherwise.
containsHalfPlane in interface HalfPlaneCollectionhalfPlane - the HalfPlane
true if contained, false otherwisepublic int countHalfPlanes()
HalfPlaneCollectionHalfPlanes contained in this HalfPlane collection.
countHalfPlanes in interface HalfPlaneCollectionpublic int getHalfPlaneIndex(HalfPlane halfPlane)
HalfPlaneCollectionAtom.
getHalfPlaneIndex in interface HalfPlaneCollectionhalfPlane - the halfPlane
halfPlanepublic HalfPlane getHalfPlane(int index)
HalfPlaneCollectionHalfPlane located at the specified zero-based index.
getHalfPlane in interface HalfPlaneCollectionindex - the index
HalfPlane at index, or null
if the index is invalidpublic HalfPlaneIterator iterateHalfPlanes()
HalfPlaneCollectionHalfPlanes in this collection.
iterateHalfPlanes in interface HalfPlaneCollectionHalfPlanes in this collectionpublic HalfPlane[] toHalfPlaneArray()
HalfPlaneCollection
toHalfPlaneArray in interface HalfPlaneCollection
|
The Octet Molecular Representation Framework v0.8.2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||