Interface JMadModelAdapter
-
- All Known Implementing Classes:
LhcModelAdapter,PsbModelAdapter,TiModelAdapter
public interface JMadModelAdapterThis interface provides some special knowledge of one (or more) specific jmad-model, which is not directly in the model, but needed e.g. for aloha calculations.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanappliesTo(cern.accsoft.steering.jmad.model.JMadModel model)This method must return true, if this adapter is intended to be used with the given model.BeamNumberbeamNumberFor(cern.accsoft.steering.jmad.domain.machine.SequenceDefinition sequenceDefinition)cern.accsoft.steering.jmad.domain.machine.RangeDefinitiondefaultRangeDefinitionFor(cern.accsoft.steering.jmad.modeldefs.domain.JMadModelDefinition modelDefinition, BeamNumber beam)java.util.List<java.lang.String>getMonitorRegexps()
-
-
-
Method Detail
-
appliesTo
boolean appliesTo(cern.accsoft.steering.jmad.model.JMadModel model)
This method must return true, if this adapter is intended to be used with the given model.- Parameters:
model- the model for which we want to have an adapter- Returns:
- true if applicable, false if not
-
getMonitorRegexps
java.util.List<java.lang.String> getMonitorRegexps()
- Returns:
- A list of regular expressions which represents all the monitors in the model.
-
beamNumberFor
BeamNumber beamNumberFor(cern.accsoft.steering.jmad.domain.machine.SequenceDefinition sequenceDefinition)
- Returns:
- the BeamNumber for the given sequence
-
defaultRangeDefinitionFor
cern.accsoft.steering.jmad.domain.machine.RangeDefinition defaultRangeDefinitionFor(cern.accsoft.steering.jmad.modeldefs.domain.JMadModelDefinition modelDefinition, BeamNumber beam)- Returns:
- the default range for the given beam
-
-