Class ToggleableDoubleSubscriber

java.lang.Object
dev.doglog.internal.tunable.entry.ToggleableDoubleSubscriber
All Implemented Interfaces:
edu.wpi.first.networktables.DoubleSubscriber, edu.wpi.first.networktables.PubSub, edu.wpi.first.networktables.Subscriber, AutoCloseable, DoubleSupplier

public class ToggleableDoubleSubscriber extends Object implements edu.wpi.first.networktables.DoubleSubscriber
  • Constructor Details

    • ToggleableDoubleSubscriber

      public ToggleableDoubleSubscriber(edu.wpi.first.networktables.DoubleSubscriber subscriber, double defaultValue, BooleanSupplier useNt)
  • Method Details

    • getTopic

      public edu.wpi.first.networktables.DoubleTopic getTopic()
      Specified by:
      getTopic in interface edu.wpi.first.networktables.DoubleSubscriber
      Specified by:
      getTopic in interface edu.wpi.first.networktables.PubSub
    • get

      public double get()
      Specified by:
      get in interface edu.wpi.first.networktables.DoubleSubscriber
    • get

      public double get(double defaultValue)
      Specified by:
      get in interface edu.wpi.first.networktables.DoubleSubscriber
    • getAtomic

      public edu.wpi.first.networktables.TimestampedDouble getAtomic()
      Specified by:
      getAtomic in interface edu.wpi.first.networktables.DoubleSubscriber
    • getAtomic

      public edu.wpi.first.networktables.TimestampedDouble getAtomic(double defaultValue)
      Specified by:
      getAtomic in interface edu.wpi.first.networktables.DoubleSubscriber
    • readQueue

      public edu.wpi.first.networktables.TimestampedDouble[] readQueue()
      Specified by:
      readQueue in interface edu.wpi.first.networktables.DoubleSubscriber
    • readQueueValues

      public double[] readQueueValues()
      Specified by:
      readQueueValues in interface edu.wpi.first.networktables.DoubleSubscriber
    • exists

      public boolean exists()
      Specified by:
      exists in interface edu.wpi.first.networktables.Subscriber
    • getLastChange

      public long getLastChange()
      Specified by:
      getLastChange in interface edu.wpi.first.networktables.Subscriber
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface edu.wpi.first.networktables.PubSub
    • isValid

      public boolean isValid()
      Specified by:
      isValid in interface edu.wpi.first.networktables.PubSub
    • getHandle

      public int getHandle()
      Specified by:
      getHandle in interface edu.wpi.first.networktables.PubSub