faa.tg.dra.objects
Class AcEvent

java.lang.Object
  extended by faa.tg.dra.objects.AcEvent
All Implemented Interfaces:
DelimWritable, TextWritable, HasAcid, HasName, HasSimTime, Filterable, Recordable, ManagedObject, java.io.Serializable

public class AcEvent
extends java.lang.Object
implements HasName, HasAcid, HasSimTime, DelimWritable, TextWritable

 AcEvent is a wrapper class for MethodMapCombinable objects to allow
 their delimited output to be combined into one file.
 If the wrapped object type is TextWritable, this.toDraText() returns the
 its toDraText() value, otherwise this.toDraText() returns "".
 
See the source: AcEvent.java

Version:
$Id: AcEvent.java,v 1.1 2007/02/05 19:38:19 danaw Exp $
Author:
Dana N. Whicker, TGF/L-3 Titan Corp, Jan 26, 2007
See Also:
Serialized Form

Field Summary
static java.lang.String CVS_VERSION_ID
          The CVS Version ID.
(package private)  MethodMapCombinable event
          The MethodMapCombinable event wrapped by this AcEvent object.
private static MethodMap methodMap
          Map of DelimWritable methods as MethodSpec objects.
(package private) static long serialVersionUID
           
 
Constructor Summary
AcEvent(MethodMapCombinable event)
          Constructs the AcEvent object using the AircraftState objects specifying the first and last epoch of the interval.
 
Method Summary
 Acid getAcid()
          Returns the ACID (aircraft ID) of the aircraft.
 MethodMapCombinable getEvent()
          Returns the event type name to be put in the delimited output.
 MethodMap getMethodMap()
          Returns the aggregate MethodMap information for DelimWritable format.
 java.lang.String getName()
          Returns name unique to this class by prepending the wrapped event's name with its class name.
 SimulationTime getSimTime()
          Returns the SimulationTime that this aircraft event refers to.
private static MethodMap makeMethodMap()
          Creates the AcEvent information for DelimWritable format.
 java.lang.String toDraText()
          Returns the DR&A information as a text String if the wrapped event is TextWritable, otherwise returns an empty String ("").
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

static final long serialVersionUID
See Also:
Constant Field Values

CVS_VERSION_ID

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

See Also:
Constant Field Values

methodMap

private static MethodMap methodMap
Map of DelimWritable methods as MethodSpec objects.


event

MethodMapCombinable event
The MethodMapCombinable event wrapped by this AcEvent object.

Constructor Detail

AcEvent

public AcEvent(MethodMapCombinable event)
Constructs the AcEvent object using the AircraftState objects specifying the first and last epoch of the interval.

Parameters:
event - EventState to be combined to an aggregate delimited output file.
Method Detail

getMethodMap

public MethodMap getMethodMap()
Returns the aggregate MethodMap information for DelimWritable format.

Specified by:
getMethodMap in interface DelimWritable
Returns:
Returns fields as a MethodMap of MethodSpec objects.

makeMethodMap

private static MethodMap makeMethodMap()
Creates the AcEvent information for DelimWritable format.


getName

public java.lang.String getName()
Returns name unique to this class by prepending the wrapped event's name with its class name.

Specified by:
getName in interface ManagedObject
Returns:
Returns the name of the object.

getEvent

public MethodMapCombinable getEvent()
Returns the event type name to be put in the delimited output. (Current expectation is that this name will be unique per class.)


getAcid

public Acid getAcid()
Returns the ACID (aircraft ID) of the aircraft.

Specified by:
getAcid in interface HasAcid
Returns:
Returns the aircraft ID.

getSimTime

public SimulationTime getSimTime()
Returns the SimulationTime that this aircraft event refers to.

Specified by:
getSimTime in interface HasSimTime
Returns:
Returns the simulation time.

toDraText

public java.lang.String toDraText()
Returns the DR&A information as a text String if the wrapped event is TextWritable, otherwise returns an empty String ("").

Specified by:
toDraText in interface TextWritable
Returns:
Returns a DR&A format text output string.