Package cern.accsoft.steering.aloha.read
Interface MeasurementReader<T extends ModelAwareMeasurement>
-
- All Superinterfaces:
Reader
- All Known Subinterfaces:
DispersionMeasurementReader,KickResponseMaesurementReader,MultiturnMeasurementReader,TrajectoryMeasurementReader,TrimMeasurementReader
- All Known Implementing Classes:
AbstractYaspMeasurementReader,MultiturnMeasurementReaderImpl,YaspDispersionMeasurementReader,YaspKickResponseDataReader,YaspTrajectoryMeasurementReader,YaspTrimDataReader
public interface MeasurementReader<T extends ModelAwareMeasurement> extends Reader
This is the interface for a reader, that directly returns aModelAwareMeasurement
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.net.URIproposedModelDefinitionUri(java.util.List<java.io.File> files)The proposed JMad model definition URI.Tread(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.-
Methods inherited from interface cern.accsoft.steering.aloha.read.Reader
getDescription, getFileFilter, isHandling
-
-
-
-
Method Detail
-
read
T read(java.util.List<java.io.File> files, ModelDelegate modelDelegate, MeasurementReaderOptions options) throws ReaderException
reads the file and returns a measurement that uses the model defined by the given model-delegate- 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
boolean requiresOptions()
has 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.- Returns:
- true if options are required, false if not
-
proposedModelDefinitionUri
java.net.URI proposedModelDefinitionUri(java.util.List<java.io.File> files)
The proposed JMad model definition URI. Null if this reader does not propose a particular JMad model and the user should choose.- Returns:
- the proposed model URI, if any
-
-