NeighborCriterionMolecular
, java.io.Serializable
CriterionSpecies
, CriterionSpeciesPair
public abstract class CriterionAdapterMolecular extends java.lang.Object implements NeighborCriterionMolecular, java.io.Serializable
Modifier and Type | Field | Description |
---|---|---|
protected NeighborCriterionMolecular |
subCriterion |
Constructor | Description |
---|---|
CriterionAdapterMolecular(NeighborCriterionMolecular criterion) |
Constructs criterion that wraps the given criterion.
|
Modifier and Type | Method | Description |
---|---|---|
abstract boolean |
accept(IMoleculeList pair) |
Implementation of this method should introduce new criterion and return
true if pair meets this criterion and that of the wrapped
NeighborCriterion.
|
NeighborCriterionMolecular |
getWrappedCriterion() |
Returns the criterion wrapped by this adapter
|
boolean |
needUpdate(IMolecule molecule) |
Indicates whether the neighbor list for the given atom should be updated,
according to the wrapped criterion.
|
void |
reset(IMolecule molecule) |
Indicates to wrapped 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 to the wrapped criterion the box where the criterion is being
applied.
|
boolean |
unsafe() |
Indicates whether the atom has changed (e.g.
|
protected final NeighborCriterionMolecular subCriterion
public CriterionAdapterMolecular(NeighborCriterionMolecular criterion)
criterion
- public final NeighborCriterionMolecular getWrappedCriterion()
public abstract boolean accept(IMoleculeList pair)
accept
in interface NeighborCriterionMolecular
public boolean needUpdate(IMolecule molecule)
needUpdate
in interface NeighborCriterionMolecular
public void setBox(Box box)
setBox
in interface NeighborCriterionMolecular
public boolean unsafe()
unsafe
in interface NeighborCriterionMolecular
public void reset(IMolecule molecule)
reset
in interface NeighborCriterionMolecular