runtime

package
v0.8.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 23, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

*

  • Copyright (c) Shipt. *
  • This source code is licensed under the MIT license found in the
  • LICENSE file in the root directory of this source tree.

*

  • Copyright (c) Shipt. *
  • This source code is licensed under the MIT license found in the
  • LICENSE file in the root directory of this source tree.

*

  • Copyright (c) Shipt. *
  • This source code is licensed under the MIT license found in the
  • LICENSE file in the root directory of this source tree.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AbstractSyntax

type AbstractSyntax struct {
	States             []plinko.State
	TriggerDefinitions []TriggerDefinition
	StateDefinitions   []*InternalStateDefinition
}

type InternalStateDefinition

type InternalStateDefinition struct {
	State    plinko.State
	Triggers map[plinko.Trigger]*TriggerDefinition

	Callbacks *composition.CallbackDefinitions

	Abs *AbstractSyntax
	// contains filtered or unexported fields
}

func (InternalStateDefinition) OnEntry

func (InternalStateDefinition) OnError

func (InternalStateDefinition) OnExit

func (InternalStateDefinition) OnTriggerEntry

func (sd InternalStateDefinition) OnTriggerEntry(trigger plinko.Trigger, entryFn plinko.Operation, opts ...plinko.OperationOption) plinko.StateDefinition

func (InternalStateDefinition) OnTriggerExit

func (InternalStateDefinition) Permit

func (sd InternalStateDefinition) Permit(trigger plinko.Trigger, destinationState plinko.State) plinko.StateDefinition

func (InternalStateDefinition) PermitIf

func (sd InternalStateDefinition) PermitIf(predicate plinko.Predicate, trigger plinko.Trigger, destinationState plinko.State) plinko.StateDefinition

func (InternalStateDefinition) PermitReentry

func (sd InternalStateDefinition) PermitReentry(trigger plinko.Trigger) plinko.StateDefinition

func (InternalStateDefinition) PermitReentryIf

func (sd InternalStateDefinition) PermitReentryIf(predicate plinko.Predicate, trigger plinko.Trigger) plinko.StateDefinition

type PlinkoDataStructure

type PlinkoDataStructure struct {
	States map[plinko.State]plinko.StateDefinition
}

type PlinkoDefinition

type PlinkoDefinition struct {
	States      *map[plinko.State]*InternalStateDefinition
	SideEffects []sideeffects.SideEffectDefinition
	Abs         AbstractSyntax
}

func (PlinkoDefinition) Compile

func (pd PlinkoDefinition) Compile() plinko.CompilerOutput

func (*PlinkoDefinition) Configure

func (pd *PlinkoDefinition) Configure(state plinko.State, opts ...plinko.StateOption) plinko.StateDefinition

func (PlinkoDefinition) Edges

func (pd PlinkoDefinition) Edges(edgeFunc func(state, destinationState plinko.State, name plinko.Trigger))

Edges implements Edges method of the plinko.Graph interface

func (*PlinkoDefinition) FilteredSideEffect

func (pd *PlinkoDefinition) FilteredSideEffect(filter plinko.SideEffectFilter, sideEffect plinko.SideEffect) plinko.PlinkoDefinition

func (PlinkoDefinition) Nodes

func (pd PlinkoDefinition) Nodes(nodeFunc func(state plinko.State, StateConfig plinko.StateConfig))

Nodes implements Nodes method of the plinko.Graph interface

func (PlinkoDefinition) Render

func (pd PlinkoDefinition) Render(renderer plinko.Renderer) error

func (PlinkoDefinition) RenderUml

func (pd PlinkoDefinition) RenderUml() (plinko.Uml, error)

func (*PlinkoDefinition) SideEffect

func (pd *PlinkoDefinition) SideEffect(sideEffect plinko.SideEffect) plinko.PlinkoDefinition

type TriggerDefinition

type TriggerDefinition struct {
	Name             plinko.Trigger
	DestinationState plinko.State
	Predicate        func(context.Context, plinko.Payload, plinko.TransitionInfo) error
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL