dizzy.simulate.executor¶
dizzy.simulate.executor
¶
Executor interfaces — procedures emit events; policies dispatch commands; never both.
execute(component, trigger) -> ProcedureResult | PolicyResult
component — name of a procedure or policy in the feature file trigger — the activating input: a natural-language string (sim) or a structured dict payload (lib); implementors decide how to use it
ExampleProcedureExecutor
¶
Mirrors the 'example emits' stub: emits each declared event with placeholder data.
Source code in dizzy/src/dizzy/simulate/executor.py
40 41 42 43 44 45 46 47 48 49 | |
ExamplePolicyExecutor
¶
Mirrors the 'example emits' stub: dispatches each declared command with placeholder data.
Source code in dizzy/src/dizzy/simulate/executor.py
52 53 54 55 56 57 58 59 60 61 | |