alchemist-interfaces / it.unibo.alchemist.core.interfaces / DependencyGraph / createDependencies

createDependencies

abstract fun createDependencies(rh: Reaction<T>!): Unit

This method creates the dependencies when a new reaction is added to the environment. Please be careful when building the environment and populating the existing reactions map: this method assumes that all the dependencies among the existing reactions are correct and up to date.

Parameters

rh - Reaction<T>!: the reaction handler whose dependencies should be calculated.