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>, IContext, IContext)
Constructor for a TokenMerge
Declaration
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
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 |
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 |
Methods
FillParameters()
Declaration
public virtual void FillParameters()
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 |