Table of Contents

Interface IStepFunction

Namespace
Microsoft.Accordant
Assembly
Accordant.dll

A step function transitions the state of the system to a non-deterministic set of next states, if it is enabled in the source state.

A step function is consumed when applied and can produce new step functions in the set of next states.

public interface IStepFunction

Properties

StepFunctionId

The unique identifier of the step function.

string StepFunctionId { get; }

Property Value

string

Methods

Apply(IState, IReadOnlyList<(IStepFunction, StateGraphNode)>)

This method returns a list of next states, and new step functions to include in those states. Each such transition represents a non-deterministic evolution of the system from the current state to the target state.

No transition happens if this method returns an empty list or a null value.

IList<StepResult> Apply(IState state, IReadOnlyList<(IStepFunction, StateGraphNode)> path)

Parameters

state IState
path IReadOnlyList<(IStepFunction, StateGraphNode)>

Returns

IList<StepResult>