etomica.nbr
Class CriterionMolecularNonAdjacent

java.lang.Object
  extended by etomica.nbr.CriterionAdapter
      extended by etomica.nbr.CriterionMolecular
          extended by etomica.nbr.CriterionMolecularNonAdjacent
All Implemented Interfaces:
NeighborCriterion, Serializable

public final class CriterionMolecularNonAdjacent
extends CriterionMolecular

Pair criterion that judges whether two atoms are or are not in the same molecule, and whether or not they are separated by a minimum number of bonds.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class etomica.nbr.CriterionAdapter
subCriterion
 
Constructor Summary
CriterionMolecularNonAdjacent(NeighborCriterion criterion)
           
 
Method Summary
 boolean accept(IAtomList pair)
          Returns false if pair is/isn't in same molecule (depending on setting of intraMolecular); if matches this criterion, return value will be that given by any subCriterion.
 
Methods inherited from class etomica.nbr.CriterionMolecular
isIntraMolecular, setIntraMolecular
 
Methods inherited from class etomica.nbr.CriterionAdapter
getWrappedCriterion, needUpdate, reset, setBox, unsafe
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CriterionMolecularNonAdjacent

public CriterionMolecularNonAdjacent(NeighborCriterion criterion)
Method Detail

accept

public boolean accept(IAtomList pair)
Description copied from class: CriterionMolecular
Returns false if pair is/isn't in same molecule (depending on setting of intraMolecular); if matches this criterion, return value will be that given by any subCriterion.

Specified by:
accept in interface NeighborCriterion
Overrides:
accept in class CriterionMolecular