Module cre_client

Copyright © 2015-2018 Jörgen Brandt

Version: 0.1.5

Behaviours: gen_pnet.

This module defines the cre_client behaviour.
Required callback functions: init/1, is_value/2, step/2, recv/4.

Authors: Jörgen Brandt (joergen.brandt@onlinehome.de).

Function Index

code_change/3
cre_reply/4
eval/2
fire/3
handle_call/3
handle_cast/2
handle_info/2
init/1
init_marking/2
is_enabled/3
place_lst/0
preset/1
start_link/3
start_link/4
stop/1
terminate/2
trigger/3
trsn_lst/0

Function Details

code_change/3

code_change(OldVsn::term(), NetState::#net_state{}, Extra::term()) -> {ok, #net_state{}} | {error, term()}

cre_reply/4

cre_reply(ClientName, I, A, Delta) -> any()

eval/2

eval(ClientName, T) -> any()

fire/3

fire(Trsn, Mode, ClientState) -> abort | {produce, #{atom() => [term()]}}

handle_call/3

handle_call(Request::term(), From::{pid(), term()}, NetState::#net_state{}) -> {reply, term()} | {reply, term(), #{atom() => [term()]}, #{atom() => [term()]}} | noreply | {noreply, #{atom() => [term()]}, #{atom() => [term()]}} | {stop, term(), term()}

handle_cast/2

handle_cast(Request::term(), NetState::#net_state{}) -> noreply | {noreply, #{atom() => [term()]}, #{atom() => [term()]}} | {stop, term()}

handle_info/2

handle_info(Info::term(), NetState::#net_state{}) -> noreply | {noreply, #{atom() => [term()]}, #{atom() => [term()]}} | {stop, term()}

init/1

init(X1::{CreName, ClientMod, ClientArg}) -> term()

init_marking/2

init_marking(Place::atom(), ClientState::#client_state{}) -> [term()]

is_enabled/3

is_enabled(Trsn, Mode, ClientState) -> boolean()

place_lst/0

place_lst() -> [atom()]

preset/1

preset(Trsn::atom()) -> [atom()]

start_link/3

start_link(CreName, ClientMod, ClientArg) -> any()

start_link/4

start_link(ClientName, CreName, ClientMod, ClientArg) -> any()

stop/1

stop(ClientName) -> any()

terminate/2

terminate(Reason::term(), NetState::#net_state{}) -> ok

trigger/3

trigger(Place::atom(), Token::term(), NetState::#net_state{}) -> pass | drop

trsn_lst/0

trsn_lst() -> [atom()]


Generated by EDoc