~/bend-docscommunity

machine_handler_context.bend checks

raw source on the hub · import bendvy-ecs-core@0.1.0.6/machine_handler_context.bend as Machine_handler_context

8 imports
import Base
import ./world.bend as W
import ./machine.bend as M
import ./system.bend as Sys
import ./execution_context.bend as Ctx
import ./trace_facts.bend as Facts
import ./machine_handlers.bend as H
import ./machine_handler_engine.bend as Engine

Definitions

def phase source · line 10 · raw

@value:0x14a72e1c180a5ab1f8a056d43822425c/machine_handlers.Phase -> 0x14a72e1c180a5ab1f8a056d43822425c/trace_facts.HandlerPhase

def record source · line 15 · raw

@state:0x14a72e1c180a5ab1f8a056d43822425c/trace_facts.State -> @namespace:U32 -> @id:U32 -> @name:String -> @ordinal:U32 -> @phase:0x14a72e1c180a5ab1f8a056d43822425c/trace_facts.HandlerPhase -> @result:0x14a72e1c180a5ab1f8a056d43822425c/trace_facts.FactResult -> 0x14a72e1c180a5ab1f8a056d43822425c/trace_facts.State

def transition_record source · line 51 · raw

@state:0x14a72e1c180a5ab1f8a056d43822425c/trace_facts.State -> @name:String -> 0x14a72e1c180a5ab1f8a056d43822425c/trace_facts.State

Templates

template outcome source · line 20 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-V:Data -> @-runner:(@_:0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E> -> @_:0x14a72e1c180a5ab1f8a056d43822425c/machine_handlers.Invocation<V> -> 0x14a72e1c180a5ab1f8a056d43822425c/system.Outcome<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>, String, Unit>) -> @+ordinal:U32 -> @phase:0x14a72e1c180a5ab1f8a056d43822425c/trace_facts.HandlerPhase -> @registry:0x14a72e1c180a5ab1f8a056d43822425c/system.Registry<S, C, R, E, 0x14a72e1c180a5ab1f8a056d43822425c/machine_handlers.Invocation<V>, String, Unit, runner> -> @trace:0x14a72e1c180a5ab1f8a056d43822425c/trace_facts.State -> @result:0x14a72e1c180a5ab1f8a056d43822425c/system.Outcome<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>, String, Unit> -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/machine_handlers.Entry<S, C, R, E, V, runner>, 0x14a72e1c180a5ab1f8a056d43822425c/system.Outcome<0x14a72e1c180a5ab1f8a056d43822425c/execution_context.Context<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>>, String, Unit>)

template returned source · line 24 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-V:Data -> @-runner:(@_:0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E> -> @_:0x14a72e1c180a5ab1f8a056d43822425c/machine_handlers.Invocation<V> -> 0x14a72e1c180a5ab1f8a056d43822425c/system.Outcome<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>, String, Unit>) -> @ordinal:U32 -> @phase:0x14a72e1c180a5ab1f8a056d43822425c/trace_facts.HandlerPhase -> @result:Pair(0x14a72e1c180a5ab1f8a056d43822425c/system.RunResult<S, C, R, E, 0x14a72e1c180a5ab1f8a056d43822425c/machine_handlers.Invocation<V>, String, Unit, runner>, 0x14a72e1c180a5ab1f8a056d43822425c/trace_facts.State) -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/machine_handlers.Entry<S, C, R, E, V, runner>, 0x14a72e1c180a5ab1f8a056d43822425c/system.Outcome<0x14a72e1c180a5ab1f8a056d43822425c/execution_context.Context<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>>, String, Unit>)

template registered source · line 28 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-V:Data -> @-runner:(@_:0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E> -> @_:0x14a72e1c180a5ab1f8a056d43822425c/machine_handlers.Invocation<V> -> 0x14a72e1c180a5ab1f8a056d43822425c/system.Outcome<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>, String, Unit>) -> @-observed:(@_:0x14a72e1c180a5ab1f8a056d43822425c/trace_facts.State -> @_:0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E> -> @_:0x14a72e1c180a5ab1f8a056d43822425c/machine_handlers.Invocation<V> -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/system.Outcome<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>, String, Unit>, 0x14a72e1c180a5ab1f8a056d43822425c/trace_facts.State)) -> @+ordinal:U32 -> @+phase:0x14a72e1c180a5ab1f8a056d43822425c/trace_facts.HandlerPhase -> @registry:0x14a72e1c180a5ab1f8a056d43822425c/system.Registry<S, C, R, E, 0x14a72e1c180a5ab1f8a056d43822425c/machine_handlers.Invocation<V>, String, Unit, runner> -> @context:0x14a72e1c180a5ab1f8a056d43822425c/execution_context.Context<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>> -> @invocation:0x14a72e1c180a5ab1f8a056d43822425c/machine_handlers.Invocation<V> -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/machine_handlers.Entry<S, C, R, E, V, runner>, 0x14a72e1c180a5ab1f8a056d43822425c/system.Outcome<0x14a72e1c180a5ab1f8a056d43822425c/execution_context.Context<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>>, String, Unit>)

template invoke_kind source · line 31 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-V:Data -> @-runner:(@_:0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E> -> @_:0x14a72e1c180a5ab1f8a056d43822425c/machine_handlers.Invocation<V> -> 0x14a72e1c180a5ab1f8a056d43822425c/system.Outcome<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>, String, Unit>) -> @-observed:(@_:0x14a72e1c180a5ab1f8a056d43822425c/trace_facts.State -> @_:0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E> -> @_:0x14a72e1c180a5ab1f8a056d43822425c/machine_handlers.Invocation<V> -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/system.Outcome<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>, String, Unit>, 0x14a72e1c180a5ab1f8a056d43822425c/trace_facts.State)) -> @entry:0x14a72e1c180a5ab1f8a056d43822425c/machine_handlers.Entry<S, C, R, E, V, runner> -> @context:0x14a72e1c180a5ab1f8a056d43822425c/execution_context.Context<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>> -> @tracePhase:0x14a72e1c180a5ab1f8a056d43822425c/trace_facts.HandlerPhase -> @value:0x14a72e1c180a5ab1f8a056d43822425c/machine_handlers.Phase -> @from:V -> @to:V -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/machine_handlers.Entry<S, C, R, E, V, runner>, 0x14a72e1c180a5ab1f8a056d43822425c/system.Outcome<0x14a72e1c180a5ab1f8a056d43822425c/execution_context.Context<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>>, String, Unit>)

template invoke source · line 34 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-V:Data -> @-runner:(@_:0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E> -> @_:0x14a72e1c180a5ab1f8a056d43822425c/machine_handlers.Invocation<V> -> 0x14a72e1c180a5ab1f8a056d43822425c/system.Outcome<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>, String, Unit>) -> @-observed:(@_:0x14a72e1c180a5ab1f8a056d43822425c/trace_facts.State -> @_:0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E> -> @_:0x14a72e1c180a5ab1f8a056d43822425c/machine_handlers.Invocation<V> -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/system.Outcome<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>, String, Unit>, 0x14a72e1c180a5ab1f8a056d43822425c/trace_facts.State)) -> @entry:0x14a72e1c180a5ab1f8a056d43822425c/machine_handlers.Entry<S, C, R, E, V, runner> -> @context:0x14a72e1c180a5ab1f8a056d43822425c/execution_context.Context<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>> -> @value:0x14a72e1c180a5ab1f8a056d43822425c/machine_handlers.Phase -> @from:V -> @to:V -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/machine_handlers.Entry<S, C, R, E, V, runner>, 0x14a72e1c180a5ab1f8a056d43822425c/system.Outcome<0x14a72e1c180a5ab1f8a056d43822425c/execution_context.Context<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>>, String, Unit>)

template initial source · line 39 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-V:Data -> @-runner:(@_:0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E> -> @_:0x14a72e1c180a5ab1f8a056d43822425c/machine_handlers.Invocation<V> -> 0x14a72e1c180a5ab1f8a056d43822425c/system.Outcome<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>, String, Unit>) -> @-observed:(@_:0x14a72e1c180a5ab1f8a056d43822425c/trace_facts.State -> @_:0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E> -> @_:0x14a72e1c180a5ab1f8a056d43822425c/machine_handlers.Invocation<V> -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/system.Outcome<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>, String, Unit>, 0x14a72e1c180a5ab1f8a056d43822425c/trace_facts.State)) -> @entry:0x14a72e1c180a5ab1f8a056d43822425c/machine_handlers.Entry<S, C, R, E, V, runner> -> @context:0x14a72e1c180a5ab1f8a056d43822425c/execution_context.Context<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>> -> @to:V -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/machine_handlers.Entry<S, C, R, E, V, runner>, 0x14a72e1c180a5ab1f8a056d43822425c/system.Outcome<0x14a72e1c180a5ab1f8a056d43822425c/execution_context.Context<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>>, String, Unit>)

