de.fhg.igd.earth.observe.trace
Class Tracer

java.lang.Object
  extended byde.fhg.igd.earth.observe.trace.Tracer
Direct Known Subclasses:
AgentGlobalTracer, AgentLocalTracer, AgentNetworkTracer

public abstract class Tracer
extends Object

This class is used by the AgentLoader to show a dialog to enter the nickname of the agent. Title : Earth Copyright : Copyright (c) 2001 Organisation : IGD FhG

Version:
: 1.0
Author:
: Werner Beutel

Field Summary
protected  String datapath_
          datapath for I/O (Logger)
protected  boolean enabled_
          tracer status
private  Vector loggerList_
          list of all loggers
protected  ModelGraph model_
          The ModelGraph object (root)
protected  Vector traceList_
          A list of all traceable history groups
protected  TriggerDelay trigger_
          the trigger delay object
 
Constructor Summary
Tracer()
          Creates an instance of this class.
 
Method Summary
 void addLogger(Logger logger)
          adds a logger to the logger list
abstract  int createTraceList()
          Creates the trace list.
abstract  String getIdentName()
          Returns the ident name
 Vector getLoggerList()
          Returns the list of all loggers
 Vector getTraceList()
          Returns the trace list.
 void setDatapath(String datapath)
          sets the datapath
 void setModel(ModelGraph model)
          sets the model graph
 void setTrigger(TriggerDelay trigger)
          sets the trigger delay object
 void start()
          starts the tracer
 void stop()
          stops the tracer
abstract  void update()
          Calles the trigger delay to update the viewer
protected  void writeLog(String text)
          Sends a string to the logger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

model_

protected ModelGraph model_
The ModelGraph object (root)


traceList_

protected Vector traceList_
A list of all traceable history groups


enabled_

protected boolean enabled_
tracer status


loggerList_

private Vector loggerList_
list of all loggers


trigger_

protected TriggerDelay trigger_
the trigger delay object


datapath_

protected String datapath_
datapath for I/O (Logger)

Constructor Detail

Tracer

public Tracer()
Creates an instance of this class.

Method Detail

setDatapath

public void setDatapath(String datapath)
sets the datapath

Parameters:
datapath - String

getIdentName

public abstract String getIdentName()
Returns the ident name

Returns:
ident name String

setModel

public void setModel(ModelGraph model)
sets the model graph


getTraceList

public Vector getTraceList()
Returns the trace list. List of all traceable history groups

Returns:
traceList

setTrigger

public void setTrigger(TriggerDelay trigger)
sets the trigger delay object

Parameters:
trigger -

getLoggerList

public Vector getLoggerList()
Returns the list of all loggers

Returns:
loggerList

addLogger

public void addLogger(Logger logger)
adds a logger to the logger list

Parameters:
logger -

start

public void start()
starts the tracer


stop

public void stop()
stops the tracer


createTraceList

public abstract int createTraceList()
Creates the trace list. Returns the number of items in trace list

Returns:
number of items

update

public abstract void update()
Calles the trigger delay to update the viewer


writeLog

protected void writeLog(String text)
Sends a string to the logger

Parameters:
text -


Copyright © Fraunhofer Gesellschaft. All Rights Reserved.