|
Hermes
Simulation Orchestration Platform for Aerospace
|
Classes | |
| class | InprocModuleProtocol |
| class | ModuleState |
| class | ModuleInfo |
| class | ModuleProcess |
| class | InprocModule |
| class | ProcessManager |
Functions | |
| InprocModule | _create_inproc_module (str name, ModuleConfig config, SharedMemoryManager shm) |
Variables | |
| log = structlog.get_logger() | |
Process lifecycle management for Hermes modules.
This module provides the ProcessManager and ModuleProcess classes for
spawning, controlling, and terminating module subprocesses. Also supports
in-process (inproc) modules that run as Python objects within the main process.
Module Lifecycle:
load() stage() step()... terminate()
│ │ │ │
▼ ▼ ▼ ▼
┌─────────┐ ┌─────────┐ ┌─────────┐ ┌─────────┐
│ INIT │──▶│ STAGED │──▶│ RUNNING │────▶│ DONE │
└─────────┘ └─────────┘ └─────────┘ └─────────┘
│ │
└───────── reset() ─────────┘
|
protected |
Create an in-process module from configuration.
Args:
name: Module name
config: Module configuration (script field is dotted import path)
shm: Shared memory manager
Returns:
InprocModule wrapping the instantiated Python object
| hermes.core.process.log = structlog.get_logger() |