Interface BooleanPublisher

All Superinterfaces:
AutoCloseable, BooleanConsumer, Publisher, PubSub
All Known Subinterfaces:
BooleanEntry

public interface BooleanPublisher extends Publisher, BooleanConsumer
NetworkTables Boolean publisher.
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    accept(boolean value)
    Performs this operation on the given argument.
    Get the corresponding topic.
    default void
    set(boolean value)
    Publish a new value using current NT time.
    void
    set(boolean value, long time)
    Publish a new value.
    void
    setDefault(boolean value)
    Publish a default value.

    Methods inherited from interface edu.wpi.first.networktables.PubSub

    close, getHandle, isValid
  • Method Details

    • getTopic

      Get the corresponding topic.
      Specified by:
      getTopic in interface PubSub
      Returns:
      Topic
    • set

      default void set(boolean value)
      Publish a new value using current NT time.
      Parameters:
      value - value to publish
    • set

      void set(boolean value, long time)
      Publish a new value.
      Parameters:
      value - value to publish
      time - timestamp; 0 indicates current NT time should be used
    • setDefault

      void setDefault(boolean value)
      Publish a default value. On reconnect, a default value will never be used in preference to a published value.
      Parameters:
      value - value
    • accept

      default void accept(boolean value)
      Description copied from interface: BooleanConsumer
      Performs this operation on the given argument.
      Specified by:
      accept in interface BooleanConsumer
      Parameters:
      value - the input argument