Class ReactionRuleComposer<R extends ReactionRule<?>>

java.lang.Object
org.bigraphs.framework.core.reactivesystem.ReactionRuleComposer<R>
Type Parameters:
R - the concrete reaction rule type produced by this composer

public class ReactionRuleComposer<R extends ReactionRule<?>> extends Object
Utility class to compose reaction rules into a new single rule.

This class supports two operations:

  • Parallel product: places the redex and reactum of two rules side by side under distinct roots.
  • Merge product: places the redex and reactum of two rules side by side under a single, common root.
During composition the following artifacts are combined accordingly:
  • Instantiation map
  • Tracking map (if present)
  • Rule label: created by concatenating the labels using a configurable separator (_PP_)
The separator defaults to "_PP_" and can be changed via withSeparator(String).
Author:
Dominik Grzelak
See Also: