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

Public Member Functions

PowerSupply getPowerSupply ()
 
void setPowerSupply (PowerSupply powerSupply)
 
Boolean hasPowerSupply ()
 
PressureGauge getPressureGauge ()
 
void setPressureGauge (PressureGauge pressureGauge)
 
Boolean hasPressureGauge ()
 

Detailed Description

The data structure containing instances of devices. Once constructed, devices should be written here, in order to be available to other objects in this application.

Device types are currently hard-coded. I'd love to find a way to generalize this out to multiple types with generics, with something similar to Spring's IOC containers.

Definition at line 16 of file models/DeviceContainer.java.

Member Function Documentation

PowerSupply kernel.models.DeviceContainer.getPowerSupply ( )
Returns
The power supply managed here

Definition at line 41 of file models/DeviceContainer.java.

41  {
42  return powerSupply;
43  }
PressureGauge kernel.models.DeviceContainer.getPressureGauge ( )
Returns
The current pressure gauge

Definition at line 64 of file models/DeviceContainer.java.

64  {
65  return pressureGauge;
66  }
Boolean kernel.models.DeviceContainer.hasPowerSupply ( )
Returns
True if the power supply has been set, else false.

Definition at line 57 of file models/DeviceContainer.java.

57  {
58  return this.powerSupplyWasSet;
59  }
Boolean kernel.models.DeviceContainer.hasPressureGauge ( )
Returns
True if the pressure gauge exists, else false.

Definition at line 80 of file models/DeviceContainer.java.

80  {
81  return pressureGaugeWasSet;
82  }
void kernel.models.DeviceContainer.setPowerSupply ( PowerSupply  powerSupply)
Parameters
powerSupplyThe power supply to enter into this registry.

Definition at line 48 of file models/DeviceContainer.java.

48  {
49  this.powerSupply = powerSupply;
50  this.powerSupplyWasSet = Boolean.TRUE;
51  }
void kernel.models.DeviceContainer.setPressureGauge ( PressureGauge  pressureGauge)
Parameters
pressureGaugeThe pressure gauge to enter into the registry

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

71  {
72  this.pressureGauge = pressureGauge;
73  pressureGaugeWasSet = Boolean.TRUE;
74  }

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