|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectetomica.nbr.site.Api1ASite
public class Api1ASite
Iteration is performed using site lists. Direction is related to ordering of sites.
| Field Summary | |
|---|---|
protected boolean[] |
periodicity
|
| Constructor Summary | |
|---|---|
Api1ASite(int D,
BoxAgentManager agentManager)
Constructor makes iterator that must have box specified and then be reset() before iteration. |
|
| Method Summary | |
|---|---|
int |
nBody()
Returns 2, indicating that this is a pair iterator. |
IAtomList |
next()
Returns the next AtomSet iterate, or null if hasNext() is false. |
void |
reset()
Resets the iterator to loop through its iterates again. |
void |
setBox(IBox box)
Sets the Box to pull iterates from |
void |
setDirection(IteratorDirective.Direction direction)
Indicates allowed direction for iteration, relative to specified target atom. |
void |
setTarget(IAtom newTargetAtom)
Sets the target molecule with which all pairs are formed. |
int |
size()
Returns the number of atom pairs the iterator will return if reset and iterated in its present state. |
void |
unset()
Puts iterator in a state in which hasNext() returns false. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final boolean[] periodicity
| Constructor Detail |
|---|
public Api1ASite(int D,
BoxAgentManager agentManager)
D - the dimension of the space of the simulation (used to construct cell iterators)species - length = 2 array with the (different) species whose molecules are interacting| Method Detail |
|---|
public void setBox(IBox box)
AtomsetIteratorBoxDependent
setBox in interface AtomsetIteratorBoxDependentpublic int size()
size in interface AtomsetIteratorpublic IAtomList next()
AtomLeafsetIterator
next in interface AtomLeafsetIteratorpublic void unset()
AtomsetIterator
unset in interface AtomsetIteratorpublic int nBody()
nBody in interface AtomsetIteratorpublic void reset()
AtomsetIterator
reset in interface AtomsetIteratorpublic void setDirection(IteratorDirective.Direction direction)
setDirection in interface AtomsetIteratorDirectablepublic void setTarget(IAtom newTargetAtom)
setTarget in interface AtomsetIteratorTargetable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||