Package xal.smf.impl
Class Klystron
java.lang.Object
xal.smf.impl.Klystron
- All Implemented Interfaces:
DataListener
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Accelerator
final AccessibleProperty
protected ChannelSuite
static final String
static final String
static final String
static final String
final AccessibleProperty
protected String
static final String
-
Constructor Summary
ConstructorsConstructorDescriptionKlystron
(Accelerator anAccelerator) Constructor for Klystron using the same channel factory as the provided accelerator. -
Method Summary
Modifier and TypeMethodDescriptiondataLabel() provides the name used to identify the class in an external data source.findChannel
(String handle) Find the channel for the specified handle.getAndConnectChannel
(String handle) Get the channel corresponding to the specified handle and connect it.getChannel
(String handle) Get the channel for the specified handle.Get the channel suite.int[]
Get predefined control flags.getId()
Get the unique power supply IDdouble
Get the klystron's amplitude.double
Get the klystron's phase.int[]
Get power distribution factorsboolean
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.
-
Field Details
-
KLYS_AMP_SET_HANDLE
- See Also:
-
amplitude
-
KLYS_PHASE_SET_HANDLE
- See Also:
-
phase
-
KLYS_AMP_RB_HANDLE
- See Also:
-
KLYS_PHASE_RB_HANDLE
- See Also:
-
accelerator
-
channelSuite
-
strId
-
TYPE
- See Also:
-
-
Constructor Details
-
Klystron
Constructor for Klystron using the same channel factory as the provided accelerator.- Parameters:
anAccelerator
- the accelerator object this klystron belongs to
-
-
Method Details
-
dataLabel
Description copied from interface:DataListener
dataLabel() provides the name used to identify the class in an external data source.- Specified by:
dataLabel
in interfaceDataListener
- Returns:
- a tag that identifies the receiver's type
-
findChannel
Find the channel for the specified handle.- Parameters:
handle
- The handle for the channel to fetch- Returns:
- the channel if found or null if not found
-
getAndConnectChannel
Get the channel corresponding to the specified handle and connect it.- Parameters:
handle
- The handle for the channel to get.- Returns:
- The channel associated with this node and the specified handle or null if there is no match.
- Throws:
NoSuchChannelException
- if no such channel as specified by the handle is associated with this node.ConnectionException
- if the channel cannot be connected
-
getChannel
Get the channel for the specified handle.- Parameters:
handle
- The handle for the channel to fetch- Returns:
- the channel
- Throws:
NoSuchChannelException
-
getChannelSuite
Get the channel suite.- Returns:
- the channel suite.
-
getKlysAmp
Get the klystron's amplitude.- Returns:
- klystron amplitude
- Throws:
ConnectionException
GetException
-
getKlysPhase
Get the klystron's phase.- Returns:
- klystron phase
- Throws:
ConnectionException
GetException
-
getId
Get the unique power supply ID- Returns:
- The power supply ID
-
getControlFlag
public int[] getControlFlag()Get predefined control flags.- Returns:
- control flag in integer array
-
getPowerFact
public int[] getPowerFact()Get power distribution factors- Returns:
- power distribution flags in integer array
-
getType
Get the klystron type.- Returns:
- klystron type
-
getStatus
public boolean getStatus() -
setKlysAmp
Set klystron amplitude.- Parameters:
newAmp
- new klystron amplitude- Throws:
ConnectionException
PutException
-
setKlysPhase
Set klystron phase.- Parameters:
newPhase
- new klystron phase- Throws:
ConnectionException
PutException
-
setControlFlag
public void setControlFlag(int[] cFlag) Set control flag.- Parameters:
cFlag
- control flag in integer array
-
setPowerFact
public void setPowerFact(int[] pFact) Set Power distribution factors.- Parameters:
pFact
- power distribution factors in integer array
-
setStatus
public void setStatus(boolean stat) -
update
Description copied from interface:DataListener
Update the data based on the information provided by the data provider.- Specified by:
update
in interfaceDataListener
- Parameters:
adaptor
- The adaptor from which to update the data
-
write
Description copied from interface:DataListener
Write data to the data adaptor for storage.- Specified by:
write
in interfaceDataListener
- Parameters:
adaptor
- The adaptor to which the receiver's data is written
-