Class BooleanFrame

java.lang.Object
com.reduxrobotics.frames.Frame<Boolean>
com.reduxrobotics.frames.BooleanFrame

public class BooleanFrame extends Frame<Boolean>
Implements a boolean frame.
  • Constructor Details

    • BooleanFrame

      public BooleanFrame(boolean defaultData)
      Instantiates a new frame.
      Parameters:
      defaultData - default data to store.
  • Method Details

    • getValue

      public Boolean getValue()
      Description copied from class: Frame
      Returns the value of the data frame.
      Specified by:
      getValue in class Frame<Boolean>
      Returns:
      the value the data frame holds.
    • hasData

      public boolean hasData()
      Description copied from class: Frame
      Returns if this frame has data.
      Specified by:
      hasData in class Frame<Boolean>
      Returns:
      if this frame's data can be considered valid
    • updateData

      public void updateData(boolean data, double timestamp)
      Update the frame with new data.
      Parameters:
      data - data to update with
      timestamp - timestamp to update with