NeighborCriterionMolecular
public class CriterionSpecies extends CriterionAdapterMolecular
subCriterion
Constructor | Description |
---|---|
CriterionSpecies(NeighborCriterionMolecular criterion,
ISpecies species) |
Modifier and Type | Method | Description |
---|---|---|
boolean |
accept(IMoleculeList molecule) |
Returns true if the species of the molecule matches the Species given at
construction and if the wrapped criterion accept also returns true.
|
ISpecies |
getSpecies() |
Returns the Species accepted by this criterion.
|
getWrappedCriterion, needUpdate, reset, setBox, unsafe
public CriterionSpecies(NeighborCriterionMolecular criterion, ISpecies species)
public boolean accept(IMoleculeList molecule)
accept
in interface NeighborCriterionMolecular
accept
in class CriterionAdapterMolecular
public ISpecies getSpecies()