Package xal.model.alg

Class DiagnosticTracker

java.lang.Object
xal.model.alg.Tracker
xal.model.alg.DiagnosticTracker
All Implemented Interfaces:
Remote, IAlgorithm, IArchive, IContextAware

public class DiagnosticTracker extends Tracker
Simple algorithm for testing the model framework.
Version:
$id:
Author:
Craig McChesney
  • Field Details

    • TYPE_ID

      public static final String TYPE_ID
      string type identifier for this algorithm
    • VERSION

      public static final int VERSION
      current version of this algorithm
      See Also:
    • CLS_PROBE_TYPE

      public static final Class<DiagnosticProbe> CLS_PROBE_TYPE
      probe type recognized by this algorithm
  • Constructor Details

    • DiagnosticTracker

      public DiagnosticTracker()
      Creates a new instance of ParticleTracker
    • DiagnosticTracker

      public DiagnosticTracker(DiagnosticTracker sourceTracker)
      Copy constructor for DiagnosticTracker
      Parameters:
      sourceTracker - Tracker that is being copied
  • Method Details

    • copy

      public DiagnosticTracker copy()
      Create a deep copy of DiagnosticTracker
    • doPropagation

      public void doPropagation(IProbe probe, IElement elem) throws ModelException
      Propagates the probe through the element.
      Specified by:
      doPropagation in class Tracker
      Parameters:
      probe - probe to propagate
      elem - element acting on probe
      Throws:
      ModelException - invalid probe type or error in advancing probe
      See Also:
    • compStepCount

      protected int compStepCount(IElement elem)
      Returns the number of sections to break the specified element in to for propagation. Always one for a diagnostic probe.
      Parameters:
      elem - Element currently acting on probe
      Returns:
      one
    • advanceState

      protected void advanceState(IProbe probe, IElement elem, double dblLen)
      Advance the supplied probe through a subsection of the specified length in the specified element.
      Parameters:
      probe - Probe being acted on by element
      elem - Element acting on probe
      dblLen - length of element subsection to advance probe through