Class DeviceInformation<T>
java.lang.Object
org.eclipse.scanning.api.event.scan.DeviceInformation<T>
- All Implemented Interfaces:
IModelProvider<T>
Information about a given device. It may be an IRunnableDevice or an IScannableDevice.
The type of information is for displaying the device in the UI.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetIcon()getId()Deprecated.the id is no longer needed.getLabel()intgetLevel()getLower()getModel()getName()Object[]getState()getUnit()getUpper()inthashCode()booleanbooleanisAlive()booleanisBusy()booleanvoidmerge(DeviceInformation<T> info) Merges in any non-null fields.booleansetActivated(boolean activated) voidsetAlive(boolean alive) voidsetAvailableAxes(List<String> list) voidsetBusy(boolean busy) voidsetConfiguredAxes(List<String> list) voidsetDescription(String description) voidsetDeviceRole(DeviceRole deviceRole) voidvoidvoidDeprecated.the id is no longer needed.voidvoidsetLevel(int level) voidvoidsetMalcolmDetectorInfos(List<MalcolmDetectorInfo> malcolmDetectorInfos) voidsetMalcolmVersion(MalcolmVersion malcolmVersion) voidThe model for some providers may be set but be warned that others throw an IllegalArgumentException.voidvoidsetPermittedValues(Object[] permittedValues) voidsetShownByDefault(boolean shownByDefault) voidsetState(DeviceState state) voidsetSupportedScanModes(Set<ScanMode> supportedScanModes) voidvoidtoString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.scanning.api.IModelProvider
updateModel
-
Constructor Details
-
DeviceInformation
public DeviceInformation() -
DeviceInformation
-
-
Method Details
-
merge
Merges in any non-null fields.- Parameters:
info-
-
getName
-
setName
-
getLabel
-
setLabel
-
getId
Deprecated.the id is no longer needed. It is just a fall back for when the name is not available. -
setId
Deprecated.the id is no longer needed. It is just a fall back for when the name is not available. -
getDescription
-
setDescription
-
getIcon
-
setIcon
-
getDeviceRole
-
setDeviceRole
-
getSupportedScanModes
-
setSupportedScanModes
-
hashCode
public int hashCode() -
equals
-
toString
-
getModel
- Specified by:
getModelin interfaceIModelProvider<T>- Returns:
- the model that we are providing
-
setModel
Description copied from interface:IModelProviderThe model for some providers may be set but be warned that others throw an IllegalArgumentException.- Specified by:
setModelin interfaceIModelProvider<T>- Parameters:
model-
-
getState
-
setState
-
getLevel
public int getLevel() -
setLevel
public void setLevel(int level) -
getUnit
-
setUnit
-
getUpper
-
setUpper
-
getLower
-
setLower
-
getPermittedValues
-
setPermittedValues
-
isActivated
public boolean isActivated() -
setActivated
public boolean setActivated(boolean activated) -
getHealth
-
setHealth
-
isBusy
public boolean isBusy() -
setBusy
public void setBusy(boolean busy) -
isAlive
public boolean isAlive() -
setAlive
public void setAlive(boolean alive) -
getAvailableAxes
-
setAvailableAxes
-
getConfiguredAxes
-
setConfiguredAxes
-
isShownByDefault
public boolean isShownByDefault() -
setShownByDefault
public void setShownByDefault(boolean shownByDefault) -
getMalcolmVersion
-
setMalcolmVersion
-
getMalcolmDetectorInfos
-
setMalcolmDetectorInfos
-