Molecule

interface Molecule : Dependency

Interface for a molecule.

Inheritors

Properties

Link copied to clipboard
Declares a dependency towards any modified molecule in the reachable scope.
Link copied to clipboard
Declares a dependency towards any other reaction in the reachable scope.
Link copied to clipboard
Declares a dependency on movement of nodes in the reachable scope.

Functions

Link copied to clipboard
open fun dependsOn(dependency: Dependency): Boolean
Determines whether this dependency depends on the provided dependency.
Link copied to clipboard
abstract fun getName(): String
Link copied to clipboard
context(incarnation: Incarnation<T, *>, node: Node<T>)
operator fun <T> Molecule.invoke(concentration: T = incarnation.createConcentration())

Assigns the given concentration to this Molecule on the current Node.

Link copied to clipboard
open fun makesDependent(dependency: Dependency): Boolean
Determines whether the provided dependency depends on this dependency.
Link copied to clipboard
Link copied to clipboard
context(incarnation: Incarnation<T, *>, _: Node<T>)
operator fun <T> Molecule.unaryMinus()

Assigns a default concentration for this Molecule to the current Node.