NeighborCriterion
public static class ColloidSim.CriterionNone extends java.lang.Object implements NeighborCriterion
Constructor | Description |
---|---|
CriterionNone() |
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.
|
public boolean unsafe()
NeighborCriterion
unsafe
in interface NeighborCriterion
public void setBox(Box box)
NeighborCriterion
setBox
in interface NeighborCriterion
public void reset(IAtom atom)
NeighborCriterion
reset
in interface NeighborCriterion
public boolean needUpdate(IAtom atom)
NeighborCriterion
needUpdate
in interface NeighborCriterion
public boolean accept(IAtom atom1, IAtom atom2)
accept
in interface NeighborCriterion