public interface IntegerPropertyInternal extends PropertyInternal
isPreInitializationProperty
Modifier and Type | Method and Description |
---|---|
int |
getIntegerValue()
Returns the current value of the device property as an integer.
|
int |
getLowerLimit()
Returns the lower limit of this value.
|
int |
getUpperLimit()
Returns the upper limit of this value.
|
void |
setValue(int value,
int accessID)
Sets the current value of the property.
|
void |
setValueRelative(int offset,
int accessID)
Sets the value of the microscope relative to its current value.
|
getDeviceID, getPropertyID, getType, getValue, isEditable, isPreInitializationProperty, setValue
int getIntegerValue() throws MicroscopeException, java.lang.NumberFormatException, java.lang.InterruptedException
MicroscopeException
java.lang.NumberFormatException
- Thrown when value is not an integer.java.lang.InterruptedException
void setValue(int 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(int 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 an integer.java.lang.InterruptedException
int getLowerLimit()
int getUpperLimit()