|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object saci.Agent jason.infra.saci.SaciEnvironment
public class SaciEnvironment
This class implements the saci version of the environment infrastructure tier.
The Environment is implemented as an agent in a second saci society normally called <MASID>-env. The ordinary agents enter in two societies: the "normal" (used for inter-agent communication, and the environment society (used to get perception). The environment agent enter only in the second.
Field Summary |
---|
Fields inherited from class saci.Agent |
---|
controlAg, mbox, mboxes, properties, running |
Constructor Summary | |
---|---|
SaciEnvironment()
|
Method Summary | |
---|---|
void |
actionExecuted(java.lang.String agName,
Structure actTerm,
boolean success,
java.lang.Object infraData)
called by the user implementation of the environment when the action was executed |
RuntimeServicesInfraTier |
getRuntimeServices()
Gets an object with infrastructure runtime services |
void |
informAgsEnvironmentChanged(java.util.Collection agentsToNotify)
Sends a message to a set of agents notifying them that the environment has changed. |
void |
informAgsEnvironmentChanged(java.lang.String... agents)
Sends a message to the given agents notifying them that the environment has changed (called by the user environment). |
void |
initAg(java.lang.String[] args)
|
void |
stopAg()
|
Methods inherited from class saci.Agent |
---|
destroy, enterSoc, enterSoc, enterSoc, enterSociety, getControlAg, getLauncher, getMBox, getMBox, getName, getProperty, getSociety, isRunning, leaveAllSocs, leaveSoc, leaveSoc, move, moveMBoxesToLocalHost, onMoved, onMoving, run, setControlAg, setProperty, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface jason.environment.EnvironmentInfraTier |
---|
isRunning |
Constructor Detail |
---|
public SaciEnvironment()
Method Detail |
---|
public void informAgsEnvironmentChanged(java.lang.String... agents)
EnvironmentInfraTier
informAgsEnvironmentChanged
in interface EnvironmentInfraTier
public void informAgsEnvironmentChanged(java.util.Collection agentsToNotify)
EnvironmentInfraTier
informAgsEnvironmentChanged
in interface EnvironmentInfraTier
public void initAg(java.lang.String[] args) throws JasonException
initAg
in interface saci.launcher.LaunchableAg
initAg
in class saci.Agent
JasonException
public void actionExecuted(java.lang.String agName, Structure actTerm, boolean success, java.lang.Object infraData)
EnvironmentInfraTier
actionExecuted
in interface EnvironmentInfraTier
public void stopAg()
stopAg
in interface saci.launcher.LaunchableAg
stopAg
in class saci.Agent
public RuntimeServicesInfraTier getRuntimeServices()
EnvironmentInfraTier
getRuntimeServices
in interface EnvironmentInfraTier
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |