Package xbot.common.properties
Class DoubleProperty
java.lang.Object
xbot.common.properties.Property
xbot.common.properties.DoubleProperty
- All Implemented Interfaces:
DataFrameRefreshable
This manages a double 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
ConstructorDescriptionDoubleProperty
(String prefix, String name, double defaultValue, XPropertyManager manager) DoubleProperty
(String prefix, String name, double defaultValue, XPropertyManager manager, Property.PropertyLevel level) -
Method Summary
Modifier and TypeMethodDescriptiondouble
get()
double
boolean
void
hasChangedSinceLastCheck
(Consumer<Double> callback) boolean
Checks if the property's current value matches the default.void
Consumes and processes inputs from the device or subsystem.void
set
(double value)
-
Constructor Details
-
DoubleProperty
-
DoubleProperty
public DoubleProperty(String prefix, String name, double defaultValue, XPropertyManager manager, Property.PropertyLevel level)
-
-
Method Details
-
get
public double get() -
get_internal
public double get_internal() -
set
public void set(double value) -
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.
-