Package com.simsilica.lemur
Interface RangedValueModel
- All Superinterfaces:
VersionedObject<Double>
- All Known Implementing Classes:
DefaultRangedValueModel
Represents a settable value between a certain minimum
and maximum range. The value can be retrieved in original
units or as a percentage of the delta between min and max.
Value versioning is provided for low-overhead external monitoring
of the value.
-
Method Summary
Modifier and TypeMethodDescriptiondoubledoubledoubledoublegetValue()voidsetMaximum(double max) voidsetMinimum(double min) voidsetPercent(double val) voidsetValue(double val) Methods inherited from interface com.simsilica.lemur.core.VersionedObject
createReference, getObject, getVersion
-
Method Details
-
setValue
void setValue(double val) -
getValue
double getValue() -
setPercent
void setPercent(double val) -
getPercent
double getPercent() -
setMaximum
void setMaximum(double max) -
getMaximum
double getMaximum() -
setMinimum
void setMinimum(double min) -
getMinimum
double getMinimum()
-