|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--gov.sns.xal.smf.AcceleratorNode
|
+--gov.sns.xal.smf.AcceleratorSeq
|
+--gov.sns.xal.smf.AcceleratorSeqCombo
The implementation of the accelerator combo sequence, This class is meant to deal with pasting together existing sequences into new sequences.
| Field Summary | |
static java.lang.String |
s_strType
|
| Fields inherited from class gov.sns.xal.smf.AcceleratorSeq |
m_arrNodes, m_bucSequence, nodeTable |
| Fields inherited from class gov.sns.xal.smf.AcceleratorNode |
channelSuite, m_bolIsSoft, m_bolStatus, m_bolValid, m_bucAlign, m_bucAper, m_bucTwiss, m_dblLen, m_dblPos, m_mapAttrs, m_objAccel, m_seqParent, m_strId |
| Constructor Summary | |
AcceleratorSeqCombo(java.lang.String strID,
Accelerator accelerator,
DataAdaptor adaptor)
Constructor |
|
AcceleratorSeqCombo(java.lang.String strID,
java.util.List seqs)
Primary constructor |
|
| Method Summary | |
java.util.List |
getAllNodes()
return all nodes, with filters on primary seqences |
java.util.List |
getBaseConstituents()
Get the constituent sequences looking deeply even if the combo sequences are nested in many layers. |
java.util.List |
getBaseConstituentsWithQualifier(TypeQualifier qualifier)
Get the constituent sequences looking deeply even if the combo sequences are nested in many layers. |
java.util.List |
getConstituentNames()
gets the list of the names of the constituent seqnences |
java.util.List |
getConstituents()
Get the constituent sequences. |
java.util.List |
getConstituentsWithQualifier(TypeQualifier qualifier)
Get the constituent sequences that are matched by the qualifier. |
static AcceleratorSeqCombo |
getInstance(java.lang.String strID,
Accelerator accelerator,
DataAdaptor adaptor)
Instantiate a an AcceleratorSeqCombo or a subclass depending on whether the sequences form a ring. |
static AcceleratorSeqCombo |
getInstance(java.lang.String strID,
java.util.List sequences)
Instantiate a an AcceleratorSeqCombo or a subclass depending on whether the sequences form a ring. |
double |
getLength()
override the total length for this combo sequence |
java.util.List |
getNodes()
Shallow fetch of nodes. |
AcceleratorNode |
getNodeWithId(java.lang.String label)
Search deeply for and get the node with the specified id. |
double |
getPosition(AcceleratorNode node)
get the position of a node in the sequence, including the extra length of the sequence starting position itself Note: this way could also be done in the parent AcceleratorSeq class, be we choose to use a more efficient scheme there, specfic to primary sequences. |
protected static java.util.List |
getSequences(Accelerator accelerator,
DataAdaptor adaptor)
|
java.lang.String |
getType()
Override to identify this sequence as a combo sequence |
| Methods inherited from class gov.sns.xal.smf.AcceleratorSeq |
addBucket, addNode, addNodeAt, addSequenceChain, addSoft, canPrecede, contains, dataLabel, formsRing, getAllNodesOfType, getAllNodesWithQualifier, getAllSeqs, getIndexOfNode, getLeaves, getNodeAt, getNodeCount, getNodesOfType, getNodesWithQualifier, getNodesWithQualifier, getPredecessors, getSequence, getSequenceBuc, getSequences, indexToAddNode, isLinear, orderSequences, recurNodeSearch, recurSeqSearch, removeAllNodes, removeNode, setSequence, sortNodes, update, write |
| Methods inherited from class gov.sns.xal.smf.AcceleratorNode |
channelSuite, clear, getAccelerator, getAlign, getAndConnectChannel, getAper, getBucket, getBuckets, getChannel, getHandles, getId, getParent, getPosition, getStatus, getTwiss, getValid, hasBucket, hasParent, isKindOf, isMagnet, lazilyGetAndConnect, removeFromParent, setAccelerator, setAlign, setAper, setLength, setParent, setPosition, setStatus, setTwiss, setValid, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final java.lang.String s_strType
| Constructor Detail |
public AcceleratorSeqCombo(java.lang.String strID,
java.util.List seqs)
public AcceleratorSeqCombo(java.lang.String strID,
Accelerator accelerator,
DataAdaptor adaptor)
| Method Detail |
public static AcceleratorSeqCombo getInstance(java.lang.String strID,
java.util.List sequences)
strID - The identifier of the new combo sequencesequences - The sequences to flatten into a combo sequence
public static AcceleratorSeqCombo getInstance(java.lang.String strID,
Accelerator accelerator,
DataAdaptor adaptor)
strID - The identifier of the new combo sequenceaccelerator - The accelerator that holds to the sequencesadaptor - the data adaptor for specifying the sequences to combine
protected static java.util.List getSequences(Accelerator accelerator,
DataAdaptor adaptor)
public java.lang.String getType()
getType in class AcceleratorSeqpublic double getLength()
getLength in class AcceleratorSeqpublic java.util.List getConstituentNames()
public double getPosition(AcceleratorNode node)
getPosition in class AcceleratorSeqnode - - the node for which the position is wantedpublic AcceleratorNode getNodeWithId(java.lang.String label)
getNodeWithId in class AcceleratorSeqlabel - The id of the node we are seeking.
public java.util.List getNodes()
getNodes in class AcceleratorSeqpublic java.util.List getConstituents()
public java.util.List getConstituentsWithQualifier(TypeQualifier qualifier)
qualifier - The qualifier to restrict which constituents are returned
public java.util.List getBaseConstituents()
public java.util.List getBaseConstituentsWithQualifier(TypeQualifier qualifier)
qualifier - The qualifier for matching which constituents get returned
public java.util.List getAllNodes()
getAllNodes in class AcceleratorSeq
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||