Class ATokenSplit
Base class for token split functions that can be used when initializing tokens in the initial sequences of a Complexe Sequence
Inherited Members
Namespace: Xareus.Scenarios.TokenSplit
Assembly: Xareus.Scenarios.dll
Syntax
public abstract class ATokenSplit : AFunction
Constructors
ATokenSplit()
Base constructor for token split
Declaration
protected ATokenSplit()
ATokenSplit(ComplexSequence, Dictionary<string, Parameter>, IContext, List<string>, IContext, IContext)
Constructor of a TokenSplit
Declaration
protected ATokenSplit(ComplexSequence complexeSequence, Dictionary<string, Parameter> parameters, IContext superSequenceToken, List<string> subSequenceIdList, IContext externalContext, IContext scenarioContext)
Parameters
Type | Name | Description |
---|---|---|
ComplexSequence | complexeSequence | The network in which this token must be splitted |
Dictionary<string, Parameter> | parameters | The parameters of the token split |
IContext | superSequenceToken | The token that must be splitted |
List<string> | subSequenceIdList | The ids of the initial sequences of the net |
IContext | externalContext | The external context |
IContext | scenarioContext | The scenario context |
Fields
externalContext
The external context
Declaration
protected IContext externalContext
Field Value
Type | Description |
---|---|
IContext |
scenarioContext
The scenario context
Declaration
protected IContext scenarioContext
Field Value
Type | Description |
---|---|
IContext |
subSequenceIdList
List of the identifiers of the initial sequences of the sub net
Declaration
protected List<string> subSequenceIdList
Field Value
Type | Description |
---|---|
List<string> |
superSequenceToken
The token the must be splitted
Declaration
protected IContext superSequenceToken
Field Value
Type | Description |
---|---|
IContext |
Properties
ComplexSequence
The complex sequence holding this Token Split
Declaration
public ComplexSequence ComplexSequence { get; }
Property Value
Type | Description |
---|---|
ComplexSequence |
Methods
FillParameters()
Declaration
public virtual void FillParameters()
TokenSplit(Dictionary<ASequence, IContext>)
Splits the token of a super sequence into the initial sequences of its sub net and merges it with the initial tokens of the sub net sequences.
Declaration
public abstract void TokenSplit(Dictionary<ASequence, IContext> tokens)
Parameters
Type | Name | Description |
---|---|---|
Dictionary<ASequence, IContext> | tokens | Map of the the initial sequences of the sub net and their initial tokens |