coordinator module¶
Submodules¶
coordinator¶
Classes
|
|
|
|
|
Functions
|
-
class
pvp.coordinator.coordinator.
CoordinatorBase
(sim_mode=False)[source]¶ Bases:
object
Methods
get_control
(control_setting_name)kill
()set_breath_detection
(breath_detection)set_control
(control_setting)start
()stop
()-
get_sensors
() → pvp.common.message.SensorValues[source]¶
-
get_alarms
() → Union[None, Tuple[pvp.alarm.alarm.Alarm]][source]¶
-
set_control
(control_setting: pvp.common.message.ControlSetting)[source]¶
-
get_control
(control_setting_name: pvp.common.values.ValueName) → pvp.common.message.ControlSetting[source]¶
-
-
class
pvp.coordinator.coordinator.
CoordinatorLocal
(sim_mode=False)[source]¶ Bases:
pvp.coordinator.coordinator.CoordinatorBase
- Parameters
sim_mode –
Methods
__init__
([sim_mode])- param sim_mode
get_control
(control_setting_name)Test whether the whole system is running
kill
()set_breath_detection
(breath_detection)set_control
(control_setting)start
()Start the coordinator.
stop
()Stop the coordinator.
-
_is_running
¶ .set()
when thread should stop- Type
-
__init__
(sim_mode=False)[source]¶ - Parameters
sim_mode –
-
_is_running
¶ .set()
when thread should stop- Type
-
get_sensors
() → pvp.common.message.SensorValues[source]¶
-
get_alarms
() → Union[None, Tuple[pvp.alarm.alarm.Alarm]][source]¶
-
set_control
(control_setting: pvp.common.message.ControlSetting)[source]¶
-
get_control
(control_setting_name: pvp.common.values.ValueName) → pvp.common.message.ControlSetting[source]¶
-
class
pvp.coordinator.coordinator.
CoordinatorRemote
(sim_mode=False)[source]¶ Bases:
pvp.coordinator.coordinator.CoordinatorBase
Methods
get_control
(control_setting_name)Test whether the whole system is running
kill
()Stop the coordinator and end the whole program
set_breath_detection
(breath_detection)set_control
(control_setting)start
()Start the coordinator.
stop
()Stop the coordinator.
-
get_sensors
() → pvp.common.message.SensorValues[source]¶
-
get_alarms
() → Union[None, Tuple[pvp.alarm.alarm.Alarm]][source]¶
-
set_control
(control_setting: pvp.common.message.ControlSetting)[source]¶
-
get_control
(control_setting_name: pvp.common.values.ValueName) → pvp.common.message.ControlSetting[source]¶
-
-
pvp.coordinator.coordinator.
get_coordinator
(single_process=False, sim_mode=False) → pvp.coordinator.coordinator.CoordinatorBase[source]¶
ipc¶
Functions
|
|
|
|
|
|
|