NeighborCriterionMolecular
public class CriterionSpeciesPair extends CriterionAdapterMolecular
subCriterion
Constructor | Description |
---|---|
CriterionSpeciesPair(NeighborCriterionMolecular criterion,
ISpecies species0,
ISpecies species1) |
Modifier and Type | Method | Description |
---|---|---|
boolean |
accept(IMoleculeList pair) |
Returns true if the Species for the pair of molecules match the Species
given at construction (without regard to the order of the pair), and if
the wrapped criterion also accepts the pair.
|
ISpecies[] |
getSpecies() |
Returns the Species accepted by this NeighborCriterionMolecular
|
getWrappedCriterion, needUpdate, reset, setBox, unsafe
public CriterionSpeciesPair(NeighborCriterionMolecular criterion, ISpecies species0, ISpecies species1)
public boolean accept(IMoleculeList pair)
accept
in interface NeighborCriterionMolecular
accept
in class CriterionAdapterMolecular
public ISpecies[] getSpecies()