Class Section
java.lang.Object
xal.extension.tracewinimporter.parser.Section
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 Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSection
(int sectionNumber) Constructs a new Section with null or NaN header values and the given section id number.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. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addBeamline
(Subsystem beamline) Adds the beamline to the stack of beamlines.void
addComponent
(Subsystem component) Adds the component to the stack of component as the last component in the current lattice.void
Adds the slot to the stack of slots.Returns the array of all beamlines in this section.Returns the array of all components in the section.getSlots()
Returns the array of all slots in this section.
-
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
-
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 fileperiodType
- ??syncPhaseInput
- phase input in degreessyncPhaseOutput
- phase output in degreessyncPhaseMax
- phase maximum in degreessyncPhaseStepMax
- maximum phase step in degreessyncPhaseContinuity
- ??syncPhaseConstantAcceptance
- ??phaseAdvanceMax
- maximum phase advance in degreesphaseAdvanceStep
- step size degrees per meterphaseAdvanceContinuity
- ??cavityBetaG
- reduced speedcavityFrequency
- the frequency in HzcavityMaxPower
- maximal power in WcavityAccElectricField
- accelerating electric field in V/manalyticModel
- ??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
Adds the component to the stack of component as the last component in the current lattice.- Parameters:
component
- the component to add
-
getComponents
Returns the array of all components in the section.- Returns:
- the array of components
-
addSlot
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
Returns the array of all slots in this section.- Returns:
- the array of slots
-
addBeamline
Adds the beamline to the stack of beamlines.- Parameters:
beamline
- the beamline to add
-
getBeamlines
Returns the array of all beamlines in this section.- Returns:
- the array of beamlines
-