Class NoOtherReactionCanExecute
-
- All Implemented Interfaces:
-
it.unibo.alchemist.model.Condition
,java.io.Serializable
public final class NoOtherReactionCanExecute<T extends Object> extends AbstractNonPropensityContributingCondition<T>
The condition is valid if all the other reactions having at least one condition can not execute. This condition can be used only in a single reaction per node, as multiple instances would lead to undecidable situations.
-
-
Constructor Summary
Constructors Constructor Description NoOtherReactionCanExecute(Node<T> node, Reaction<T> myReaction)
-
Method Summary
Modifier and Type Method Description NoOtherReactionCanExecute<T>
cloneCondition(Node<T> node, Reaction<T> reaction)
How to override: create a new action of your concrete subtype. Context
getContext()
Boolean
isValid()
-
Methods inherited from class it.unibo.alchemist.model.conditions.AbstractCondition
getInboundDependencies, getNode, toString
-
Methods inherited from class it.unibo.alchemist.model.conditions.AbstractNonPropensityContributingCondition
getPropensityContribution
-
Methods inherited from class it.unibo.alchemist.model.Condition
reactionReady
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
cloneCondition
NoOtherReactionCanExecute<T> cloneCondition(Node<T> node, Reaction<T> reaction)
How to override: create a new action of your concrete subtype.
-
getContext
Context getContext()
-
-
-
-