org.jscience.architecture.traffic.simulation.statistics
Class TrackerFactory

java.lang.Object
  extended by org.jscience.architecture.traffic.simulation.statistics.TrackerFactory

public class TrackerFactory
extends java.lang.Object

TrackerFactory shows a TrackingController with a TrackingView of a given type.


Field Summary
static int JUNCTION_ROADUSERS
          Show the single Junction roadusers tracking window.
static int JUNCTION_WAIT
          Show the single Junction average junction waiting time tracking window.
static int NETTUNNEL_RECEIVE
          Show the single NetTunnel receive queue tracking window
static int NETTUNNEL_SEND
          Show the single NetTunnel send queue tracking window
static int SPECIAL_QUEUE
          Show the single EdgeNode waiting queue length tracking window.
static int SPECIAL_ROADUSERS
          Show the single SpecialNode roadusers tracking window.
static int SPECIAL_WAIT
          Show the single SpecialNode average trip waiting time tracking window.
static int TOTAL_JUNCTION
          Show the average junction waiting time tracking window.
static int TOTAL_QUEUE
          Show the total waiting queue length tracking window.
static int TOTAL_ROADUSERS
          Show the total roadusers tracking window.
static int TOTAL_WAIT
          Show the average total trip waiting time tracking window.
protected static java.util.Vector trackingControllers
          DOCUMENT ME!
 
Constructor Summary
TrackerFactory()
           
 
Method Summary
static void disableTrackerViews()
          DOCUMENT ME!
protected static TrackingController genExtTracker(SimModel model, SimController controller, ExtendedTrackingView view)
          DOCUMENT ME!
protected static TrackingController genTracker(SimModel model, SimController controller, TrackingView view)
          DOCUMENT ME!
static TrackingController[] getTrackingControllers()
          DOCUMENT ME!
static void purgeTrackers()
          DOCUMENT ME!
static void resetTrackers()
          DOCUMENT ME!
static TrackingController showTracker(SimModel model, SimController controller, int type)
          Shows one of the 'global' tracking windows.
static TrackingController showTracker(SimModel model, SimController controller, Junction junction, int type)
          Shows the specified Junction tracking window.
static TrackingController showTracker(SimModel model, SimController controller, SpecialNode node, int type)
          Shows one of the EdgeNode tracking windows.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TOTAL_WAIT

public static final int TOTAL_WAIT
Show the average total trip waiting time tracking window.

See Also:
Constant Field Values

TOTAL_JUNCTION

public static final int TOTAL_JUNCTION
Show the average junction waiting time tracking window.

See Also:
Constant Field Values

TOTAL_QUEUE

public static final int TOTAL_QUEUE
Show the total waiting queue length tracking window.

See Also:
Constant Field Values

TOTAL_ROADUSERS

public static final int TOTAL_ROADUSERS
Show the total roadusers tracking window.

See Also:
Constant Field Values

SPECIAL_WAIT

public static final int SPECIAL_WAIT
Show the single SpecialNode average trip waiting time tracking window.

See Also:
Constant Field Values

SPECIAL_QUEUE

public static final int SPECIAL_QUEUE
Show the single EdgeNode waiting queue length tracking window.

See Also:
Constant Field Values

SPECIAL_ROADUSERS

public static final int SPECIAL_ROADUSERS
Show the single SpecialNode roadusers tracking window.

See Also:
Constant Field Values

JUNCTION_WAIT

public static final int JUNCTION_WAIT
Show the single Junction average junction waiting time tracking window.

See Also:
Constant Field Values

JUNCTION_ROADUSERS

public static final int JUNCTION_ROADUSERS
Show the single Junction roadusers tracking window.

See Also:
Constant Field Values

NETTUNNEL_SEND

public static final int NETTUNNEL_SEND
Show the single NetTunnel send queue tracking window

See Also:
Constant Field Values

NETTUNNEL_RECEIVE

public static final int NETTUNNEL_RECEIVE
Show the single NetTunnel receive queue tracking window

See Also:
Constant Field Values

trackingControllers

protected static java.util.Vector trackingControllers
DOCUMENT ME!

Constructor Detail

TrackerFactory

public TrackerFactory()
Method Detail

showTracker

public static TrackingController showTracker(SimModel model,
                                             SimController controller,
                                             int type)
                                      throws TrafficException
Shows one of the 'global' tracking windows.

Parameters:
model - DOCUMENT ME!
controller - DOCUMENT ME!
type - One of the 'TOTAL_' constants.
Returns:
DOCUMENT ME!
Throws:
TrafficException - DOCUMENT ME!

showTracker

public static TrackingController showTracker(SimModel model,
                                             SimController controller,
                                             SpecialNode node,
                                             int type)
                                      throws TrafficException
Shows one of the EdgeNode tracking windows.

Parameters:
model - DOCUMENT ME!
controller - DOCUMENT ME!
node - DOCUMENT ME!
type - One of the 'EDGE_' constants.
Returns:
DOCUMENT ME!
Throws:
TrafficException - DOCUMENT ME!

showTracker

public static TrackingController showTracker(SimModel model,
                                             SimController controller,
                                             Junction junction,
                                             int type)
                                      throws TrafficException
Shows the specified Junction tracking window.

Parameters:
model - DOCUMENT ME!
controller - DOCUMENT ME!
junction - DOCUMENT ME!
type - DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
TrafficException - DOCUMENT ME!

genTracker

protected static TrackingController genTracker(SimModel model,
                                               SimController controller,
                                               TrackingView view)
DOCUMENT ME!

Parameters:
model - DOCUMENT ME!
controller - DOCUMENT ME!
view - DOCUMENT ME!
Returns:
DOCUMENT ME!

genExtTracker

protected static TrackingController genExtTracker(SimModel model,
                                                  SimController controller,
                                                  ExtendedTrackingView view)
DOCUMENT ME!

Parameters:
model - DOCUMENT ME!
controller - DOCUMENT ME!
view - DOCUMENT ME!
Returns:
DOCUMENT ME!

purgeTrackers

public static void purgeTrackers()
DOCUMENT ME!


disableTrackerViews

public static void disableTrackerViews()
DOCUMENT ME!


resetTrackers

public static void resetTrackers()
DOCUMENT ME!


getTrackingControllers

public static TrackingController[] getTrackingControllers()
DOCUMENT ME!

Returns:
DOCUMENT ME!