Class ATokenMerge
Inherited Members
Namespace: Xareus.Scenarios.TokenMerge
Assembly: Xareus.Scenarios.dll
Syntax
public abstract class ATokenMerge : AFunction
Constructors
ATokenMerge()
Base constructor for token merge
Declaration
protected ATokenMerge()
ATokenMerge(Transition, Dictionary<string, Parameter>, Dictionary<string, IContext>, ContextHolder)
Constructor for a TokenMerge
Declaration
protected ATokenMerge(Transition transition, Dictionary<string, Parameter> parameters, Dictionary<string, IContext> upstreamSequenceIdTokenMap, ContextHolder contexts)
Parameters
Type | Name | Description |
---|---|---|
Transition | transition | The transition that will merge the tokens |
Dictionary<string, Parameter> | parameters | The parameters of the token merge |
Dictionary<string, IContext> | upstreamSequenceIdTokenMap | The tokens of the upstream sequences |
ContextHolder | contexts | The contexts |
ATokenMerge(Transition, Dictionary<string, Parameter>, Dictionary<string, IContext>, IContext, IContext)
Constructor for a TokenMerge
Declaration
[Obsolete("Use AEffector(Transition, Dictionary<string, Parameter>, Dictionary<string, IContext>, ContextHolder) instead.")]
protected ATokenMerge(Transition transition, Dictionary<string, Parameter> parameters, Dictionary<string, IContext> upstreamSequenceIdTokenMap, IContext externalContext, IContext scenarioContext)
Parameters
Type | Name | Description |
---|---|---|
Transition | transition | The transition that will merge the tokens |
Dictionary<string, Parameter> | parameters | The parameters of the token merge |
Dictionary<string, IContext> | upstreamSequenceIdTokenMap | The tokens of the upstream sequences |
IContext | externalContext | The external context |
IContext | scenarioContext | The scenario context |
Fields
upstreamSequenceIdTokenMap
Map of the identifiers of the upstream sequences and their tokens
Declaration
protected Dictionary<string, IContext> upstreamSequenceIdTokenMap
Field Value
Type | Description |
---|---|
Dictionary<string, IContext> |
Properties
Transition
The transition holding this Token Merge
Declaration
public Transition Transition { get; }
Property Value
Type | Description |
---|---|
Transition |
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
TokenMerge()
Produces the token of a place from the tokens of the final places of its sub net.
Declaration
public abstract IContext TokenMerge()
Returns
Type | Description |
---|---|
IContext | The token |