NeighborCriterionpublic class CriterionAll extends java.lang.Object implements NeighborCriterion
| Constructor | Description |
|---|---|
CriterionAll() |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
accept(IAtom atom1,
IAtom atom2) |
Always returns true, indicating that all atoms pairs are neighbors.
|
boolean |
needUpdate(IAtom atom) |
Always returns false, indicating that neighbor list never needs updating.
|
void |
reset(IAtom atom) |
Performs no action.
|
void |
setBox(Box box) |
Performs no action.
|
boolean |
unsafe() |
Always returns false, indicating that neighbor list never needs updating.
|
public boolean needUpdate(IAtom atom)
needUpdate in interface NeighborCriterionpublic void setBox(Box box)
setBox in interface NeighborCriterionpublic boolean unsafe()
unsafe in interface NeighborCriterionpublic void reset(IAtom atom)
reset in interface NeighborCriterionpublic boolean accept(IAtom atom1, IAtom atom2)
accept in interface NeighborCriterionatom1 - atom2 -