Class DefaultTokenUpdate
Updates the token (map, simple dictionary or trie) of the downstream sequences of a transition.
This WILL preserve previous values issued from the TokenMerge
The format of the name of the parameters is <key>.<key>
.
The values are parsed using Parse(string, string, object, object, object, object).
Inherited Members
Namespace: Xareus.Scenarios.Extra
Assembly: Xareus.Scenarios.Extra.dll
Syntax
[Renamed("TokenMapUpdate", "SEVEN.Extra")]
[Renamed("DefaultTokenUpdate", "SEVEN.Extra")]
[Renamed("SEVEN.Extra.DefaultTokenUpdate", "SEVEN.Extra")]
[FunctionDescription("Data field is deprecated, use TokenData")]
public class DefaultTokenUpdate : ATokenAssign
Constructors
DefaultTokenUpdate(Transition, Dictionary<string, Parameter>, Dictionary<string, IContext>, List<string>, IContext, IContext, IContext, IContext)
Constructor for a token assign
Declaration
protected DefaultTokenUpdate(Transition transition, Dictionary<string, Parameter> parameters, Dictionary<string, IContext> upstreamSequenceIdTokenMap, List<string> downstreamSequenceIdList, IContext externalContext, IContext scenarioContext, IContext sequenceContext, IContext eventContext)
Parameters
Type | Name | Description |
---|---|---|
Transition | transition | The transition holding the TokenAssign |
Dictionary<string, Parameter> | parameters | The parameters of the TokenAssign |
Dictionary<string, IContext> | upstreamSequenceIdTokenMap | The tokens of the upstream sequences |
List<string> | downstreamSequenceIdList | The Ids of the downstream sequences |
IContext | externalContext | The eternal context |
IContext | scenarioContext | The scenario context |
IContext | sequenceContext | The current token of the transition (merged by TokenMerge) |
IContext | eventContext | The event context, from the sensor that fired the transition |
Fields
TOKENDATA_PARAMETER
Declaration
public const string TOKENDATA_PARAMETER = "TokenData"
Field Value
Type | Description |
---|---|
string |
newData
Declaration
[ConfigurationParameter("Data", "Deprecated. Use TokenData instead", Necessity.Optional)]
protected Dictionary<string, string> newData
Field Value
Type | Description |
---|---|
Dictionary<string, string> |
tokenDataList
Declaration
[ConfigurationParameter("TokenData", "Data to add to the token.", Necessity.Optional)]
protected List<DefaultTokenUpdate.TokenData> tokenDataList
Field Value
Type | Description |
---|---|
List<DefaultTokenUpdate.TokenData> |
Methods
TokenAssign(Dictionary<string, IContext>)
Assigns tokens to the downstream sequences of a transition/event.
Declaration
public override void TokenAssign(Dictionary<string, IContext> downstreamSequenceIdTokenMap)
Parameters
Type | Name | Description |
---|---|---|
Dictionary<string, IContext> | downstreamSequenceIdTokenMap | The dictionary containing the pairs of downstreamplace ids / token |