gov.sns.xal.model.alg
Class EnsembleTracker

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

public class EnsembleTracker
extends Tracker

Implements the tracking mechanism for EnsembleProbe objects.


Field Summary
static java.lang.Class s_clsProbeType
          probe type recognized by this algorithm
static int s_intVersion
          current algorithm version
static java.lang.String s_strTypeId
          string type identifier for 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
EnsembleTracker()
          Creates a new instance of EnsembleTracker
 
Method Summary
protected  void advanceState(IProbe probe, IElement elem, double dblLen)
           
protected  int compStepCount(IElement elem)
          Returns the number of subsections 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 algorithm

See Also:
Constant Field Values

s_intVersion

public static final int s_intVersion
current algorithm version

See Also:
Constant Field Values

s_clsProbeType

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

Constructor Detail

EnsembleTracker

public EnsembleTracker()
Creates a new instance of EnsembleTracker

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 subsections to break the specified element in to for propagation. Currently returns the ceiling of the element length divided by the space charge interval. This should be re-evaluated when the ensemble algorithm is fleshed out.

Parameters:
elem - Element currently acting on probe
Returns:
ceiling of element length divided by space charge interval

advanceState

protected void advanceState(IProbe probe,
                            IElement elem,
                            double dblLen)
                     throws ModelException
ModelException