gov.sns.xal.model.alg
Class DiagnosticTracker

java.lang.Object
  |
  +--gov.sns.xal.model.alg.Tracker
        |
        +--gov.sns.xal.model.alg.DiagnosticTracker
All Implemented Interfaces:
IAlgorithm, IArchive, java.rmi.Remote

public class DiagnosticTracker
extends Tracker

Simple algorithm for testing the model framework.


Field Summary
static java.lang.Class s_clsProbeType
          probe type recognized by this algorithm
static int s_intVersion
          current version of this algorithm
static java.lang.String s_strTypeId
          string type identifier for this algorithm
 
Fields inherited from class gov.sns.xal.model.alg.Tracker
ATTRTAG_DEBUG, ATTRTAG_TYPE, ATTRTAG_UPDATE, ATTRTAG_VER, CALC_RFGAP_PHASE, NODETAG_ALG, NODETAG_TRACKER, NODETAG_TRAJ, UPDATE_ALWAYS, UPDATE_CUSTOM, UPDATE_ENTRANCE, UPDATE_ENTRANCEANDEXIT, UPDATE_EXIT
 
Constructor Summary
DiagnosticTracker()
          Creates a new instance of ParticleTracker
 
Method Summary
protected  void advanceState(IProbe probe, IElement elem, double dblLen)
          Advance the supplied probe through a subsection of the specified length in the specified element.
protected  int compStepCount(IElement elem)
          Returns the number of sections to break the specified element in to for propagation.
 void doPropagation(IProbe probe, IElement elem)
          Propagates the probe through the element.
 
Methods inherited from class gov.sns.xal.model.alg.Tracker
advanceProbe, getArchive, getDebugMode, getElemPosition, getProbeUpdatePolicy, getStartElementId, getStopElementId, getType, getVersion, initialize, load, propagate, registerProbeType, save, setDebugMode, setElemPosition, setProbeUpdatePolicy, setStartElementId, setStopElementId, unsetStartElementId, unsetStopElementId, useRfGapPhaseCalculation, validElement, validProbe
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

s_strTypeId

public static final java.lang.String s_strTypeId
string type identifier for this algorithm

See Also:
Constant Field Values

s_intVersion

public static final int s_intVersion
current version of this algorithm

See Also:
Constant Field Values

s_clsProbeType

public static final java.lang.Class s_clsProbeType
probe type recognized by this algorithm

Constructor Detail

DiagnosticTracker

public DiagnosticTracker()
Creates a new instance of ParticleTracker

Method Detail

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:
Tracker.advanceProbe(gov.sns.xal.model.IProbe, gov.sns.xal.model.IElement, double), Tracker.validProbe(gov.sns.xal.model.IProbe)

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)
                     throws ModelException
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
ModelException