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
,ProtobufLogEntry
,RawLogEntry
,StringArrayLogEntry
,StringLogEntry
,StructArrayLogEntry
,StructLogEntry
Log entry base class.
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
DataLogEntry
(DataLog log, String name, String type) Constructs a data log entry.protected
DataLogEntry
(DataLog log, String name, String type, String metadata) Constructs a data log entry.protected
DataLogEntry
(DataLog log, String name, String type, String metadata, long timestamp) Constructs a data log entry. -
Method Summary
Modifier and TypeMethodDescriptionvoid
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
-
m_log
The data log instance associated with the entry. -
m_entry
The data log entry index.
-
-
Constructor Details
-
DataLogEntry
Constructs a data log entry.- Parameters:
log
- datalogname
- name of the entrytype
- Data typemetadata
- metadatatimestamp
- entry creation timestamp (0=now)
-
DataLogEntry
Constructs a data log entry.- Parameters:
log
- datalogname
- name of the entrytype
- Data typemetadata
- metadata
-
DataLogEntry
Constructs a data log entry.- Parameters:
log
- datalogname
- name of the entrytype
- Data type
-
-
Method Details
-
setMetadata
Updates the metadata for the entry.- Parameters:
metadata
- New metadata for the entrytimestamp
- Time stamp (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 (0 to indicate now)
-
finish
Finishes the entry.
-