template taken source · line 42 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-V:Data -> @-runner:(@_:0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E> -> @_:0x14a72e1c180a5ab1f8a056d43822425c/machine_handlers.Invocation<V> -> 0x14a72e1c180a5ab1f8a056d43822425c/system.Outcome<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>, String, Unit>) -> @-K:Data -> @trace:0x14a72e1c180a5ab1f8a056d43822425c/trace_facts.State -> @result:Pair(0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>, 0x14a72e1c180a5ab1f8a056d43822425c/machine.Slot<S, K, V>) -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/execution_context.Context<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>>, 0x14a72e1c180a5ab1f8a056d43822425c/machine.Slot<S, K, V>)

template context_take source · line 45 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-V:Data -> @-runner:(@_:0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E> -> @_:0x14a72e1c180a5ab1f8a056d43822425c/machine_handlers.Invocation<V> -> 0x14a72e1c180a5ab1f8a056d43822425c/system.Outcome<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>, String, Unit>) -> @-K:Data -> @-take:(@_:0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E> -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>, 0x14a72e1c180a5ab1f8a056d43822425c/machine.Slot<S, K, V>)) -> @context:0x14a72e1c180a5ab1f8a056d43822425c/execution_context.Context<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>> -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/execution_context.Context<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>>, 0x14a72e1c180a5ab1f8a056d43822425c/machine.Slot<S, K, V>)

template context_put source · line 48 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-V:Data -> @-runner:(@_:0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E> -> @_:0x14a72e1c180a5ab1f8a056d43822425c/machine_handlers.Invocation<V> -> 0x14a72e1c180a5ab1f8a056d43822425c/system.Outcome<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>, String, Unit>) -> @-K:Data -> @-put:(@_:0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E> -> @_:0x14a72e1c180a5ab1f8a056d43822425c/machine.Slot<S, K, V> -> 0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>) -> @context:0x14a72e1c180a5ab1f8a056d43822425c/execution_context.Context<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>> -> @slot:0x14a72e1c180a5ab1f8a056d43822425c/machine.Slot<S, K, V> -> 0x14a72e1c180a5ab1f8a056d43822425c/execution_context.Context<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>>

template context_publish source · line 55 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-V:Data -> @-runner:(@_:0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E> -> @_:0x14a72e1c180a5ab1f8a056d43822425c/machine_handlers.Invocation<V> -> 0x14a72e1c180a5ab1f8a056d43822425c/system.Outcome<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>, String, Unit>) -> @-publish:(@_:0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E> -> @_:0x14a72e1c180a5ab1f8a056d43822425c/machine.Transition<V> -> 0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>) -> @-name:String -> @context:0x14a72e1c180a5ab1f8a056d43822425c/execution_context.Context<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>> -> @transition:0x14a72e1c180a5ab1f8a056d43822425c/machine.Transition<V> -> 0x14a72e1c180a5ab1f8a056d43822425c/execution_context.Context<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>>

template run source · line 58 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-V:Data -> @-runner:(@_:0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E> -> @_:0x14a72e1c180a5ab1f8a056d43822425c/machine_handlers.Invocation<V> -> 0x14a72e1c180a5ab1f8a056d43822425c/system.Outcome<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>, String, Unit>) -> @-observed:(@_:0x14a72e1c180a5ab1f8a056d43822425c/trace_facts.State -> @_:0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E> -> @_:0x14a72e1c180a5ab1f8a056d43822425c/machine_handlers.Invocation<V> -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/system.Outcome<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>, String, Unit>, 0x14a72e1c180a5ab1f8a056d43822425c/trace_facts.State)) -> @-K:Data -> @-take:(@_:0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E> -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>, 0x14a72e1c180a5ab1f8a056d43822425c/machine.Slot<S, K, V>)) -> @-put:(@_:0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E> -> @_:0x14a72e1c180a5ab1f8a056d43822425c/machine.Slot<S, K, V> -> 0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>) -> @-publish:(@_:0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E> -> @_:0x14a72e1c180a5ab1f8a056d43822425c/machine.Transition<V> -> 0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>) -> @-same:(@_:V -> @_:V -> Bool) -> @-name:String -> @owners:0x14a72e1c180a5ab1f8a056d43822425c/machine_handlers.Owners<S, C, R, E, V, runner> -> @context:0x14a72e1c180a5ab1f8a056d43822425c/execution_context.Context<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>> -> @captured:0x14a72e1c180a5ab1f8a056d43822425c/machine.Snapshot<V> -> 0x14a72e1c180a5ab1f8a056d43822425c/machine_handler_engine.HandlerResult<0x14a72e1c180a5ab1f8a056d43822425c/execution_context.Context<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>>, 0x14a72e1c180a5ab1f8a056d43822425c/machine_handlers.Entry<S, C, R, E, V, runner>, 0x14a72e1c180a5ab1f8a056d43822425c/machine_handlers.Phase>