Package gda.data.scan.datawriter
Class XasAsciiNexusDatapointCompletingDataWriter
java.lang.Object
gda.data.scan.datawriter.XasAsciiNexusDatapointCompletingDataWriter
- All Implemented Interfaces:
DataWriter
For use in two-directional raster scans (faster raster or raster-map-return-write).
This 'flips' (changes the data point number) and buffers the data points from the odd numbered rows which run in the returning direction. It then issues the data points in the normal order as if this was a regular two dimensional scan and the data points have the correct numbering.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddData(IScanDataPoint point) for incremental addition of datavoidaddDataWriterExtender(IDataWriterExtender dataWriterExtender) Adds an additional IDataWriterExtender to handle DataWriter eventsvoidCalled when data collection has been completedvoidvoidconfigureScanNumber(int scanNumber) method used to allow filewriter to configure the scanNumber based on the supplied value or internally if null It is called by the ScanBase.prepareScanForCollectionbooleanGet the absFilePath for this scanintGet the current scan identifier (ie scan number)header is a publicly accessible string which will be written to the file (or saved to a database) during the prepareForCollection method.The underlying data writer which will create the Nexus and Ascii files.inthashCode()voidremoveDataWriterExtender(IDataWriterExtender dataWriterExtender) Remove a IDataWriterExtender to handle DataWriter events.voidsetDatawriter(DataWriter datawriter) voidSets the header of the datahandlervoidSets the header of the datahandlervoidsetIndexer(TwoDScanRowReverser indexer) toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface gda.data.scan.datawriter.DataWriter
scanStart
-
Constructor Details
-
XasAsciiNexusDatapointCompletingDataWriter
public XasAsciiNexusDatapointCompletingDataWriter()
-
-
Method Details
-
addData
Description copied from interface:DataWriterfor incremental addition of data- Specified by:
addDatain interfaceDataWriter- Parameters:
point- Object- Throws:
Exception
-
getIndexer
-
setIndexer
-
addDataWriterExtender
Description copied from interface:DataWriterAdds an additional IDataWriterExtender to handle DataWriter events- Specified by:
addDataWriterExtenderin interfaceDataWriter- Parameters:
dataWriterExtender-
-
completeCollection
Description copied from interface:DataWriterCalled when data collection has been completed- Specified by:
completeCollectionin interfaceDataWriter- Throws:
Exception
-
completeCollection
-
equals
-
getCurrentFileName
Description copied from interface:DataWriterGet the absFilePath for this scan- Specified by:
getCurrentFileNamein interfaceDataWriter- Returns:
- String
-
getCurrentScanIdentifier
public int getCurrentScanIdentifier()Description copied from interface:DataWriterGet the current scan identifier (ie scan number)- Specified by:
getCurrentScanIdentifierin interfaceDataWriter- Returns:
- String
-
getDatawriter
-
getHeader
Description copied from interface:DataWriterheader is a publicly accessible string which will be written to the file (or saved to a database) during the prepareForCollection method. Before this method is called, the header object may be added to using these accessor methods.- Specified by:
getHeaderin interfaceDataWriter- Returns:
- an ArrayList containing header information
-
hashCode
public int hashCode() -
removeDataWriterExtender
Description copied from interface:DataWriterRemove a IDataWriterExtender to handle DataWriter events.- Specified by:
removeDataWriterExtenderin interfaceDataWriter- Parameters:
dataWriterExtender-
-
setDatawriter
-
setHeader
Description copied from interface:DataWriterSets the header of the datahandler- Specified by:
setHeaderin interfaceDataWriter- Parameters:
header- ArrayList
-
setHeader
Description copied from interface:DataWriterSets the header of the datahandler- Specified by:
setHeaderin interfaceDataWriter- Parameters:
header- String
-
toString
-
getXasDataWriter
The underlying data writer which will create the Nexus and Ascii files. The same used in other scans.Access is provided to enable extra settings to be made on this object.
- Returns:
- XasAsciiNexusDataWriter
-
configureScanNumber
Description copied from interface:DataWritermethod used to allow filewriter to configure the scanNumber based on the supplied value or internally if null It is called by the ScanBase.prepareScanForCollection- Specified by:
configureScanNumberin interfaceDataWriter- Parameters:
scanNumber-- Throws:
Exception
-