MoleculeAgentManager.MoleculeAgentSource
, IListener
public class AssociationManagerMolecule extends java.lang.Object implements MoleculeAgentManager.MoleculeAgentSource, IListener
Constructor | Description |
---|---|
AssociationManagerMolecule(Simulation sim,
Box box,
BoxAgentManager<NeighborCellManagerMolecular> cellAgentManager,
AssociationDefinitionMolecule definition,
double range) |
Modifier and Type | Method | Description |
---|---|---|
void |
actionPerformed(IEvent evt) |
|
IMoleculeList |
getAssociatedMolecules() |
|
IMoleculeList |
getAssociatedMolecules(IMolecule molecule) |
Returns the number of atoms on the list of associations of the given atom.
|
AssociationDefinitionMolecule |
getAssociationDefinition() |
|
void |
initialize() |
|
java.lang.Object |
makeAgent(IMolecule a) |
Returns an agent for the given Atom.
|
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
|
public AssociationManagerMolecule(Simulation sim, Box box, BoxAgentManager<NeighborCellManagerMolecular> cellAgentManager, AssociationDefinitionMolecule definition, double range)
public AssociationDefinitionMolecule getAssociationDefinition()
public void initialize()
public IMoleculeList getAssociatedMolecules()
public void actionPerformed(IEvent evt)
actionPerformed
in interface IListener
public IMoleculeList getAssociatedMolecules(IMolecule molecule)
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