Package jason.infra.jade
Class JasonBridgeArch
java.lang.Object
jason.architecture.AgArch
jason.infra.jade.JasonBridgeArch
- All Implemented Interfaces:
Serializable
,Comparable<AgArch>
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
act
(ActionExec action) Executes the action action and, when finished, adds it back in feedback actions.void
Broadcasts a Jason messageboolean
canSleep()
Returns true if the agent can enter in sleep mode.void
Reads the agent's mailbox and adds messages into the agent's circumstanceGets the agent's namereturn agent specific run time services (e.g.void
init
(AgentParameters ap) perceive()
Gets the agent's perception as a list of Literals.void
Sends a Jason messagevoid
stop()
A call-back method called by the infrastructure tier when the agent is about to be killed.protected Object
translateContentToJason
(jade.lang.acl.ACLMessage m) returns the content of the message m and implements some pro-processing of the content, if necessaryprotected Literal
translateDFSubscribeToJason
(jade.lang.acl.ACLMessage m) void
wake()
Puts the agent in sleep.Methods inherited from class jason.architecture.AgArch
actionExecuted, compareTo, createCustomArchs, equals, getAgArchClassesChain, getCycleNumber, getFirstAgArch, getNextAgArch, getStatus, getTS, hashCode, incCycleNumber, init, insertAgArch, isRunning, reasoningCycleFinished, reasoningCycleStarting, setCycleNumber, setTS, toString, wakeUpAct, wakeUpDeliberate, wakeUpSense
-
Constructor Details
-
JasonBridgeArch
-
-
Method Details
-
init
- Throws:
Exception
-
wake
public void wake()Description copied from class:AgArch
Puts the agent in sleep. -
stop
public void stop()Description copied from class:AgArch
A call-back method called by the infrastructure tier when the agent is about to be killed. -
getAgName
Description copied from class:AgArch
Gets the agent's name -
canSleep
public boolean canSleep()Description copied from class:AgArch
Returns true if the agent can enter in sleep mode. -
perceive
Description copied from class:AgArch
Gets the agent's perception as a list of Literals. The returned list will be modified by Jason. -
getJadeAg
-
sendMsg
Description copied from class:AgArch
Sends a Jason message -
broadcast
Description copied from class:AgArch
Broadcasts a Jason message -
checkMail
public void checkMail()Description copied from class:AgArch
Reads the agent's mailbox and adds messages into the agent's circumstance -
translateContentToJason
returns the content of the message m and implements some pro-processing of the content, if necessary -
translateDFSubscribeToJason
-
act
Description copied from class:AgArch
Executes the action action and, when finished, adds it back in feedback actions. -
getRuntimeServices
Description copied from class:AgArch
return agent specific run time services (e.g. jade agents implements its differently for each agent)- Overrides:
getRuntimeServices
in classAgArch
-