Package xal.model.alg
Class DiagnosticTracker
java.lang.Object
xal.model.alg.Tracker
xal.model.alg.DiagnosticTracker
- All Implemented Interfaces:
Remote
,IAlgorithm
,IArchive
,IContextAware
Simple algorithm for testing the model framework.
- Version:
- $id:
- Author:
- Craig McChesney
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Class<DiagnosticProbe>
probe type recognized by this algorithmstatic final String
string type identifier for this algorithmstatic final int
current version of this algorithmFields inherited from class xal.model.alg.Tracker
ATTRTAG_DEBUG, ATTRTAG_RFGAP_PHASE, ATTRTAG_TYPE, ATTRTAG_UPDATE, ATTRTAG_VER, NODETAG_ALG, NODETAG_TRACKER, TBL_LBL_ALGORITHM, TBL_PRIM_KEY_NAME, UPDATE_ALWAYS, UPDATE_CUSTOM, UPDATE_ENTRANCE, UPDATE_ENTRANCEANDEXIT, UPDATE_EXIT
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance of ParticleTrackerDiagnosticTracker
(DiagnosticTracker sourceTracker) Copy constructor for DiagnosticTracker -
Method Summary
Modifier and TypeMethodDescriptionprotected 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.copy()
Create a deep copy of DiagnosticTrackervoid
doPropagation
(IProbe probe, IElement elem) Propagates the probe through the element.Methods inherited from class xal.model.alg.Tracker
advanceProbe, getDebugMode, getElemPosition, getProbeType, getProbeUpdatePolicy, getRfGapPhaseCalculation, getStartElementId, getStopElementId, getType, getVersion, initialize, isStopElementIncluded, load, load, newFromEditContext, newFromEditContext, newInstance, propagate, registerProbeType, retractProbe, save, setDebugMode, setElemPosition, setIncludeStopElement, setProbeUpdatePolicy, setRfGapPhaseCalculation, setStartElementId, setStopElementId, unsetStartElementId, unsetStopElementId, validElement, validProbe
-
Field Details
-
TYPE_ID
string type identifier for this algorithm -
VERSION
public static final int VERSIONcurrent version of this algorithm- See Also:
-
CLS_PROBE_TYPE
probe type recognized by this algorithm
-
-
Constructor Details
-
DiagnosticTracker
public DiagnosticTracker()Creates a new instance of ParticleTracker -
DiagnosticTracker
Copy constructor for DiagnosticTracker- Parameters:
sourceTracker
- Tracker that is being copied
-
-
Method Details
-
copy
Create a deep copy of DiagnosticTracker -
doPropagation
Propagates the probe through the element.- Specified by:
doPropagation
in classTracker
- Parameters:
probe
- probe to propagateelem
- element acting on probe- Throws:
ModelException
- invalid probe type or error in advancing probe- See Also:
-
compStepCount
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
Advance the supplied probe through a subsection of the specified length in the specified element.- Parameters:
probe
- Probe being acted on by elementelem
- Element acting on probedblLen
- length of element subsection to advance probe through
-