|
RobotCore 1.0
WPILib port to raspberry Pi
|
Public Member Functions | |
| abstract void | set (boolean value) |
| abstract boolean | get () |
| boolean | getAsBoolean () |
| void | accept (boolean value) |
| Public Member Functions inherited from org.wpilib.tunable.TunableBase | |
| boolean | isRobust () |
| String | getProperties () |
| TunableConfig | getConfig () |
| boolean | hasChanged () |
| boolean | supportsChangeNotification () |
| void | resetChanged () |
Static Public Member Functions | |
| static TunableBoolean | create () |
| static TunableBoolean | create (boolean initialValue) |
| static TunableBoolean | create (BooleanSupplier getter, BooleanConsumer setter) |
| static TunableBoolean | createConfig (TunableConfig config) |
| static TunableBoolean | createConfig (boolean initialValue, TunableConfig config) |
| static TunableBoolean | createConfig (BooleanSupplier getter, BooleanConsumer setter, TunableConfig config) |
Protected Member Functions | |
| TunableBoolean (TunableConfig config) | |
| TunableBoolean (TunableConfig config, boolean supportsChangeNotification) | |
| Protected Member Functions inherited from org.wpilib.tunable.TunableBase | |
| TunableBase (TunableConfig config) | |
| TunableBase (TunableConfig config, boolean supportsChangeNotification) | |
| void | markChanged () |
Additional Inherited Members | |
| Protected Attributes inherited from org.wpilib.tunable.TunableBase | |
| boolean | m_changed |
A tunable boolean.
Definition at line 11 of file TunableBoolean.java.
|
protected |
Constructs a tunable boolean.
| config | tunable config |
Definition at line 123 of file TunableBoolean.java.
|
protected |
Constructs a tunable boolean.
| config | tunable config |
| supportsChangeNotification | whether the tunable notifies backends when it changes |
Definition at line 133 of file TunableBoolean.java.
| void org.wpilib.tunable.TunableBoolean.accept | ( | boolean | value | ) |
Performs this operation on the given argument.
| value | the input argument |
Implements org.wpilib.util.function.BooleanConsumer.
Definition at line 161 of file TunableBoolean.java.
|
static |
Creates a tunable boolean with the initial value of false.
Definition at line 18 of file TunableBoolean.java.
|
static |
Creates a tunable boolean with the given initial value.
| initialValue | initial value |
Definition at line 28 of file TunableBoolean.java.
|
static |
Creates a tunable boolean with the given getter and setter.
The getter and setter must not throw.
| getter | getter for the tunable value |
| setter | setter for the tunable value |
Definition at line 41 of file TunableBoolean.java.
|
static |
Creates a tunable boolean with the given initial value and config.
| initialValue | initial value |
| config | tunable config |
Definition at line 62 of file TunableBoolean.java.
|
static |
Creates a tunable boolean with the given getter, setter, and config.
The getter and setter must not throw.
| getter | getter for the tunable value |
| setter | setter for the tunable value |
| config | tunable config |
Definition at line 92 of file TunableBoolean.java.
|
static |
Creates a tunable boolean with the given config and an initial value of false.
| config | tunable config |
Definition at line 51 of file TunableBoolean.java.
|
abstract |
Gets the value.
Implementations must not throw.
| boolean org.wpilib.tunable.TunableBoolean.getAsBoolean | ( | ) |
Definition at line 156 of file TunableBoolean.java.
|
abstract |
Sets the value.
Implementations must not throw.
| value | value |