gov.sns.xal.model.elem
Class Marker

java.lang.Object
  |
  +--gov.sns.xal.model.elem.Element
        |
        +--gov.sns.xal.model.elem.ThinElement
              |
              +--gov.sns.xal.model.elem.Marker
All Implemented Interfaces:
IComponent, IElement

public class Marker
extends ThinElement

This class is used as a location marker in the modeling lattice. Is has no length and no effect on the dynamics of any probe.


Field Summary
static java.lang.String s_strType
          type string identifier for all Marker objects
 
Fields inherited from interface gov.sns.xal.model.IElement
LightSpeed, Permeability, Permittivity, UnitCharge
 
Constructor Summary
Marker()
          JavaBean constructor - creates a new unitialized instance of Marker BE CAREFUL
Marker(java.lang.String strId)
          Creates a new instance of Marker
 
Method Summary
 double elapsedTime(IProbe probe)
          Returns the time taken for the probe to propagate through element.
 double energyGain(IProbe probe)
          Returns energy gain which is zero.
protected  PhaseMap transferMap(IProbe probe)
          Returns the transfer map of this element which is the identity.
 
Methods inherited from class gov.sns.xal.model.elem.ThinElement
elapsedTime, energyGain, getLength, transferMap
 
Methods inherited from class gov.sns.xal.model.elem.Element
compDriftingTime, getId, getType, getUID, initializeFrom, print, propagate, setId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

s_strType

public static final java.lang.String s_strType
type string identifier for all Marker objects

See Also:
Constant Field Values
Constructor Detail

Marker

public Marker(java.lang.String strId)
Creates a new instance of Marker

Parameters:
strId - identifier of this object

Marker

public Marker()
JavaBean constructor - creates a new unitialized instance of Marker BE CAREFUL

Method Detail

elapsedTime

public double elapsedTime(IProbe probe)
Returns the time taken for the probe to propagate through element.

Specified by:
elapsedTime in class ThinElement
Parameters:
probe - propagating probe
Returns:
the value zero

energyGain

public double energyGain(IProbe probe)
Returns energy gain which is zero.

Specified by:
energyGain in class ThinElement
Parameters:
probe - dummy argument
Returns:
returns zero

transferMap

protected PhaseMap transferMap(IProbe probe)
                        throws PropagationException
Returns the transfer map of this element which is the identity.

Specified by:
transferMap in class ThinElement
Parameters:
probe - dummy argument
Returns:
the identity phase map
Throws:
PropagationException - this should not occur