|
||||||||||
| 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.impl.Magnet
|
+--gov.sns.xal.smf.impl.Electromagnet
Electromagnet is the base class representation of an electromagnet.
| Field Summary | |
static java.lang.String |
FIELD_RB_HANDLE
|
protected java.lang.String |
mainSupplyId
|
static java.lang.String |
s_strType
|
| Fields inherited from class gov.sns.xal.smf.impl.Magnet |
leff, m_bucMagnet |
| 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 |
| Fields inherited from interface gov.sns.xal.smf.impl.qualify.MagnetType |
DIPOLE, HORIZONTAL, NO_ORIENTATION, OCT, OCTUPOLE, poles, QUAD, QUADRUPOLE, SEXT, SEXTUPOLE, VERTICAL |
| Constructor Summary | |
Electromagnet(java.lang.String strId)
Creates new Electromagnet |
|
| Method Summary | |
Channel |
getChannel(java.lang.String handle)
Get the channel corresponding to the specified handle. |
double |
getCurrent()
Get the main power supply current in this electromagnet via ca (A) |
int |
getCycleState()
Gets the cycle state of the magnet. |
double |
getField()
Get the field in this electromagnet via ca T/(m^(n-1)), where n = 1 for dipole, 2 for quad, etc. |
double |
getFieldInt()
Get the integrated field in this electromagnet T-m/(m^(n-1)), where n = 1 for dipole, 2 for quad, etc. |
java.util.Collection |
getHandles()
Get the channel handles. |
MagnetMainSupply |
getMainSupply()
Get the main power supply for this magnet. |
boolean |
isPermanent()
Since this is an electro-magnet we override the inherited method to advertise this characteristic. |
double |
lowerCurrentLimit()
get the main power supply current lower settable limit (A) |
double |
lowerFieldLimit()
get the field lower settable limit of the main power supply in T/(m^(n-1)), where n = 1 for dipole, 2 for quad, etc. |
void |
setCurrent(double newCurrent)
set the main power supply current in the magnet (A) |
void |
setCycleEnable(boolean enable)
Set the cycle enable state of the magnet. |
void |
setField(double newField)
Set the main power supply field contribution in the magnet. |
void |
update(DataAdaptor adaptor)
Update the node with data from the provided adaptor. |
protected void |
updatePowerSupplies(DataAdaptor powerSupplyAdaptor)
Update data from the power supply data adaptor. |
double |
upperCurrentLimit()
get the main power supply current lower settable limit (A) |
double |
upperFieldLimit()
get the field upper settable limit of the main power supply in T/(m^(n-1)), where n = 1 for dipole, 2 for quad, etc. |
void |
write(DataAdaptor adaptor)
Encode data from the node into the provided adaptor. |
protected void |
writePowerSupplies(DataAdaptor powerSupplyAdaptor)
Write data to the power supply data adaptor. |
| Methods inherited from class gov.sns.xal.smf.impl.Magnet |
addBucket, getDesignField, getDfltField, getEffLength, getMagBucket, getNormField, getOrientation, getPolarity, getTangField, isCorrector, isHorizontal, isMagnet, isPole, isSkew, isVertical, setMagBucket |
| Methods inherited from class gov.sns.xal.smf.AcceleratorNode |
channelSuite, clear, dataLabel, getAccelerator, getAlign, getAndConnectChannel, getAper, getBucket, getBuckets, getId, getLength, getParent, getPosition, getStatus, getTwiss, getType, getValid, hasBucket, hasParent, isKindOf, 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 |
| Methods inherited from interface gov.sns.xal.smf.impl.qualify.ElementType |
isKindOf |
| Field Detail |
public static final java.lang.String s_strType
public static final java.lang.String FIELD_RB_HANDLE
protected java.lang.String mainSupplyId
| Constructor Detail |
public Electromagnet(java.lang.String strId)
| Method Detail |
public void update(DataAdaptor adaptor)
throws java.lang.NumberFormatException
update in interface DataListenerupdate in class AcceleratorNodeadaptor - The data provider
java.lang.NumberFormatExceptionprotected void updatePowerSupplies(DataAdaptor powerSupplyAdaptor)
powerSupplyAdaptor - The data provider of power supply information.public void write(DataAdaptor adaptor)
write in interface DataListenerwrite in class AcceleratorNodeadaptor - The data storeprotected void writePowerSupplies(DataAdaptor powerSupplyAdaptor)
powerSupplyAdaptor - The data sink for the power supply informationpublic java.util.Collection getHandles()
getHandles in class AcceleratorNode
public Channel getChannel(java.lang.String handle)
throws NoSuchChannelException
getChannel in class AcceleratorNodehandle - The handle for the channel to get.
NoSuchChannelException - if no such channel as specified by the handle is associated with this node.public MagnetMainSupply getMainSupply()
public void setCycleEnable(boolean enable)
throws ConnectionException,
PutException
enable - True to enable cycling; false to disable cycling.
ConnectionException
PutException
public int getCycleState()
throws ConnectionException,
GetException
ConnectionException
GetException
public double getField()
throws ConnectionException,
GetException
ConnectionException
GetException
public double getFieldInt()
throws ConnectionException,
GetException
ConnectionException
GetException
public void setField(double newField)
throws ConnectionException,
PutException
newField - is the new field level in T/(m^(n-1)), where n = 1 for dipole, 2 for quad, etc.
ConnectionException
PutException
public double upperFieldLimit()
throws ConnectionException,
GetException
ConnectionException
GetException
public double lowerFieldLimit()
throws ConnectionException,
GetException
ConnectionException
GetException
public double getCurrent()
throws ConnectionException,
GetException
ConnectionException
GetException
public void setCurrent(double newCurrent)
throws ConnectionException,
PutException
newCurrent - is the new current (A)
ConnectionException
PutException
public double upperCurrentLimit()
throws ConnectionException,
GetException
ConnectionException
GetException
public double lowerCurrentLimit()
throws ConnectionException,
GetException
ConnectionException
GetExceptionpublic boolean isPermanent()
isPermanent in interface MagnetTypeisPermanent in class Magnet
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||