java.lang.Object
org.bigraphs.framework.core.reactivesystem.AbstractReactionRule<B>
org.bigraphs.framework.core.reactivesystem.ParametricReactionRule<B>
org.bigraphs.framework.core.reactivesystem.ConditionalParametricRuleDecorator<B>
- All Implemented Interfaces:
HasLabel,HasPriority,ReactionRule<B>
public class ConditionalParametricRuleDecorator<B extends Bigraph<? extends Signature<?>>>
extends ParametricReactionRule<B>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceConditionalParametricRuleDecorator.RuleConditionMatcher<B extends Bigraph<? extends Signature<?>>>Nested classes/interfaces inherited from class org.bigraphs.framework.core.reactivesystem.AbstractReactionRule
AbstractReactionRule.ReactiveSystemBoundReactionRule<B extends Bigraph<? extends Signature<?>>> -
Field Summary
Fields inherited from class org.bigraphs.framework.core.reactivesystem.AbstractReactionRule
canReverse, instantiationMap, label, priority, reactiveSystemAffili, reactum, redex, signature, trackingMap -
Constructor Summary
ConstructorsConstructorDescriptionConditionalParametricRuleDecorator(ParametricReactionRule<B> reactionRule) ConditionalParametricRuleDecorator(ParametricReactionRule<B> reactionRule, ConditionalParametricRuleDecorator.RuleConditionMatcher<B> conditionMatcher) -
Method Summary
Modifier and TypeMethodDescriptionReturns the underlying reaction rule.booleanisMatchValid(B theAgent, ReactionRule<B> theRule, BigraphMatch<B> match) Methods inherited from class org.bigraphs.framework.core.reactivesystem.ParametricReactionRule
isProperParametricRule, isRedexSimpleMethods inherited from class org.bigraphs.framework.core.reactivesystem.AbstractReactionRule
assertInstantiationMapIsWellDefined, assertIsProperParametricRule, assertRedexIsSimple, getInstantationMap, getLabel, getPriority, getReactum, getRedex, getSignature, getTrackingMap, isReversible, withInstantiationMap, withLabel, withPriority, withReactiveSystem, withTrackingMapMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.bigraphs.framework.core.reactivesystem.ReactionRule
isParametricRule
-
Constructor Details
-
ConditionalParametricRuleDecorator
public ConditionalParametricRuleDecorator(ParametricReactionRule<B> reactionRule) throws InvalidReactionRuleException - Throws:
InvalidReactionRuleException
-
ConditionalParametricRuleDecorator
public ConditionalParametricRuleDecorator(ParametricReactionRule<B> reactionRule, ConditionalParametricRuleDecorator.RuleConditionMatcher<B> conditionMatcher) throws InvalidReactionRuleException - Throws:
InvalidReactionRuleException
-
-
Method Details
-
isMatchValid
-
getReactionRule
Returns the underlying reaction rule.- Returns:
- the reaction rule of the conditional decorator
-
getConditionMatcher
-