Package xbot.common.properties
Class AngleProperty
java.lang.Object
xbot.common.properties.Property
xbot.common.properties.AngleProperty
- All Implemented Interfaces:
DataFrameRefreshable
This manages an Angle in the property system.
-
Nested Class Summary
Nested classes/interfaces inherited from class xbot.common.properties.Property
Property.PropertyLevel, Property.PropertyPersistenceType
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionAngleProperty
(String prefix, String name, Angle defaultValue, XPropertyManager manager) AngleProperty
(String prefix, String name, Angle defaultValue, XPropertyManager manager, Property.PropertyLevel level) -
Method Summary
Modifier and TypeMethodDescriptionget()
boolean
void
hasChangedSinceLastCheck
(Consumer<Angle> callback) boolean
Checks if the property's current value matches the default.void
Consumes and processes inputs from the device or subsystem.void
-
Constructor Details
-
AngleProperty
-
AngleProperty
public AngleProperty(String prefix, String name, Angle defaultValue, XPropertyManager manager, Property.PropertyLevel level)
-
-
Method Details
-
get
-
get_internal
-
set
-
hasChangedSinceLastCheck
-
hasChangedSinceLastCheck
public boolean hasChangedSinceLastCheck() -
isSetToDefault
public boolean isSetToDefault()Description copied from class:Property
Checks if the property's current value matches the default.- Specified by:
isSetToDefault
in classProperty
- Returns:
- True if the current value is the default.
-
refreshDataFrame
public void refreshDataFrame()Description copied from interface:DataFrameRefreshable
Consumes and processes inputs from the device or subsystem.
-