Class SequenceImpl

  • All Implemented Interfaces:
    Sequence

    public class SequenceImpl
    extends java.lang.Object
    implements Sequence
    Represents a SEQUENCE in the MadX-model. This class also manages the its ranges and knows about its own SequenceDefinition.
    • Constructor Detail

      • SequenceImpl

        public SequenceImpl​(SequenceDefinition sequenceDefinition)
        simple constructor, just give the sequenceDefinition.
        Parameters:
        sequenceDefinition - the SequenceDefinition to use to create this sequence
    • Method Detail

      • getName

        public java.lang.String getName()
        Specified by:
        getName in interface Sequence
        Returns:
        the name
      • getRanges

        public java.util.List<Range> getRanges()
        Specified by:
        getRanges in interface Sequence
        Returns:
        the available ranges of the sequence.
      • getDefaultRange

        public Range getDefaultRange()
        Specified by:
        getDefaultRange in interface Sequence
        Returns:
        the default range for this sequence
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getBeam

        public final Beam getBeam()
        Specified by:
        getBeam in interface Sequence
        Returns:
        the beam