Interface DoubleAddress

All Superinterfaces:
Address<Double>
All Known Implementing Classes:
MIDIAddress

public interface DoubleAddress extends Address<Double>
A channel through which doubles can be sent and recieved to and from ButtonBox hardware.
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets feedback from the address.
    Gets the changes to the feedback from the address since the last call to this method.
    void
    send(Double data)
    Sends data to the address.
  • Method Details

    • send

      void send(Double data)
      Sends data to the address.
      Specified by:
      send in interface Address<Double>
      Parameters:
      data - Double between 0 and 1 to send.
    • getFeedback

      Optional<Double> getFeedback()
      Gets feedback from the address.
      Specified by:
      getFeedback in interface Address<Double>
      Returns:
      Double between 0 and 1 containing control feedback. Empty if no feedback has been recieved.
    • getFeedbackQueue

      List<Double> getFeedbackQueue()
      Gets the changes to the feedback from the address since the last call to this method.
      Specified by:
      getFeedbackQueue in interface Address<Double>
      Returns:
      Doubles between 0 and 1 containing control feedback changes, ordered from least to most recent. Empty if no feedback has been recieved.