uavsim.flightdynamicsmodel
Class HistoryEntry<_ELEMENT_>

java.lang.Object
  extended by uavsim.flightdynamicsmodel.HistoryEntry<_ELEMENT_>
Type Parameters:
_ELEMENT_ - - the data element

public class HistoryEntry<_ELEMENT_>
extends java.lang.Object

Defines a time-stamped entry for an arbitrary data element. It is used to maintain a restricted-length history queue to derive trend information.

Author:
Dan Tappan [13.08.11]

Field Summary
private  _ELEMENT_ _element
          the element
protected  Time _time
          the time
 
Constructor Summary
HistoryEntry(Time time, _ELEMENT_ element)
          Creates a history entry.
 
Method Summary
 _ELEMENT_ getElement()
          Returns the element.
 Time getTime()
          Returns the time.
 java.lang.String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_element

private final _ELEMENT_ _element
the element


_time

protected final Time _time
the time

Constructor Detail

HistoryEntry

public HistoryEntry(Time time,
                    _ELEMENT_ element)
Creates a history entry.

Parameters:
time - - the time
element - - the element
Method Detail

getElement

public _ELEMENT_ getElement()
Returns the element.

Returns:
the element

getTime

public Time getTime()
Returns the time.

Returns:
the time

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object