Package uk.ac.diamond.daq.gasrig
Class DummyGasRigController
java.lang.Object
gda.factory.ConfigurableBase
gda.device.BaseEpicsDeviceController
uk.ac.diamond.daq.gasrig.BaseGasRigController
uk.ac.diamond.daq.gasrig.DummyGasRigController
- All Implemented Interfaces:
Configurable,gda.observable.IObservable,IGasRigController
public class DummyGasRigController
extends BaseGasRigController
implements IGasRigController, gda.observable.IObservable
This class serves to simulate the responses from EPICS, and also logs the PVs which
will be used in the live environment for debugging purposes, as there is no gas rig simulator.
It extends
BaseGasRigController so that it can make use of the same methods which construct
the live PVs and log them, to ensure that they are correct.-
Field Summary
Fields inherited from class uk.ac.diamond.daq.gasrig.BaseGasRigController
LINE_1, LINE_2, SEQUENCE_ABORT, SEQUENCE_RESET, SEQUENCE_START, VALVE_CLOSE, VALVE_OPENFields inherited from class gda.device.BaseEpicsDeviceController
logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddIObserver(gda.observable.IObserver observer) voidadmitGasToLine(String gasName, int lineNumber) voidvoidvoidadmitLineToEndStation(int lineNumber) voidcloseLineValveForGas(int gasId, int lineNumber) voidcloseLineValvesForGas(int gasId) voiddeleteIObserver(gda.observable.IObserver observer) voidvoidvoidevacuateLine(int lineNumber) voidgetGasName(int gasId) doublegetMaximumMassFlow(int gasId) voidbooleanisGasFlowingToLine(int gasId, int lineNumber) voidvoidsetAllGasFlowsToZero(int value) voidsetButterflyValvePosition(double value) voidsetButterflyValvePressure(double value) voidsetMassFlow(int gasId, double massFlow) voidMethods inherited from class uk.ac.diamond.daq.gasrig.BaseGasRigController
constructEnumSequenceParameterPv, constructGasNamePvSuffix, constructMassFlowSetPointPv, constructMaximumMassFlowPvSuffix, constructNumericSequenceParameterPv, constructSequenceControlPvSuffix, constructSequenceProgressPvSuffix, constructSequenceStatusPvSuffix, constructValveControlPv, constructValveStatusPv, getButterflyValveSetPositionPv, getButterflyValveSetPressurePv, getZeroFlowPvMethods inherited from class gda.device.BaseEpicsDeviceController
getBasePvName, getChannel, getDoubleArray, getDoubleArray, getDoubleValue, getEpicsController, getIntegerValue, getStringValue, initialiseEnumChannel, setBasePvName, setDoubleValue, setDoubleValueAsynchronously, setIntegerValue, setMonitor, setMonitor, setStringValue, setStringValue, setStringValueAsynchronously, setStringValueAsynchronouslyMethods inherited from class gda.factory.ConfigurableBase
configure, isConfigureAtStartup, isConfigured, reconfigure, setConfigured
-
Constructor Details
-
DummyGasRigController
-
-
Method Details
-
getGasName
- Specified by:
getGasNamein interfaceIGasRigController- Throws:
DeviceException
-
getMaximumMassFlow
- Specified by:
getMaximumMassFlowin interfaceIGasRigController- Throws:
DeviceException
-
addIObserver
public void addIObserver(gda.observable.IObserver observer) - Specified by:
addIObserverin interfacegda.observable.IObservable
-
deleteIObserver
public void deleteIObserver(gda.observable.IObserver observer) - Specified by:
deleteIObserverin interfacegda.observable.IObservable
-
deleteIObservers
public void deleteIObservers()- Specified by:
deleteIObserversin interfacegda.observable.IObservable
-
runDummySequence
public void runDummySequence()- Specified by:
runDummySequencein interfaceIGasRigController
-
evacuateEndStation
- Specified by:
evacuateEndStationin interfaceIGasRigController- Throws:
DeviceException
-
evacuateLine
- Specified by:
evacuateLinein interfaceIGasRigController- Throws:
DeviceException
-
admitLineToEndStation
- Specified by:
admitLineToEndStationin interfaceIGasRigController- Throws:
DeviceException
-
setMassFlow
- Specified by:
setMassFlowin interfaceIGasRigController- Throws:
DeviceException
-
initialise
- Specified by:
initialisein interfaceIGasRigController- Throws:
DeviceException
-
admitGasToLine
- Specified by:
admitGasToLinein interfaceIGasRigController- Throws:
DeviceException
-
closeLineValvesForGas
public void closeLineValvesForGas(int gasId) - Specified by:
closeLineValvesForGasin interfaceIGasRigController
-
admitLinesToEndStation
- Specified by:
admitLinesToEndStationin interfaceIGasRigController- Throws:
DeviceException
-
admitLinesToExhaust
- Specified by:
admitLinesToExhaustin interfaceIGasRigController- Throws:
DeviceException
-
closeLineValveForGas
- Specified by:
closeLineValveForGasin interfaceIGasRigController- Throws:
DeviceExceptionGasRigException
-
isGasFlowingToLine
public boolean isGasFlowingToLine(int gasId, int lineNumber) throws DeviceException, GasRigException - Specified by:
isGasFlowingToLinein interfaceIGasRigController- Throws:
DeviceExceptionGasRigException
-
setButterflyValvePressure
- Specified by:
setButterflyValvePressurein interfaceIGasRigController- Throws:
DeviceException
-
stopCurrentSequence
- Specified by:
stopCurrentSequencein interfaceIGasRigController- Throws:
DeviceException
-
setButterflyValvePosition
- Specified by:
setButterflyValvePositionin interfaceIGasRigController- Throws:
DeviceException
-
setAllGasFlowsToZero
- Specified by:
setAllGasFlowsToZeroin interfaceIGasRigController- Throws:
DeviceException
-
evacuateLines
- Specified by:
evacuateLinesin interfaceIGasRigController- Throws:
DeviceException
-