|
RobotCore 1.0
WPILib port to raspberry Pi
|
Public Member Functions | |
| abstract void | set (long value) |
| abstract long | get () |
| long | getAsLong () |
| void | accept (long 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 TunableLong | create () |
| static TunableLong | create (long initialValue) |
| static TunableLong | create (LongSupplier getter, LongConsumer setter) |
| static TunableLong | createConfig (TunableConfig config) |
| static TunableLong | createConfig (long initialValue, TunableConfig config) |
| static TunableLong | createConfig (LongSupplier getter, LongConsumer setter, TunableConfig config) |
Protected Member Functions | |
| TunableLong (TunableConfig config) | |
| TunableLong (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 long.
Definition at line 11 of file TunableLong.java.
|
protected |
Constructs a tunable long.
| config | tunable config |
Definition at line 122 of file TunableLong.java.
|
protected |
Constructs a tunable long.
| config | tunable config |
| supportsChangeNotification | whether the tunable notifies backends when it changes |
Definition at line 132 of file TunableLong.java.
| void org.wpilib.tunable.TunableLong.accept | ( | long | value | ) |
Definition at line 160 of file TunableLong.java.
|
static |
Creates a tunable long with the initial value of 0.
Definition at line 17 of file TunableLong.java.
|
static |
Creates a tunable long with the given initial value.
| initialValue | initial value |
Definition at line 27 of file TunableLong.java.
|
static |
Creates a tunable long 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 40 of file TunableLong.java.
|
static |
Creates a tunable long with the given initial value and config.
| initialValue | initial value |
| config | tunable config |
Definition at line 61 of file TunableLong.java.
|
static |
Creates a tunable long 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 91 of file TunableLong.java.
|
static |
Creates a tunable long with the given config and an initial value of 0.
| config | tunable config |
Definition at line 50 of file TunableLong.java.
|
abstract |
Gets the value.
Implementations must not throw.
| long org.wpilib.tunable.TunableLong.getAsLong | ( | ) |
Definition at line 155 of file TunableLong.java.
|
abstract |
Sets the value.
Implementations must not throw.
| value | value |