IAction
, AtomLeafAgentManager.AgentSource<HSNPT.MyAgent>
public static class HSNPT.ActionSummer extends java.lang.Object implements IAction, AtomLeafAgentManager.AgentSource<HSNPT.MyAgent>
Modifier and Type | Field | Description |
---|---|---|
protected AtomLeafAgentManager<HSNPT.MyAgent> |
agentManager |
|
protected int |
count |
|
protected Space |
space |
|
protected Vector |
v |
Constructor | Description |
---|---|
ActionSummer(Box box,
Space space) |
Modifier and Type | Method | Description |
---|---|---|
void |
actionPerformed() |
Completes the action defined by the class implementing this interface.
|
AtomLeafAgentManager<HSNPT.MyAgent> |
getAgentManager() |
|
int |
getCount() |
|
HSNPT.MyAgent |
makeAgent(IAtom a,
Box agentBox) |
Returns an agent for the given Atom.
|
void |
releaseAgent(HSNPT.MyAgent 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.
|
void |
reset() |
protected final AtomLeafAgentManager<HSNPT.MyAgent> agentManager
protected final Vector v
protected final Space space
protected int count
public AtomLeafAgentManager<HSNPT.MyAgent> getAgentManager()
public void actionPerformed()
IAction
actionPerformed
in interface IAction
public int getCount()
public void reset()
public HSNPT.MyAgent makeAgent(IAtom a, Box agentBox)
AtomLeafAgentManager.AgentSource
makeAgent
in interface AtomLeafAgentManager.AgentSource<HSNPT.MyAgent>
agentBox
- TODOpublic void releaseAgent(HSNPT.MyAgent agent, IAtom atom, Box agentBox)
AtomLeafAgentManager.AgentSource
releaseAgent
in interface AtomLeafAgentManager.AgentSource<HSNPT.MyAgent>