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 |
Methods
AddToken(IContext)
Puts a token into this abstract safe Petri net.
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()