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 ¶
- type AbstractSyntax
- type InternalStateDefinition
- func (sd InternalStateDefinition) OnEntry(entryFn plinko.Operation, opts ...plinko.OperationOption) plinko.StateDefinition
- func (sd InternalStateDefinition) OnError(errorFn plinko.ErrorOperation, opts ...plinko.OperationOption) plinko.StateDefinition
- func (sd InternalStateDefinition) OnExit(exitFn plinko.Operation, opts ...plinko.OperationOption) plinko.StateDefinition
- func (sd InternalStateDefinition) OnTriggerEntry(trigger plinko.Trigger, entryFn plinko.Operation, ...) plinko.StateDefinition
- func (sd InternalStateDefinition) OnTriggerExit(trigger plinko.Trigger, exitFn plinko.Operation, ...) plinko.StateDefinition
- func (sd InternalStateDefinition) Permit(trigger plinko.Trigger, destinationState plinko.State) plinko.StateDefinition
- func (sd InternalStateDefinition) PermitIf(predicate plinko.Predicate, trigger plinko.Trigger, ...) plinko.StateDefinition
- func (sd InternalStateDefinition) PermitReentry(trigger plinko.Trigger) plinko.StateDefinition
- func (sd InternalStateDefinition) PermitReentryIf(predicate plinko.Predicate, trigger plinko.Trigger) plinko.StateDefinition
- type PlinkoDataStructure
- type PlinkoDefinition
- func (pd PlinkoDefinition) Compile() plinko.CompilerOutput
- func (pd *PlinkoDefinition) Configure(state plinko.State, opts ...plinko.StateOption) plinko.StateDefinition
- func (pd PlinkoDefinition) Edges(edgeFunc func(state, destinationState plinko.State, name plinko.Trigger))
- func (pd *PlinkoDefinition) FilteredSideEffect(filter plinko.SideEffectFilter, sideEffect plinko.SideEffect) plinko.PlinkoDefinition
- func (pd PlinkoDefinition) Nodes(nodeFunc func(state plinko.State, StateConfig plinko.StateConfig))
- func (pd PlinkoDefinition) Render(renderer plinko.Renderer) error
- func (pd PlinkoDefinition) RenderUml() (plinko.Uml, error)
- func (pd *PlinkoDefinition) SideEffect(sideEffect plinko.SideEffect) plinko.PlinkoDefinition
- type TriggerDefinition
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 (sd InternalStateDefinition) OnEntry(entryFn plinko.Operation, opts ...plinko.OperationOption) plinko.StateDefinition
func (InternalStateDefinition) OnError ¶
func (sd InternalStateDefinition) OnError(errorFn plinko.ErrorOperation, opts ...plinko.OperationOption) plinko.StateDefinition
func (InternalStateDefinition) OnExit ¶
func (sd InternalStateDefinition) OnExit(exitFn plinko.Operation, opts ...plinko.OperationOption) plinko.StateDefinition
func (InternalStateDefinition) OnTriggerEntry ¶
func (sd InternalStateDefinition) OnTriggerEntry(trigger plinko.Trigger, entryFn plinko.Operation, opts ...plinko.OperationOption) plinko.StateDefinition
func (InternalStateDefinition) OnTriggerExit ¶
func (sd InternalStateDefinition) OnTriggerExit(trigger plinko.Trigger, exitFn plinko.Operation, opts ...plinko.OperationOption) plinko.StateDefinition
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) SideEffect ¶
func (pd *PlinkoDefinition) SideEffect(sideEffect plinko.SideEffect) plinko.PlinkoDefinition
Click to show internal directories.
Click to hide internal directories.