public interface RuntimeServicesInfraTier
Modifier and Type | Method and Description |
---|---|
AgArch |
clone(Agent source,
java.util.List<java.lang.String> archClasses,
java.lang.String agName)
Clones an agent
|
java.lang.String |
createAgent(java.lang.String agName,
java.lang.String agSource,
java.lang.String agClass,
java.util.List<java.lang.String> archClasses,
ClassParameters bbPars,
Settings stts,
Agent father)
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"), stts as
Settings (default value is new Settings()), and
father is the agent creating this agent (null is none).
|
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,
java.lang.String byAg)
Kills the agent named agName as a requested by byAg.
|
void |
startAgent(java.lang.String agName)
start (e.g.
|
void |
stopMAS()
Stop all MAS (the agents, the environment, the controller, ...)
|
java.lang.String createAgent(java.lang.String agName, java.lang.String agSource, java.lang.String agClass, java.util.List<java.lang.String> archClasses, ClassParameters bbPars, Settings stts, Agent father) throws java.lang.Exception
Example: createAgent("bob", "bob.asl", "mypkg.MyAgent", null, null, null); Returns the name of the agent
java.lang.Exception
void startAgent(java.lang.String agName)
AgArch clone(Agent source, java.util.List<java.lang.String> archClasses, 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 cloneJasonException
boolean killAgent(java.lang.String agName, java.lang.String byAg)
java.util.Set<java.lang.String> getAgentsNames()
int getAgentsQty()
void stopMAS() throws java.lang.Exception
java.lang.Exception