|
||||||||||
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
Title : AmineJadeAgent class
Description : AmineJadeAgent is the class that corresponds to an agent that can benefit from both Amine and Jade platforms. As introduced in the MAS classes, to create an MAS, it is necessary to declare one or more agents that would constitute the MAS. AgentJadeAgent is one possible class to use to create an agent on your system. This type of agent is not benefiting from the Prolog engine. If you want to do so, use instead PPCGAmineJadeAgent class
Copyright : Copyright (c) Adil KABBAJ 2004-2009
Field Summary | |
java.lang.String |
agentID
Every agent has a specific ID |
BasicAmineAgentGuiFrame |
myGui
Every agent has a specific window that displays information about that agent |
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 | |
AmineJadeAgent()
|
Method Summary | |
void |
listen()
it allows the current agent to listen to its mailBox to check if it has received any message. |
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 goal. |
void |
send(AmineAgent receiver,
java.lang.String content)
it allows the current agent to send a message content to a receiver agent. |
void |
send(java.lang.String receiver,
java.lang.String content)
it allows the current agent to send a message content to a receiver agent. |
java.lang.Object |
sendAndWait(AmineAgent receiver,
java.lang.String content)
it allows the current agent to send a message content to a receiver agent and wait for the response. |
java.lang.Object |
sendAndWait(java.lang.String receiver,
java.lang.String content)
it allows the current agent to send a message content to a receiver agent and wait for the response. |
void |
setup()
This method is overwritten from the Jade platform. |
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 java.lang.String agentID
public BasicAmineAgentGuiFrame myGui
Constructor Detail |
public AmineJadeAgent()
Method Detail |
public void setup()
setup
in interface AmineAgent
public void satisfyGoal(java.lang.String goal)
satisfyGoal
in interface AmineAgent
goal
- A Stringpublic void send(AmineAgent receiver, java.lang.String content)
send
in interface AmineAgent
receiver
- An AmineJadeAgentcontent
- a String corresponding to the messagepublic void send(java.lang.String receiver, java.lang.String content)
send
in interface AmineAgent
receiver
- a String corresponding to the (System) local name of the agentcontent
- a String corresponding to the messagepublic java.lang.Object sendAndWait(AmineAgent receiver, java.lang.String content)
sendAndWait
in interface AmineAgent
receiver
- An AmineJadeAgentcontent
- a String corresponding to the messagepublic java.lang.Object sendAndWait(java.lang.String receiver, java.lang.String content)
sendAndWait
in interface AmineAgent
receiver
- a String corresponding to the (System) local name of the agentcontent
- a String corresponding to the messagepublic void listen()
listen
in interface AmineAgent
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |