ColloidSim.CriterionNone, CriterionAdapter, CriterionAll, CriterionBondedSimple, CriterionInterMolecular, CriterionNone, CriterionPositionWall, CriterionSimple, CriterionTether3public interface NeighborCriterion
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
accept(IAtom atom1,
IAtom atom2) |
|
boolean |
needUpdate(IAtom atom) |
Indicates whether the neighbor list for the given atom should
be updated, according to this criterion.
|
void |
reset(IAtom atom) |
Indicates to criterion that given atom's neighbor list has just been
updated, and that properties (e.g., record of atom's position)
used by needUpdate and unsafe() methods should be reset.
|
void |
setBox(Box box) |
Specifies the box where the criterion is being applied.
|
boolean |
unsafe() |
Indicates whether the atom has changed (e.g.
|
boolean needUpdate(IAtom atom)
void setBox(Box box)
boolean unsafe()
void reset(IAtom atom)