MoleculeAgentManager.MoleculeAgentSource
, NeighborCriterion
public class CriterionTether3 extends java.lang.Object implements NeighborCriterion, MoleculeAgentManager.MoleculeAgentSource
Modifier and Type | Field | Description |
---|---|---|
protected MoleculeAgentManager |
bondManager |
|
protected Box |
box |
|
protected int |
cursor |
|
protected IMoleculeList |
polymerList |
|
protected ISpecies |
polymerSpecies |
|
protected Simulation |
sim |
|
protected int |
surfaceCursor |
|
protected AtomType |
surfaceType |
|
protected IMolecule |
targetMolecule |
Constructor | Description |
---|---|
CriterionTether3(Simulation sim,
ISpecies polymerSpecies,
AtomType surfaceType) |
Modifier and Type | Method | Description |
---|---|---|
boolean |
accept(IAtom atom1,
IAtom atom2) |
|
java.lang.Object |
makeAgent(IMolecule a) |
Returns an agent for the given Atom.
|
boolean |
needUpdate(IAtom atom) |
Indicates whether the neighbor list for the given atom should
be updated, according to this criterion.
|
void |
releaseAgent(java.lang.Object agent,
IMolecule atom) |
This informs the agent source that the agent is going away and that
the agent source should disconnect the agent from other elements
|
void |
reset(IAtom atom) |
Indicates to 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 |
setBondedSurfaceAtoms(IMolecule polymerMolecule,
IAtomList surfaceAtoms) |
|
void |
setBox(Box newBox) |
Specifies the box where the criterion is being applied.
|
boolean |
unsafe() |
Indicates whether the atom has changed (e.g.
|
protected final Simulation sim
protected final ISpecies polymerSpecies
protected final AtomType surfaceType
protected Box box
protected IMoleculeList polymerList
protected MoleculeAgentManager bondManager
protected int cursor
protected int surfaceCursor
protected IMolecule targetMolecule
public CriterionTether3(Simulation sim, ISpecies polymerSpecies, AtomType surfaceType)
public void setBox(Box newBox)
NeighborCriterion
setBox
in interface NeighborCriterion
public void setBondedSurfaceAtoms(IMolecule polymerMolecule, IAtomList surfaceAtoms)
public boolean accept(IAtom atom1, IAtom atom2)
accept
in interface NeighborCriterion
public boolean needUpdate(IAtom atom)
NeighborCriterion
needUpdate
in interface NeighborCriterion
public void reset(IAtom atom)
NeighborCriterion
reset
in interface NeighborCriterion
public boolean unsafe()
NeighborCriterion
unsafe
in interface NeighborCriterion
public java.lang.Object makeAgent(IMolecule a)
MoleculeAgentManager.MoleculeAgentSource
makeAgent
in interface MoleculeAgentManager.MoleculeAgentSource
public void releaseAgent(java.lang.Object agent, IMolecule atom)
MoleculeAgentManager.MoleculeAgentSource
releaseAgent
in interface MoleculeAgentManager.MoleculeAgentSource