Package jason.infra.jade
Class JadeAgArch
java.lang.Object
jade.core.Agent
jason.infra.jade.JadeAg
jason.infra.jade.JadeAgArch
- All Implemented Interfaces:
jade.core.TimerListener
,jade.util.leap.Serializable
,java.io.Serializable
,java.lang.Runnable
public class JadeAgArch extends JadeAg
Implementation of the Jade Architecture to run Jason agents
- Author:
- Jomi
- See Also:
- Serialized Form
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) class
JadeAgArch.JasonTSReasoner
Nested classes/interfaces inherited from class jade.core.Agent
jade.core.Agent.Interrupted
-
Field Summary
Fields Modifier and Type Field Description private static boolean
cartagoStarted
(package private) jade.core.AID
controllerAID
static java.lang.String
dfName
name of the "jason agent" service in DFprotected JasonBridgeArch
jasonBridgeAgArch
private static long
serialVersionUID
private jade.lang.acl.MessageTemplate
tc
private jade.lang.acl.MessageTemplate
ts
(package private) jade.core.behaviours.Behaviour
tsBehaviour
Fields inherited from class jason.infra.jade.JadeAg
ASKALL, ASKHOW, conversationIds, logger, running, TELLHOW, UNACHIEVE, UNTELL, UNTELLHOW
Fields inherited from class jade.core.Agent
AP_ACTIVE, AP_DELETED, AP_IDLE, AP_INITIATED, AP_MAX, AP_MIN, AP_SUSPENDED, AP_WAITING, D_ACTIVE, D_MAX, D_MIN, D_RETIRED, D_SUSPENDED, D_UNKNOWN, MSG_QUEUE_CLASS
-
Constructor Summary
Constructors Constructor Description JadeAgArch()
-
Method Summary
Modifier and Type Method Description void
doDelete()
void
informCycleFinished(boolean breakpoint, int cycle)
Informs the infrastructure tier controller that the agent has finished its reasoning cycle (used in sync mode).static boolean
isCartagoJadeCase(MAS2JProject project)
protected AgentParameters
parseParameters()
(package private) boolean
processExecutionControlOntologyMsg()
private void
registerAgInDF()
protected void
setup()
static void
startCartagoNode(java.lang.String[] args)
protected void
takeDown()
(package private) void
wakeUp()
Methods inherited from class jason.infra.jade.JadeAg
aclPerformativeToKqml, addAllAgsAsReceivers, ask, broadcast, incReplyWithId, isRunning, jasonToACL, kqmlToACL, putConversationId, sendMsg
Methods inherited from class jade.core.Agent
addBehaviour, afterClone, afterMove, beforeClone, beforeMove, blockingReceive, blockingReceive, blockingReceive, blockingReceive, changeStateTo, clean, createMessageQueue, doActivate, doClone, doMove, doSuspend, doTimeOut, doWait, doWait, doWake, getAgentState, getAID, getAID, getAMS, getArguments, getBootProperties, getContainerController, getContentManager, getCurQueueSize, getDefaultDF, getHap, getHelper, getLocalName, getName, getO2AInterface, getO2AObject, getProperty, getQueueSize, getState, here, isRestarting, join, notifyChangeBehaviourState, notifyRestarted, postMessage, putBack, putO2AObject, receive, receive, registerO2AInterface, removeBehaviour, removeTimer, restartLater, restore, restoreBufferedState, run, send, setArguments, setEnabledO2ACommunication, setGenerateBehaviourEvents, setO2AManager, setQueueSize, waitUntilStarted, write
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
dfName
public static java.lang.String dfNamename of the "jason agent" service in DF -
serialVersionUID
private static final long serialVersionUID- See Also:
- Constant Field Values
-
jasonBridgeAgArch
-
controllerAID
jade.core.AID controllerAID -
tsBehaviour
jade.core.behaviours.Behaviour tsBehaviour -
cartagoStarted
private static boolean cartagoStarted -
ts
private jade.lang.acl.MessageTemplate ts -
tc
private jade.lang.acl.MessageTemplate tc
-
-
Constructor Details
-
JadeAgArch
public JadeAgArch()
-
-
Method Details
-
setup
protected void setup()- Overrides:
setup
in classjade.core.Agent
-
wakeUp
void wakeUp() -
parseParameters
protected AgentParameters parseParameters() throws jason.mas2j.parser.ParseException, java.lang.Exception- Throws:
jason.mas2j.parser.ParseException
java.lang.Exception
-
isCartagoJadeCase
-
startCartagoNode
public static void startCartagoNode(java.lang.String[] args) -
registerAgInDF
private void registerAgInDF() -
doDelete
public void doDelete() -
takeDown
protected void takeDown()- Overrides:
takeDown
in classjade.core.Agent
-
processExecutionControlOntologyMsg
boolean processExecutionControlOntologyMsg() -
informCycleFinished
public void informCycleFinished(boolean breakpoint, int cycle)Informs the infrastructure tier controller that the agent has finished its reasoning cycle (used in sync mode).breakpoint is true in case the agent selected one plan with the "breakpoint" annotation.
-