|
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.BasicConfiguration
A default implementation of the Configuration interface.
| Constructor Summary | |
BasicConfiguration(PaddleWheelCollection wheels)
Constructs a BasicConfiguration from the contents of wheels. |
|
| Method Summary | |
boolean |
containsPaddleWheel(Atom source,
Atom target)
Returns true if a PaddleWheel can be found containing
an axis with source as its source and target
as its target. |
boolean |
containsPaddleWheel(PaddleWheel paddleWheel)
Returns true if the specified PaddleWheel is contained in this
collection, and false otherwise. |
int |
countPaddleWheels()
Returns the number of PaddleWheels contained in this collection. |
static Configuration |
getNullInstance()
Returns a singleton Configuration instance that contains no
PaddleWheels. |
PaddleWheel |
getPaddleWheel(Atom neighbor)
Returns the PaddleWheel directed at neighbor. |
PaddleWheel |
getPaddleWheel(Atom source,
Atom target)
Returns the PaddleWheel containing an axis that consists of
source and target. |
PaddleWheel |
getPaddleWheel(int index)
Returns the PaddleWheel located at the specified zero-based index. |
int |
getPaddleWheelIndex(PaddleWheel paddleWheel)
Returns the zero-based index of the specified PaddleWheel. |
PaddleWheelIterator |
iteratePaddleWheels()
Returns an iterator over all PaddleWheels in this collection. |
PaddleWheel[] |
toPaddleWheelArray()
Returns a copy of the PaddleWheels 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 BasicConfiguration(PaddleWheelCollection wheels)
BasicConfiguration from the contents of wheels.
IllegalRepresentationException - if a valid Configuration can not
be constructed from wheels| Method Detail |
public PaddleWheel getPaddleWheel(Atom neighbor)
ConfigurationPaddleWheel directed at neighbor.
getPaddleWheel in interface Configurationneighbor - the Atom to which the returned PaddleWheel is
directed
public boolean containsPaddleWheel(PaddleWheel paddleWheel)
PaddleWheelCollectiontrue if the specified PaddleWheel is contained in this
collection, and false otherwise.
containsPaddleWheel in interface PaddleWheelCollectionpaddleWheel - the PaddleWheel
true if contained, false otherwisepublic int countPaddleWheels()
PaddleWheelCollectionPaddleWheels contained in this collection.
countPaddleWheels in interface PaddleWheelCollectionpublic int getPaddleWheelIndex(PaddleWheel paddleWheel)
PaddleWheelCollectionPaddleWheel.
getPaddleWheelIndex in interface PaddleWheelCollectionpaddleWheel - the PaddleWheel
paddleWheelpublic PaddleWheel getPaddleWheel(int index)
PaddleWheelCollectionPaddleWheel located at the specified zero-based index.
getPaddleWheel in interface PaddleWheelCollectionindex - the index
PaddleWheel at index, or null
if the index is invalid
public boolean containsPaddleWheel(Atom source,
Atom target)
PaddleWheelCollectiontrue if a PaddleWheel can be found containing
an axis with source as its source and target
as its target.
containsPaddleWheel in interface PaddleWheelCollectionsource - the source Atom of the axistarget - the target Atom of the axis
public PaddleWheel getPaddleWheel(Atom source,
Atom target)
PaddleWheelCollectionPaddleWheel containing an axis that consists of
source and target.
getPaddleWheel in interface PaddleWheelCollectionsource - the source Atomtarget - the target Atom
PaddleWheel accociated with the GammaSequence
having source and target as endpointspublic PaddleWheelIterator iteratePaddleWheels()
PaddleWheelCollectionPaddleWheels in this collection.
iteratePaddleWheels in interface PaddleWheelCollectionPaddleWheels in this collectionpublic PaddleWheel[] toPaddleWheelArray()
PaddleWheelCollection
toPaddleWheelArray in interface PaddleWheelCollectionpublic static Configuration getNullInstance()
Configuration instance that contains no
PaddleWheels. Because it has no state, this instance can be
shared in representations that have no atomic Configuration
as part of the "Null Object" and "Flyweight" patterns.
Configuration instance that contains no
PaddleWheels
|
The Octet Molecular Representation Framework v0.8.2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||