dependency_application.bend checks
raw source on the hub · import bendvy-ecs-core@0.1.0.3/dependency_application.bend as Dependency_application
5 imports
import Base import ./dependency_plan.bend as Plan import ./dependency_executor.bend as Exec import ./dependency_registration.bend as Reg import ./dependency_registry_program.bend as Cond
Types
type Binding source · line 7 · raw
Data
Binding@system:U32 -> @condition:U32 -> Binding
type State source · line 8 · raw
@World:Type -> @Owners:Type -> @Guards:Type -> @Handler:Type -> Type
State@World:Type -> @Owners:Type -> @Guards:Type -> @Handler:Type -> @world:World -> @owners:Owners -> @guards:Guards -> @handler:Handler -> @bindings:List<&2, Binding> -> State<World, Owners, Guards, Handler>
type Application source · line 10 · raw
@-World:Type -> @-Owners:Type -> @-Guards:Type -> @-Handler:Type -> @-Error:Data -> @-Out:Data -> @-dispatch:(@_:Owners -> @_:World -> @_:U32 -> Pair(Owners, Pair(World, 0x704c77730661eff4309838fc738ef615/dependency_executor.Invocation<Error, Out>))) -> @-guardDispatch:(@_:Guards -> @_:World -> @_:U32 -> Pair(Guards, Pair(World, 0x704c77730661eff4309838fc738ef615/dependency_executor.Invocation<Error, Bool>))) -> @-handle:(@_:Handler -> @_:Error -> Pair(Handler, 0x704c77730661eff4309838fc738ef615/dependency_executor.Handling)) -> Type
Application@-World:Type -> @-Owners:Type -> @-Guards:Type -> @-Handler:Type -> @-Error:Data -> @-Out:Data -> @-dispatch:(@_:Owners -> @_:World -> @_:U32 -> Pair(Owners, Pair(World, 0x704c77730661eff4309838fc738ef615/dependency_executor.Invocation<Error, Out>))) -> @-guardDispatch:(@_:Guards -> @_:World -> @_:U32 -> Pair(Guards, Pair(World, 0x704c77730661eff4309838fc738ef615/dependency_executor.Invocation<Error, Bool>))) -> @-handle:(@_:Handler -> @_:Error -> Pair(Handler, 0x704c77730661eff4309838fc738ef615/dependency_executor.Handling)) -> @state:State<World, Owners, Guards, Handler> -> @plan:0x704c77730661eff4309838fc738ef615/dependency_plan.Build<String> -> @bindings:List<&2, Binding> -> Application<World, Owners, Guards, Handler, Error, Out, dispatch, guardDispatch, handle>
type Report source · line 12 · raw
@Error:Data -> @Out:Data -> Data
Finished@Error:Data -> @Out:Data -> @events:List<&2, 0x704c77730661eff4309838fc738ef615/dependency_executor.Observation<Error, Out>> -> Report<Error, Out>
Stopped@Error:Data -> @Out:Data -> @error:Error -> @events:List<&2, 0x704c77730661eff4309838fc738ef615/dependency_executor.Observation<Error, Out>> -> Report<Error, Out>
Invalid@Error:Data -> @Out:Data -> @reason:0x704c77730661eff4309838fc738ef615/dependency_plan.Invalid<String> -> Report<Error, Out>
Definitions
def binding_selected source · line 17 · raw
@selected:Bool -> @condition:U32 -> @next:Maybe<&2, U32> -> Maybe<&2, U32>
def lookup source · line 21 · raw
@bindings:List<&2, Binding> -> @+id:U32 -> Maybe<&2, U32>
def binding_duplicate source · line 25 · raw
@found:Maybe<&2, U32> -> @id:U32 -> @next:Maybe<&2, 0x704c77730661eff4309838fc738ef615/dependency_plan.Invalid<String>> -> Maybe<&2, 0x704c77730661eff4309838fc738ef615/dependency_plan.Invalid<String>>
def valid_bindings source · line 29 · raw
@bindings:List<&2, Binding> -> @+systems:List<&2, 0x704c77730661eff4309838fc738ef615/dependency_plan.Node<String>> -> @+guards:List<&2, 0x704c77730661eff4309838fc738ef615/dependency_plan.Node<String>> -> Maybe<&2, 0x704c77730661eff4309838fc738ef615/dependency_plan.Invalid<String>>
def checked_bindings source · line 33 · raw
@invalid:Maybe<&2, 0x704c77730661eff4309838fc738ef615/dependency_plan.Invalid<String>> -> @plan:0x704c77730661eff4309838fc738ef615/dependency_plan.Build<String> -> 0x704c77730661eff4309838fc738ef615/dependency_plan.Build<String>
def checked_guards source · line 37 · raw
@guards:0x704c77730661eff4309838fc738ef615/dependency_plan.Build<String> -> @plan:0x704c77730661eff4309838fc738ef615/dependency_plan.Build<String> -> 0x704c77730661eff4309838fc738ef615/dependency_plan.Build<String>
Templates
template guard_condition source · line 42 · raw
@-Error:Data -> @allowed:Bool -> 0x704c77730661eff4309838fc738ef615/dependency_executor.Condition<Error>
template dispatched source · line 47 · raw
@-World:Type -> @-Owners:Type -> @-Guards:Type -> @-Handler:Type -> @-Error:Data -> @-Out:Data -> @-dispatch:(@_:Owners -> @_:World -> @_:U32 -> Pair(Owners, Pair(World, 0x704c77730661eff4309838fc738ef615/dependency_executor.Invocation<Error, Out>))) -> @-guardDispatch:(@_:Guards -> @_:World -> @_:U32 -> Pair(Guards, Pair(World, 0x704c77730661eff4309838fc738ef615/dependency_executor.Invocation<Error, Bool>))) -> @-handle:(@_:Handler -> @_:Error -> Pair(Handler, 0x704c77730661eff4309838fc738ef615/dependency_executor.Handling)) -> @returned:Pair(Owners, Pair(World, 0x704c77730661eff4309838fc738ef615/dependency_executor.Invocation<Error, Out>)) -> @guards:Guards -> @handler:Handler -> @bindings:List<&2, Binding> -> Pair(State<World, Owners, Guards, Handler>, 0x704c77730661eff4309838fc738ef615/dependency_executor.Invocation<Error, Out>)
template dispatch_state source · line 50 · raw
@-World:Type -> @-Owners:Type -> @-Guards:Type -> @-Handler:Type -> @-Error:Data -> @-Out:Data -> @-dispatch:(@_:Owners -> @_:World -> @_:U32 -> Pair(Owners, Pair(World, 0x704c77730661eff4309838fc738ef615/dependency_executor.Invocation<Error, Out>))) -> @-guardDispatch:(@_:Guards -> @_:World -> @_:U32 -> Pair(Guards, Pair(World, 0x704c77730661eff4309838fc738ef615/dependency_executor.Invocation<Error, Bool>))) -> @-handle:(@_:Handler -> @_:Error -> Pair(Handler, 0x704c77730661eff4309838fc738ef615/dependency_executor.Handling)) -> @state:State<World, Owners, Guards, Handler> -> @id:U32 -> Pair(State<World, Owners, Guards, Handler>, 0x704c77730661eff4309838fc738ef615/dependency_executor.Invocation<Error, Out>)
template guard_returned source · line 53 · raw
@-World:Type -> @-Owners:Type -> @-Guards:Type -> @-Handler:Type -> @-Error:Data -> @-Out:Data -> @-dispatch:(@_:Owners -> @_:World -> @_:U32 -> Pair(Owners, Pair(World, 0x704c77730661eff4309838fc738ef615/dependency_executor.Invocation<Error, Out>))) -> @-guardDispatch:(@_:Guards -> @_:World -> @_:U32 -> Pair(Guards, Pair(World, 0x704c77730661eff4309838fc738ef615/dependency_executor.Invocation<Error, Bool>))) -> @-handle:(@_:Handler -> @_:Error -> Pair(Handler, 0x704c77730661eff4309838fc738ef615/dependency_executor.Handling)) -> @returned:Pair(Guards, Pair(World, 0x704c77730661eff4309838fc738ef615/dependency_executor.Invocation<Error, Bool>)) -> @owners:Owners -> @handler:Handler -> @bindings:List<&2, Binding> -> Pair(State<World, Owners, Guards, Handler>, 0x704c77730661eff4309838fc738ef615/dependency_executor.Condition<Error>)
template guard_selected source · line 58 · raw
@-World:Type -> @-Owners:Type -> @-Guards:Type -> @-Handler:Type -> @-Error:Data -> @-Out:Data -> @-dispatch:(@_:Owners -> @_:World -> @_:U32 -> Pair(Owners, Pair(World, 0x704c77730661eff4309838fc738ef615/dependency_executor.Invocation<Error, Out>))) -> @-guardDispatch:(@_:Guards -> @_:World -> @_:U32 -> Pair(Guards, Pair(World, 0x704c77730661eff4309838fc738ef615/dependency_executor.Invocation<Error, Bool>))) -> @-handle:(@_:Handler -> @_:Error -> Pair(Handler, 0x704c77730661eff4309838fc738ef615/dependency_executor.Handling)) -> @selected:Maybe<&2, U32> -> @state:State<World, Owners, Guards, Handler> -> Pair(State<World, Owners, Guards, Handler>, 0x704c77730661eff4309838fc738ef615/dependency_executor.Condition<Error>)
template condition_state source · line 62 · raw
@-World:Type -> @-Owners:Type -> @-Guards:Type -> @-Handler:Type -> @-Error:Data -> @-Out:Data -> @-dispatch:(@_:Owners -> @_:World -> @_:U32 -> Pair(Owners, Pair(World, 0x704c77730661eff4309838fc738ef615/dependency_executor.Invocation<Error, Out>))) -> @-guardDispatch:(@_:Guards -> @_:World -> @_:U32 -> Pair(Guards, Pair(World, 0x704c77730661eff4309838fc738ef615/dependency_executor.Invocation<Error, Bool>))) -> @-handle:(@_:Handler -> @_:Error -> Pair(Handler, 0x704c77730661eff4309838fc738ef615/dependency_executor.Handling)) -> @state:State<World, Owners, Guards, Handler> -> @id:U32 -> Pair(State<World, Owners, Guards, Handler>, 0x704c77730661eff4309838fc738ef615/dependency_executor.Condition<Error>)
template handled source · line 65 · raw
@-World:Type -> @-Owners:Type -> @-Guards:Type -> @-Handler:Type -> @-Error:Data -> @-Out:Data -> @-dispatch:(@_:Owners -> @_:World -> @_:U32 -> Pair(Owners, Pair(World, 0x704c77730661eff4309838fc738ef615/dependency_executor.Invocation<Error, Out>))) -> @-guardDispatch:(@_:Guards -> @_:World -> @_:U32 -> Pair(Guards, Pair(World, 0x704c77730661eff4309838fc738ef615/dependency_executor.Invocation<Error, Bool>))) -> @-handle:(@_:Handler -> @_:Error -> Pair(Handler, 0x704c77730661eff4309838fc738ef615/dependency_executor.Handling)) -> @returned:Pair(Handler, 0x704c77730661eff4309838fc738ef615/dependency_executor.Handling) -> @world:World -> @owners:Owners -> @guards:Guards -> @bindings:List<&2, Binding> -> Pair(State<World, Owners, Guards, Handler>, 0x704c77730661eff4309838fc738ef615/dependency_executor.Handling)
template handle_state source · line 68 · raw
@-World:Type -> @-Owners:Type -> @-Guards:Type -> @-Handler:Type -> @-Error:Data -> @-Out:Data -> @-dispatch:(@_:Owners -> @_:World -> @_:U32 -> Pair(Owners, Pair(World, 0x704c77730661eff4309838fc738ef615/dependency_executor.Invocation<Error, Out>))) -> @-guardDispatch:(@_:Guards -> @_:World -> @_:U32 -> Pair(Guards, Pair(World, 0x704c77730661eff4309838fc738ef615/dependency_executor.Invocation<Error, Bool>))) -> @-handle:(@_:Handler -> @_:Error -> Pair(Handler, 0x704c77730661eff4309838fc738ef615/dependency_executor.Handling)) -> @state:State<World, Owners, Guards, Handler> -> @error:Error -> Pair(State<World, Owners, Guards, Handler>, 0x704c77730661eff4309838fc738ef615/dependency_executor.Handling)
template returned source · line 71 · raw
@-World:Type -> @-Owners:Type -> @-Guards:Type -> @-Handler:Type -> @-Error:Data -> @-Out:Data -> @-dispatch:(@_:Owners -> @_:World -> @_:U32 -> Pair(Owners, Pair(World, 0x704c77730661eff4309838fc738ef615/dependency_executor.Invocation<Error, Out>))) -> @-guardDispatch:(@_:Guards -> @_:World -> @_:U32 -> Pair(Guards, Pair(World, 0x704c77730661eff4309838fc738ef615/dependency_executor.Invocation<Error, Bool>))) -> @-handle:(@_:Handler -> @_:Error -> Pair(Handler, 0x704c77730661eff4309838fc738ef615/dependency_executor.Handling)) -> @result:0x704c77730661eff4309838fc738ef615/dependency_executor.ExecutionResult<State<World, Owners, Guards, Handler>, String, Error, Out> -> @plan:0x704c77730661eff4309838fc738ef615/dependency_plan.Build<String> -> @bindings:List<&2, Binding> -> Pair(Application<World, Owners, Guards, Handler, Error, Out, dispatch, guardDispatch, handle>, Report<Error, Out>)
template trusted_build_checked source · line 79 · raw
@-World:Type -> @-Owners:Type -> @-Guards:Type -> @-Handler:Type -> @-Error:Data -> @-Out:Data -> @-dispatch:(@_:Owners -> @_:World -> @_:U32 -> Pair(Owners, Pair(World, 0x704c77730661eff4309838fc738ef615/dependency_executor.Invocation<Error, Out>))) -> @-guardDispatch:(@_:Guards -> @_:World -> @_:U32 -> Pair(Guards, Pair(World, 0x704c77730661eff4309838fc738ef615/dependency_executor.Invocation<Error, Bool>))) -> @-handle:(@_:Handler -> @_:Error -> Pair(Handler, 0x704c77730661eff4309838fc738ef615/dependency_executor.Handling)) -> @-available:(@_:String -> Bool) -> @world:World -> @systems:0x704c77730661eff4309838fc738ef615/dependency_registration.Registry<World, Owners, Error, Out, dispatch> -> @guards:0x704c77730661eff4309838fc738ef615/dependency_registration.ConditionRegistry<World, Guards, Error, guardDispatch> -> @handler:Handler -> @edges:List<&2, 0x704c77730661eff4309838fc738ef615/dependency_plan.Edge> -> @+bindings:List<&2, Binding> -> Application<World, Owners, Guards, Handler, Error, Out, dispatch, guardDispatch, handle>
Only declared System owners supply registration identity and access metadata. Build failure keeps every owner and refuses invocation on subsequent runs.
template build source · line 82 · raw
@-World:Type -> @-Owners:Type -> @-Guards:Type -> @-Handler:Type -> @-Error:Data -> @-Out:Data -> @-dispatch:(@_:Owners -> @_:World -> @_:U32 -> Pair(Owners, Pair(World, 0x704c77730661eff4309838fc738ef615/dependency_executor.Invocation<Error, Out>))) -> @-guardDispatch:(@_:Guards -> @_:World -> @_:U32 -> Pair(Guards, Pair(World, 0x704c77730661eff4309838fc738ef615/dependency_executor.Invocation<Error, Bool>))) -> @-systemSelection:0x704c77730661eff4309838fc738ef615/dependency_registry_program.Selection(World, Owners, Error, Out, dispatch) -> @-guardSelection:0x704c77730661eff4309838fc738ef615/dependency_registry_program.Selection(World, Guards, Error, Bool, guardDispatch) -> @-handle:(@_:Handler -> @_:Error -> Pair(Handler, 0x704c77730661eff4309838fc738ef615/dependency_executor.Handling)) -> @-available:(@_:String -> Bool) -> @world:World -> @systems:Owners -> @guards:Guards -> @handler:Handler -> @edges:List<&2, 0x704c77730661eff4309838fc738ef615/dependency_plan.Edge> -> @+bindings:List<&2, Binding> -> Application<World, Owners, Guards, Handler, Error, Out, dispatch, guardDispatch, handle>
template run source · line 84 · raw
@-World:Type -> @-Owners:Type -> @-Guards:Type -> @-Handler:Type -> @-Error:Data -> @-Out:Data -> @-dispatch:(@_:Owners -> @_:World -> @_:U32 -> Pair(Owners, Pair(World, 0x704c77730661eff4309838fc738ef615/dependency_executor.Invocation<Error, Out>))) -> @-guardDispatch:(@_:Guards -> @_:World -> @_:U32 -> Pair(Guards, Pair(World, 0x704c77730661eff4309838fc738ef615/dependency_executor.Invocation<Error, Bool>))) -> @-handle:(@_:Handler -> @_:Error -> Pair(Handler, 0x704c77730661eff4309838fc738ef615/dependency_executor.Handling)) -> @app:Application<World, Owners, Guards, Handler, Error, Out, dispatch, guardDispatch, handle> -> Pair(Application<World, Owners, Guards, Handler, Error, Out, dispatch, guardDispatch, handle>, Report<Error, Out>)