public class Accelerator extends AcceleratorSeq implements DataListener
_sequences, m_arrNodes, m_bucSequence, nodeTable, s_strType
channelSuite, m_bolIsSoft, m_bolStatus, m_bolValid, m_bucAlign, m_bucAper, m_bucTwiss, m_dblLen, m_dblPos, m_dblS, m_mapAttrs, m_objAccel, m_seqParent, m_strEId, m_strId, m_strPId
Constructor and Description |
---|
Accelerator() |
Accelerator(java.lang.String sysId)
Primary constructor
|
Modifier and Type | Method and Description |
---|---|
protected void |
addComboSequence(AcceleratorSeqCombo comboSequence)
Add a combo sequence to this accelerator
|
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<AcceleratorSeqCombo> |
getComboSequences()
Get the list of predefined combo sequences ordered by ID.
|
java.lang.String |
getDate() |
ElementMapping |
getElementMapping()
Returns the model element mapping currently in use
by this accelerator.
|
java.util.Collection<MagnetMainSupply> |
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<MagnetTrimSupply> |
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 nodeID)
Returns the AcceleratorNode with a requsted name
|
AcceleratorNodeFactory |
getNodeFactory()
Get the accelerator node factory
|
Ring |
getRing(java.lang.String ringID)
Get the ring in this accelerator with the specified ID
|
java.util.List<Ring> |
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 |
setElementMapping(ElementMapping elementMapping)
Sets the model element mapping used by this accelerator
object.
|
void |
setNodeFactory(AcceleratorNodeFactory nodeFactory)
Set the factory used to generate new accelerator nodes
|
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.
|
addBucket, addNode, addNodeAt, addSequenceChain, addSoft, appendNodesOfClassWithQualifier, appendNodesWithQualifier, canPrecede, contains, filterNodesByClass, filterNodesByStatus, formsRing, getAllInclusiveNodes, getAllInclusiveNodes, getAllInclusiveNodesWithQualifier, getAllNodes, getAllNodes, getAllNodesOfType, getAllNodesWithQualifier, getAllSeqs, getDistanceBetween, getEntranceID, getIndexOfNode, getLeaves, getLength, getNodeAt, getNodeCount, getNodes, getNodes, getNodesOfClassWithQualifier, getNodesOfClassWithQualifier, getNodesOfClassWithStatus, getNodesOfType, getNodesOfType, getNodesWithQualifier, getNodesWithQualifier, getNodeWithId, getPosition, getPredecessors, getPrimaryAncestor, getRelativePosition, getRelativePosition, getSequence, getSequenceBuc, getSequences, getSequences, getShortestRelativePosition, getType, indexToAddNode, isLinear, orderSequences, recurNodeSearch, recurSeqSearch, removeAllNodes, removeNode, setSequence, sortNodes, sortNodesByProximity, sortNodesByRelativePosition, writeDeeply
channelSuite, clear, findChannel, getAlign, getAndConnectChannel, getAper, getBucket, getBuckets, getChannel, getDesignPropertyValue, getEId, getHandles, getId, getLivePropertyChannels, getLivePropertyValue, getParent, getPId, getPitchAngle, getPosition, getRollAngle, getSDisplay, getSoftType, getStatus, getTwiss, getValid, getXOffset, getYawAngle, getYOffset, getZOffset, hasBucket, hasParent, isKindOf, isMagnet, lazilyGetAndConnect, removeFromParent, setAccelerator, setAlign, setAper, setLength, setParent, setPitchAngle, setPosition, setRollAngle, setSDisplay, setStatus, setTwiss, setValid, setXOffset, setYawAngle, setYOffset, setZOffset, toString
public Accelerator()
public Accelerator(java.lang.String sysId)
public java.lang.String dataLabel()
dataLabel
in interface DataListener
dataLabel
in class AcceleratorSeq
public void update(DataAdaptor adaptor) throws java.lang.NumberFormatException
update
in interface DataListener
update
in class AcceleratorSeq
adaptor
- The adaptor from which to update the accelerator's datajava.lang.NumberFormatException
protected void updatePowerSupplies(DataAdaptor adaptor)
adaptor
- The adaptor for the accelerator power suppliespublic void write(DataAdaptor adaptor)
write
in interface DataListener
write
in class AcceleratorSeq
adaptor
- 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 AcceleratorNode
public void setDate(java.lang.String strDate)
public void setVersion(java.lang.String strVer)
public AcceleratorNodeFactory getNodeFactory()
public void setNodeFactory(AcceleratorNodeFactory nodeFactory)
public void setElementMapping(ElementMapping elementMapping)
elementMapping
- the new element mappingpublic ElementMapping getElementMapping()
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)
comboSequence
- The combo sequence to addpublic AcceleratorSeqCombo getComboSequence(java.lang.String comboID)
comboID
- the id identifying the combo sequencepublic java.util.List<AcceleratorSeqCombo> getComboSequences()
public Ring getRing(java.lang.String ringID)
ringID
- the ID of the ring to getpublic java.util.List<Ring> getRings()
public AcceleratorSeq findSequence(java.lang.String sequenceID)
sequenceID
- the id identifying the desired sequencepublic AcceleratorNode getNode(java.lang.String nodeID)
nodeID
- - the name to matchpublic java.util.Collection<MagnetMainSupply> getMagnetMainSupplies()
public MagnetMainSupply getMagnetMainSupply(java.lang.String supplyId)
supplyId
- The id of the main power supply to getpublic java.util.Collection<MagnetTrimSupply> getMagnetTrimSupplies()
public MagnetTrimSupply getMagnetTrimSupply(java.lang.String supplyId)
supplyId
- The id of the main power supply to get