Package xbot.common.properties
Class BooleanProperty
java.lang.Object
xbot.common.properties.Property
xbot.common.properties.BooleanProperty
- All Implemented Interfaces:
DataFrameRefreshable
A property holding a boolean value.
-
Nested Class Summary
Nested classes/interfaces inherited from class xbot.common.properties.Property
Property.PropertyLevel, Property.PropertyPersistenceType
-
Field Summary
-
Constructor Summary
ConstructorDescriptionBooleanProperty
(String prefix, String name, boolean defaultValue, XPropertyManager manager) BooleanProperty
(String prefix, String name, boolean defaultValue, XPropertyManager manager, Property.PropertyLevel level) -
Method Summary
-
Constructor Details
-
BooleanProperty
-
BooleanProperty
public BooleanProperty(String prefix, String name, boolean defaultValue, XPropertyManager manager, Property.PropertyLevel level)
-
-
Method Details
-
get
public boolean get() -
get_internal
public boolean get_internal()- Returns:
- the current boolean value
-
set
public void set(boolean value) - Parameters:
value
- the value to set
-
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.
-