Class EPICSBaseModel

java.lang.Object
gda.factory.FindableBase
uk.ac.gda.epics.client.views.model.impl.EPICSBaseModel
All Implemented Interfaces:
InitializationListener, Findable, org.springframework.beans.factory.InitializingBean
Direct Known Subclasses:
ADBaseModelImpl, FFMjpegModelImpl, FileSaverModelImpl, NDArrayModelImpl, NDProcModelImpl, NDROIModelImpl, NDStatModelImpl

public abstract class EPICSBaseModel extends FindableBase implements org.springframework.beans.factory.InitializingBean, InitializationListener
Base model class - model represents the data that is retrieved from EPICS to be represented on the client side UI. This class provides the basic functionality for the rest of the models to inherit.
  • Field Details

    • EPICS_CONTROLLER

      protected static final EpicsController EPICS_CONTROLLER
    • channelMap

      protected Map<String,gov.aps.jca.Channel> channelMap
    • basePVName

      protected String basePVName
  • Constructor Details

    • EPICSBaseModel

      public EPICSBaseModel()
  • Method Details

    • initializationCompleted

      public void initializationCompleted() throws InterruptedException, DeviceException, gov.aps.jca.TimeoutException, gov.aps.jca.CAException
      Description copied from interface: InitializationListener
      Called when all critical channels are connected.
      Specified by:
      initializationCompleted in interface InitializationListener
      Throws:
      InterruptedException
      DeviceException
      gov.aps.jca.TimeoutException
      gov.aps.jca.CAException
    • getChannel

      protected gov.aps.jca.Channel getChannel(String pvElementName, gov.aps.jca.event.MonitorListener ml, String... args) throws Exception
      Throws:
      Exception
    • createChannel

      public gov.aps.jca.Channel createChannel(String fullPvName, gov.aps.jca.event.MonitorListener ml) throws gov.aps.jca.CAException, gov.aps.jca.TimeoutException, InterruptedException
      Throws:
      gov.aps.jca.CAException
      gov.aps.jca.TimeoutException
      InterruptedException
    • setBasePVName

      public void setBasePVName(String basePVName)
    • getBasePVName

      public String getBasePVName()
    • afterPropertiesSet

      public void afterPropertiesSet() throws Exception
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
      Throws:
      Exception
    • getLogger

      protected abstract org.slf4j.Logger getLogger()
    • dispose

      public void dispose()