NeighborCriterion
public class CriterionInterMolecular extends CriterionAdapter
subCriterion
Constructor | Description |
---|---|
CriterionInterMolecular(NeighborCriterion criterion) |
Constructs criterion in default state such that intramolecular pairs are rejected,
and intermolecular pairs are accepted.
|
Modifier and Type | Method | Description |
---|---|---|
boolean |
accept(IAtom atom1,
IAtom atom2) |
Implementation of this method should introduce new criterion and return
true if pair meets this criterion and that of the wrapped
NeighborCriterion.
|
NeighborCriterion |
getIntraMolecularCriterion() |
Returns the intramolecular criterion, or null if none is in use.
|
void |
setIntraMolecularCriterion(NeighborCriterion criterion) |
Configures to use the given criterion for intramolecular pairs.
|
void |
setIntraMolecularOnly(boolean intraMolecularOnly) |
getWrappedCriterion, needUpdate, reset, setBox, unsafe
public CriterionInterMolecular(NeighborCriterion criterion)
public void setIntraMolecularCriterion(NeighborCriterion criterion)
public void setIntraMolecularOnly(boolean intraMolecularOnly)
public NeighborCriterion getIntraMolecularCriterion()
public boolean accept(IAtom atom1, IAtom atom2)
CriterionAdapter
accept
in interface NeighborCriterion
accept
in class CriterionAdapter