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
ConstructorsConstructorDescriptionDoubleProperty(String prefix, String name, double defaultValue, XPropertyManager manager) DoubleProperty(String prefix, String name, double defaultValue, XPropertyManager manager, Property.PropertyLevel level) -
Method Summary
Modifier and TypeMethodDescriptiondoubleget()doublebooleanvoidhasChangedSinceLastCheck(DoubleConsumer callback) booleanChecks if the property's current value matches the default.voidConsumes and processes inputs from the device or subsystem.voidset(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:PropertyChecks if the property's current value matches the default.- Specified by:
isSetToDefaultin classProperty- Returns:
- True if the current value is the default.
-
refreshDataFrame
public void refreshDataFrame()Description copied from interface:DataFrameRefreshableConsumes and processes inputs from the device or subsystem.
-