|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.fhg.igd.earth.observe.trace.Tracer
de.fhg.igd.earth.observe.trace.AgentGlobalTracer
This class is a special Tracer to observe mobile agents by using the atlas component of SeMoA Title : Earth Copyright : Copyright (c) 2001 Organisation : IGD FhG
| Field Summary | |
protected AtlasConnector |
acon_
a link to the SeMoA-Atlas |
protected byte[][] |
entries_
the agents entries list |
protected InfoCache |
infoCache_
storage for static implicit names |
| Fields inherited from class de.fhg.igd.earth.observe.trace.Tracer |
datapath_, enabled_, model_, traceList_, trigger_ |
| Constructor Summary | |
AgentGlobalTracer()
Creates a instance of this class and initializes the SeMoA-Atlas |
|
| Method Summary | |
void |
addAgent(byte[] implicitName)
This method is called by the AtlasConnector to add an agent into the tracer |
void |
addAgent(byte[] implicitName,
String nickname)
Is called to add an agent to the tracer |
void |
addAgentsAutomatically(boolean flag)
Sets flag addAgentsAutomatically_, which is used by AtlasConnector |
int |
createTraceList()
Creates the trace list. |
String |
getIdentName()
Returns the ident name of this tracer |
byte[][] |
getLSEntries()
Returns the list of implicit names |
void |
hideAtlasGUI()
Hides the Atlas GUI |
private void |
init()
Initializes the SeMoA-Atlas |
private void |
jump(HistoryGroup hg,
double lon,
double lat)
Creates a new agent body and moves it to the given position |
void |
setDatapath(String datapath)
sets the I/O datapath |
void |
showAtlasGUI()
Shows the Atlas GUI to select an agent |
void |
simulate(int cmd)
Simulates jumps of agents |
void |
stimulus(AtlasConnector acon)
This method is called from the AtlasConnector if an agent has moved |
void |
update()
Calles the trigger delay to update the viewer |
private boolean |
updateInfo(byte[] implicitName,
HistoryGroup hg)
Updates the info table in an history group with the given implicit name |
| Methods inherited from class de.fhg.igd.earth.observe.trace.Tracer |
addLogger, getLoggerList, getTraceList, setModel, setTrigger, start, stop, writeLog |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected byte[][] entries_
protected AtlasConnector acon_
protected InfoCache infoCache_
| Constructor Detail |
public AgentGlobalTracer()
| Method Detail |
private void init()
public void setDatapath(String datapath)
setDatapath in class Tracerdatapath - Stringpublic void stimulus(AtlasConnector acon)
stimulus in interface AtlasStimulatoracon - AtlasConnector
private boolean updateInfo(byte[] implicitName,
HistoryGroup hg)
private void jump(HistoryGroup hg,
double lon,
double lat)
public void addAgent(byte[] implicitName)
addAgent in interface AtlasStimulatorimplicitName -
public void addAgent(byte[] implicitName,
String nickname)
AtlasStimulator
addAgent in interface AtlasStimulatorpublic byte[][] getLSEntries()
public void showAtlasGUI()
public void hideAtlasGUI()
public String getIdentName()
getIdentName in class Tracerpublic int createTraceList()
createTraceList in class Tracerpublic void update()
update in class Tracerpublic void simulate(int cmd)
cmd - (0=Germany 1=World)public void addAgentsAutomatically(boolean flag)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||