Package it.unibo.alchemist.core
Class JGraphTDependencyGraph
-
- All Implemented Interfaces:
-
it.unibo.alchemist.core.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 Unit
createDependencies(Actionable<T> newReaction)
Unit
removeDependencies(Actionable<T> reaction)
Unit
addNeighbor(Node<T> n1, Node<T> n2)
Unit
removeNeighbor(Node<T> n1, Node<T> n2)
ListSet<Actionable<T>>
outboundDependencies(Actionable<T> reaction)
String
toString()
ListSet<Actionable<T>>
globalInputContextReactions()
-
-
Constructor Detail
-
JGraphTDependencyGraph
JGraphTDependencyGraph(Environment<T, ?> environment)
-
-
Method Detail
-
createDependencies
Unit createDependencies(Actionable<T> newReaction)
-
removeDependencies
Unit removeDependencies(Actionable<T> reaction)
-
outboundDependencies
ListSet<Actionable<T>> outboundDependencies(Actionable<T> reaction)
-
globalInputContextReactions
ListSet<Actionable<T>> globalInputContextReactions()
-
-
-
-