Class StateMachine
Assembly: Xareus.Scenarios.dll
Syntax
[Serializable]
[TypeConverter(typeof(StateMachineConverter))]
public class StateMachine : ComplexSequence
Constructors
StateMachine()
Declaration
StateMachine(string, string)
Declaration
public StateMachine(string id, string label = "")
Parameters
Type |
Name |
Description |
string |
id |
The Id must be unique
|
string |
label |
The label (optional)
|
Properties
InitialSequenceParameter
Declaration
protected KeyValuePair<ASequence, Function> InitialSequenceParameter { get; }
Property Value
SequenceTypeName
Declaration
public override string SequenceTypeName { get; }
Property Value
Overrides
Methods
AddToken(IContext)
Declaration
public override void AddToken(IContext token)
Parameters
Overrides
CreateSubSequence(string, string)
Creates a new sub sequence with the given Id and label
Declaration
public override ASequence CreateSubSequence(string id, string label = "")
Parameters
Returns
Overrides
CreateTransition(string, string)
Creates a new transition with the given Id and label
Declaration
public override Transition CreateTransition(string id, string label = "")
Parameters
Returns
Overrides
GetToken()
Get the token of the given state machine.
The token is null if no final place of the state machine has a token
The token returned is the token of the final place
Declaration
public override IContext GetToken()
Returns
Overrides
HasReachedFinalState()
Declaration
public override bool HasReachedFinalState()
Returns
Overrides
RemoveToken()
Declaration
public override void RemoveToken()
Overrides
SetInitial(string)
sets the sequence with the given Id as initial to the current state machine
Declaration
public override void SetInitial(string initialId)
Parameters
Type |
Name |
Description |
string |
initialId |
|
Overrides
Extension Methods