NeighborCriterion
public 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 NeighborCriterion
public void setBox(Box box)
setBox
in interface NeighborCriterion
public boolean unsafe()
unsafe
in interface NeighborCriterion
public void reset(IAtom atom)
reset
in interface NeighborCriterion
public boolean accept(IAtom atom1, IAtom atom2)
accept
in interface NeighborCriterion
atom1
- atom2
-