Classes | |
class | TValue |
Public Member Functions | |
void | addValue (Double t, Object val) |
void | clearLog () |
int | getChangePosition () |
final int | getLogSize () |
int | getPosition () |
int | getPositionAt (Double t) |
Double | getTime () |
Double | getTime (int pos) |
Object | getValue () |
Object | getValue (int pos) |
GrxTimeSeriesItem (String name, GrxPluginManager manager) | |
final void | setMaximumLogSize (int maxLogSize) |
void | setTimeAt (int pos, Double t) |
Protected Member Functions | |
TValue | getObject (int index) |
boolean | isRemoved () |
boolean | setPosition (int pos) |
Protected Attributes | |
int | changePos_ = -1 |
int | overPos_ = 0 |
Private Attributes | |
boolean | bRemoved = false |
int | currentPos_ = -1 |
ArrayList< TValue > | log_ = new ArrayList<TValue>() |
int | maxLogSize_ = 1000000 |
series of timed objects
Definition at line 27 of file GrxTimeSeriesItem.java.
com.generalrobotix.ui.GrxTimeSeriesItem.GrxTimeSeriesItem | ( | String | name, |
GrxPluginManager | manager | ||
) | [inline] |
constructor
name | name of this item |
manager | plugin manager |
Definition at line 55 of file GrxTimeSeriesItem.java.
void com.generalrobotix.ui.GrxTimeSeriesItem.addValue | ( | Double | t, |
Object | val | ||
) | [inline] |
add timed object to this series
t | time |
val | object |
Reimplemented in com.generalrobotix.ui.item.GrxWorldStateItem.
Definition at line 134 of file GrxTimeSeriesItem.java.
void com.generalrobotix.ui.GrxTimeSeriesItem.clearLog | ( | ) | [inline] |
clear this series
Reimplemented in com.generalrobotix.ui.item.GrxWorldStateItem.
Definition at line 184 of file GrxTimeSeriesItem.java.
get position of pointer switched the method of momory to the method of disk
Definition at line 79 of file GrxTimeSeriesItem.java.
final int com.generalrobotix.ui.GrxTimeSeriesItem.getLogSize | ( | ) | [inline] |
TValue com.generalrobotix.ui.GrxTimeSeriesItem.getObject | ( | int | index | ) | [inline, protected] |
get TValue
Definition at line 203 of file GrxTimeSeriesItem.java.
int com.generalrobotix.ui.GrxTimeSeriesItem.getPosition | ( | ) | [inline] |
get current position of pointer
Definition at line 63 of file GrxTimeSeriesItem.java.
int com.generalrobotix.ui.GrxTimeSeriesItem.getPositionAt | ( | Double | t | ) | [inline] |
get position of timed object which is nearest to the specified time. If there is no object in this series -1 is returned.
Definition at line 86 of file GrxTimeSeriesItem.java.
Double com.generalrobotix.ui.GrxTimeSeriesItem.getTime | ( | ) | [inline] |
Double com.generalrobotix.ui.GrxTimeSeriesItem.getTime | ( | int | pos | ) | [inline] |
get time of object at specified position
pos | position of the object |
Reimplemented in com.generalrobotix.ui.item.GrxWorldStateItem.
Definition at line 123 of file GrxTimeSeriesItem.java.
Object com.generalrobotix.ui.GrxTimeSeriesItem.getValue | ( | void | ) | [inline] |
get current object
Reimplemented from com.generalrobotix.ui.GrxBaseItem.
Reimplemented in com.generalrobotix.ui.item.GrxWorldStateItem.
Definition at line 147 of file GrxTimeSeriesItem.java.
Object com.generalrobotix.ui.GrxTimeSeriesItem.getValue | ( | int | pos | ) | [inline] |
get an object at specified position
pos | position |
Reimplemented in com.generalrobotix.ui.item.GrxWorldStateItem.
Definition at line 157 of file GrxTimeSeriesItem.java.
boolean com.generalrobotix.ui.GrxTimeSeriesItem.isRemoved | ( | ) | [inline, protected] |
get remoded top value in log_ or not
Definition at line 196 of file GrxTimeSeriesItem.java.
final void com.generalrobotix.ui.GrxTimeSeriesItem.setMaximumLogSize | ( | int | maxLogSize | ) | [inline] |
set maximum length of this series
maxLogSize | maximum length |
Definition at line 167 of file GrxTimeSeriesItem.java.
boolean com.generalrobotix.ui.GrxTimeSeriesItem.setPosition | ( | int | pos | ) | [inline, protected] |
Definition at line 67 of file GrxTimeSeriesItem.java.
void com.generalrobotix.ui.GrxTimeSeriesItem.setTimeAt | ( | int | pos, |
Double | t | ||
) | [inline] |
set time to current object
pos | position |
t | time |
Definition at line 105 of file GrxTimeSeriesItem.java.
boolean com.generalrobotix.ui.GrxTimeSeriesItem.bRemoved = false [private] |
Definition at line 31 of file GrxTimeSeriesItem.java.
int com.generalrobotix.ui.GrxTimeSeriesItem.changePos_ = -1 [protected] |
Definition at line 33 of file GrxTimeSeriesItem.java.
int com.generalrobotix.ui.GrxTimeSeriesItem.currentPos_ = -1 [private] |
Definition at line 30 of file GrxTimeSeriesItem.java.
ArrayList<TValue> com.generalrobotix.ui.GrxTimeSeriesItem.log_ = new ArrayList<TValue>() [private] |
Definition at line 28 of file GrxTimeSeriesItem.java.
int com.generalrobotix.ui.GrxTimeSeriesItem.maxLogSize_ = 1000000 [private] |
Definition at line 29 of file GrxTimeSeriesItem.java.
int com.generalrobotix.ui.GrxTimeSeriesItem.overPos_ = 0 [protected] |
Definition at line 32 of file GrxTimeSeriesItem.java.