Class TransferMapState
- All Implemented Interfaces:
IProbeState
,IArchive
Probe state for the transfer map tracker.
NOTES: CKA
· I noticed a very brittle situation with this implementation.
ICoordinateState
requires the methods
@link ICoordinateState#getPhaseCoordinates()}
etc. Interface
ICoordinateState
extends IProbeState
. Well,
TransferMapState
inherits from ProbeState
which
implements IProbeState
. It's getting dicey.
· The TransferMapState
is really meant to compute
transfer maps only, and be very light weight. If you want to compute closed
orbit maps we should make a different probe.
- Author:
- Christopher K. Allen, t6p
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final String
attribute tag for betatron phaseprotected static final String
element tag for RF phaseFields inherited from class xal.model.probe.traj.ProbeState
STATE_LABEL, TYPE_LABEL
Fields inherited from interface xal.model.probe.traj.IProbeState
LIGHT_SPEED
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor, create newTransferMapState
and initialize to zero state values.TransferMapState
(TransferMapState transferMapState) Copy constructor for TransferMapState.TransferMapState
(TransferMapProbe probe) Initializing constructor - create a newTransferMapState
object and initialize it to the current state of the given probe. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addPropertiesTo
(DataAdaptor daptSink) Save the probe state values to a data store represented by theDataAdaptor
interface.copy()
Implements the clone operation required by the base classProbeState
.Returns the partial transfer map that transports particle phase coordinates through the space occupied by this state.Get the composite transfer map at this state location.protected void
readPropertiesFrom
(DataAdaptor daptSrc) Restore the state values for this probe state object from the data store represented by theDataAdaptor
interface.void
setPartialTransferMap
(PhaseMap mapPart) Sets the current partial transfer map, or "through map".void
setStateTransferMap
(PhaseMap mapTrans) Set the transfer map across this state, from entrance to exit.void
setTransferMap
(PhaseMap mapTrans) Set the current composite transfer map up to the current probe location.toString()
Get a string representation of this state.Methods inherited from class xal.model.probe.traj.ProbeState
computeBetaFromGamma, computeGammaFromBeta, computeGammaFromW, getBeta, getBetaGamma, getElementId, getElementTypeId, getGamma, getHardwareNodeId, getKineticEnergy, getLongitudinalPhase, getMomentum, getPosition, getSpeciesCharge, getSpeciesRestEnergy, getTime, load, save, setElementId, setElementTypeId, setHardwareNodeId, setKineticEnergy, setLongitudinalPhase, setPosition, setSpeciesCharge, setSpeciesRestEnergy, setTime
-
Field Details
-
LABEL_STATE
element tag for RF phase- See Also:
-
ATTR_MAP
attribute tag for betatron phase- See Also:
-
-
Constructor Details
-
TransferMapState
public TransferMapState()Constructor, create newTransferMapState
and initialize to zero state values. -
TransferMapState
Copy constructor for TransferMapState. Initializes the newTransferMapState
objects with the state attributes of the givenTransferMapState
.- Parameters:
transferMapState
- initializing state- Since:
- Jun 26, 2014
-
TransferMapState
Initializing constructor - create a newTransferMapState
object and initialize it to the current state of the given probe.- Parameters:
probe
- probe object with initial state information
-
-
Method Details
-
setTransferMap
Set the current composite transfer map up to the current probe location.- Parameters:
mapTrans
- transfer map in homogeneous phase coordinates- See Also:
-
setPartialTransferMap
Sets the current partial transfer map, or "through map". This map transfers particle phase coordinates through a distance occupied by this state.- Parameters:
mapPart
- transfer map through this state- Since:
- Nov 22, 2013
-
setStateTransferMap
Set the transfer map across this state, from entrance to exit.- Parameters:
mapTrans
- transfer map in homogeneous phase coordinates- See Also:
-
getTransferMap
Get the composite transfer map at this state location. The composite map φ maps the phase coordinates of particles at the beginning of theTransferMapTrajectory
parent (i.e., at the first state of the trajectory object) to this state.- Returns:
- transfer map in homogeneous phase space coordinates
-
getPartialTransferMap
Returns the partial transfer map that transports particle phase coordinates through the space occupied by this state.
Get the partial transfer map that maps particle phase coordinates from the previous state exit to this state's exit. The product of all these partial transfer maps from the first state to this state would yield the returned value of
.getTransferMap()
- Returns:
- partial transfer map through this state
- Since:
- Nov 22, 2013
-
copy
Implements the clone operation required by the base classProbeState
.- Specified by:
copy
in classProbeState<TransferMapState>
- Returns:
- a deep copy of this object.
- Since:
- Jun 27, 2014
- See Also:
-
addPropertiesTo
Save the probe state values to a data store represented by theDataAdaptor
interface.- Overrides:
addPropertiesTo
in classProbeState<TransferMapState>
- Parameters:
daptSink
- data sink to receive state information- See Also:
-
readPropertiesFrom
Restore the state values for this probe state object from the data store represented by theDataAdaptor
interface.- Overrides:
readPropertiesFrom
in classProbeState<TransferMapState>
- Parameters:
daptSrc
- data source for probe state information- Throws:
DataFormatException
- error in data format- See Also:
-
toString
Get a string representation of this state.- Overrides:
toString
in classProbeState<TransferMapState>
- Returns:
- a string representation of this state
- See Also:
-