|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RuntimeServicesInfraTier
This interface is implemented by the infrastructure tier (Saci/Centralised/...) to provide concrete runtime services.
Method Summary | |
---|---|
AgArch |
clone(Agent source,
java.lang.String archClassName,
java.lang.String agName)
Clones an agent |
boolean |
createAgent(java.lang.String agName,
java.lang.String agSource,
java.lang.String agClass,
java.lang.String archClass,
ClassParameters bbPars,
Settings stts)
Creates a new agent with agName from source agSource, using agClass as agent class (default value is jason.asSemantics.Agent), archClass as agent architecture class (default value is jason.architecture.AgArch), bbPars as the belief base class (default value is DefaultBeliefBase), and stts as Settings (default value is new Settings()). |
java.util.Set<java.lang.String> |
getAgentsNames()
Returns a set of all agents' name |
int |
getAgentsQty()
Gets the number of agents in the MAS. |
boolean |
killAgent(java.lang.String agName)
Kills the agent named agName. |
void |
stopMAS()
Stop all MAS (the agents, the environment, the controller, ...) |
Method Detail |
---|
boolean createAgent(java.lang.String agName, java.lang.String agSource, java.lang.String agClass, java.lang.String archClass, ClassParameters bbPars, Settings stts) throws java.lang.Exception
Example: createAgent("bob", "bob.asl", "mypkg.MyAgent", null, null, null);
java.lang.Exception
AgArch clone(Agent source, java.lang.String archClassName, java.lang.String agName) throws JasonException
source:
- the used as source of beliefs, plans, ...archClassName:
- the architecture that will be usedagName:
- the name of the clone
JasonException
boolean killAgent(java.lang.String agName)
java.util.Set<java.lang.String> getAgentsNames()
int getAgentsQty()
void stopMAS() throws java.lang.Exception
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |