public class LatticeFactory
extends java.lang.Object
Constructor and Description |
---|
LatticeFactory()
Create a new instance of LatticeFactory with default element kinds.
|
LatticeFactory(java.util.List<java.lang.String> thickKinds,
java.util.List<java.lang.String> thinKinds)
Create a new instance of LatticeFactory.
|
Modifier and Type | Method and Description |
---|---|
static Lattice |
concatenate(Lattice left,
Lattice right)
Concatenate two lattices and generate the Node-to-Element dictionary for the
resulting combined lattice.
|
Lattice |
getLattice(AcceleratorSeq sequence)
Return a lattice for an accelerator sequence.
|
Lattice |
getLattice(AcceleratorSeqCombo sequence)
Return a lattice for an accelerator sequence.
|
void |
setDebug(boolean debug)
Set debugging output to stdout.
|
void |
setHalfMag(boolean halfmag)
Set flag to force lattice generator to place a permanant marker in the middle of every
thick element.
|
void |
setHalfQuad(boolean halfquad)
Alias for method setHalfMag()
|
void |
setVerbose(boolean verbose)
Set debugging output to verbose.
|
static java.lang.String |
version()
Return a version string w/o the cvs keyword (i.e.
|
public LatticeFactory(java.util.List<java.lang.String> thickKinds, java.util.List<java.lang.String> thinKinds)
thickKinds
- : a list of strings of thick (and slim) element kinds.
Example: ["DH","QH","QV","PQ","RG","BCM"].
thinKinds
- : a list of strings of thin (and slim) element kinds.
Example: ["DCH","DCV","RG","BCM","BPM","WS","Foil","VacuumWindow"].
public LatticeFactory()
["DH","QH","QV","PQ","SH","SV","RG","BCM"].
Kinds of thin (and slim) elements default to
["DCH","DCV","RG","BCM","BPM","WS","Foil","VacuumWindow"].
public static Lattice concatenate(Lattice left, Lattice right) throws LatticeError
left
- lattice in front of 'right'.right
- lattice behind 'left'.LatticeError
public Lattice getLattice(AcceleratorSeqCombo sequence) throws LatticeError
sequence
- the XAL combo sequence of the accelerator.LatticeError
public Lattice getLattice(AcceleratorSeq sequence) throws LatticeError
sequence
- the XAL sequence of the accelerator.LatticeError
public void setDebug(boolean debug)
debug
- true
for output else false
.public void setVerbose(boolean verbose)
verbose
- true
for verbose output else false
.public void setHalfMag(boolean halfmag)
halfmag
- true
yes put the middle marker (default), else false
for no middle markers. Note that the forward dictionary that maps from accelerator
nodes to lattice elements needs these middle markers. Unless the dictionary is not
needed the default setting should always be accepted.public void setHalfQuad(boolean halfquad)
public static java.lang.String version()