Package edu.wpi.first.networktables
Interface NTSendableBuilder
- All Superinterfaces:
AutoCloseable
,SendableBuilder
- All Known Implementing Classes:
SendableBuilderImpl
public interface NTSendableBuilder extends SendableBuilder
-
Nested Class Summary
Nested classes/interfaces inherited from interface edu.wpi.first.util.sendable.SendableBuilder
SendableBuilder.BackendKind
-
Method Summary
Modifier and Type Method Description default SendableBuilder.BackendKind
getBackendKind()
Gets the kind of backend being used.NetworkTable
getTable()
Get the network table.Topic
getTopic(String key)
Add a property without getters or setters.void
setUpdateTable(Runnable func)
Set the function that should be called to update the network table for things other than properties.Methods inherited from interface edu.wpi.first.util.sendable.SendableBuilder
addBooleanArrayProperty, addBooleanProperty, addCloseable, addDoubleArrayProperty, addDoubleProperty, addFloatArrayProperty, addFloatProperty, addIntegerArrayProperty, addIntegerProperty, addRawProperty, addStringArrayProperty, addStringProperty, clearProperties, isPublished, setActuator, setSafeState, setSmartDashboardType, update
-
Method Details
-
setUpdateTable
Set the function that should be called to update the network table for things other than properties. Note this function is not passed the network table object; instead it should use the entry handles returned by getEntry().- Parameters:
func
- function
-
getTopic
Add a property without getters or setters. This can be used to get entry handles for the function called by setUpdateTable().- Parameters:
key
- property name- Returns:
- Network table topic
-
getTable
Get the network table.- Returns:
- The network table
-
getBackendKind
Description copied from interface:SendableBuilder
Gets the kind of backend being used.- Specified by:
getBackendKind
in interfaceSendableBuilder
- Returns:
- Backend kind
-