E
- atom agent classBoxAgentManager.BoxAgentSource<AtomLeafAgentManager<E>>
public class BoxAgentSourceAtomManager<E> extends java.lang.Object implements BoxAgentManager.BoxAgentSource<AtomLeafAgentManager<E>>
Modifier and Type | Field | Description |
---|---|---|
protected java.lang.Class |
atomAgentClass |
|
protected AtomLeafAgentManager.AgentSource<E> |
atomAgentSource |
Constructor | Description |
---|---|
BoxAgentSourceAtomManager(AtomLeafAgentManager.AgentSource<E> atomAgentSource,
java.lang.Class atomAgentClass) |
Modifier and Type | Method | Description |
---|---|---|
AtomLeafAgentManager<E> |
makeAgent(Box box) |
|
void |
releaseAgent(AtomLeafAgentManager<E> agent) |
Disconnects the given agent from its box and performs any actions needed to clean up
|
protected final AtomLeafAgentManager.AgentSource<E> atomAgentSource
protected final java.lang.Class atomAgentClass
public BoxAgentSourceAtomManager(AtomLeafAgentManager.AgentSource<E> atomAgentSource, java.lang.Class atomAgentClass)
atomAgentSource
- object that makes the atom agentsatomAgentClass
- Class specified by <E>public AtomLeafAgentManager<E> makeAgent(Box box)
makeAgent
in interface BoxAgentManager.BoxAgentSource<E>
box
- the Box for this agentpublic void releaseAgent(AtomLeafAgentManager<E> agent)
BoxAgentManager.BoxAgentSource
releaseAgent
in interface BoxAgentManager.BoxAgentSource<E>
agent
- the agent being released