public class ParticleTracker extends Tracker
ParticleProbe
through a XAL modeling element, represented
by an object exposing the IComponent
interface.Modifier and Type | Field and Description |
---|---|
static java.lang.Class<ParticleProbe> |
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
|
ATTRTAG_DEBUG, ATTRTAG_RFGAP_PHASE, ATTRTAG_TYPE, ATTRTAG_UPDATE, ATTRTAG_VER, NODETAG_ALG, NODETAG_TRACKER, TBL_PRIM_KEY_NAME, UPDATE_ALWAYS, UPDATE_CUSTOM, UPDATE_ENTRANCE, UPDATE_ENTRANCEANDEXIT, UPDATE_EXIT
Constructor and Description |
---|
ParticleTracker()
Creates a new instance of ParticleTracker
|
ParticleTracker(ParticleTracker sourceTracker)
Copy constructor for ParticleTracker
|
Modifier and Type | Method and Description |
---|---|
protected void |
advanceState(ParticleProbe probe,
IElement elem,
double dblLen)
Advances the probe state through the element.
|
ParticleTracker |
copy()
Create a deep copy of ParticleTracker
|
void |
doPropagation(IProbe iProbe,
IElement elem)
Propagates the probe through the element.
|
void |
load(DataAdaptor daSource)
Place holder for loading additional parameters from a data adaptor.
|
void |
load(java.lang.String strPrimKeyVal,
EditContext ecTableData)
Place holder for loading additional parameters from an edit context.
|
void |
save(DataAdaptor daptArchive)
Place holder for loading additional parameters from a data adaptor.
|
advanceProbe, getDebugMode, getElemPosition, getProbeType, getProbeUpdatePolicy, getStartElementId, getStopElementId, getType, getVersion, initialize, isStopElementIncluded, newFromEditContext, newFromEditContext, newInstance, propagate, registerProbeType, retractProbe, setDebugMode, setElemPosition, setIncludeStopElement, setProbeUpdatePolicy, setRfGapPhaseCalculation, setStartElementId, setStopElementId, unsetStartElementId, unsetStopElementId, useRfGapPhaseCalculation, validElement, validProbe
public static final java.lang.String s_strTypeId
public static final int s_intVersion
public static final java.lang.Class<ParticleProbe> s_clsProbeType
public ParticleTracker()
public ParticleTracker(ParticleTracker sourceTracker)
sourceTracker
- Tracker that is being copiedpublic ParticleTracker copy()
public void load(java.lang.String strPrimKeyVal, EditContext ecTableData) throws DataFormatException
load
in interface IContextAware
load
in class Tracker
strPrimKeyVal
- primary key value specifying the name of the data recordecTableData
- EditContext containing table dataDataFormatException
- bad data format - error in readingTracker.load(java.lang.String, xal.tools.data.EditContext)
public void load(DataAdaptor daSource) throws DataFormatException
load
in interface IArchive
load
in class Tracker
daSource
- data source containing algorithm configurationDataFormatException
- bad format in algorithm dataTracker.load(xal.tools.data.DataAdaptor)
public void save(DataAdaptor daptArchive)
save
in interface IArchive
save
in class Tracker
daptArchive
- data source to receive algorithm configurationTracker.save(xal.tools.data.DataAdaptor)
public void doPropagation(IProbe iProbe, IElement elem) throws ModelException
doPropagation
in class Tracker
iProbe
- probe to propagateelem
- element acting on probeModelException
- invalid probe type or error in advancing probeTracker.validProbe(IProbe)
protected void advanceState(ParticleProbe probe, IElement elem, double dblLen) throws ModelException
probe
- probe being modifiedelem
- element acting on probedblLen
- length of element to advanceModelException
- bad element transfer matrix/corrupt probe state