public final class Recorder
extends java.lang.Object
recordCurrentValue(edu.wpi.first.shuffleboard.api.sources.DataSource<?>)
whenever its value
changes.Type | Property and Description |
---|---|
javafx.beans.property.BooleanProperty |
running |
Modifier and Type | Method and Description |
---|---|
static Recorder |
getInstance()
Gets the recorder instance.
|
java.io.File |
getRecordingFile() |
boolean |
isRunning()
Gets the value of the property running.
|
void |
record(java.lang.String id,
DataType<?> dataType,
java.lang.Object value)
Records a data point at the current time.
|
void |
recordCurrentValue(DataSource<?> source)
Records the current value of the given source.
|
void |
reset()
Resets this recorder.
|
javafx.beans.property.BooleanProperty |
runningProperty() |
void |
setRunning(boolean running)
Sets the value of the property running.
|
void |
start()
Starts recording data.
|
void |
stop()
Stops recording data.
|
public javafx.beans.property.BooleanProperty runningProperty
isRunning()
,
setRunning(boolean)
public static Recorder getInstance()
public void start()
public void stop()
public void reset()
public void recordCurrentValue(DataSource<?> source)
public void record(java.lang.String id, DataType<?> dataType, java.lang.Object value)
id
- the ID of the value to recorddataType
- the type of the valuevalue
- the value to recordpublic boolean isRunning()
public javafx.beans.property.BooleanProperty runningProperty()
isRunning()
,
setRunning(boolean)
public void setRunning(boolean running)
public java.io.File getRecordingFile()