public class AtomNeighborLists
extends java.lang.Object
Modifier and Type | Field | Description |
---|---|---|
protected AtomArrayList[] |
downList |
|
protected AtomArrayList[] |
upList |
Constructor | Description |
---|---|
AtomNeighborLists() |
Constructs sequencer for the given atom.
|
Modifier and Type | Method | Description |
---|---|---|
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.
|
protected AtomArrayList[] upList
protected AtomArrayList[] downList
public AtomNeighborLists()
public void addUpNbr(IAtom a, int index)
a
- the new downlist neighbor atomindex
- the of the potential between the atomspublic 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()