INSA
  • Tutorials
  • Documentation
  • Api Documentation
  • Changelog
Show / Hide Table of Contents
  • Scenario Engine
    • What is a scenario Engine?
    • Main Definitions
      • Scenario
      • Transition
      • Sensor
      • Effector
      • Context
    • All Definitions
      • Comment
      • Complex Sequence
      • Context
      • Decision Tree
      • Effector
      • Event
      • Event Context
      • External Context
      • External Scenario
      • Function
      • Node
      • Net
      • Petri-Net
      • Place
      • Safe Petri-Net
      • Scenario
      • Scenario Context
      • Sensor
      • Sequence
      • State
      • State Machine
      • Token
      • Token Assign
      • Token Merge
      • Token Split
      • Transition
    • How to deal with asynchronous events?
  • Relation Engine
    • What is a relation Engine?
  • Scenario with Relation

ATokenMerge

TokenMerge (see ATokenMerge) is a Function (see Function). It describes how a transition manages the tokens consumed from the upstream places. Tokens are consumed and merged for every transition that can be fired (see Transition fire conditions) and before the effectors (see Effector) are run.

The user must implement the TokenMerge method. Tokens from the upstream places are in the upstreamPlaceIdTokenMap variable and the method output (IContext) produces a token resulting from the merge.

INSA     IRISA     Inria     Ouest Valorisation Back to top