public class SynchronousState extends ProbeState<SynchronousState>
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
ATTR_PHASEBETA
attribute tag for betatron phase
|
protected static java.lang.String |
ATTR_PHASERF
attribute tag for RF phase
|
protected static java.lang.String |
LABEL_SYNCH
element tag for RF phase
|
STATE_LABEL, TYPE_LABEL
LightSpeed
Constructor and Description |
---|
SynchronousState()
Default constructor.
|
SynchronousState(SynchronousProbe probe)
Copy constructor.
|
SynchronousState(SynchronousState stateSync)
Copy constructor for SynchronousState.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addPropertiesTo(DataAdaptor daptSink)
Save the probe state values to a data store represented by the
DataAdaptor interface. |
SynchronousState |
copy()
Implements the clone operation required by the base class
ProbeState |
R3 |
getBetatronPhase()
Return the betatron phase advances in each plane.
|
double |
getRfPhase()
Return the phase location of the synchronous particle with respect
to any driving RF power.
|
protected void |
readPropertiesFrom(DataAdaptor daptSrc)
Restore the state values for this probe state object from the data store
represented by the
DataAdaptor interface. |
void |
setBetatronPhase(R3 vecPhase)
Set the betatron phase of the synchronous particle without space charge.
|
void |
setRfPhase(double dblPhase)
Set the phase location of the synchronous particle with respect to the
drive RF power.
|
java.lang.String |
toString()
Returns a string representation of this particle state.
|
computeBetaFromGamma, computeGammaFromBeta, computeGammaFromW, getBeta, getBetaGamma, getElementId, getGamma, getHardwareNodeId, getKineticEnergy, getMomentum, getPosition, getSpeciesCharge, getSpeciesRestEnergy, getTime, load, save, setElementId, setHardwareNodeId, setKineticEnergy, setPosition, setSpeciesCharge, setSpeciesRestEnergy, setTime
protected static final java.lang.String LABEL_SYNCH
protected static final java.lang.String ATTR_PHASEBETA
protected static final java.lang.String ATTR_PHASERF
public SynchronousState()
SynchronousState
object with zero state values.public SynchronousState(SynchronousState stateSync)
SynchronousState
objects with the state attributes
of the given SynchronousState
.stateSync
- initializing statepublic SynchronousState(SynchronousProbe probe)
SynchronousState
object
and initialize the state to that of the specified probe argument.probe
- probe containing initializing state informationpublic void setBetatronPhase(R3 vecPhase)
R3
vector object. Thus, the betatron phase of each plane
is set simultaneously.vecPhase
- vector (psix,psiy,psiz) of betatron phases in radianspublic void setRfPhase(double dblPhase)
dblPhase
- synchronous particle phase w.r.t. RF in radianspublic R3 getBetatronPhase()
public double getRfPhase()
public SynchronousState copy()
ProbeState
copy
in class ProbeState<SynchronousState>
ProbeState.copy()
protected void addPropertiesTo(DataAdaptor daptSink)
DataAdaptor
interface.addPropertiesTo
in class ProbeState<SynchronousState>
daptState
- data sink to receive state informationgov.sns.xal.model.probe.traj.ProbeState#addPropertiesTo(gov.DataAdaptor.tools.data.IDataAdaptor)
protected void readPropertiesFrom(DataAdaptor daptSrc) throws ParsingException
DataAdaptor
interface.readPropertiesFrom
in class ProbeState<SynchronousState>
daptSrc
- data source for probe state informationParsingException
- error in data formatgov.sns.xal.model.probe.traj.ProbeState#readPropertiesFrom(gov.DataAdaptor.tools.data.IDataAdaptor)
public java.lang.String toString()
toString
in class ProbeState<SynchronousState>
super.toString()
Object.toString()