Package xal.smf.impl
Class Klystron
java.lang.Object
xal.smf.impl.Klystron
- All Implemented Interfaces:
DataListener
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Acceleratorfinal AccessiblePropertyprotected ChannelSuitestatic final Stringstatic final Stringstatic final Stringstatic final Stringfinal AccessiblePropertyprotected Stringstatic 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 IDdoubleGet the klystron's amplitude.doubleGet the klystron's phase.int[]Get power distribution factorsbooleangetType()Get the klystron type.voidsetControlFlag(int[] cFlag) Set control flag.voidsetKlysAmp(double newAmp) Set klystron amplitude.voidsetKlysPhase(double newPhase) Set klystron phase.voidsetPowerFact(int[] pFact) Set Power distribution factors.voidsetStatus(boolean stat) voidupdate(DataAdaptor adaptor) Update the data based on the information provided by the data provider.voidwrite(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:DataListenerdataLabel() provides the name used to identify the class in an external data source.- Specified by:
dataLabelin 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:
ConnectionExceptionGetException
-
getKlysPhase
Get the klystron's phase.- Returns:
- klystron phase
- Throws:
ConnectionExceptionGetException
-
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:
ConnectionExceptionPutException
-
setKlysPhase
Set klystron phase.- Parameters:
newPhase- new klystron phase- Throws:
ConnectionExceptionPutException
-
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:DataListenerUpdate the data based on the information provided by the data provider.- Specified by:
updatein interfaceDataListener- Parameters:
adaptor- The adaptor from which to update the data
-
write
Description copied from interface:DataListenerWrite data to the data adaptor for storage.- Specified by:
writein interfaceDataListener- Parameters:
adaptor- The adaptor to which the receiver's data is written
-