Hermes
Simulation Orchestration Platform for Aerospace
Loading...
Searching...
No Matches
hermes.core.process.InprocModule Class Reference
Collaboration diagram for hermes.core.process.InprocModule:

Public Member Functions

None __init__ (self, str name, InprocModuleProtocol instance)
str name (self)
ModuleState state (self)
InprocModuleProtocol instance (self)
None stage (self)
None step (self, float dt)
None reset (self)
dict[str, Any]|None introspect (self)
None terminate (self)
ModuleInfo get_info (self)

Protected Attributes

str _name = name
InprocModuleProtocol _instance = instance
 _state = ModuleState.INIT

Detailed Description

Manages an in-process Python module.

Wraps a Python object implementing InprocModuleProtocol,
providing the same lifecycle interface as ModuleProcess
but executing within the main process.

Constructor & Destructor Documentation

◆ __init__()

None hermes.core.process.InprocModule.__init__ ( self,
str name,
InprocModuleProtocol instance )

Member Function Documentation

◆ get_info()

ModuleInfo hermes.core.process.InprocModule.get_info ( self)

◆ instance()

InprocModuleProtocol hermes.core.process.InprocModule.instance ( self)

◆ introspect()

dict[str, Any] | None hermes.core.process.InprocModule.introspect ( self)
Return module introspection payload if the instance supports it.

◆ name()

str hermes.core.process.InprocModule.name ( self)

◆ reset()

None hermes.core.process.InprocModule.reset ( self)
Reset the in-process module.

◆ stage()

None hermes.core.process.InprocModule.stage ( self)
Stage the in-process module.

◆ state()

ModuleState hermes.core.process.InprocModule.state ( self)

◆ step()

None hermes.core.process.InprocModule.step ( self,
float dt )
Step the in-process module.

◆ terminate()

None hermes.core.process.InprocModule.terminate ( self)
Terminate the in-process module (no-op for inproc).

Member Data Documentation

◆ _instance

InprocModuleProtocol hermes.core.process.InprocModule._instance = instance
protected

◆ _name

hermes.core.process.InprocModule._name = name
protected

◆ _state

hermes.core.process.InprocModule._state = ModuleState.INIT
protected

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