Class AFinalTokenMerge
Inherited Members
Namespace: Xareus.Scenarios.FinalTokenMerge
Assembly: Xareus.Scenarios.dll
Syntax
public abstract class AFinalTokenMerge : AFunctionConstructors
AFinalTokenMerge()
Base constructor for final token merge
Declaration
protected AFinalTokenMerge()AFinalTokenMerge(ComplexSequence, Dictionary<string, Parameter>, Dictionary<string, IContext>, ContextHolder)
Constructor for a final token merge. Meaning the function that will merge the token of all final sequences of a network before exiting it
Declaration
protected AFinalTokenMerge(ComplexSequence complexSequence, Dictionary<string, Parameter> parameters, Dictionary<string, IContext> upstreamSequenceIdTokenMap, ContextHolder contexts)Parameters
| Type | Name | Description | 
|---|---|---|
| ComplexSequence | complexSequence | The network that is being exited | 
| Dictionary<string, Parameter> | parameters | The parameters of the token merge | 
| Dictionary<string, IContext> | upstreamSequenceIdTokenMap | The tokens of the final sequences | 
| ContextHolder | contexts | The contexts | 
AFinalTokenMerge(ComplexSequence, Dictionary<string, Parameter>, Dictionary<string, IContext>, IContext, IContext)
Constructor for a final token merge. Meaning the function that will merge the token of all final sequences of a network before exiting it
Declaration
[Obsolete("Use ComplexSequence(Event, Dictionary<string, Parameter>, Dictionary<string, IContext>, ContextHolder) instead.")]
protected AFinalTokenMerge(ComplexSequence complexSequence, Dictionary<string, Parameter> parameters, Dictionary<string, IContext> upstreamSequenceIdTokenMap, IContext externalContext, IContext scenarioContext)Parameters
| Type | Name | Description | 
|---|---|---|
| ComplexSequence | complexSequence | The network that is being exited | 
| Dictionary<string, Parameter> | parameters | The parameters of the token merge | 
| Dictionary<string, IContext> | upstreamSequenceIdTokenMap | The tokens of the final sequences | 
| IContext | externalContext | The external context | 
| IContext | scenarioContext | The scenario context | 
Fields
upstreamSequenceIdTokenMap
Map of the identifiers of the upstream/final sequences and their tokens
Declaration
protected Dictionary<string, IContext> upstreamSequenceIdTokenMapField Value
| Type | Description | 
|---|---|
| Dictionary<string, IContext> | 
Properties
ComplexSequence
The net holding this Token Merge
Declaration
protected ComplexSequence ComplexSequence { get; }Property Value
| Type | Description | 
|---|---|
| ComplexSequence | 
externalContext
The external context
Declaration
[Obsolete("Use Contexts.ExternalContext instead.")]
protected IContext externalContext { get; }Property Value
| Type | Description | 
|---|---|
| IContext | 
scenarioContext
The scenario context
Declaration
[Obsolete("Use Contexts.ScenarioContext instead.")]
protected IContext scenarioContext { get; }Property Value
| Type | Description | 
|---|---|
| IContext | 
Methods
SetUpstreamSequenceIdTokenMap(Dictionary<string, IContext>)
Sets/Updates the token map used by this Final Token Merge
Declaration
public virtual void SetUpstreamSequenceIdTokenMap(Dictionary<string, IContext> upstreamSequenceIdTokenMap)Parameters
| Type | Name | Description | 
|---|---|---|
| Dictionary<string, IContext> | upstreamSequenceIdTokenMap | 
TokenMerge()
Produces the token of a sequence from the tokens of the final sequences of its sub net.
Declaration
public abstract IContext TokenMerge()Returns
| Type | Description | 
|---|---|
| IContext | The token |