|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectetomica.nbr.list.AtomNeighborLists
public class AtomNeighborLists
Class used to maintain neighbor lists. Holds lists of atoms that were elsewhere deemed to be neighbors of the another atom. A separate AtomArrayList is kept for each potential (potential => AtomArrayList mapping is the responsibility of the consumer).
| Field Summary | |
|---|---|
protected AtomArrayList[] |
downList
|
protected AtomArrayList[] |
upList
|
| Constructor Summary | |
|---|---|
AtomNeighborLists()
Constructs sequencer for the given atom. |
|
| Method Summary | |
|---|---|
void |
addDownNbr(IAtom a,
int index)
Adds the given atom as a "down" neighbor interacting via the potential with the given index. |
void |
addUpNbr(IAtom a,
int index)
Adds the given atom as a "down" neighbor interacting via the potential with the given index. |
void |
clearNbrs()
Clears neighbor lists, removing all listed neighbor atoms. |
IAtomList[] |
getDownList()
Returns an array of downlist-neighbor-atom lists. |
IAtomList[] |
getUpList()
Returns an array of uplist-neighbor-atom lists. |
protected void |
setCapacity(int newCapacity)
Sets the number of up and down lists maintained by this instance. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected AtomArrayList[] upList
protected AtomArrayList[] downList
| Constructor Detail |
|---|
public AtomNeighborLists()
| Method Detail |
|---|
public void addUpNbr(IAtom a,
int index)
a - the new downlist neighbor atomindex - the of the potential between the atoms
public void addDownNbr(IAtom a,
int index)
a - the new downlist neighbor atomindex - the of the potential between the atomspublic IAtomList[] getUpList()
public IAtomList[] getDownList()
protected void setCapacity(int newCapacity)
public void clearNbrs()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||