Package uk.ac.diamond.daq.mapping.impl
Class ScanModelWrapper<T>
java.lang.Object
uk.ac.diamond.daq.mapping.impl.ScanModelWrapper<T>
- Type Parameters:
T- the wrapped model type
- All Implemented Interfaces:
IScanModelWrapper<T>
- Direct Known Subclasses:
DetectorModelWrapper,ScanPathModelWrapper
Abstract superclass of wrappers for elements in the mapping UI. Wraps the model describing
the item (e.g. a detector) and adds a name to be displayed to the user and a boolean to
indicate whether the element should be included in the scan.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedprotectedScanModelWrapper(String name, T model, boolean includeInScan) -
Method Summary
Modifier and TypeMethodDescriptionbooleangetModel()Get the model.getName()The name of the element, i.e.inthashCode()booleanWhether the item should be included in scans.voidsetIncludeInScan(boolean includeInScan) Set whether this item should be include in the scanvoidSet the modelvoidtoString()
-
Constructor Details
-
ScanModelWrapper
protected ScanModelWrapper() -
ScanModelWrapper
-
-
Method Details
-
getName
Description copied from interface:IScanModelWrapperThe name of the element, i.e. the detector name.- Specified by:
getNamein interfaceIScanModelWrapper<T>- Returns:
- name element name
-
setName
-
isIncludeInScan
public boolean isIncludeInScan()Description copied from interface:IScanModelWrapperWhether the item should be included in scans.- Specified by:
isIncludeInScanin interfaceIScanModelWrapper<T>- Returns:
trueif this item should be included in scans,falseotherwise
-
setIncludeInScan
public void setIncludeInScan(boolean includeInScan) Description copied from interface:IScanModelWrapperSet whether this item should be include in the scan- Specified by:
setIncludeInScanin interfaceIScanModelWrapper<T>
-
getModel
Description copied from interface:IScanModelWrapperGet the model.- Specified by:
getModelin interfaceIScanModelWrapper<T>- Returns:
- the model
-
setModel
Description copied from interface:IScanModelWrapperSet the model- Specified by:
setModelin interfaceIScanModelWrapper<T>- Parameters:
model- new model
-
hashCode
public int hashCode() -
equals
-
toString
-