Flexflow.State behaviour (flexflow v0.2.0) View Source
State
Link to this section Summary
Link to this section Types
Specs
Specs
options() :: Keyword.t()
Specs
t() :: %Flexflow.State{
__in_edges__: [Flexflow.state_key()],
__opts__: options(),
__out_edges__: [Flexflow.state_key()],
context: Flexflow.Context.t(),
module: module(),
name: Flexflow.name(),
type: type()
}
Specs
type() :: :bypass | :end | :start
Link to this section Functions
Specs
Specs
init(Flexflow.Process.t()) :: Flexflow.Process.result()
Specs
key(t()) :: Flexflow.state_key()
Specs
new(
{Flexflow.state_type_or_module(), options()},
Flexflow.Process.process_tuple()
) :: t()
Specs
Specs
Link to this section Callbacks
Specs
graphviz_attribute() :: keyword()
Specs
handle_enter(t(), Flexflow.Process.t()) :: Flexflow.Process.state_result()
Specs
handle_event(Flexflow.Process.event_type(), term(), t(), Flexflow.Process.t()) :: Flexflow.Process.state_result()
Specs
handle_leave(t(), Flexflow.Process.t()) :: Flexflow.Process.state_result()
Specs
init(t(), Flexflow.Process.t()) :: Flexflow.Process.result()
Specs
name() :: Flexflow.name()
Module name
Specs
type() :: type()
Specs
validate(t(), Flexflow.Process.t()) :: :ok
Invoked after compile, return :ok if valid