public class ScriptedPlot.ScriptableIndex
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected pt.lsts.imc.lsf.LsfIndex |
lsfIndex |
protected int |
lsfPos |
protected int |
prevPos |
Constructor and Description |
---|
ScriptedPlot.ScriptableIndex(pt.lsts.imc.lsf.LsfIndex source,
int curIndex)
Class constructor is passed the LsfIndex and an initial index (usually 0)
|
Modifier and Type | Method and Description |
---|---|
void |
mark(double time,
java.lang.String label) |
void |
mark(java.lang.String label) |
double |
time()
This method returns the current log time
|
double |
val(java.lang.String expression)
This method evaluates a field expression (like "EstimatedState[Navigation].x") and returns its current value
in the log
|
protected pt.lsts.imc.lsf.LsfIndex lsfIndex
protected int lsfPos
protected int prevPos
public ScriptedPlot.ScriptableIndex(pt.lsts.imc.lsf.LsfIndex source, int curIndex)
source
- The index to be used by scriptscurIndex
- The position in the indexpublic void mark(double time, java.lang.String label)
public void mark(java.lang.String label)
public double time()
public double val(java.lang.String expression)
expression
- The expression to be valuatedCopyright © 2004-2014 FEUP-LSTS and Neptus developers. All Rights Reserved.