Package jason.infra.jade
Class JadeAg
java.lang.Object
jade.core.Agent
jason.infra.jade.JadeAg
- All Implemented Interfaces:
jade.core.TimerListener
,jade.util.leap.Serializable
,Serializable
,Runnable
- Direct Known Subclasses:
JadeAgArch
,JadeEnvironment
,JadeExecutionControl
public abstract class JadeAg
extends jade.core.Agent
Implementation of a basic jade agent for jason agents
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class jade.core.Agent
jade.core.Agent.Interrupted
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
protected Logger
protected boolean
static final int
static final int
static final int
static final int
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
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
aclPerformativeToKqml
(jade.lang.acl.ACLMessage m) void
addAllAgsAsReceivers
(jade.lang.acl.ACLMessage m) protected jade.lang.acl.ACLMessage
ask
(jade.lang.acl.ACLMessage m) void
void
doDelete()
int
boolean
protected jade.lang.acl.ACLMessage
static jade.lang.acl.ACLMessage
void
putConversationId
(String replyWith, String mId) void
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, setup, takeDown, waitUntilStarted, write
-
Field Details
-
UNTELL
public static final int UNTELL- See Also:
-
ASKALL
public static final int ASKALL- See Also:
-
UNACHIEVE
public static final int UNACHIEVE- See Also:
-
TELLHOW
public static final int TELLHOW- See Also:
-
UNTELLHOW
public static final int UNTELLHOW- See Also:
-
ASKHOW
public static final int ASKHOW- See Also:
-
logger
-
running
protected boolean running -
conversationIds
-
-
Constructor Details
-
JadeAg
public JadeAg()
-
-
Method Details
-
doDelete
public void doDelete()- Overrides:
doDelete
in classjade.core.Agent
-
isRunning
public boolean isRunning() -
incReplyWithId
public int incReplyWithId() -
sendMsg
- Throws:
Exception
-
broadcast
-
putConversationId
-
ask
protected jade.lang.acl.ACLMessage ask(jade.lang.acl.ACLMessage m) -
addAllAgsAsReceivers
- Throws:
Exception
-
jasonToACL
- Throws:
IOException
-
kqmlToACL
-
aclPerformativeToKqml
-