Package gda.device.epicsdevice
Class DummyXmapEpicsDevice
java.lang.Object
gda.factory.ConfigurableBase
gda.device.epicsdevice.DummyXmapEpicsDevice
- All Implemented Interfaces:
IEpicsDevice,IFindableEpicsDevice,Configurable
Epics device for simulating XMAP.
This provides equivalent functionality to DummyXmapController, but at a lower level, thus allowing us to test:
- the real XMAP controller (EpicsXmapController), and
- DummyXmapEDXDMappingController, which is only a very minimal variant of the real EDXDMappingController
-
Field Summary
Fields inherited from interface gda.device.epicsdevice.IEpicsDevice
defPutTimeOutInSec -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateEpicsChannel(ReturnType returnType, String record, String field) createEpicsChannel(ReturnType returnType, String record, String field, double putTimeout) voiddispose()getRecordPV(String mcaName) Get the PV associated with a given elementgetValue(ReturnType returnType, String record, String field) Get the value of an Epics record, specifying the return type requiredgetValueAsString(String record, String field) Get the value of an Epics record as a stringvoidSet the value of an Epics record, specifying the typevoidSet the value of an Epics record, using a default timeout.voidsetValueNoWait(String record, String field, Object val) Set the value of an Epics record, without waiting for the put to completeMethods inherited from class gda.factory.ConfigurableBase
configure, isConfigureAtStartup, isConfigured, reconfigure, setConfiguredMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface gda.factory.Configurable
configure, isConfigureAtStartup, isConfigured, reconfigure
-
Constructor Details
-
DummyXmapEpicsDevice
public DummyXmapEpicsDevice()
-
-
Method Details
-
createEpicsChannel
public IEpicsChannel createEpicsChannel(ReturnType returnType, String record, String field, double putTimeout) - Specified by:
createEpicsChannelin interfaceIEpicsDevice- Parameters:
returnType-record-field-putTimeout-- Returns:
- IEpicsChannel
-
createEpicsChannel
- Specified by:
createEpicsChannelin interfaceIEpicsDevice- Parameters:
returnType-record-field-- Returns:
- IEpicsChannel
-
dispose
- Specified by:
disposein interfaceIEpicsDevice- Throws:
DeviceException
-
closeUnUsedChannels
- Specified by:
closeUnUsedChannelsin interfaceIEpicsDevice- Throws:
DeviceException
-
setValue
public void setValue(Object type, String record, String field, Object val, double putTimeout) throws DeviceException Description copied from interface:IFindableEpicsDeviceSet the value of an Epics record, specifying the type- Specified by:
setValuein interfaceIFindableEpicsDevice- Parameters:
type- Type of the value: note that null may be the only valid value in some implementationsrecord- Epics record to setfield- Field within the record (can be empty string)val- Value to setputTimeout- Timeout on the call in seconds- Throws:
DeviceException
-
setValue
Description copied from interface:IFindableEpicsDeviceSet the value of an Epics record, using a default timeout.- Specified by:
setValuein interfaceIFindableEpicsDevice- Parameters:
record- Epics record to setfield- Field within the record (can be empty string)val- Value to set- Throws:
DeviceException
-
setValueNoWait
Description copied from interface:IFindableEpicsDeviceSet the value of an Epics record, without waiting for the put to complete- Specified by:
setValueNoWaitin interfaceIFindableEpicsDevice- Parameters:
record- Epics record to setfield- Field within the record (can be empty string)val- Value to set- Throws:
DeviceException
-
getValue
Description copied from interface:IFindableEpicsDeviceGet the value of an Epics record, specifying the return type required- Specified by:
getValuein interfaceIFindableEpicsDevice- Parameters:
returnType- One of the permitted values of ReturnTyperecord- Epics record to getfield- Field within the record (can be empty string)- Returns:
- Value of the Epics record
- Throws:
DeviceException
-
getValueAsString
Description copied from interface:IFindableEpicsDeviceGet the value of an Epics record as a string- Specified by:
getValueAsStringin interfaceIFindableEpicsDevice- Parameters:
record- Epics record to getfield- Field within the record (can be empty string)- Returns:
- Value of the Epics record as a string
- Throws:
DeviceException
-
getRecordPV
Description copied from interface:IFindableEpicsDeviceGet the PV associated with a given element- Specified by:
getRecordPVin interfaceIFindableEpicsDevice- Parameters:
mcaName- Name of the element- Returns:
- Corresponding PV
-