java.io.Serializable
public class MoleculeNeighborLists
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field | Description |
---|---|---|
protected MoleculeArrayList[] |
downList |
|
protected MoleculeArrayList[] |
upList |
Constructor | Description |
---|---|
MoleculeNeighborLists() |
Constructs sequencer for the given molecule.
|
Modifier and Type | Method | Description |
---|---|---|
void |
addDownNbr(IMolecule a,
int index) |
Adds the given atom as a "down" neighbor interacting via the potential
with the given index.
|
void |
addUpNbr(IMolecule 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 molecules.
|
IMoleculeList[] |
getDownList() |
Returns an array of downlist-neighbor-molecule lists.
|
IMoleculeList[] |
getUpList() |
Returns an array of uplist-neighbor-molecule lists.
|
protected void |
setCapacity(int newCapacity) |
Sets the number of up and down lists maintained by this instance.
|
protected MoleculeArrayList[] upList
protected MoleculeArrayList[] downList
public MoleculeNeighborLists()
public void addUpNbr(IMolecule a, int index)
a
- the new downlist neighbor moleculeindex
- the of the potential between the moleculespublic void addDownNbr(IMolecule a, int index)
a
- the new downlist neighbor moleculeindex
- the of the potential between the moleculespublic IMoleculeList[] getUpList()
public IMoleculeList[] getDownList()
protected void setCapacity(int newCapacity)
public void clearNbrs()