|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--EASE.Agents.Engine.AgentHolder
Inner Class Summary | |
(package private) class |
AgentHolder.SafeThreadGroup
|
Field Summary | |
private Controller |
controller
|
private Debugger |
debugger
|
java.util.Vector |
factories
|
AgentHolder.SafeThreadGroup |
factoryThreads
|
java.util.Hashtable |
generic
|
java.util.Vector |
instantiated
|
java.util.Vector |
savedAgents
|
private java.util.Hashtable |
savedToInst
|
private Engine |
sensing
|
Constructor Summary | |
(package private) |
AgentHolder()
|
Method Summary | |
void |
breakContracts(java.util.Vector contracts)
Given a list of contracts this sends a message to the associated agents to tell them to the contract is broken. |
private void |
combine(java.util.Hashtable params,
java.util.Vector instParams)
|
private GenericAgent |
createAgent(AgentSave as)
This is the function that creates a genericAgent (for use at runtime from an AgentSave (created by specification). |
InstantiatedAgent |
makeInstantiatedAgent(InstantiatedContract ic,
java.util.Hashtable params,
InstantiatedAgent parent)
Does the actual creation of the instantiated agent. |
void |
removeAgents(java.util.Vector agents)
Removes some group of agents from the list of instantiated agents |
void |
resumeFactories()
Resume all factories |
void |
setAgents(java.io.File inputFile)
Set everything up from a file created by agent spec. |
void |
startController(ActInterface actuators)
Start the agent controller |
void |
startSensing(Interface sensors)
Start the sensing. |
void |
stopController()
Stop the agent controller |
void |
suspendFactories()
Suspend all factories. |
Methods inherited from class java.lang.Object |
|
Field Detail |
public AgentHolder.SafeThreadGroup factoryThreads
public java.util.Vector instantiated
public java.util.Vector factories
public java.util.Hashtable generic
public java.util.Vector savedAgents
private java.util.Hashtable savedToInst
private Controller controller
private Engine sensing
private Debugger debugger
Constructor Detail |
AgentHolder()
Method Detail |
public void startController(ActInterface actuators)
public void stopController()
public void startSensing(Interface sensors)
public void suspendFactories()
public void resumeFactories()
public void setAgents(java.io.File inputFile)
Turn the agents from saved state to generic agents.
Stored in hashtable with AgentSave as their key.
Creates and starts the starting agents.
private GenericAgent createAgent(AgentSave as)
public InstantiatedAgent makeInstantiatedAgent(InstantiatedContract ic, java.util.Hashtable params, InstantiatedAgent parent)
private void combine(java.util.Hashtable params, java.util.Vector instParams)
public void removeAgents(java.util.Vector agents)
public void breakContracts(java.util.Vector contracts)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |