Package xal.smf
Class TimingCenter
java.lang.Object
xal.smf.TimingCenter
- All Implemented Interfaces:
DataListener
TimingCenter holds the timing channels for the accelerator.
- Author:
- tap
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumEnumeration of the possible values of the Beam Model process variable. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringActive Flavorstatic final StringCKA 11/04/11: Beam mode specifying maximum pulse length.static final Stringbeam on event counterstatic final Stringbeam on eventstatic final Stringbeam reference gate width (Turns)protected ChannelSuitechannel suite associated with this nodestatic final Stringactual chopper beam on (Turns)static final Stringactual chopper delay (Turns)static final Stringreadback while triggered beam pulses are counting downstatic final Stringspecify how many beam pulse(s)static final Stringstatic final Stringdiagnostic demand event counterstatic final Stringdiagnostic demand eventstatic final Stringfast (6 Hz) diagnostic event counterstatic final Stringfast (6 Hz) diagnostic eventstatic final StringMachine Modestatic final Stringbeam trigger mode PV: 0=Continuous, 1=Single-shotstatic final Stringreadback of overall rep rate (Hz)static final StringRing Energystatic final Stringreadback of the ring frequency in MHzstatic final Stringnumber of stored turns in the ringstatic final Stringslow (1 Hz) diagnostic event counterstatic final Stringslow (1 Hz) diagnostic eventstatic final Stringbeam trigger PV: 0=Trigger, 1=Counting -
Constructor Summary
ConstructorsConstructorDescriptionCreate an empty TimingCenterTimingCenter(ChannelFactory channelFactory) Create an empty TimingCenter -
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 of this timing center, for the specified channel handle.Get this timing center's channel suitestatic TimingCenterGet the default TimingCenter corresponding to the user's default main optics sourceaccessor to channel suite handlesvoidupdate(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
-
DATA_LABEL
- See Also:
-
channelSuite
channel suite associated with this node -
TRIGGER_HANDLE
beam trigger PV: 0=Trigger, 1=Counting- See Also:
-
MODE_HANDLE
beam trigger mode PV: 0=Continuous, 1=Single-shot- See Also:
-
COUNTDOWN_HANDLE
specify how many beam pulse(s)- See Also:
-
COUNT_HANDLE
readback while triggered beam pulses are counting down- See Also:
-
REP_RATE_HANDLE
readback of overall rep rate (Hz)- See Also:
-
BEAM_ON_EVENT_HANDLE
beam on event- See Also:
-
BEAM_ON_EVENT_COUNT_HANDLE
beam on event counter- See Also:
-
DIAGNOSTIC_DEMAND_EVENT_HANDLE
diagnostic demand event- See Also:
-
DIAGNOSTIC_DEMAND_EVENT_COUNT_HANDLE
diagnostic demand event counter- See Also:
-
SLOW_DIAGNOSTIC_EVENT_HANDLE
slow (1 Hz) diagnostic event- See Also:
-
SLOW_DIAGNOSTIC_EVENT_COUNT_HANDLE
slow (1 Hz) diagnostic event counter- See Also:
-
FAST_DIAGNOSTIC_EVENT_HANDLE
fast (6 Hz) diagnostic event- See Also:
-
FAST_DIAGNOSTIC_EVENT_COUNT_HANDLE
fast (6 Hz) diagnostic event counter- See Also:
-
RING_FREQUENCY_HANDLE
readback of the ring frequency in MHz- See Also:
-
RING_STORED_TURNS_HANDLE
number of stored turns in the ring- See Also:
-
MACHINE_MODE_HANDLE
Machine Mode- See Also:
-
RING_ENERGY
Ring Energy- See Also:
-
BEAM_MODE_HANDLE
CKA 11/04/11: Beam mode specifying maximum pulse length.
String values:
"Off",
"Standby",
"MPS Test",
"10 uSec",
"50 uSec",
"100 uSec",
"1 mSec",
"Full Power",
"Unknown!"- See Also:
-
ACTIVE_FLAVOR_HANDLE
Active Flavor- See Also:
-
BEAM_REFERENCE_GATE_WIDTH
beam reference gate width (Turns)- See Also:
-
CHOPPER_DELAY
actual chopper delay (Turns)- See Also:
-
CHOPPER_BEAM_ON
actual chopper beam on (Turns)- See Also:
-
-
Constructor Details
-
TimingCenter
Create an empty TimingCenter -
TimingCenter
public TimingCenter()Create an empty TimingCenter
-
-
Method Details
-
getDefaultTimingCenter
Get the default TimingCenter corresponding to the user's default main optics source- Returns:
- the default TimingCenter or null if no default has been specified
- Throws:
ExceptionWrapper- if an exception occurs while parsing the data source
-
dataLabel
dataLabel() 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
-
update
Update 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
Write data to the data adaptor for storage.- Specified by:
writein interfaceDataListener- Parameters:
adaptor- The adaptor to which the receiver's data is written
-
getChannelSuite
Get this timing center's channel suite- Returns:
- this timing center's channel suite
-
getHandles
accessor to channel suite handles -
findChannel
Find the channel for the specified handle.- Parameters:
handle- The handle for the channel to get.- Returns:
- The channel for the specified handle or null if there is no match.
-
getChannel
Get the Channel of this timing center, for the specified channel handle.- Parameters:
handle- The handle to the desired channel stored in the channel suite- Throws:
NoSuchChannelException
-
getAndConnectChannel
public Channel getAndConnectChannel(String handle) throws NoSuchChannelException, ConnectionException 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
-