public interface FloatPropertyInternal extends PropertyInternal
isPreInitializationProperty
Modifier and Type | Method and Description |
---|---|
float |
getFloatValue()
Returns the current value of the device property as a float.
|
float |
getLowerLimit()
Returns the lower limit of this value.
|
float |
getUpperLimit()
Returns the upper limit of this value.
|
void |
setValue(float value,
int accessID)
Sets the current value of the property.
|
void |
setValueRelative(float offset,
int accessID)
Sets the value of the microscope relative to its current value.
|
getDeviceID, getPropertyID, getType, getValue, isEditable, isPreInitializationProperty, setValue
float getFloatValue() throws MicroscopeException, java.lang.NumberFormatException, java.lang.InterruptedException
MicroscopeException
java.lang.NumberFormatException
- Thrown when value is not a float.java.lang.InterruptedException
void setValue(float value, int accessID) throws MicroscopeException, MicroscopeLockedException, java.lang.InterruptedException
value
- Value to set the property to.accessID
- The access ID of the current microscope object. If the microscope is locked with a different accessID, a MicroscopeLockedException is thrown.MicroscopeException
MicroscopeLockedException
java.lang.InterruptedException
void setValueRelative(float offset, int accessID) throws MicroscopeException, MicroscopeLockedException, java.lang.NumberFormatException, java.lang.InterruptedException
offset
- Amount for which the current value should be changed.accessID
- The access ID of the current microscope object. If the microscope is locked with a different accessID, a MicroscopeLockedException is thrown.MicroscopeException
MicroscopeLockedException
java.lang.NumberFormatException
- Thrown when current value is not a float.java.lang.InterruptedException
float getLowerLimit()
float getUpperLimit()