Dependency

interface Dependency : Serializable

This interface represents a token that may generate a dependency between two reactions. Some special built-in tokens are EVERYTHING, EVERY_MOLECULE, MOVEMENT, and NEIGHBORHOOD_CHANGE. Molecules are dependencies as well.

Functions

Link copied to clipboard
open fun dependsOn(dependency: Dependency): Boolean
Determines whether this dependency depends on the provided dependency.
Link copied to clipboard
open fun makesDependent(dependency: Dependency): Boolean
Determines whether the provided dependency depends on this dependency.

Properties

Link copied to clipboard
val EVERY_MOLECULE: Dependency
Declares a dependency towards any modified molecule in the reachable scope.
Link copied to clipboard
val EVERYTHING: Dependency
Declares a dependency towards any other reaction in the reachable scope.
Link copied to clipboard
val MOVEMENT: Dependency
Declares a dependency on movement of nodes in the reachable scope.

Inheritors

Link copied to clipboard