BrownianMove
class BrownianMove<T, P : Position<P>> @JvmOverloads constructor(environment: Environment<T, P>, reaction: Reaction<T>, node: Node<T> = reaction.host as? Node<T> ?: error(
"${BrownianMove::class.simpleName} must either be provided with a node " +
"or be owned by a reaction hosted by a node",
), randomGenerator: RandomGenerator, range: Double) : AbstractNodeAction<T>
Moves the target node randomly, by at most range along each dimension at every execution.
Type Parameters
T
concentration type
P
position type
Constructors
Link copied to clipboard
constructor(environment: Environment<T, P>, reaction: Reaction<T>, node: Node<T> = reaction.host as? Node<T> ?: error(
"${BrownianMove::class.simpleName} must either be provided with a node " +
"or be owned by a reaction hosted by a node",
), randomGenerator: RandomGenerator, range: Double)
Properties
Link copied to clipboard
The reaction owning this action. Its Reaction.host is the model entity hosting the action, which may differ from the node it targets, if any.
Link copied to clipboard
Functions
Link copied to clipboard
Creates an equivalent action owned by newReaction, such as a reaction cloned onto a new node. An action targeting the host of its reaction targets the host of newReaction, which must then be a Node; an action targeting any other node keeps its target.
Link copied to clipboard