Class Section

java.lang.Object
xal.extension.tracewinimporter.parser.Section

public class Section extends Object
Section defines a single section within the lattice file. The section is composed of various components (elements and commands) as well as slots and beamlines.
Author:
Jakob Battelino Prelog
  • Field Details

    • sectionNumber

      public final int sectionNumber
    • periodType

      public final int periodType
    • syncPhaseInput

      public final double syncPhaseInput
    • syncPhaseOutput

      public final double syncPhaseOutput
    • syncPhaseMax

      public final double syncPhaseMax
    • syncPhaseStepMax

      public final double syncPhaseStepMax
    • syncPhaseContinuity

      public final boolean syncPhaseContinuity
    • syncPhaseConstantAcceptance

      public final boolean syncPhaseConstantAcceptance
    • phaseAdvanceMax

      public final double phaseAdvanceMax
    • phaseAdvanceStep

      public final double phaseAdvanceStep
    • phaseAdvanceContinuity

      public final boolean phaseAdvanceContinuity
    • cavityBetaG

      public final double cavityBetaG
    • cavityFrequency

      public final double cavityFrequency
    • cavityMaxPower

      public final double cavityMaxPower
    • cavityAccElectricField

      public final double cavityAccElectricField
    • analyticModel

      public final boolean analyticModel
    • cavityFile

      public final String cavityFile
    • radiusData

      public final String radiusData
  • Constructor Details

    • Section

      public Section(int sectionNumber, int periodType, double syncPhaseInput, double syncPhaseOutput, double syncPhaseMax, double syncPhaseStepMax, boolean syncPhaseContinuity, boolean syncPhaseConstantAcceptance, double phaseAdvanceMax, double phaseAdvanceStep, boolean phaseAdvanceContinuity, double cavityBetaG, double cavityFrequency, double cavityMaxPower, double cavityAccElectricField, boolean analyticModel, String cavityFile, String radiusData)
      Constructs a new Section containing the lattice data. The arguments for the constructor are the actual section header data.
      Parameters:
      sectionNumber - the number of the section in the file
      periodType - ??
      syncPhaseInput - phase input in degrees
      syncPhaseOutput - phase output in degrees
      syncPhaseMax - phase maximum in degrees
      syncPhaseStepMax - maximum phase step in degrees
      syncPhaseContinuity - ??
      syncPhaseConstantAcceptance - ??
      phaseAdvanceMax - maximum phase advance in degrees
      phaseAdvanceStep - step size degrees per meter
      phaseAdvanceContinuity - ??
      cavityBetaG - reduced speed
      cavityFrequency - the frequency in Hz
      cavityMaxPower - maximal power in W
      cavityAccElectricField - accelerating electric field in V/m
      analyticModel - ??
      cavityFile - ??
      radiusData - ??
    • Section

      public Section(int sectionNumber)
      Constructs a new Section with null or NaN header values and the given section id number.
      Parameters:
      sectionNumber - the section id number
  • Method Details

    • addComponent

      public void addComponent(Subsystem component)
      Adds the component to the stack of component as the last component in the current lattice.
      Parameters:
      component - the component to add
    • getComponents

      public Subsystem[] getComponents()
      Returns the array of all components in the section.
      Returns:
      the array of components
    • addSlot

      public void addSlot(Subsystem slot)
      Adds the slot to the stack of slots. If slots are arranged so that there exists a master slot which contains the other slots, then the order at which the slots are inserted is not important.
      Parameters:
      slot - the slot to add
    • getSlots

      public Subsystem[] getSlots()
      Returns the array of all slots in this section.
      Returns:
      the array of slots
    • addBeamline

      public void addBeamline(Subsystem beamline)
      Adds the beamline to the stack of beamlines.
      Parameters:
      beamline - the beamline to add
    • getBeamlines

      public Subsystem[] getBeamlines()
      Returns the array of all beamlines in this section.
      Returns:
      the array of beamlines