Class YaspTrimDataReader
- java.lang.Object
-
- cern.accsoft.steering.aloha.read.yasp.AbstractYaspMeasurementReader<TrimMeasurement>
-
- cern.accsoft.steering.aloha.read.yasp.YaspTrimDataReader
-
- All Implemented Interfaces:
AlohaBeanFactoryAware,BeanAware,MeasurementReader<TrimMeasurement>,Reader,TrimMeasurementReader
public class YaspTrimDataReader extends AbstractYaspMeasurementReader<TrimMeasurement> implements TrimMeasurementReader, AlohaBeanFactoryAware
The reader for trim data out of yasp files.
-
-
Constructor Summary
Constructors Constructor Description YaspTrimDataReader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetDescription()javax.swing.filechooser.FileFiltergetFileFilter()booleanisHandling(java.util.List<java.io.File> files)TrimMeasurementread(java.util.List<java.io.File> files, ModelDelegate modelDelegate, MeasurementReaderOptions options)reads the file and returns a measurement that uses the model defined by the given model-delegatebooleanrequiresOptions()has to tell, if this measurement reader requires options.voidsetAlohaBeanFactory(AlohaBeanFactory alohaBeanFactory)this method is used by theAlohaBeanFactoryto inject itself.java.lang.StringtoString()-
Methods inherited from class cern.accsoft.steering.aloha.read.yasp.AbstractYaspMeasurementReader
proposedModelDefinitionUri
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface cern.accsoft.steering.aloha.read.MeasurementReader
proposedModelDefinitionUri
-
-
-
-
Method Detail
-
getDescription
public java.lang.String getDescription()
- Specified by:
getDescriptionin interfaceReader- Returns:
- a description of the files to handle
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getFileFilter
public javax.swing.filechooser.FileFilter getFileFilter()
- Specified by:
getFileFilterin interfaceReader- Returns:
- the file filter which can be used for a file-open dialog.
-
isHandling
public boolean isHandling(java.util.List<java.io.File> files)
- Specified by:
isHandlingin interfaceReader- Parameters:
files- the files to test- Returns:
- true if this Reader can handle all the given files, false if not
-
read
public TrimMeasurement read(java.util.List<java.io.File> files, ModelDelegate modelDelegate, MeasurementReaderOptions options) throws ReaderException
Description copied from interface:MeasurementReaderreads the file and returns a measurement that uses the model defined by the given model-delegate- Specified by:
readin interfaceMeasurementReader<TrimMeasurement>- Parameters:
files- the file to readmodelDelegate- the model-delegate to use for the measurement.options- the options for reading the files- Returns:
- the measurement
- Throws:
ReaderException
-
requiresOptions
public boolean requiresOptions()
Description copied from interface:MeasurementReaderhas to tell, if this measurement reader requires options. This is useful to decide in the gui, if the user has to be asked for them or not.- Specified by:
requiresOptionsin interfaceMeasurementReader<TrimMeasurement>- Returns:
- true if options are required, false if not
-
setAlohaBeanFactory
public void setAlohaBeanFactory(AlohaBeanFactory alohaBeanFactory)
Description copied from interface:AlohaBeanFactoryAwarethis method is used by theAlohaBeanFactoryto inject itself.- Specified by:
setAlohaBeanFactoryin interfaceAlohaBeanFactoryAware
-
-