|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjade.core.Agent
aminePlatform.agent.amineJade.AmineJadeAgent
aminePlatform.agent.amineJade.ppcgAgent.PPCGAmineJadeAgent
Title : PPCGAmineJadeAgent class
Description : PPCGAmineJadeAgent is a specialized class of the AmineJadeAgent class. As introduced in the MAS classes, to create an MAS, it is necessary to declare one or more agents that would constitute the MAS. PPCGAmineJadeAgent is one possible class to use to create an agent of the MAS system. This type of agent is specifically benefiting from the Prolog engine to satisfy goals.
Copyright : Copyright (c) Adil KABBAJ 2004-2009
| Field Summary | |
Interpreter |
myPPCGInterpreter
Every agent has a corresponding Prolog+CG interpreter. |
| Fields inherited from class aminePlatform.agent.amineJade.AmineJadeAgent |
agentID, myGui |
| Fields inherited from class jade.core.Agent |
AP_ACTIVE, AP_COPY, AP_DELETED, AP_IDLE, AP_INITIATED, AP_MAX, AP_MIN, AP_SUSPENDED, AP_TRANSIT, AP_WAITING, currentBehaviour, currentMessage, D_ACTIVE, D_MAX, D_MIN, D_RETIRED, D_SUSPENDED, D_UNKNOWN |
| Constructor Summary | |
PPCGAmineJadeAgent()
|
|
| Method Summary | |
Interpreter |
getmyPPCGInterpreter()
|
void |
listen()
Each agent has a msgBox.An agent is listening when he checks if he has received an ACL in his msgBox. |
static void |
print(java.lang.Object content,
java.lang.String agent)
|
void |
satisfyGoal(java.lang.String goal)
One of the main goals for using MAS is that agents have to act autonomously by satisfying their own goals. |
static void |
send(java.lang.String sender,
Individual receiver,
java.lang.String content)
This method is defined a static to let the programmer use it from the Prolog+CG environment. |
static void |
send(java.lang.String sender,
java.lang.String receiver,
java.lang.String content)
This method is defined a static to let the programmer use it from the Prolog+CG environment. |
static java.lang.Object |
sendAndWait(java.lang.String sender,
Individual receiver,
java.lang.String content)
This method is defined a static to let the programmer use it from the Prolog+CG environment. |
static java.lang.Object |
sendAndWait(java.lang.String sender,
java.lang.String receiver,
java.lang.String content)
This method is defined a static to let the programmer use it from the Prolog+CG environment. |
void |
setmyPPCGInterpreter(Interpreter interpreter)
|
void |
setup()
This method is overwritten from AmineJadeAgent class and from the Jade platform. |
| Methods inherited from class aminePlatform.agent.amineJade.AmineJadeAgent |
send, send, sendAndWait, sendAndWait |
| Methods inherited from class jade.core.Agent |
addBehaviour, afterClone, afterMove, beforeClone, beforeMove, blockingReceive, blockingReceive, blockingReceive, blockingReceive, doActivate, doClone, doDelete, doMove, doStart, doSuspend, doTimeOut, doWait, doWait, doWake, extractPassword, extractUsername, getAgentState, getAID, getAMS, getArguments, getAuthority, getCertificateFolder, getContainerController, getContentManager, getCurQueueSize, getDefaultDF, getHap, getHelper, getLocalName, getName, getO2AObject, getPrincipal, getProperty, getQueueSize, getState, here, notifyChangeBehaviourState, notifyRestarted, postMessage, putBack, putO2AObject, read, read, receive, receive, removeBehaviour, restartLater, restore, run, send, setArguments, setEnabledO2ACommunication, setGenerateBehaviourEvents, setOwnership, setPrincipal, setQueueSize, takeDown, waitUntilStarted, write |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public Interpreter myPPCGInterpreter
| Constructor Detail |
public PPCGAmineJadeAgent()
| Method Detail |
public void setup()
setup in interface AmineAgentsetup in class AmineJadeAgentpublic void satisfyGoal(java.lang.String goal)
satisfyGoal in interface AmineAgentsatisfyGoal in class AmineJadeAgentgoal - A String
public static void send(java.lang.String sender,
java.lang.String receiver,
java.lang.String content)
sender - a String corresponding to the sender agentreceiver - a String corresponding to the receiver agentcontent - a String corresponding to the message
public static void send(java.lang.String sender,
Individual receiver,
java.lang.String content)
sender - a String corresponding to the sender agentreceiver - an Individual corresponding to the receiver agentcontent - a String corresponding to the message
public static java.lang.Object sendAndWait(java.lang.String sender,
java.lang.String receiver,
java.lang.String content)
sender - a String corresponding to the sender agentreceiver - a String corresponding to the receiver agentcontent - a String corresponding to the message
public static java.lang.Object sendAndWait(java.lang.String sender,
Individual receiver,
java.lang.String content)
sender - a String corresponding to the sender agentreceiver - an Individual corresponding to the receiver agentcontent - a String corresponding to the messagepublic void listen()
listen in interface AmineAgentlisten in class AmineJadeAgent
public static void print(java.lang.Object content,
java.lang.String agent)
public Interpreter getmyPPCGInterpreter()
public void setmyPPCGInterpreter(Interpreter interpreter)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||