Package edu.wpi.first.networktables
Interface NTSendableBuilder
- All Superinterfaces:
AutoCloseable
,SendableBuilder
- All Known Implementing Classes:
SendableBuilderImpl
Helper class for building Sendable dashboard representations for NetworkTables.
-
Nested Class Summary
Nested classes/interfaces inherited from interface edu.wpi.first.util.sendable.SendableBuilder
SendableBuilder.BackendKind
-
Method Summary
Modifier and TypeMethodDescriptiondefault SendableBuilder.BackendKind
Gets the kind of backend being used.getTable()
Get the network table.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 java.lang.AutoCloseable
close
Methods inherited from interface edu.wpi.first.util.sendable.SendableBuilder
addBooleanArrayProperty, addBooleanProperty, addCloseable, addDoubleArrayProperty, addDoubleProperty, addFloatArrayProperty, addFloatProperty, addIntegerArrayProperty, addIntegerProperty, addRawProperty, addStringArrayProperty, addStringProperty, clearProperties, isPublished, publishConstBoolean, publishConstBooleanArray, publishConstDouble, publishConstDoubleArray, publishConstFloat, publishConstFloatArray, publishConstInteger, publishConstIntegerArray, publishConstRaw, publishConstString, publishConstStringArray, 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
-