Class SimpleSimResultsAdaptor

java.lang.Object
xal.tools.beam.calc.SimResultsAdaptor
xal.tools.beam.calc.SimpleSimResultsAdaptor
All Implemented Interfaces:
ISimulationResults, ISimulationResults.ISimEnvResults<ProbeState<?>>, ISimulationResults.ISimLocResults<ProbeState<?>>

public class SimpleSimResultsAdaptor extends SimResultsAdaptor

This class reduces the general operation of the base class SimResultsAdaptor to the specific use of the calculation engine CalculationsOnRings for simulation data of type TransferMapTrajectory, and use of calculation engine CalculationsOnBeams for simulation data of type EnvelopeTrajectory. Thus, probes states of either type TransferMapState or EnvelopeProbeState may be passed to the interface, according to which trajectory type was passed to the constructor.

Again, note that this adaptor will not recognize any simulation data other that the type TransferMapTrajectory and EnvelopeTrajectory.

NOTE:

- Calculations for the ParticleProbeTrajectory have been added. The calculation engine is CalculationsOnParticles. Note that only the methods of interface ISimLocResults will be recognized. Methods of interface ISimEnvResults will results in an exception.

Since:
Nov 7, 2013
Author:
Christopher K. Allen
See Also:
  • Constructor Details

    • SimpleSimResultsAdaptor

      public SimpleSimResultsAdaptor(Trajectory<?> trajectory) throws IllegalArgumentException
      Constructor for SimpleSimResultsAdaptor. We create an internal machine calculation engine based upon the type of the given simulation trajectory.
      Parameters:
      trajectory - simulation data that is going to be processed
      Throws:
      IllegalArgumentException - the simulation data is of an unknown type
      Since:
      Nov 7, 2013