Class YaspTrajectoryMeasurementReader
- java.lang.Object
-
- cern.accsoft.steering.aloha.read.yasp.AbstractYaspMeasurementReader<TrajectoryMeasurement>
-
- cern.accsoft.steering.aloha.plugin.traj.read.yasp.YaspTrajectoryMeasurementReader
-
- All Implemented Interfaces:
AlohaBeanFactoryAware,BeanAware,MachineElementsManagerAware,TrajectoryMeasurementReader,MeasurementReader<TrajectoryMeasurement>,Reader
public class YaspTrajectoryMeasurementReader extends AbstractYaspMeasurementReader<TrajectoryMeasurement> implements TrajectoryMeasurementReader, AlohaBeanFactoryAware, MachineElementsManagerAware
this class is a reader for the Noise data acquired by yasp.
-
-
Constructor Summary
Constructors Constructor Description YaspTrajectoryMeasurementReader()
-
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)TrajectoryMeasurementread(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.voidsetMachineElementsManager(MachineElementsManager machineElementsManager)by the use of this method theMachineElementsManageris injected if the class is configured by theAlohaBeanFactoryvoidsetReadingDataReader(ReadingDataReader readingDataReader)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
-
read
public TrajectoryMeasurement 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<TrajectoryMeasurement>- 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
-
setReadingDataReader
public void setReadingDataReader(ReadingDataReader readingDataReader)
- Parameters:
readingDataReader- the readingDataReader to set
-
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
-
setAlohaBeanFactory
public void setAlohaBeanFactory(AlohaBeanFactory alohaBeanFactory)
Description copied from interface:AlohaBeanFactoryAwarethis method is used by theAlohaBeanFactoryto inject itself.- Specified by:
setAlohaBeanFactoryin interfaceAlohaBeanFactoryAware
-
setMachineElementsManager
public void setMachineElementsManager(MachineElementsManager machineElementsManager)
Description copied from interface:MachineElementsManagerAwareby the use of this method theMachineElementsManageris injected if the class is configured by theAlohaBeanFactory- Specified by:
setMachineElementsManagerin interfaceMachineElementsManagerAware
-
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<TrajectoryMeasurement>- Returns:
- true if options are required, false if not
-
-