public class Klystron extends java.lang.Object implements DataListener
| Modifier and Type | Field and Description |
|---|---|
protected Accelerator |
accelerator |
protected ChannelSuite |
channelSuite |
static java.lang.String |
KLYS_AMP_RB_HANDLE |
static java.lang.String |
KLYS_AMP_SET_HANDLE |
static java.lang.String |
KLYS_PHASE_RB_HANDLE |
static java.lang.String |
KLYS_PHASE_SET_HANDLE |
static java.lang.String |
s_strType |
protected java.lang.String |
strId |
| Constructor and Description |
|---|
Klystron(Accelerator anAccelerator)
Constructor for Klystron.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
dataLabel()
dataLabel() provides the name used to identify the class in an
external data source.
|
Channel |
findChannel(java.lang.String handle)
Find the channel for the specified handle.
|
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.
|
int[] |
getControlFlag()
Get predefined control flags.
|
java.lang.String |
getId()
Get the unique power supply ID
|
double |
getKlysAmp()
Get the klystron's amplitude.
|
double |
getKlysPhase()
Get the klystron's phase.
|
int[] |
getPowerFact()
Get power distribution factors
|
boolean |
getStatus() |
java.lang.String |
getType()
Get the klystron type.
|
void |
setControlFlag(int[] cFlag)
Set control flag.
|
void |
setKlysAmp(double newAmp)
Set klystron amplitude.
|
void |
setKlysPhase(double newPhase)
Set klystron phase.
|
void |
setPowerFact(int[] pFact)
Set Power distribution factors.
|
void |
setStatus(boolean stat) |
void |
update(DataAdaptor adaptor)
Update the data based on the information provided by the data provider.
|
void |
write(DataAdaptor adaptor)
Write data to the data adaptor for storage.
|
public static final java.lang.String KLYS_AMP_SET_HANDLE
public static final java.lang.String KLYS_PHASE_SET_HANDLE
public static final java.lang.String KLYS_AMP_RB_HANDLE
public static final java.lang.String KLYS_PHASE_RB_HANDLE
protected Accelerator accelerator
protected ChannelSuite channelSuite
protected java.lang.String strId
public static final java.lang.String s_strType
public Klystron(Accelerator anAccelerator)
anAccelerator - the accelerator object this klystron belongs topublic java.lang.String dataLabel()
DataListenerdataLabel in interface DataListenerpublic Channel findChannel(java.lang.String handle)
handle - The handle for the channel to fetchpublic 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 connectedpublic Channel getChannel(java.lang.String handle) throws NoSuchChannelException
handle - The handle for the channel to fetchNoSuchChannelExceptionpublic ChannelSuite getChannelSuite()
public double getKlysAmp()
throws ConnectionException,
GetException
ConnectionExceptionGetExceptionpublic double getKlysPhase()
throws ConnectionException,
GetException
ConnectionExceptionGetExceptionpublic java.lang.String getId()
public int[] getControlFlag()
public int[] getPowerFact()
public java.lang.String getType()
public boolean getStatus()
public void setKlysAmp(double newAmp)
throws ConnectionException,
PutException
newAmp - new klystron amplitudeConnectionExceptionPutExceptionpublic void setKlysPhase(double newPhase)
throws ConnectionException,
PutException
newPhase - new klystron phaseConnectionExceptionPutExceptionpublic void setControlFlag(int[] cFlag)
cFlag - control flag in integer arraypublic void setPowerFact(int[] pFact)
pFact - power distribution factors in integer arraypublic void setStatus(boolean stat)
public void update(DataAdaptor adaptor)
DataListenerupdate in interface DataListeneradaptor - The adaptor from which to update the datapublic void write(DataAdaptor adaptor)
DataListenerwrite in interface DataListeneradaptor - The adaptor to which the receiver's data is written