public interface AgArchInfraTier
Modifier and Type | Method and Description |
---|---|
void |
act(ActionExec action,
java.util.List<ActionExec> feedback)
Executes the action action and, when finished, add it back in feedback actions.
|
void |
broadcast(Message m)
Broadcasts a Jason message in a specific infrastructure
|
boolean |
canSleep()
Returns true whether the agent can sleep according to the arch
|
void |
checkMail()
Reads the agent's mailbox and adds messages into the agent's circumstance
|
java.lang.String |
getAgName()
Gets the agent's name
|
RuntimeServicesInfraTier |
getRuntimeServices()
Gets an object with infrastructure runtime services
|
boolean |
isRunning()
Checks whether the agent is running (alive)
|
java.util.List<Literal> |
perceive()
Gets the agent's perception as a list of Literals
|
void |
sendMsg(Message m)
Sends a Jason message in a specific infrastructure
|
void |
sleep()
Put the agent in "sleep" mode
|
void |
wake()
Removes the agent from the "sleep" mode
|
java.util.List<Literal> perceive()
void checkMail()
void act(ActionExec action, java.util.List<ActionExec> feedback)
boolean canSleep()
java.lang.String getAgName()
void sendMsg(Message m) throws java.lang.Exception
java.lang.Exception
void broadcast(Message m) throws java.lang.Exception
java.lang.Exception
boolean isRunning()
void sleep()
void wake()
RuntimeServicesInfraTier getRuntimeServices()