ChangeBiomolConcentrationInNeighbor

class ChangeBiomolConcentrationInNeighbor(randomGenerator: ERROR CLASS: Symbol not found for RandomGenerator, environment: Environment<Double, *>, node: Node<Double>, val molecule: Biomolecule, val deltaConcentration: Double) : AbstractNeighborAction<Double>

Changes the concentration of a Biomolecule (molecule) in a randomly-selected compatible neighbor cell by deltaConcentration.

Constructors

Link copied to clipboard
constructor(randomGenerator: ERROR CLASS: Symbol not found for RandomGenerator, environment: Environment<Double, *>, node: Node<Double>, molecule: Biomolecule, deltaConcentration: Double)

Properties

Link copied to clipboard
override val context: Context?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
override val outboundDependencies: @EnhancedNullability org/danilopianini/util/ListSet<out it/unibo/alchemist/model/Dependency!>

Functions

Link copied to clipboard
open override fun cloneAction(newNode: Node<Double>, newReaction: Reaction<Double>): ChangeBiomolConcentrationInNeighbor

This method allows to clone this action on a new node. It may result useful to support runtime creation of nodes with the same reaction programming, e.g. for morphogenesis.

Link copied to clipboard
open override fun execute()

Execute the action on a random neighbor if the node has a neighborhood. Otherwise do nothing.

open override fun execute(targetNode: Node<Double>)

Execute the action on the given target node. NOTE, it is NOT guaranteed that this method checks if the target node is in the actual neighborhood of the node.

Link copied to clipboard
open override fun toString(): String