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>, ContextHolder)
Constructor of a TokenSplit
Declaration
protected ATokenSplit(ComplexSequence complexeSequence, Dictionary<string, Parameter> parameters, IContext superSequenceToken, List<string> subSequenceIdList, ContextHolder contexts)
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 |
| ContextHolder | contexts | The contexts |
ATokenSplit(ComplexSequence, Dictionary<string, Parameter>, IContext, List<string>, IContext, IContext)
Constructor of a TokenSplit
Declaration
[Obsolete("Use ATokenSplit(ComplexSequence, Dictionary<string, Parameter>, IContext, List<string>, ContextHolder) instead.")]
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
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 |
externalContext
Declaration
[Obsolete("Use Contexts.ExternalContext instead.")]
protected IContext externalContext { get; }
Property Value
| Type | Description |
|---|---|
| IContext |
scenarioContext
Declaration
[Obsolete("Use Contexts.ScenarioContext instead.")]
protected IContext scenarioContext { get; }
Property Value
| Type | Description |
|---|---|
| IContext |
Methods
SetSuperSequenceContext(IContext)
Sets/Updates the context used by this token split
Declaration
public virtual void SetSuperSequenceContext(IContext superSequenceToken)
Parameters
| Type | Name | Description |
|---|---|---|
| IContext | superSequenceToken |
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 |