Class SimpleSequence
Inherited Members
Namespace: Xareus.Scenarios
Assembly: Xareus.Scenarios.dll
Syntax
[Serializable]
public class SimpleSequence : ASequence
Constructors
SimpleSequence()
Internal constructor for serialization
Declaration
protected SimpleSequence()
SimpleSequence(string, string)
Constructor
Declaration
protected SimpleSequence(string id, string label = "")
Parameters
Type | Name | Description |
---|---|---|
string | id | The Id must be unique |
string | label | The label (optional) |
Fields
token
The token held by this sequence
Declaration
protected IContext token
Field Value
Type | Description |
---|---|
IContext |
Properties
Functions
Declaration
public override IEnumerable<Function> Functions { get; }
Property Value
Type | Description |
---|---|
IEnumerable<Function> |
Overrides
LocalFunctions
Declaration
public override IEnumerable<Function> LocalFunctions { get; }
Property Value
Type | Description |
---|---|
IEnumerable<Function> |
Overrides
SubSequences
Declaration
public override IEnumerable<ASequence> SubSequences { get; }
Property Value
Type | Description |
---|---|
IEnumerable<ASequence> |
Overrides
Methods
AddToken(IContext)
Puts a token into this abstract sequence.
Declaration
public override void AddToken(IContext token)
Parameters
Type | Name | Description |
---|---|---|
IContext | token | The token |
Overrides
GetToken()
Gets the token held by this abstract sequence. On a complex sequence, this is the merge of all final places' tokens
Declaration
public override IContext GetToken()
Returns
Type | Description |
---|---|
IContext | The token; |
Overrides
HasReachedFinalState()
Declaration
public override bool HasReachedFinalState()
Returns
Type | Description |
---|---|
bool |
Overrides
HasToken()
Checks if there is a token somewhere in the sequence.
Declaration
public override bool HasToken()
Returns
Type | Description |
---|---|
bool | true is there is a token, false if there is no token |
Overrides
RemoveToken()
Declaration
public override void RemoveToken()