|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--gov.sns.xal.smf.impl.MagnetPowerSupply
PowerSupply is the abstract super class of all power supplies.
| Field Summary | |
protected Accelerator |
accelerator
|
protected ChannelSuite |
channelSuite
|
static java.lang.String |
CURRENT_RB_HANDLE
|
static java.lang.String |
CURRENT_SET_HANDLE
|
static int |
CYCLE_INVALID
|
static java.lang.String |
CYCLE_STATE_HANDLE
|
static int |
CYCLE_VALID
|
static int |
CYCLING
|
protected java.lang.String |
strId
|
| Constructor Summary | |
MagnetPowerSupply(Accelerator anAccelerator)
Creates a new instance of PowerSupply |
|
| Method Summary | |
java.lang.String |
dataLabel()
dataLabel() provides the name used to identify the class in an external data source. |
Channel |
getAndConnectChannel(java.lang.String handle)
Get the channel corresponding to the specified handle and connect it. |
Channel |
getChannel(java.lang.String handle)
Get the channel for the specified handle. |
ChannelSuite |
getChannelSuite()
Get the channel suite. |
double |
getCurrent()
Get the magnet power supply current |
int |
getCycleState()
Gets the cycle state of the magnet. |
java.lang.String |
getId()
Get the unique power supply ID |
java.util.Collection |
getNodes()
Get the accelerator nodes which are tied to this supply. |
java.util.Collection |
getNodes(java.util.Collection trialNodes)
Get the subset of nodes from trialNodes which are supplied by this power supply. |
abstract java.lang.String |
getType()
Get the power supply type |
double |
lowerCurrentLimit()
get the current lower settable limit (A) |
void |
setCurrent(double current)
Set the magnet power supply current. |
abstract boolean |
suppliesNode(AcceleratorNode node)
Check if the electromagnet is supplied by this power supply. |
void |
update(DataAdaptor adaptor)
Instructs the receiver to update its data based on the given adaptor. |
double |
upperCurrentLimit()
get the current lower settable limit (A) |
void |
write(DataAdaptor adaptor)
Instructs the receiver to write its data to the adaptor for external storage. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected Accelerator accelerator
protected ChannelSuite channelSuite
protected java.lang.String strId
public static final int CYCLE_INVALID
public static final int CYCLING
public static final int CYCLE_VALID
public static final java.lang.String CYCLE_STATE_HANDLE
public static final java.lang.String CURRENT_SET_HANDLE
public static final java.lang.String CURRENT_RB_HANDLE
| Constructor Detail |
public MagnetPowerSupply(Accelerator anAccelerator)
| Method Detail |
public java.lang.String getId()
public abstract java.lang.String getType()
public java.lang.String dataLabel()
dataLabel in interface DataListenerpublic void update(DataAdaptor adaptor)
update in interface DataListeneradaptor - The adaptor from which to update the receiver's datapublic void write(DataAdaptor adaptor)
write in interface DataListeneradaptor - The adaptor to which the receiver's data is writtenpublic ChannelSuite getChannelSuite()
public Channel getChannel(java.lang.String handle)
throws NoSuchChannelException
handle - The handle for the channel to fetch
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 int getCycleState()
throws ConnectionException,
GetException
ConnectionException
GetException
public double getCurrent()
throws ConnectionException,
GetException
ConnectionException - if the readback channel cannot be connected
GetException - if the readback channel get action fails
public void setCurrent(double current)
throws ConnectionException,
PutException
current - The current in amperes
ConnectionException - if the put channel cannot be connected
PutException - if the put channel set action fails
public double upperCurrentLimit()
throws ConnectionException,
GetException
ConnectionException
GetException
public double lowerCurrentLimit()
throws ConnectionException,
GetException
ConnectionException
GetExceptionpublic java.util.Collection getNodes()
public java.util.Collection getNodes(java.util.Collection trialNodes)
trialNodes - The collection of nodes from which to check for matches.
public abstract boolean suppliesNode(AcceleratorNode node)
node - The electromagnet to check
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||