|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmadkit.kernel.AbstractAgent
madkit.kernel.Agent
madkit.utils.agents.AbstractEditorAgent
madkit.jess.EditJessAgent
public class EditJessAgent
Field Summary |
---|
Fields inherited from class madkit.utils.agents.AbstractEditorAgent |
---|
display |
Constructor Summary | |
---|---|
EditJessAgent()
|
|
EditJessAgent(java.lang.String f)
|
Method Summary | |
---|---|
void |
activate()
This method is initially called when the micro-kernel registers the agent. |
void |
initGUI()
This method is called by the specific external graphic system (as the G-Box) to ask the agent to prepare a graphical interface. |
void |
println(java.lang.String s)
Prints text information in an environment-independent way (GUI, console, ...) |
Methods inherited from class madkit.utils.agents.AbstractEditorAgent |
---|
getRecipient, setRecipient |
Methods inherited from class madkit.kernel.Agent |
---|
connectAgencyToAgency, createPlace, createPlace, enableMobility, enableMobility, exitImmediatlyOnKill, getAgencyNamed, joinPlace, joinPlace, joinPlace, live, pause, receiveMessage, run, waitNextMessage, waitNextMessage |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public EditJessAgent()
public EditJessAgent(java.lang.String f)
Method Detail |
---|
public void initGUI()
AbstractAgent
initGUI
in class AbstractAgent
public void println(java.lang.String s)
AbstractAgent
println
in class AbstractEditorAgent
s
- the stringpublic void activate()
AbstractAgent
Here is a typical example (taken from the PingPong
agent of MadKit (plugin demos)) :
public void activate() { try { createGroup(true,"ping-pong",null,null); println ("No ping-pong group : I created one"); creator=true; } catch (OrganizationRequestException e) { // the group already exists creator=false; println ("A ping-pong group already exists : I will join"); } requestRole("ping-pong","player",null); }
activate
in class AbstractAgent
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |