Package uk.ac.diamond.daq.gasrig
Class GasRig
java.lang.Object
gda.factory.ConfigurableBase
gda.factory.FindableConfigurableBase
uk.ac.diamond.daq.gasrig.GasRig
- All Implemented Interfaces:
Configurable,Findable,gda.observable.IObservable,gda.observable.IObserver,IGasRig
@ServiceInterface(IGasRig.class)
public class GasRig
extends FindableConfigurableBase
implements IGasRig, gda.observable.IObserver
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionGasRig(IGasRigController controller, List<Gas> nonCabinetGases, List<Cabinet> cabinets, MolarMassTable molarMasses, int numberOfLines) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddIObserver(gda.observable.IObserver observer) voidadmitGasToLine(int gasId, int lineNumber) Admits the specified gas to the specified linevoidadmitGasToLine(String gasName, int lineNumber) Admits the specified gas to the specified linevoidAsks EPICS to admit both lines to endstationvoidAsks EPICS to admit both lines to exhaustvoidadmitLineToEndStation(int lineNumber) Admits the specified line to the endstationvoidDefault implementation for classes that do not have to do any specific configuration.
Classes that do their own configuration should *not* call this superclass function, as it may cause the object to appear configured before it really is.voidconfigureGasMixForLine(IGasMix gasMix, int lineNumber) Configure a mix of gases for the specified linevoiddeleteIObserver(gda.observable.IObserver observer) voidvoidAsks EPICS to pump out the endstationvoidevacuateLine(int lineNumber) Asks EPICS to evacute the specified linevoidGets all the cabinets that have been configuredgetGas(int gasId) getGasMix(int lineNumber) Gets the gas mix object for a specific lineGets a Map where the keys are the line numbers, and the values are the gasmixes for those line numbersGets all the gases the aren't assigned to a cabinetvoidAsks EPICS to run the initialisation procedurebooleanvoidExecutes the dummy sequence on the PLCvoidsetAllGasFlowsToZero(int value) voidsetButterflyValvePosition(double value) Set position on butterfly valvevoidsetButterflyValvePressure(double value) Set pressure on butterfly valvevoidsetRemoveLiveControls(boolean removeLiveControls) voidsettleUnusedGases(IGasMix gasMix1, IGasMix gasMix2) voidvoidMethods inherited from class gda.factory.FindableConfigurableBase
getName, setNameMethods inherited from class gda.factory.ConfigurableBase
isConfigureAtStartup, isConfigured, reconfigure, setConfigured
-
Field Details
-
logger
protected final org.slf4j.Logger logger
-
-
Constructor Details
-
GasRig
public GasRig(IGasRigController controller, List<Gas> nonCabinetGases, List<Cabinet> cabinets, MolarMassTable molarMasses, int numberOfLines)
-
-
Method Details
-
configure
Description copied from class:ConfigurableBaseDefault implementation for classes that do not have to do any specific configuration.
Classes that do their own configuration should *not* call this superclass function, as it may cause the object to appear configured before it really is.- Specified by:
configurein interfaceConfigurable- Overrides:
configurein classConfigurableBase- Throws:
FactoryException- if there is an error in configuration e.g. required variable not set or cannot connect to device
-
getNonCabinetGases
Description copied from interface:IGasRigGets all the gases the aren't assigned to a cabinet- Specified by:
getNonCabinetGasesin interfaceIGasRig- Returns:
- The Gases
-
getCabinets
Description copied from interface:IGasRigGets all the cabinets that have been configured- Specified by:
getCabinetsin interfaceIGasRig- Returns:
- The cabinets
-
getGasMix
Description copied from interface:IGasRigGets the gas mix object for a specific line- Specified by:
getGasMixin interfaceIGasRig- Parameters:
lineNumber-- Returns:
- The gas mix for the specified line
- Throws:
GasRigException- If that line number does not exist
-
getGasMixes
Description copied from interface:IGasRigGets a Map where the keys are the line numbers, and the values are the gasmixes for those line numbers- Specified by:
getGasMixesin interfaceIGasRig- Returns:
- The map of gas mixes
-
getGas
- Throws:
GasRigException
-
getGas
- Throws:
GasRigException
-
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
-
update
- Specified by:
updatein interfacegda.observable.IObserver
-
initialise
Description copied from interface:IGasRigAsks EPICS to run the initialisation procedure- Specified by:
initialisein interfaceIGasRig- Throws:
DeviceException
-
runDummySequence
Description copied from interface:IGasRigExecutes the dummy sequence on the PLC- Specified by:
runDummySequencein interfaceIGasRig- Throws:
GasRigException
-
evacuateEndStation
Description copied from interface:IGasRigAsks EPICS to pump out the endstation- Specified by:
evacuateEndStationin interfaceIGasRig- Throws:
GasRigException
-
evacuateLine
Description copied from interface:IGasRigAsks EPICS to evacute the specified line- Specified by:
evacuateLinein interfaceIGasRig- Parameters:
lineNumber-- Throws:
GasRigException
-
evacuateLines
- Specified by:
evacuateLinesin interfaceIGasRig- Throws:
DeviceExceptionGasRigException
-
admitLineToEndStation
Description copied from interface:IGasRigAdmits the specified line to the endstation- Specified by:
admitLineToEndStationin interfaceIGasRig- Parameters:
lineNumber-- Throws:
GasRigException
-
configureGasMixForLine
public void configureGasMixForLine(IGasMix gasMix, int lineNumber) throws GasRigException, DeviceException Description copied from interface:IGasRigConfigure a mix of gases for the specified line- Specified by:
configureGasMixForLinein interfaceIGasRig- Parameters:
gasMix- The GasMix objectlineNumber- The line number to configure the mix for- Throws:
GasRigExceptionDeviceException
-
setButterflyValvePressure
Description copied from interface:IGasRigSet pressure on butterfly valve- Specified by:
setButterflyValvePressurein interfaceIGasRig- Parameters:
value-- Throws:
DeviceException
-
setButterflyValvePosition
Description copied from interface:IGasRigSet position on butterfly valve- Specified by:
setButterflyValvePositionin interfaceIGasRig- Parameters:
value-- Throws:
DeviceException
-
stopCurrentSequence
- Specified by:
stopCurrentSequencein interfaceIGasRig- Throws:
DeviceException
-
setAllGasFlowsToZero
- Specified by:
setAllGasFlowsToZeroin interfaceIGasRig- Throws:
DeviceException
-
settleUnusedGases
public void settleUnusedGases(IGasMix gasMix1, IGasMix gasMix2) throws GasRigException, DeviceException - Specified by:
settleUnusedGasesin interfaceIGasRig- Throws:
GasRigExceptionDeviceException
-
admitGasToLine
Description copied from interface:IGasRigAdmits the specified gas to the specified line- Specified by:
admitGasToLinein interfaceIGasRig- Parameters:
gasId- The gas ID (which matches the MFC number)lineNumber- The line to admit it to- Throws:
GasRigExceptionDeviceException
-
admitGasToLine
Description copied from interface:IGasRigAdmits the specified gas to the specified line- Specified by:
admitGasToLinein interfaceIGasRig- Parameters:
gasName- The gas name (which matches the gas name in EPICS)lineNumber- The line to admit it to- Throws:
DeviceExceptionGasRigException
-
admitLinesToEndstation
Description copied from interface:IGasRigAsks EPICS to admit both lines to endstation- Specified by:
admitLinesToEndstationin interfaceIGasRig- Throws:
GasRigException
-
admitLinesToExhaust
Description copied from interface:IGasRigAsks EPICS to admit both lines to exhaust- Specified by:
admitLinesToExhaustin interfaceIGasRig- Throws:
GasRigException
-
isRemoveLiveControls
public boolean isRemoveLiveControls()- Specified by:
isRemoveLiveControlsin interfaceIGasRig
-
setRemoveLiveControls
public void setRemoveLiveControls(boolean removeLiveControls)
-