restore_graph_machine.bend checks
raw source on the hub · import bendvy-ecs-core@0.1.0.6/restore_graph_machine.bend as Restore_graph_machine
9 imports
import Base import ./decode_data.bend as D import ./restore_graph_data.bend as R import ./ordinary_machine_declaration.bend as Ordinary import ./ordinary_machine_initialization.bend as Init import ./machine.bend as M import ./machine_stream.bend as Stream import ./machine_stream_queue.bend as Queue import ./owner_product.bend as Product
Types
type Dispatch source · line 11 · raw
Data
UnhandledDispatch
ValidDispatch
InvalidDispatch
type Schema source · line 12 · raw
@-Resources:Type -> @-read:(@_:Resources -> Pair(Resources, List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Field>)) -> @-check:(@_:0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Field -> Dispatch) -> @-clear:(@_:Resources -> Resources) -> @-install:(@_:Resources -> @_:List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Field> -> Resources) -> Data
Schema@-Resources:Type -> @-read:(@_:Resources -> Pair(Resources, List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Field>)) -> @-check:(@_:0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Field -> Dispatch) -> @-clear:(@_:Resources -> Resources) -> @-install:(@_:Resources -> @_:List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Field> -> Resources) -> Schema<Resources, read, check, clear, install>
Definitions
def selected source · line 37 · raw
@value:Bool -> Dispatch
def next_check source · line 84 · raw
@result:Dispatch -> @next:(@_:Unit -> Dispatch) -> Dispatch
def field_checked source · line 101 · raw
@+field:0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Field -> @result:Dispatch -> Maybe<&2, 0x14a72e1c180a5ab1f8a056d43822425c/restore_graph_data.Error>
def continued source · line 106 · raw
@error:Maybe<&2, 0x14a72e1c180a5ab1f8a056d43822425c/restore_graph_data.Error> -> @next:(@_:Unit -> Maybe<&2, 0x14a72e1c180a5ab1f8a056d43822425c/restore_graph_data.Error>) -> Maybe<&2, 0x14a72e1c180a5ab1f8a056d43822425c/restore_graph_data.Error>
Templates
template take_slot source · line 14 · raw
@-S:Data -> @-K:Data -> @-V:Data -> @state:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_machine_initialization.State<S, K, V> -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/ordinary_machine_initialization.State<S, K, V>, 0x14a72e1c180a5ab1f8a056d43822425c/machine.Slot<S, K, V>)
template cleared_stream source · line 16 · raw
@-V:Data -> @value:0x14a72e1c180a5ab1f8a056d43822425c/machine_stream.Stream<V> -> 0x14a72e1c180a5ab1f8a056d43822425c/machine_stream.Stream<V>
template clear source · line 19 · raw
@-S:Data -> @-K:Data -> @-V:Data -> @state:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_machine_initialization.State<S, K, V> -> 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_machine_initialization.State<S, K, V>
template encoded source · line 22 · raw
@-S:Data -> @-K:Data -> @-V:Data -> @-encode:(@_:V -> 0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Raw) -> @name:String -> @slot:0x14a72e1c180a5ab1f8a056d43822425c/machine.Slot<S, K, V> -> List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Field>
template read source · line 26 · raw
@-S:Data -> @-K:Data -> @-V:Data -> @-encode:(@_:V -> 0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Raw) -> @-DeclaredOwner:Type -> @-take:(@_:DeclaredOwner -> Pair(DeclaredOwner, 0x14a72e1c180a5ab1f8a056d43822425c/machine.Slot<S, K, V>)) -> @-declaration:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_machine_declaration.Declaration<S, K, V, DeclaredOwner, take> -> @state:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_machine_initialization.State<S, K, V> -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/ordinary_machine_initialization.State<S, K, V>, List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Field>)
template member source · line 29 · raw
@-V:Data -> @-same:(@_:V -> @_:V -> Bool) -> @+value:V -> @values:List<&2, V> -> Bool
template permitted source · line 33 · raw
@-V:Data -> @-same:(@_:V -> @_:V -> Bool) -> @value:V -> @values:Maybe<&2, List<&2, V>> -> Bool
template decoded source · line 41 · raw
@-V:Data -> @-same:(@_:V -> @_:V -> Bool) -> @values:Maybe<&2, List<&2, V>> -> @value:Maybe<&2, V> -> Dispatch
template checked source · line 45 · raw
@-V:Data -> @-decode:(@_:0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Raw -> Maybe<&2, V>) -> @-same:(@_:V -> @_:V -> Bool) -> @values:Maybe<&2, List<&2, V>> -> @result:0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Checked -> Dispatch
template named source · line 49 · raw
@-V:Data -> @-decode:(@_:0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Raw -> Maybe<&2, V>) -> @-same:(@_:V -> @_:V -> Bool) -> @found:Bool -> @values:Maybe<&2, List<&2, V>> -> @+raw:0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Raw -> @codec:0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Codec -> Dispatch
template check source · line 53 · raw
@-S:Data -> @-K:Data -> @-V:Data -> @-codec:0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Codec -> @-decode:(@_:0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Raw -> Maybe<&2, V>) -> @-same:(@_:V -> @_:V -> Bool) -> @-DeclaredOwner:Type -> @-take:(@_:DeclaredOwner -> Pair(DeclaredOwner, 0x14a72e1c180a5ab1f8a056d43822425c/machine.Slot<S, K, V>)) -> @-declaration:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_machine_declaration.Declaration<S, K, V, DeclaredOwner, take> -> @field:0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Field -> Dispatch
template installed source · line 56 · raw
@-S:Data -> @-K:Data -> @-V:Data -> @state:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_machine_initialization.State<S, K, V> -> @value:V -> 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_machine_initialization.State<S, K, V>
template decoded_install source · line 59 · raw
@-S:Data -> @-K:Data -> @-V:Data -> @state:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_machine_initialization.State<S, K, V> -> @value:Maybe<&2, V> -> 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_machine_initialization.State<S, K, V>
template install_named source · line 63 · raw
@-S:Data -> @-K:Data -> @-V:Data -> @-decode:(@_:0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Raw -> Maybe<&2, V>) -> @found:Bool -> @state:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_machine_initialization.State<S, K, V> -> @raw:0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Raw -> 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_machine_initialization.State<S, K, V>
template install_loop source · line 67 · raw
@-S:Data -> @-K:Data -> @-V:Data -> @-decode:(@_:0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Raw -> Maybe<&2, V>) -> @-DeclaredOwner:Type -> @-take:(@_:DeclaredOwner -> Pair(DeclaredOwner, 0x14a72e1c180a5ab1f8a056d43822425c/machine.Slot<S, K, V>)) -> @-declaration:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_machine_declaration.Declaration<S, K, V, DeclaredOwner, take> -> @values:List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Field> -> @state:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_machine_initialization.State<S, K, V> -> 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_machine_initialization.State<S, K, V>
template install source · line 71 · raw
@-S:Data -> @-K:Data -> @-V:Data -> @-decode:(@_:0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Raw -> Maybe<&2, V>) -> @-DeclaredOwner:Type -> @-take:(@_:DeclaredOwner -> Pair(DeclaredOwner, 0x14a72e1c180a5ab1f8a056d43822425c/machine.Slot<S, K, V>)) -> @-declaration:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_machine_declaration.Declaration<S, K, V, DeclaredOwner, take> -> @state:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_machine_initialization.State<S, K, V> -> @values:List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Field> -> 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_machine_initialization.State<S, K, V>
template machine source · line 73 · raw
@-S:Data -> @-K:Data -> @-V:Data -> @-codec:0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Codec -> @-encode:(@_:V -> 0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Raw) -> @-decode:(@_:0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Raw -> Maybe<&2, V>) -> @-same:(@_:V -> @_:V -> Bool) -> @-DeclaredOwner:Type -> @-take:(@_:DeclaredOwner -> Pair(DeclaredOwner, 0x14a72e1c180a5ab1f8a056d43822425c/machine.Slot<S, K, V>)) -> @-declaration:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_machine_declaration.Declaration<S, K, V, DeclaredOwner, take> -> Schema<0x14a72e1c180a5ab1f8a056d43822425c/ordinary_machine_initialization.State<S, K, V>, read(S, K, V, encode, DeclaredOwner, take, declaration), check(S, K, V, codec, decode, same, DeclaredOwner, take, declaration), clear(S, K, V), install(S, K, V, decode, DeclaredOwner, take, declaration)>
template joined_read source · line 75 · raw
@-L:Type -> @-Right:Type -> @left:L -> @leftFields:List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Field> -> @result:Pair(Right, List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Field>) -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Owner<L, Right>, List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Field>)
template left_read source · line 78 · raw
@-L:Type -> @-Right:Type -> @-readRight:(@_:Right -> Pair(Right, List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Field>)) -> @right:Right -> @result:Pair(L, List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Field>) -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Owner<L, Right>, List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Field>)
template product_read source · line 81 · raw
@-L:Type -> @-Right:Type -> @-readLeft:(@_:L -> Pair(L, List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Field>)) -> @-readRight:(@_:Right -> Pair(Right, List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Field>)) -> @owner:0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Owner<L, Right> -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Owner<L, Right>, List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Field>)
template product_check source · line 88 · raw
@-left:(@_:0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Field -> Dispatch) -> @-right:(@_:0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Field -> Dispatch) -> @field:0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Field -> Dispatch
template product_clear source · line 91 · raw
@-L:Type -> @-Right:Type -> @-left:(@_:L -> L) -> @-right:(@_:Right -> Right) -> @owner:0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Owner<L, Right> -> 0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Owner<L, Right>
template product_install source · line 94 · raw
@-L:Type -> @-Right:Type -> @-left:(@_:L -> @_:List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Field> -> L) -> @-right:(@_:Right -> @_:List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Field> -> Right) -> @owner:0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Owner<L, Right> -> @fields:List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Field> -> 0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Owner<L, Right>
template product source · line 99 · raw
@-L:Type -> @-Right:Type -> @-readLeft:(@_:L -> Pair(L, List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Field>)) -> @-checkLeft:(@_:0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Field -> Dispatch) -> @-clearLeft:(@_:L -> L) -> @-installLeft:(@_:L -> @_:List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Field> -> L) -> @-readRight:(@_:Right -> Pair(Right, List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Field>)) -> @-checkRight:(@_:0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Field -> Dispatch) -> @-clearRight:(@_:Right -> Right) -> @-installRight:(@_:Right -> @_:List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Field> -> Right) -> @-left:Schema<L, readLeft, checkLeft, clearLeft, installLeft> -> @-right:Schema<Right, readRight, checkRight, clearRight, installRight> -> Schema<0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Owner<L, Right>, product_read(L, Right, readLeft, readRight), product_check(checkLeft, checkRight), product_clear(L, Right, clearLeft, clearRight), product_install(L, Right, installLeft, installRight)>
template validate source · line 110 · raw
@-check:(@_:0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Field -> Dispatch) -> @values:List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Field> -> Maybe<&2, 0x14a72e1c180a5ab1f8a056d43822425c/restore_graph_data.Error>