Class LhcModelAdapter

  • All Implemented Interfaces:
    JMadModelAdapter

    public class LhcModelAdapter
    extends java.lang.Object
    implements JMadModelAdapter
    This is the model-adapter for LHC models.
    • Constructor Summary

      Constructors 
      Constructor Description
      LhcModelAdapter()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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.
      BeamNumber beamNumberFor​(cern.accsoft.steering.jmad.domain.machine.SequenceDefinition sequenceDefinition)  
      cern.accsoft.steering.jmad.domain.machine.RangeDefinition defaultRangeDefinitionFor​(cern.accsoft.steering.jmad.modeldefs.domain.JMadModelDefinition modelDefinition, BeamNumber beam)  
      java.util.List<java.lang.String> getMonitorRegexps()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LhcModelAdapter

        public LhcModelAdapter()
    • Method Detail

      • appliesTo

        public boolean appliesTo​(cern.accsoft.steering.jmad.model.JMadModel model)
        Description copied from interface: JMadModelAdapter
        This method must return true, if this adapter is intended to be used with the given model.
        Specified by:
        appliesTo in interface JMadModelAdapter
        Parameters:
        model - the model for which we want to have an adapter
        Returns:
        true if applicable, false if not
      • getMonitorRegexps

        public java.util.List<java.lang.String> getMonitorRegexps()
        Specified by:
        getMonitorRegexps in interface JMadModelAdapter
        Returns:
        A list of regular expressions which represents all the monitors in the model.
      • beamNumberFor

        public BeamNumber beamNumberFor​(cern.accsoft.steering.jmad.domain.machine.SequenceDefinition sequenceDefinition)
        Specified by:
        beamNumberFor in interface JMadModelAdapter
        Returns:
        the BeamNumber for the given sequence
      • defaultRangeDefinitionFor

        public cern.accsoft.steering.jmad.domain.machine.RangeDefinition defaultRangeDefinitionFor​(cern.accsoft.steering.jmad.modeldefs.domain.JMadModelDefinition modelDefinition,
                                                                                                   BeamNumber beam)
        Specified by:
        defaultRangeDefinitionFor in interface JMadModelAdapter
        Returns:
        the default range for the given beam