Package uk.ac.gda.analysis.mscan
Class AbstractMalcolmSwmrProcessor<T extends NXobject>
java.lang.Object
uk.ac.gda.analysis.mscan.AbstractMalcolmSwmrProcessor<T>
- All Implemented Interfaces:
Findable,MalcolmSwmrProcessor<T>
public abstract class AbstractMalcolmSwmrProcessor<T extends NXobject>
extends Object
implements MalcolmSwmrProcessor<T>, Findable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidconfigureNexusProvider(AbstractNexusObjectProvider<T> nexusObjectProvider) protected org.eclipse.january.dataset.ILazyWriteableDatasetcreateField(String fieldName, Class<?> elementType) The name of theNXdatagroup to add this field to.getName()Get the object name.voidinitialise(NexusScanInfo scanInfo, AbstractNexusObjectProvider<T> nexusProvider) Prepare processor to receive data.booleanCheck if processor is currently enabledvoidsetDataGroupName(String dataGroupName) Set name ofNXdatagroup to add this field to.voidsetEnabled(boolean enabled) Set enabled state of processorvoidSet or change the name of the object (as defined in XML).protected voidwriteStatData(Object stat, org.eclipse.january.dataset.ILazyWriteableDataset statDataset, SliceFromSeriesMetadata metaSlice) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface uk.ac.gda.analysis.mscan.MalcolmSwmrProcessor
processFrame
-
Constructor Details
-
AbstractMalcolmSwmrProcessor
public AbstractMalcolmSwmrProcessor()
-
-
Method Details
-
initialise
Description copied from interface:MalcolmSwmrProcessorPrepare processor to receive data. For example create the lazy datasets and add to theNexusObjectWrapper- Specified by:
initialisein interfaceMalcolmSwmrProcessor<T extends NXobject>- Parameters:
scanInfo- the current scan infonexusProvider- Nexus provider to write datasets into
-
configureNexusProvider
-
isEnabled
public boolean isEnabled()Description copied from interface:MalcolmSwmrProcessorCheck if processor is currently enabled- Specified by:
isEnabledin interfaceMalcolmSwmrProcessor<T extends NXobject>
-
setEnabled
public void setEnabled(boolean enabled) Description copied from interface:MalcolmSwmrProcessorSet enabled state of processor- Specified by:
setEnabledin interfaceMalcolmSwmrProcessor<T extends NXobject>
-
setName
Description copied from interface:FindableSet or change the name of the object (as defined in XML). -
getName
Description copied from interface:FindableGet the object name. Used by Castor to check if the object name has been set before calling theFindable.setName(String)method. -
getDataGroupName
Description copied from interface:MalcolmSwmrProcessorThe name of theNXdatagroup to add this field to. This can be used to group stats fields together in a singleNXdatagroup. This property only applies when using new nexus writing (i.e.NexusScanDataWriter).- Specified by:
getDataGroupNamein interfaceMalcolmSwmrProcessor<T extends NXobject>- Returns:
- the name of the data group
-
setDataGroupName
Description copied from interface:MalcolmSwmrProcessorSet name ofNXdatagroup to add this field to.- Specified by:
setDataGroupNamein interfaceMalcolmSwmrProcessor<T extends NXobject>- Parameters:
dataGroupName-- See Also:
-
createField
-
writeStatData
protected void writeStatData(Object stat, org.eclipse.january.dataset.ILazyWriteableDataset statDataset, SliceFromSeriesMetadata metaSlice)
-