public abstract class PropertyImpl extends java.lang.Object implements PropertyInternal, java.lang.Comparable<PropertyInternal>
Type | Property and Description |
---|---|
boolean |
isPreInitialization
Gets the value of the property preInitializationProperty.
|
Modifier and Type | Field and Description |
---|---|
protected org.youscope.plugin.microscopeaccess.MicroscopeImpl |
microscope |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(PropertyInternal o) |
protected void |
deviceStateModified() |
java.lang.String |
getDeviceID()
Returns the name of the device where this property belongs to.
|
java.lang.String |
getPropertyID()
Returns the name of the device property.
|
PropertyType |
getType()
Returns the type of this device property.
|
java.lang.String |
getValue()
Returns the current value of the device property as a string.
|
boolean |
isEditable()
Returns true if property is editable and false if not.
|
boolean |
isPreInitializationProperty()
Gets the value of the property preInitializationProperty.
|
protected void |
setStringValue(java.lang.String value,
int accessID) |
abstract void |
setValue(java.lang.String value,
int accessID)
Sets the current value of the property.
|
public boolean isPreInitializationProperty
isPreInitializationProperty
in interface PropertyInternal
protected final org.youscope.plugin.microscopeaccess.MicroscopeImpl microscope
protected void deviceStateModified()
public boolean isPreInitializationProperty()
isPreInitializationProperty
in interface PropertyInternal
public java.lang.String getPropertyID()
PropertyInternal
getPropertyID
in interface PropertyInternal
public java.lang.String getDeviceID()
PropertyInternal
getDeviceID
in interface PropertyInternal
public PropertyType getType()
PropertyInternal
getType
in interface PropertyInternal
public java.lang.String getValue() throws MicroscopeException, java.lang.InterruptedException
PropertyInternal
getValue
in interface PropertyInternal
MicroscopeException
java.lang.InterruptedException
public abstract void setValue(java.lang.String value, int accessID) throws MicroscopeException, MicroscopeLockedException, java.lang.InterruptedException, DeviceException
PropertyInternal
setValue
in interface PropertyInternal
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
DeviceException
- Thrown if value does not correspond to property type.protected void setStringValue(java.lang.String value, int accessID) throws MicroscopeException, MicroscopeLockedException, java.lang.InterruptedException
MicroscopeException
MicroscopeLockedException
java.lang.InterruptedException
public boolean isEditable()
PropertyInternal
isEditable
in interface PropertyInternal
public int compareTo(PropertyInternal o)
compareTo
in interface java.lang.Comparable<PropertyInternal>