|
||||||||||
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.system.GroupObserver
public class GroupObserver
This is the third major version of the MessageTracer Agent. As it names implies, this tracer traces only messages of a given group.
Constructor Summary | |
---|---|
GroupObserver()
|
Method Summary | |
---|---|
void |
activate()
This method is initially called when the micro-kernel registers the agent. |
void |
enterGroup(java.lang.String group)
|
java.util.Vector |
getAgents(java.lang.String group)
|
protected java.util.Vector |
getAllGroups()
|
boolean |
getParseTime()
Get the value of parseTime. |
protected void |
handleMessage(KernelMessage m)
Handling kernel messages |
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 |
leaveGroups()
|
void |
live()
This method defines the main behavior for threaded agents. |
protected void |
requestDumpCommunities()
|
void |
setParseTime(boolean v)
Set the value of parseTime. |
protected java.lang.String |
showTime()
|
Methods inherited from class madkit.kernel.Agent |
---|
connectAgencyToAgency, createPlace, createPlace, enableMobility, enableMobility, exitImmediatlyOnKill, getAgencyNamed, joinPlace, joinPlace, joinPlace, pause, receiveMessage, run, waitNextMessage, waitNextMessage |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GroupObserver()
Method Detail |
---|
public boolean getParseTime()
public void setParseTime(boolean v)
v
- Value to assign to parseTime.public void initGUI()
AbstractAgent
initGUI
in class AbstractAgent
public void activate()
AbstractAgent
activate
in class AbstractAgent
public void enterGroup(java.lang.String group)
public void leaveGroups()
protected void requestDumpCommunities()
protected java.util.Vector getAllGroups()
public void live()
Agent
live
in class Agent
public java.util.Vector getAgents(java.lang.String group)
protected java.lang.String showTime()
protected void handleMessage(KernelMessage m)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |