AtomLeafAgentManager.AgentSource<AtomArrayList>
, IListener
public class AssociationManager extends java.lang.Object implements AtomLeafAgentManager.AgentSource<AtomArrayList>, IListener
If a MC simulation, this should be done before any MCMove classes are instantiated.
Also, register this as a listener to IntegratorMC:
integrator.addMCMoveListener(associationManager);
Constructor | Description |
---|---|
AssociationManager(Box box,
PotentialMasterCell potentialMaster,
AssociationDefinition definition) |
Modifier and Type | Method | Description |
---|---|---|
void |
actionPerformed(IEvent evt) |
|
IAtomList |
getAssociatedAtoms() |
|
IAtomList |
getAssociatedAtoms(IAtom atom) |
Returns the number of atoms on the list of associations of the given atom.
|
AssociationDefinition |
getAssociationDefinition() |
|
void |
initialize() |
|
AtomArrayList |
makeAgent(IAtom a,
Box agentBox) |
Returns an agent for the given Atom.
|
void |
releaseAgent(AtomArrayList agent,
IAtom atom,
Box agentBox) |
This informs the agent source that the agent is going away and that
the agent source should disconnect the agent from other elements.
|
public AssociationManager(Box box, PotentialMasterCell potentialMaster, AssociationDefinition definition)
public AssociationDefinition getAssociationDefinition()
public void initialize()
public IAtomList getAssociatedAtoms()
public void actionPerformed(IEvent evt)
actionPerformed
in interface IListener
public IAtomList getAssociatedAtoms(IAtom atom)
public AtomArrayList makeAgent(IAtom a, Box agentBox)
AtomLeafAgentManager.AgentSource
makeAgent
in interface AtomLeafAgentManager.AgentSource<AtomArrayList>
agentBox
- TODOpublic void releaseAgent(AtomArrayList agent, IAtom atom, Box agentBox)
AtomLeafAgentManager.AgentSource
releaseAgent
in interface AtomLeafAgentManager.AgentSource<AtomArrayList>