Package xbot.common.properties
Class MeasureProperty<MeasureT extends Measure<UnitT>,MutMeasureT extends MutableMeasure<UnitT,MeasureT,MutMeasureT>,UnitT extends Unit>
java.lang.Object
xbot.common.properties.Property
xbot.common.properties.MeasureProperty<MeasureT,MutMeasureT,UnitT>
- All Implemented Interfaces:
DataFrameRefreshable
- Direct Known Subclasses:
AngleProperty,AngularVelocityProperty,DistanceProperty
public class MeasureProperty<MeasureT extends Measure<UnitT>,MutMeasureT extends MutableMeasure<UnitT,MeasureT,MutMeasureT>,UnitT extends Unit>
extends Property
-
Nested Class Summary
Nested classes/interfaces inherited from class xbot.common.properties.Property
Property.PropertyLevel, Property.PropertyPersistenceType -
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionMeasureProperty(String prefix, String name, MeasureT defaultValue, XPropertyManager manager) MeasureProperty(String prefix, String name, MeasureT defaultValue, XPropertyManager manager, Property.PropertyLevel level) -
Method Summary
Modifier and TypeMethodDescriptionget()booleanvoidhasChangedSinceLastCheck(Consumer<MeasureT> callback) booleanChecks if the property's current value matches the default.voidConsumes and processes inputs from the device or subsystem.void
-
Constructor Details
-
MeasureProperty
-
MeasureProperty
public MeasureProperty(String prefix, String name, MeasureT 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: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.
-