Package edu.wpi.first.networktables
Interface BooleanPublisher
- All Superinterfaces:
AutoCloseable,BooleanConsumer,Publisher,PubSub
- All Known Subinterfaces:
BooleanEntry
NetworkTables Boolean publisher.
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidaccept(boolean value) Performs this operation on the given argument.getTopic()Get the corresponding topic.default voidset(boolean value) Publish a new value using current NT time.voidset(boolean value, long time) Publish a new value.voidsetDefault(boolean value) Publish a default value.
-
Method Details
-
getTopic
Get the corresponding topic. -
set
Publish a new value using current NT time.- Parameters:
value- value to publish
-
set
Publish a new value.- Parameters:
value- value to publishtime- timestamp; 0 indicates current NT time should be used
-
setDefault
Publish a default value. On reconnect, a default value will never be used in preference to a published value.- Parameters:
value- value
-
accept
Description copied from interface:BooleanConsumerPerforms this operation on the given argument.- Specified by:
acceptin interfaceBooleanConsumer- Parameters:
value- the input argument
-