public interface SendableBuilder
Modifier and Type | Interface and Description |
---|---|
static interface |
SendableBuilder.BooleanConsumer
Represents an operation that accepts a single boolean-valued argument and
returns no result.
|
Modifier and Type | Method and Description |
---|---|
void |
addBooleanArrayProperty(java.lang.String key,
java.util.function.Supplier<boolean[]> getter,
java.util.function.Consumer<boolean[]> setter)
Add a boolean array property.
|
void |
addBooleanProperty(java.lang.String key,
java.util.function.BooleanSupplier getter,
SendableBuilder.BooleanConsumer setter)
Add a boolean property.
|
void |
addDoubleArrayProperty(java.lang.String key,
java.util.function.Supplier<double[]> getter,
java.util.function.Consumer<double[]> setter)
Add a double array property.
|
void |
addDoubleProperty(java.lang.String key,
java.util.function.DoubleSupplier getter,
java.util.function.DoubleConsumer setter)
Add a double property.
|
void |
addRawProperty(java.lang.String key,
java.util.function.Supplier<byte[]> getter,
java.util.function.Consumer<byte[]> setter)
Add a raw property.
|
void |
addStringArrayProperty(java.lang.String key,
java.util.function.Supplier<java.lang.String[]> getter,
java.util.function.Consumer<java.lang.String[]> setter)
Add a string array property.
|
void |
addStringProperty(java.lang.String key,
java.util.function.Supplier<java.lang.String> getter,
java.util.function.Consumer<java.lang.String> setter)
Add a string property.
|
void |
addValueProperty(java.lang.String key,
java.util.function.Supplier<NetworkTableValue> getter,
java.util.function.Consumer<NetworkTableValue> setter)
Add a NetworkTableValue property.
|
NetworkTableEntry |
getEntry(java.lang.String key)
Add a property without getters or setters.
|
void |
setSafeState(java.lang.Runnable func)
Set the function that should be called to set the Sendable into a safe
state.
|
void |
setSmartDashboardType(java.lang.String type)
Set the string representation of the named data type that will be used
by the smart dashboard for this sendable.
|
void |
setUpdateTable(java.lang.Runnable func)
Set the function that should be called to update the network table
for things other than properties.
|
void setSmartDashboardType(java.lang.String type)
type
- data typevoid setSafeState(java.lang.Runnable func)
func
- functionvoid setUpdateTable(java.lang.Runnable func)
func
- functionNetworkTableEntry getEntry(java.lang.String key)
key
- property namevoid addBooleanProperty(java.lang.String key, java.util.function.BooleanSupplier getter, SendableBuilder.BooleanConsumer setter)
key
- property namegetter
- getter function (returns current value)setter
- setter function (sets new value)void addDoubleProperty(java.lang.String key, java.util.function.DoubleSupplier getter, java.util.function.DoubleConsumer setter)
key
- property namegetter
- getter function (returns current value)setter
- setter function (sets new value)void addStringProperty(java.lang.String key, java.util.function.Supplier<java.lang.String> getter, java.util.function.Consumer<java.lang.String> setter)
key
- property namegetter
- getter function (returns current value)setter
- setter function (sets new value)void addBooleanArrayProperty(java.lang.String key, java.util.function.Supplier<boolean[]> getter, java.util.function.Consumer<boolean[]> setter)
key
- property namegetter
- getter function (returns current value)setter
- setter function (sets new value)void addDoubleArrayProperty(java.lang.String key, java.util.function.Supplier<double[]> getter, java.util.function.Consumer<double[]> setter)
key
- property namegetter
- getter function (returns current value)setter
- setter function (sets new value)void addStringArrayProperty(java.lang.String key, java.util.function.Supplier<java.lang.String[]> getter, java.util.function.Consumer<java.lang.String[]> setter)
key
- property namegetter
- getter function (returns current value)setter
- setter function (sets new value)void addRawProperty(java.lang.String key, java.util.function.Supplier<byte[]> getter, java.util.function.Consumer<byte[]> setter)
key
- property namegetter
- getter function (returns current value)setter
- setter function (sets new value)void addValueProperty(java.lang.String key, java.util.function.Supplier<NetworkTableValue> getter, java.util.function.Consumer<NetworkTableValue> setter)
key
- property namegetter
- getter function (returns current value)setter
- setter function (sets new value)