com.yobotics.simulationconstructionset
Class DataBufferEntry
java.lang.Object
com.yobotics.simulationconstructionset.DataBufferEntry
- All Implemented Interfaces:
- DataEntry
public class DataBufferEntry
- extends java.lang.Object
- implements DataEntry
Method Summary |
boolean |
checkIfDataIsEqual(DataBufferEntry entry2,
int inPoint,
int outPoint,
double epsilon)
|
void |
enableAutoScale(boolean autoScale)
|
double[] |
getData()
|
int |
getDataLength()
|
java.lang.String |
getFullVariableNameWithNameSpace()
|
double |
getManualMaxScaling()
|
double |
getManualMinScaling()
|
double |
getMax()
|
double |
getMax(int leftIndex,
int rightIndex,
int leftPlotIndex,
int rightPlotIndex)
|
double |
getMin()
|
double |
getMin(int leftIndex,
int rightIndex,
int leftPlotIndex,
int rightPlotIndex)
|
YoVariable |
getVariable()
|
java.lang.String |
getVariableName()
|
void |
getVariableNameAndValue(java.lang.StringBuffer stringBuffer)
|
void |
getVariableNameAndValueAtIndex(java.lang.StringBuffer stringBuffer,
int index)
|
boolean |
isAutoScaleEnabled()
|
boolean |
minMaxChanged()
|
void |
resetMinMaxChanged()
|
void |
setManualScaling(double minScaling,
double maxScaling)
|
void |
tickAndUpdate(int index)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DataBufferEntry
public DataBufferEntry(YoVariable variable,
int nPoints)
getDataLength
public int getDataLength()
getData
public double[] getData()
- Specified by:
getData
in interface DataEntry
enableAutoScale
public void enableAutoScale(boolean autoScale)
- Specified by:
enableAutoScale
in interface DataEntry
setManualScaling
public void setManualScaling(double minScaling,
double maxScaling)
- Specified by:
setManualScaling
in interface DataEntry
isAutoScaleEnabled
public boolean isAutoScaleEnabled()
- Specified by:
isAutoScaleEnabled
in interface DataEntry
getManualMinScaling
public double getManualMinScaling()
- Specified by:
getManualMinScaling
in interface DataEntry
getManualMaxScaling
public double getManualMaxScaling()
- Specified by:
getManualMaxScaling
in interface DataEntry
getVariable
public YoVariable getVariable()
- Specified by:
getVariable
in interface DataEntry
getVariableName
public java.lang.String getVariableName()
- Specified by:
getVariableName
in interface DataEntry
getFullVariableNameWithNameSpace
public java.lang.String getFullVariableNameWithNameSpace()
- Specified by:
getFullVariableNameWithNameSpace
in interface DataEntry
tickAndUpdate
public void tickAndUpdate(int index)
resetMinMaxChanged
public void resetMinMaxChanged()
- Specified by:
resetMinMaxChanged
in interface DataEntry
minMaxChanged
public boolean minMaxChanged()
- Specified by:
minMaxChanged
in interface DataEntry
getMax
public double getMax()
- Specified by:
getMax
in interface DataEntry
getMin
public double getMin()
- Specified by:
getMin
in interface DataEntry
getMax
public double getMax(int leftIndex,
int rightIndex,
int leftPlotIndex,
int rightPlotIndex)
- Specified by:
getMax
in interface DataEntry
getMin
public double getMin(int leftIndex,
int rightIndex,
int leftPlotIndex,
int rightPlotIndex)
- Specified by:
getMin
in interface DataEntry
checkIfDataIsEqual
public boolean checkIfDataIsEqual(DataBufferEntry entry2,
int inPoint,
int outPoint,
double epsilon)
getVariableNameAndValue
public void getVariableNameAndValue(java.lang.StringBuffer stringBuffer)
- Specified by:
getVariableNameAndValue
in interface DataEntry
getVariableNameAndValueAtIndex
public void getVariableNameAndValueAtIndex(java.lang.StringBuffer stringBuffer,
int index)
- Specified by:
getVariableNameAndValueAtIndex
in interface DataEntry