BakeoutController-Basic  0.1
A Controller for the Omicron vacuum chamber
Public Member Functions | List of all members
kernel.models.PVCiPressureGaugeFactory Class Reference
Inheritance diagram for kernel.models.PVCiPressureGaugeFactory:
Inheritance graph
[legend]
Collaboration diagram for kernel.models.PVCiPressureGaugeFactory:
Collaboration graph
[legend]

Public Member Functions

Kernel getKernel ()
 
void setKernel (Kernel kernel)
 
Integer getAddress ()
 
void setAddress (Integer address)
 
String getPortName ()
 
void setPortName (String portName)
 
PressureGauge getPressureGauge () throws IOException
 
void makePressureGauge () throws IOException
 

Detailed Description

Implements a factory for creating instances of PressureGauge

Definition at line 23 of file models/PVCiPressureGaugeFactory.java.

Member Function Documentation

Integer kernel.models.PVCiPressureGaugeFactory.getAddress ( )
Returns
The desired device address

Implements kernel.controllers.PVCiPressureGaugeFactory.

Definition at line 71 of file models/PVCiPressureGaugeFactory.java.

71  {
72  return this.address;
73  }
Kernel kernel.models.PVCiPressureGaugeFactory.getKernel ( )
Returns
The current kernel

Implements kernel.controllers.PVCiPressureGaugeFactory.

Definition at line 55 of file models/PVCiPressureGaugeFactory.java.

55  {
56  return kernel;
57  }
String kernel.models.PVCiPressureGaugeFactory.getPortName ( )
Returns
The desired port name

Implements kernel.controllers.PVCiPressureGaugeFactory.

Definition at line 87 of file models/PVCiPressureGaugeFactory.java.

87  {
88  return this.portName;
89  }
PressureGauge kernel.models.PVCiPressureGaugeFactory.getPressureGauge ( ) throws IOException

If an instance of the pressure gauge does not exist in the registry, it creates a new one. Otherwise, it returns the PressureGauge in the registry at the moment.

Returns
The current pressure gauge

Implements kernel.controllers.PVCiPressureGaugeFactory.

Definition at line 107 of file models/PVCiPressureGaugeFactory.java.

107  {
108  DeviceContainer registry = kernel.getDeviceRegistryView();
109 
110  if(!registry.hasPressureGauge()){
111  writeEntryforNoGauge();
113  }
114 
115  PressureGauge gauge = registry.getPressureGauge();
116 
117  writeEntryForGauge(gauge);
118 
119  return gauge;
120  }
void kernel.models.PVCiPressureGaugeFactory.makePressureGauge ( ) throws IOException

Create an instance of PressureGauge and write it to the registry.

Implements kernel.controllers.PVCiPressureGaugeFactory.

Definition at line 127 of file models/PVCiPressureGaugeFactory.java.

127  {
129  .getDeviceRegistryController();
130 
131  registry.setPressureGauge(createInstance());
132  }
void kernel.models.PVCiPressureGaugeFactory.setAddress ( Integer  address)
Parameters
addressThe address to which the device will be attached

Implements kernel.controllers.PVCiPressureGaugeFactory.

Definition at line 79 of file models/PVCiPressureGaugeFactory.java.

79  {
80  this.address = address;
81  }
void kernel.models.PVCiPressureGaugeFactory.setKernel ( Kernel  kernel)
Parameters
kernelThe kernel to which this factory is to be attached

Implements kernel.controllers.PVCiPressureGaugeFactory.

Definition at line 63 of file models/PVCiPressureGaugeFactory.java.

63  {
64  this.kernel = kernel;
65  }
void kernel.models.PVCiPressureGaugeFactory.setPortName ( String  portName)
Parameters
portNameThe port where the device will be found.

Implements kernel.controllers.PVCiPressureGaugeFactory.

Definition at line 95 of file models/PVCiPressureGaugeFactory.java.

95  {
96  this.portName = portName;
97  }

The documentation for this class was generated from the following file:
Git Repo