|
RobotCore 1.0
WPILib port to raspberry Pi
|
Public Member Functions | |
| boolean | isRobust () |
| String | getProperties () |
| TunableConfig | getConfig () |
| boolean | hasChanged () |
| boolean | supportsChangeNotification () |
| void | resetChanged () |
Protected Member Functions | |
| TunableBase (TunableConfig config) | |
| TunableBase (TunableConfig config, boolean supportsChangeNotification) | |
| void | markChanged () |
Protected Attributes | |
| boolean | m_changed |
The base class for tunables.
Definition at line 9 of file TunableBase.java.
|
protected |
Constructs a tunable base.
| config | tunable config |
Definition at line 24 of file TunableBase.java.
|
protected |
Constructs a tunable base.
If supportsChangeNotification is true, subclasses must call markChanged() instead of setting m_changed directly.
| config | tunable config |
| supportsChangeNotification | whether the tunable notifies backends when it changes |
Definition at line 37 of file TunableBase.java.
| TunableConfig org.wpilib.tunable.TunableBase.getConfig | ( | ) |
Returns the configuration of this tunable.
Definition at line 67 of file TunableBase.java.
| String org.wpilib.tunable.TunableBase.getProperties | ( | ) |
Returns the properties of this tunable as a JSON string.
Definition at line 58 of file TunableBase.java.
| boolean org.wpilib.tunable.TunableBase.hasChanged | ( | ) |
Returns whether the tunable value has changed since the last time it was tuned.
Definition at line 76 of file TunableBase.java.
| boolean org.wpilib.tunable.TunableBase.isRobust | ( | ) |
Returns whether this tunable is robust.
Definition at line 48 of file TunableBase.java.
|
protected |
Marks the tunable changed and notifies backends.
Definition at line 90 of file TunableBase.java.
| void org.wpilib.tunable.TunableBase.resetChanged | ( | ) |
Resets the changed flag. Should generally only be used by backends.
Definition at line 100 of file TunableBase.java.
| boolean org.wpilib.tunable.TunableBase.supportsChangeNotification | ( | ) |
Returns whether this tunable notifies backends when set() marks it changed.
Definition at line 85 of file TunableBase.java.
|
protected |
Whether the tunable value has changed since the last time it was tuned. This is set to true when set() is called and cleared when notifyTune() is called.
Definition at line 17 of file TunableBase.java.