-
- All Implemented Interfaces:
-
it.unibo.alchemist.core.interfaces.DependencyGraph
public final class JGraphTDependencyGraph<T extends Object> implements DependencyGraph<T>
This class offers an implementation of a dependency graph, namely a data structure which can address in an efficient way the problem of finding those reactions affected by the execution of another reaction. This class relies heavily on the ReactionHandler interface.
-
-
Constructor Summary
Constructors Constructor Description JGraphTDependencyGraph(Environment<T, ?> environment)
-
Method Summary
Modifier and Type Method Description UnitcreateDependencies(Reaction<T> newReaction)UnitremoveDependencies(Reaction<T> r)UnitaddNeighbor(Node<T> n1, Node<T> n2)UnitremoveNeighbor(Node<T> n1, Node<T> n2)ArrayListSet<Reaction<T>>outboundDependencies(Reaction<T> reaction)StringtoString()ListSet<Reaction<T>>globalInputContextReactions()-
-
Constructor Detail
-
JGraphTDependencyGraph
JGraphTDependencyGraph(Environment<T, ?> environment)
-
-
Method Detail
-
createDependencies
Unit createDependencies(Reaction<T> newReaction)
-
removeDependencies
Unit removeDependencies(Reaction<T> r)
-
outboundDependencies
ArrayListSet<Reaction<T>> outboundDependencies(Reaction<T> reaction)
-
globalInputContextReactions
ListSet<Reaction<T>> globalInputContextReactions()
-
-
-
-