Package edu.wpi.first.networktables
Interface StructArrayPublisher<T>
- Type Parameters:
T
- value class
- All Superinterfaces:
AutoCloseable
,Consumer<T[]>
,Publisher
,PubSub
- All Known Subinterfaces:
StructArrayEntry<T>
public interface StructArrayPublisher<T> extends Publisher, Consumer<T[]>
NetworkTables struct-encoded array value publisher.
-
Method Summary
Modifier and Type Method Description default void
accept(T[] value)
StructArrayTopic<T>
getTopic()
Get the corresponding topic.default void
set(T[] value)
Publish a new value using current NT time.void
set(T[] value, long time)
Publish a new value.void
setDefault(T[] 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
-