Class BooleanLogEntry

java.lang.Object
edu.wpi.first.util.datalog.DataLogEntry
edu.wpi.first.util.datalog.BooleanLogEntry

public class BooleanLogEntry extends DataLogEntry
Log boolean values.
  • Field Details

  • Constructor Details

    • BooleanLogEntry

      public BooleanLogEntry(DataLog log, String name, String metadata, long timestamp)
      Constructs a boolean log entry.
      Parameters:
      log - datalog
      name - name of the entry
      metadata - metadata
      timestamp - entry creation timestamp (0=now)
    • BooleanLogEntry

      public BooleanLogEntry(DataLog log, String name, String metadata)
      Constructs a boolean log entry.
      Parameters:
      log - datalog
      name - name of the entry
      metadata - metadata
    • BooleanLogEntry

      public BooleanLogEntry(DataLog log, String name, long timestamp)
      Constructs a boolean log entry.
      Parameters:
      log - datalog
      name - name of the entry
      timestamp - entry creation timestamp (0=now)
    • BooleanLogEntry

      public BooleanLogEntry(DataLog log, String name)
      Constructs a boolean log entry.
      Parameters:
      log - datalog
      name - name of the entry
  • Method Details

    • append

      public void append(boolean value, long timestamp)
      Appends a record to the log.
      Parameters:
      value - Value to record
      timestamp - Time stamp (0 to indicate now)
    • append

      public void append(boolean value)
      Appends a record to the log.
      Parameters:
      value - Value to record