|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--gov.sns.xal.smf.AcceleratorNode
The base class in the hierarchy of different accelerator node types.
| Field Summary | |
protected ChannelSuite |
channelSuite
channel suite associated with this node |
protected boolean |
m_bolIsSoft
Indicator if this node is a "softNode" copy |
protected boolean |
m_bolStatus
Indicator as to whether the Accelerator Node is functional |
protected boolean |
m_bolValid
Indicator as to whether accelerator node is valid |
protected AlignmentBucket |
m_bucAlign
alignment attribute bucket for node |
protected ApertureBucket |
m_bucAper
aperture parameters for node |
protected TwissBucket |
m_bucTwiss
twiss parameter bucket for node |
protected double |
m_dblLen
length of node |
protected double |
m_dblPos
position of node |
protected java.util.HashMap |
m_mapAttrs
all attribute buckets for node |
protected Accelerator |
m_objAccel
the associated Accelerator object |
protected AcceleratorSeq |
m_seqParent
parent sequence object |
protected java.lang.String |
m_strId
node identifier |
| Constructor Summary | |
AcceleratorNode(java.lang.String strId)
base constructor for an Accelector Node |
|
| Method Summary | |
void |
addBucket(AttributeBucket buc)
General attribute buckets support |
ChannelSuite |
channelSuite()
channel suite accessor |
void |
clear()
remove this node from the accelerator hieracrhcy |
java.lang.String |
dataLabel()
implement DataListener interface |
Accelerator |
getAccelerator()
return the top level accelerator that this node belongs to |
AlignmentBucket |
getAlign()
returns the bucket containing the alignment parameters - see attr.AlignBucket |
Channel |
getAndConnectChannel(java.lang.String handle)
Get the channel corresponding to the specified handle and connect it. |
ApertureBucket |
getAper()
returns the bucket containing the Aperture parameters - see attr.ApertureBucket |
AttributeBucket |
getBucket(java.lang.String type)
|
java.util.Collection |
getBuckets()
|
Channel |
getChannel(java.lang.String chanHandle)
this method returns the Channel object of this node, associated with a prescibed PV name. |
java.util.Collection |
getHandles()
accessor to channel suite handles |
java.lang.String |
getId()
return the ID of this node |
double |
getLength()
return the physical length of this node (m) |
AcceleratorNode |
getParent()
return the parent sequence that this node belongs to |
double |
getPosition()
return the position of this node, along the reference orbit within its sequence (m) |
boolean |
getStatus()
Runtime indication of accelerator component operation |
TwissBucket |
getTwiss()
returns the bucket containing the twiss parameters - see attr.TwissBucket |
abstract java.lang.String |
getType()
Derived class must furnish a unique type id |
boolean |
getValid()
Runtime indication of the validatity of component operation |
boolean |
hasBucket(AttributeBucket bucket)
|
boolean |
hasParent()
Indicates if the node has a parent set |
boolean |
isKindOf(java.lang.String compType)
Determine if a node is of the specified type. |
boolean |
isMagnet()
Determine if the node is a magnet. |
Channel |
lazilyGetAndConnect(java.lang.String chanHandle,
Channel channel)
A method to make an EPICS ca connection for a given PV name The channel connection is initiated, and no extra work is done, if the channel connection already exists |
protected void |
removeFromParent()
remove this node from its immediate parent sequence |
protected void |
setAccelerator(Accelerator accel)
set the top level accelerator for this node |
void |
setAlign(AlignmentBucket buc)
sets the bucket containing the twiss parameters - see attr.TwissBucket |
void |
setAper(ApertureBucket buc)
sets the bucket containing the Aperture parameters - see attr.ApertureBucket |
void |
setLength(double dblLen)
|
protected void |
setParent(AcceleratorSeq parent)
define the parent sequence for this node |
void |
setPosition(double dblPos)
|
void |
setStatus(boolean bolStatus)
Runtime indication of accelerator operation |
void |
setTwiss(TwissBucket buc)
sets the bucket containing the alignment parameters - see attr.AlignBucket |
void |
setValid(boolean bolValid)
Runtime indication of the validatity of component operation |
java.lang.String |
toString()
Identify the node by its unique ID |
void |
update(DataAdaptor adaptor)
implement DataListener interface |
void |
write(DataAdaptor adaptor)
implement DataListener interface |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected java.lang.String m_strId
protected double m_dblPos
protected double m_dblLen
protected AcceleratorSeq m_seqParent
protected Accelerator m_objAccel
protected java.util.HashMap m_mapAttrs
protected AlignmentBucket m_bucAlign
protected TwissBucket m_bucTwiss
protected ApertureBucket m_bucAper
protected boolean m_bolStatus
protected boolean m_bolValid
protected boolean m_bolIsSoft
protected ChannelSuite channelSuite
| Constructor Detail |
public AcceleratorNode(java.lang.String strId)
strId - the string ID for this node| Method Detail |
public abstract java.lang.String getType()
public java.lang.String dataLabel()
dataLabel in interface DataListener
public void update(DataAdaptor adaptor)
throws java.lang.NumberFormatException
update in interface DataListeneradaptor - The adaptor from which to update the data
java.lang.NumberFormatExceptionpublic void write(DataAdaptor adaptor)
write in interface DataListeneradaptor - The adaptor to which the receiver's data is writtenpublic java.lang.String toString()
toString in class java.lang.Object
public Channel getChannel(java.lang.String chanHandle)
throws NoSuchChannelException
chanHandle - The handle to the epics channel in stored in the channel suite
NoSuchChannelException
public Channel getAndConnectChannel(java.lang.String handle)
throws NoSuchChannelException,
ConnectionException
handle - The handle for the channel to get.
NoSuchChannelException - if no such channel as specified by the handle is associated with this node.
ConnectionException - if the channel cannot be connected
public Channel lazilyGetAndConnect(java.lang.String chanHandle,
Channel channel)
throws ConnectionException,
NoSuchChannelException
ConnectionException
NoSuchChannelExceptionpublic java.lang.String getId()
public double getLength()
public double getPosition()
public Accelerator getAccelerator()
public AcceleratorNode getParent()
public boolean hasParent()
public boolean getStatus()
public boolean getValid()
public void setPosition(double dblPos)
public void setLength(double dblLen)
public void setStatus(boolean bolStatus)
bolStatus - true(up and running)
false(down)public void setValid(boolean bolValid)
bolValid - true(valid operation)
false(questionable operation)public void addBucket(AttributeBucket buc)
public java.util.Collection getBuckets()
public AttributeBucket getBucket(java.lang.String type)
public boolean hasBucket(AttributeBucket bucket)
public TwissBucket getTwiss()
public AlignmentBucket getAlign()
public ApertureBucket getAper()
public void setAlign(AlignmentBucket buc)
public void setTwiss(TwissBucket buc)
public void setAper(ApertureBucket buc)
public void clear()
protected void removeFromParent()
protected void setParent(AcceleratorSeq parent)
protected void setAccelerator(Accelerator accel)
public ChannelSuite channelSuite()
public java.util.Collection getHandles()
public boolean isKindOf(java.lang.String compType)
isKindOf in interface ElementTypecompType - The type against which to compare.
public boolean isMagnet()
isMagnet in interface ElementType
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||