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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidgov.aps.jca.ChannelcreateChannel(String fullPvName, gov.aps.jca.event.MonitorListener ml) voiddispose()protected gov.aps.jca.ChannelgetChannel(String pvElementName, gov.aps.jca.event.MonitorListener ml, String... args) protected abstract org.slf4j.LoggervoidCalled when all critical channels are connected.voidsetBasePVName(String basePVName) Methods inherited from class gda.factory.FindableBase
equals, getName, hashCode, setName
-
Field Details
-
EPICS_CONTROLLER
-
channelMap
-
basePVName
-
-
Constructor Details
-
EPICSBaseModel
public EPICSBaseModel()
-
-
Method Details
-
initializationCompleted
public void initializationCompleted() throws InterruptedException, DeviceException, gov.aps.jca.TimeoutException, gov.aps.jca.CAExceptionDescription copied from interface:InitializationListenerCalled when all critical channels are connected.- Specified by:
initializationCompletedin interfaceInitializationListener- Throws:
InterruptedExceptionDeviceExceptiongov.aps.jca.TimeoutExceptiongov.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.CAExceptiongov.aps.jca.TimeoutExceptionInterruptedException
-
setBasePVName
-
getBasePVName
-
afterPropertiesSet
- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
Exception
-
getLogger
protected abstract org.slf4j.Logger getLogger() -
dispose
public void dispose()
-