Package xal.smf

Class TimingCenter

java.lang.Object
xal.smf.TimingCenter
All Implemented Interfaces:
DataListener

public class TimingCenter extends Object implements DataListener
TimingCenter holds the timing channels for the accelerator.
Author:
tap
  • Field Details

    • DATA_LABEL

      public static final String DATA_LABEL
      See Also:
    • channelSuite

      protected ChannelSuite channelSuite
      channel suite associated with this node
    • TRIGGER_HANDLE

      public static final String TRIGGER_HANDLE
      beam trigger PV: 0=Trigger, 1=Counting
      See Also:
    • MODE_HANDLE

      public static final String MODE_HANDLE
      beam trigger mode PV: 0=Continuous, 1=Single-shot
      See Also:
    • COUNTDOWN_HANDLE

      public static final String COUNTDOWN_HANDLE
      specify how many beam pulse(s)
      See Also:
    • COUNT_HANDLE

      public static final String COUNT_HANDLE
      readback while triggered beam pulses are counting down
      See Also:
    • REP_RATE_HANDLE

      public static final String REP_RATE_HANDLE
      readback of overall rep rate (Hz)
      See Also:
    • BEAM_ON_EVENT_HANDLE

      public static final String BEAM_ON_EVENT_HANDLE
      beam on event
      See Also:
    • BEAM_ON_EVENT_COUNT_HANDLE

      public static final String BEAM_ON_EVENT_COUNT_HANDLE
      beam on event counter
      See Also:
    • DIAGNOSTIC_DEMAND_EVENT_HANDLE

      public static final String DIAGNOSTIC_DEMAND_EVENT_HANDLE
      diagnostic demand event
      See Also:
    • DIAGNOSTIC_DEMAND_EVENT_COUNT_HANDLE

      public static final String DIAGNOSTIC_DEMAND_EVENT_COUNT_HANDLE
      diagnostic demand event counter
      See Also:
    • SLOW_DIAGNOSTIC_EVENT_HANDLE

      public static final String SLOW_DIAGNOSTIC_EVENT_HANDLE
      slow (1 Hz) diagnostic event
      See Also:
    • SLOW_DIAGNOSTIC_EVENT_COUNT_HANDLE

      public static final String SLOW_DIAGNOSTIC_EVENT_COUNT_HANDLE
      slow (1 Hz) diagnostic event counter
      See Also:
    • FAST_DIAGNOSTIC_EVENT_HANDLE

      public static final String FAST_DIAGNOSTIC_EVENT_HANDLE
      fast (6 Hz) diagnostic event
      See Also:
    • FAST_DIAGNOSTIC_EVENT_COUNT_HANDLE

      public static final String FAST_DIAGNOSTIC_EVENT_COUNT_HANDLE
      fast (6 Hz) diagnostic event counter
      See Also:
    • RING_FREQUENCY_HANDLE

      public static final String RING_FREQUENCY_HANDLE
      readback of the ring frequency in MHz
      See Also:
    • RING_STORED_TURNS_HANDLE

      public static final String RING_STORED_TURNS_HANDLE
      number of stored turns in the ring
      See Also:
    • MACHINE_MODE_HANDLE

      public static final String MACHINE_MODE_HANDLE
      Machine Mode
      See Also:
    • RING_ENERGY

      public static final String RING_ENERGY
      Ring Energy
      See Also:
    • BEAM_MODE_HANDLE

      public static final String 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

      public static final String ACTIVE_FLAVOR_HANDLE
      Active Flavor
      See Also:
    • BEAM_REFERENCE_GATE_WIDTH

      public static final String BEAM_REFERENCE_GATE_WIDTH
      beam reference gate width (Turns)
      See Also:
    • CHOPPER_DELAY

      public static final String CHOPPER_DELAY
      actual chopper delay (Turns)
      See Also:
    • CHOPPER_BEAM_ON

      public static final String CHOPPER_BEAM_ON
      actual chopper beam on (Turns)
      See Also:
  • Constructor Details

    • TimingCenter

      public TimingCenter(ChannelFactory channelFactory)
      Create an empty TimingCenter
    • TimingCenter

      public TimingCenter()
      Create an empty TimingCenter
  • Method Details

    • getDefaultTimingCenter

      public static TimingCenter getDefaultTimingCenter() throws ExceptionWrapper
      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

      public String dataLabel()
      dataLabel() provides the name used to identify the class in an external data source.
      Specified by:
      dataLabel in interface DataListener
      Returns:
      a tag that identifies the receiver's type
    • update

      public void update(DataAdaptor adaptor)
      Update the data based on the information provided by the data provider.
      Specified by:
      update in interface DataListener
      Parameters:
      adaptor - The adaptor from which to update the data
    • write

      public void write(DataAdaptor adaptor)
      Write data to the data adaptor for storage.
      Specified by:
      write in interface DataListener
      Parameters:
      adaptor - The adaptor to which the receiver's data is written
    • getChannelSuite

      public ChannelSuite getChannelSuite()
      Get this timing center's channel suite
      Returns:
      this timing center's channel suite
    • getHandles

      public Collection<String> getHandles()
      accessor to channel suite handles
    • findChannel

      public Channel findChannel(String handle)
      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

      public Channel getChannel(String handle) throws NoSuchChannelException
      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