|
||||||||||
| 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.Accelerator
The hierarchical tree of accelerator nodes, elements and sequences of elements.
| Nested Class Summary | |
static interface |
Accelerator.EditContextPost
Interface for posting change of default edit context |
| Field Summary | |
protected java.util.Map |
_comboSequences
Map of predefined combo sequences mapped by combo sequence ID |
protected java.util.Map |
magnetMainSupplies
Map of main power supplies keyed by the power supply id |
protected java.util.Map |
magnetTrimSupplies
Map of trim power supplies keyed by the power supply id |
| Fields inherited from class gov.sns.xal.smf.AcceleratorSeq |
m_arrNodes, m_bucSequence, nodeTable, s_strType |
| 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 | |
Accelerator()
|
|
Accelerator(java.lang.String sysId)
Primary constructor |
|
| Method Summary | |
protected void |
addComboSequence(AcceleratorSeqCombo comboSequence)
Add a combo sequence generated from the comboAdaptor |
java.lang.String |
dataLabel()
dataLabel() provides the name used to identify the accelerator in an external data source. |
EditContext |
editContext()
Get this accelerator's edit context |
AcceleratorSeq |
findSequence(java.lang.String sequenceID)
Find a sequence with the specified ID. |
Accelerator |
getAccelerator()
return the top level accelerator that this node belongs to |
AcceleratorSeqCombo |
getComboSequence(java.lang.String comboID)
Fetch the predefined combo sequence based on its ID |
java.util.List |
getComboSequences()
Get the list of predefined combo sequences ordered by ID. |
java.lang.String |
getDate()
|
java.util.Collection |
getMagnetMainSupplies()
Get the set of all magnet main supplies |
MagnetMainSupply |
getMagnetMainSupply(java.lang.String supplyId)
Get a main power supply whose id is supplyId |
java.util.Collection |
getMagnetTrimSupplies()
Get the set of all magnet trim supplies |
MagnetTrimSupply |
getMagnetTrimSupply(java.lang.String supplyId)
Get a main power supply whose id is supplyId |
AcceleratorNode |
getNode(java.lang.String strId)
Returns the AcceleratorNode with a requsted name |
Ring |
getRing(java.lang.String ringID)
Get the ring in this accelerator with the specified ID |
java.util.List |
getRings()
Get the list of all rings in the accelerator |
AcceleratorSeq |
getRoot()
|
java.lang.String |
getSystemId()
|
TimingCenter |
getTimingCenter()
Get this accelerator's timing center |
java.lang.String |
getVersion()
|
protected void |
nodeAdded(AcceleratorNode p_node)
Handle the event indicating that a node has been added. |
protected void |
nodeRemoved(AcceleratorNode p_node)
Handle the event indicating that a node has been removed. |
void |
setDate(java.lang.String strDate)
|
void |
setEditContext(EditContext newContext)
Set this accelerator's edit context |
void |
setTimingCenter(TimingCenter timingCenter)
Set this accelerator's timing center |
void |
setVersion(java.lang.String strVer)
|
void |
update(DataAdaptor adaptor)
Instructs the accelerator to update its data based on the given adaptor. |
protected void |
updatePowerSupplies(DataAdaptor adaptor)
Update the power supplies given the power supply adaptor |
void |
write(DataAdaptor adaptor)
Instructs the accelerator to write its data to the adaptor for external storage. |
| Methods inherited from class gov.sns.xal.smf.AcceleratorSeq |
addBucket, addNode, addNodeAt, addSequenceChain, addSoft, canPrecede, contains, formsRing, getAllNodes, getAllNodesOfType, getAllNodesWithQualifier, getAllSeqs, getIndexOfNode, getLeaves, getLength, getNodeAt, getNodeCount, getNodes, getNodesOfType, getNodesWithQualifier, getNodesWithQualifier, getNodeWithId, getPosition, getPredecessors, getSequence, getSequenceBuc, getSequences, getType, indexToAddNode, isLinear, orderSequences, recurNodeSearch, recurSeqSearch, removeAllNodes, removeNode, setSequence, sortNodes |
| Methods inherited from class gov.sns.xal.smf.AcceleratorNode |
channelSuite, clear, 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 |
protected java.util.Map _comboSequences
protected java.util.Map magnetMainSupplies
protected java.util.Map magnetTrimSupplies
| Constructor Detail |
public Accelerator()
public Accelerator(java.lang.String sysId)
| Method Detail |
public java.lang.String dataLabel()
dataLabel in interface DataListenerdataLabel in class AcceleratorSeq
public void update(DataAdaptor adaptor)
throws java.lang.NumberFormatException
update in interface DataListenerupdate in class AcceleratorSeqadaptor - The adaptor from which to update the accelerator's data
java.lang.NumberFormatExceptionprotected void updatePowerSupplies(DataAdaptor adaptor)
adaptor - The adaptor for the accelerator power suppliespublic void write(DataAdaptor adaptor)
write in interface DataListenerwrite in class AcceleratorSeqadaptor - The adaptor to which the accelerator's data is writtenprotected void nodeAdded(AcceleratorNode p_node)
p_node - the node that has been addedprotected void nodeRemoved(AcceleratorNode p_node)
p_node - the node that has been removedpublic java.lang.String getSystemId()
public java.lang.String getDate()
public java.lang.String getVersion()
public AcceleratorSeq getRoot()
public Accelerator getAccelerator()
AcceleratorNode
getAccelerator in class AcceleratorNodepublic void setDate(java.lang.String strDate)
public void setVersion(java.lang.String strVer)
public EditContext editContext()
public void setEditContext(EditContext newContext)
newContext - the accelerator's new edit contextpublic TimingCenter getTimingCenter()
public void setTimingCenter(TimingCenter timingCenter)
timingCenter - the accelerator's new timing centerprotected void addComboSequence(AcceleratorSeqCombo comboSequence)
public AcceleratorSeqCombo getComboSequence(java.lang.String comboID)
comboID - the id identifying the combo sequence
public java.util.List getComboSequences()
public Ring getRing(java.lang.String ringID)
ringID - the ID of the ring to get
public java.util.List getRings()
public AcceleratorSeq findSequence(java.lang.String sequenceID)
sequenceID - the id identifying the desired sequence
public AcceleratorNode getNode(java.lang.String strId)
strId - - the name to matchpublic java.util.Collection getMagnetMainSupplies()
public MagnetMainSupply getMagnetMainSupply(java.lang.String supplyId)
supplyId - The id of the main power supply to get
public java.util.Collection getMagnetTrimSupplies()
public MagnetTrimSupply getMagnetTrimSupply(java.lang.String supplyId)
supplyId - The id of the main power supply to get
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||