|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--gov.sns.tools.beam.PhaseMap
Represents a generalized map between homogeneous phase space coordinates. Note that it does not necessarily need to be symplectic.
| Field Summary | |
static java.lang.String |
ATTR_DATA
attribute marker for data |
static java.lang.String |
LABEL_ONE
label for first-order map component |
static java.lang.String |
LABEL_THREE
label for third-order map component |
static java.lang.String |
LABEL_TWO
label for second-order map component |
static java.lang.String |
LABEL_ZERO
label for zero-order map component (offset) |
| Constructor Summary | |
PhaseMap()
Creates a new instance of PhaseMap - produces the identiy map |
|
PhaseMap(PhaseMatrix matTrans)
Create a new instance of PhaseMap which behaves as a linear transform given by the specified matrix. |
|
PhaseMap(PhaseVector vecDispl)
Create a new instance of PhaseMap which behaves as simple translation in phase space given by the specified displacement vector. |
|
| Method Summary | |
PhaseVector |
apply(PhaseVector vecIn)
Apply the full transform of map to phase coordinates. |
PhaseMap |
compose(PhaseMap mapRight)
Non-destructive map composition - binary composition of two PhaseMaps |
void |
composeEquals(PhaseMap mapRight)
In-place map composition - binary composition of two PhaseMaps |
PhaseMatrix |
getFirstOrder()
Get the linear portion of the PhaseMap |
PhaseVector |
getZeroOrder()
Get the zero offset vector of the map. |
static PhaseMap |
identity()
Create an identity phase map |
void |
load(DataAdaptor daptArchive)
Restore the value of the this PhaseMatrix from the
contents of a data archive. |
void |
save(DataAdaptor daptArchive)
Save the value of this PhaseMatrix to a data sink
represented by the DataAdaptor interface. |
void |
setFirstOrder(PhaseMatrix matLin)
Set the linear part of the map |
void |
setZeroOrder(PhaseVector vecOff)
Set the zero-order portion of the map |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String LABEL_ZERO
public static final java.lang.String LABEL_ONE
public static final java.lang.String LABEL_TWO
public static final java.lang.String LABEL_THREE
public static final java.lang.String ATTR_DATA
| Constructor Detail |
public PhaseMap()
public PhaseMap(PhaseVector vecDispl)
vecDispl - displacement of the phase mappublic PhaseMap(PhaseMatrix matTrans)
matTrans - linear portion of the phase map| Method Detail |
public static PhaseMap identity()
public void setZeroOrder(PhaseVector vecOff)
vecOff - the output of the zero phase vectorpublic void setFirstOrder(PhaseMatrix matLin)
matLin - linear portion of phase mappublic void save(DataAdaptor daptArchive)
PhaseMatrix to a data sink
represented by the DataAdaptor interface.
save in interface IArchivedaptArchive - interface to data sinkIArchive.save(gov.sns.tools.data.DataAdaptor)
public void load(DataAdaptor daptArchive)
throws DataFormatException,
java.lang.IllegalArgumentException
PhaseMatrix from the
contents of a data archive.
load in interface IArchivedaptArchive - interface to data source
DataFormatException - malformed data
java.lang.IllegalArgumentException - wrong number of string tokensIArchive.load(gov.sns.tools.data.DataAdaptor)public PhaseVector getZeroOrder()
public PhaseMatrix getFirstOrder()
public PhaseMap compose(PhaseMap mapRight)
mapRight - right argument to map composition
public void composeEquals(PhaseMap mapRight)
mapRight - right argument to map compositionpublic PhaseVector apply(PhaseVector vecIn)
vecIn - phase vector input to map
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||