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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidact(ActionExec action) Executes the action action and, when finished, adds it back in feedback actions.voidBroadcasts a Jason messagebooleancanSleep()Returns true if the agent can enter in sleep mode.voidReads the agent's mailbox and adds messages into the agent's circumstanceGets the agent's namereturn agent specific run time services (e.g.voidinit(AgentParameters ap) perceive()Gets the agent's perception as a list of Literals.voidSends a Jason messagevoidstop()A call-back method called by the infrastructure tier when the agent is about to be killed.protected ObjecttranslateContentToJason(jade.lang.acl.ACLMessage m) returns the content of the message m and implements some pro-processing of the content, if necessaryprotected LiteraltranslateDFSubscribeToJason(jade.lang.acl.ACLMessage m) voidwake()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:AgArchPuts the agent in sleep. -
stop
public void stop()Description copied from class:AgArchA call-back method called by the infrastructure tier when the agent is about to be killed. -
getAgName
Description copied from class:AgArchGets the agent's name -
canSleep
public boolean canSleep()Description copied from class:AgArchReturns true if the agent can enter in sleep mode. -
perceive
Description copied from class:AgArchGets the agent's perception as a list of Literals. The returned list will be modified by Jason. -
getJadeAg
-
sendMsg
Description copied from class:AgArchSends a Jason message -
broadcast
Description copied from class:AgArchBroadcasts a Jason message -
checkMail
public void checkMail()Description copied from class:AgArchReads 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:AgArchExecutes the action action and, when finished, adds it back in feedback actions. -
getRuntimeServices
Description copied from class:AgArchreturn agent specific run time services (e.g. jade agents implements its differently for each agent)- Overrides:
getRuntimeServicesin classAgArch
-