faa.tg.executive
Class FastTimeEpochManager

java.lang.Object
  extended by faa.tg.executive.AbstractEpochManager
      extended by faa.tg.executive.FastTimeEpochManager
All Implemented Interfaces:
EpochManagerInterface, ExecutiveEventListener<ExecutiveEvent>, OptionallyLoaded, java.lang.Runnable, java.util.EventListener

public class FastTimeEpochManager
extends AbstractEpochManager
implements java.lang.Runnable, OptionallyLoaded

 The FastTimeEpochManager generates EndOfEpoch events when
 the previous Epoch is done computing, instead of waiting
 for a system second to pass.
 
See the source: FastTimeEpochManager.java

Version:
$Id: FastTimeEpochManager.java,v 3.7 2008/06/24 18:14:09 lykensj Exp $
Author:
Michael Capito
See Also:
EndOfEpochEvent, EndOfEpochListener

Field Summary
private  int bailOutEpoch
          The number of updates to run before ending.
static java.lang.String CVS_VERSION_ID
          The CVS Version ID
private  java.lang.Thread epochThread
          The thread that this Manager controls.
private  boolean ticking
          Set true if epoch manager is ticking
 
Fields inherited from class faa.tg.executive.AbstractEpochManager
scenario, simEpochInterval
 
Constructor Summary
FastTimeEpochManager()
          Construct a FastTimeEpochManager with a default end time of two hours.
FastTimeEpochManager(int numberOfSecondsInSim)
          Construct a FastTimeEpochManager with the time to end in seconds of simulation time.
FastTimeEpochManager(SimulationTime simulationLength, SimulationTime epochInterval, Scenario scenario)
           
FastTimeEpochManager(java.lang.String simEndTime)
          Construct FastTimeEpochManager specifying an end time as an HH:MM:SS string (or if no colons in string, uses the value as the number of seconds).
 
Method Summary
 void computationComplete()
          Computation notification ignored in this Epoch Manager.
 void handleExecutiveEvent(ExecutiveEvent ee)
          Deprecated. Remove method after 3/03/03
 void run()
          Run the Epoch Manager
 
Methods inherited from class faa.tg.executive.AbstractEpochManager
setSimEpochInterval
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CVS_VERSION_ID

public static final java.lang.String CVS_VERSION_ID
The CVS Version ID

See Also:
Constant Field Values

epochThread

private java.lang.Thread epochThread
The thread that this Manager controls.


ticking

private boolean ticking
Set true if epoch manager is ticking


bailOutEpoch

private int bailOutEpoch
The number of updates to run before ending.

Constructor Detail

FastTimeEpochManager

public FastTimeEpochManager(java.lang.String simEndTime)
Construct FastTimeEpochManager specifying an end time as an HH:MM:SS string (or if no colons in string, uses the value as the number of seconds).

Parameters:
simEndTime - Time to end the simulation.

FastTimeEpochManager

public FastTimeEpochManager(int numberOfSecondsInSim)
Construct a FastTimeEpochManager with the time to end in seconds of simulation time.

Parameters:
numberOfSecondsInSim - Seconds to calculate before ending sim.

FastTimeEpochManager

public FastTimeEpochManager(SimulationTime simulationLength,
                            SimulationTime epochInterval,
                            Scenario scenario)

FastTimeEpochManager

public FastTimeEpochManager()
Construct a FastTimeEpochManager with a default end time of two hours.

Method Detail

computationComplete

public void computationComplete()
Computation notification ignored in this Epoch Manager.

Specified by:
computationComplete in interface EpochManagerInterface

handleExecutiveEvent

public void handleExecutiveEvent(ExecutiveEvent ee)
Deprecated. Remove method after 3/03/03

This method is called to handle the receipt of an ExecutiveEvent.

Specified by:
handleExecutiveEvent in interface ExecutiveEventListener<ExecutiveEvent>
Specified by:
handleExecutiveEvent in class AbstractEpochManager

run

public void run()
Run the Epoch Manager

Specified by:
run in interface java.lang.Runnable