Package edu.wpi.first.util.datalog
Class DataLogEntry
java.lang.Object
edu.wpi.first.util.datalog.DataLogEntry
- Direct Known Subclasses:
BooleanArrayLogEntry
,BooleanLogEntry
,DoubleArrayLogEntry
,DoubleLogEntry
,FloatArrayLogEntry
,FloatLogEntry
,IntegerArrayLogEntry
,IntegerLogEntry
,RawLogEntry
,StringArrayLogEntry
,StringLogEntry
public class DataLogEntry extends Object
Log entry base class.
-
Field Summary
-
Constructor Summary
Constructors Modifier Constructor Description protected
DataLogEntry(DataLog log, String name, String type)
protected
DataLogEntry(DataLog log, String name, String type, String metadata)
protected
DataLogEntry(DataLog log, String name, String type, String metadata, long timestamp)
-
Method Summary
Modifier and Type Method Description void
finish()
Finishes the entry.void
finish(long timestamp)
Finishes the entry.void
setMetadata(String metadata)
Updates the metadata for the entry.void
setMetadata(String metadata, long timestamp)
Updates the metadata for the entry.
-
Field Details
-
Constructor Details
-
Method Details
-
setMetadata
Updates the metadata for the entry.- Parameters:
metadata
- New metadata for the entrytimestamp
- Time stamp (may be 0 to indicate now)
-
setMetadata
Updates the metadata for the entry.- Parameters:
metadata
- New metadata for the entry
-
finish
Finishes the entry.- Parameters:
timestamp
- Time stamp (may be 0 to indicate now)
-
finish
Finishes the entry.
-