SAPEREGradient

This class provides a fast and stable gradient implementation, inspired on the NBR construct used in Proto.

Parameters

<P>

Position type

Constructors

Link copied to clipboard
constructor(environment: Environment<List<ILsaMolecule>, P>, node: ILsaNode, sourceTemplate: ILsaMolecule, gradientTemplate: ILsaMolecule, valuePosition: Int, expression: String, contextTemplate: ILsaMolecule, gradThreshold: Double, timeDistribution: TimeDistribution<List<ILsaMolecule>>)
Builds a new SAPERE Gradient.
constructor(environment: Environment<List<ILsaMolecule>, P>, node: ILsaNode, timeDistribution: TimeDistribution<List<ILsaMolecule>>, sourceTemplate: String, gradientTemplate: String, valuePosition: Int, expression: String, contextTemplate: String, gradThreshold: Double)
Builds a new SAPERE Gradient.

Properties

Link copied to clipboard
val host: Node<T>
Link copied to clipboard

Functions

Link copied to clipboard
fun compareTo(other: Reaction<T>): Int
Link copied to clipboard
open fun dispose()
Link copied to clipboard
open fun execute()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract fun getHost(): ReactionHost<T>
Link copied to clipboard
open fun getLsaNode(): ILsaNode
Returns the node hosting this reaction.
Link copied to clipboard
open fun getMeanDelay(): Double
Link copied to clipboard
Link copied to clipboard
fun initializationComplete(atTime: Time, environment: Environment<T, out Any>)
Link copied to clipboard
open fun setActions(value: List<out Action<T>>)
Link copied to clipboard
open fun setConditions(value: List<out Condition<T>>)
Link copied to clipboard
open fun toString(): String
Link copied to clipboard
Link copied to clipboard