MoleculeAgentManager.MoleculeAgentSource, NeighborCriterionpublic 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)
NeighborCriterionsetBox in interface NeighborCriterionpublic void setBondedSurfaceAtoms(IMolecule polymerMolecule, IAtomList surfaceAtoms)
public boolean accept(IAtom atom1, IAtom atom2)
accept in interface NeighborCriterionpublic boolean needUpdate(IAtom atom)
NeighborCriterionneedUpdate in interface NeighborCriterionpublic void reset(IAtom atom)
NeighborCriterionreset in interface NeighborCriterionpublic boolean unsafe()
NeighborCriterionunsafe in interface NeighborCriterionpublic java.lang.Object makeAgent(IMolecule a)
MoleculeAgentManager.MoleculeAgentSourcemakeAgent in interface MoleculeAgentManager.MoleculeAgentSourcepublic void releaseAgent(java.lang.Object agent,
IMolecule atom)
MoleculeAgentManager.MoleculeAgentSourcereleaseAgent in interface MoleculeAgentManager.MoleculeAgentSource