Enum Class DeviceRole
- All Implemented Interfaces:
Serializable,Comparable<DeviceRole>,Constable
Each runnable device has a role to be used when building
UI or constucting scans or for validation. For instance
and when the user interface provides drop downs of devices
it will inspect role to see if a given device is applicable.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe device is either backed by a GDA hardware connection through EPICS or DAServer or is an in memory device which should be treated like a hardware one, for instance the MandelbrotDetector.The device is backed by a malcolm connectionThis device is for processing the values of other devices.For instance in memory devices which are always created new, like the AcquisitionDevice Virtual devices can never be created -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanbooleanbooleanstatic DeviceRoleReturns the enum constant of this class with the specified name.static DeviceRole[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
VIRTUAL
For instance in memory devices which are always created new, like the AcquisitionDevice Virtual devices can never be created -
MALCOLM
The device is backed by a malcolm connection -
HARDWARE
The device is either backed by a GDA hardware connection through EPICS or DAServer or is an in memory device which should be treated like a hardware one, for instance the MandelbrotDetector. The device writes its data at each point in the GDA software scan -
PROCESSING
This device is for processing the values of other devices. For instance the same class could have multiple instances with different models to do different processing.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
isVirtual
public boolean isVirtual() -
isMalcolm
public boolean isMalcolm() -
isDetector
public boolean isDetector() -
isProcessing
public boolean isProcessing()
-