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 node: Node<T>
Link copied to clipboard

Functions

Link copied to clipboard
open fun canExecute(): Boolean
Link copied to clipboard
@Nonnull
open fun cloneOnNewNode(@Nonnull node: Node<List<ILsaMolecule>>, @Nonnull currentTime: Time): Reaction<List<ILsaMolecule>>
Link copied to clipboard
Link copied to clipboard
fun equals(o: Any): Boolean
Link copied to clipboard
open fun execute()
Link copied to clipboard
@Nonnull
open fun getActions(): List<Action<List<ILsaMolecule>>>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun getLsaNode(): ILsaNode
Link copied to clipboard
Link copied to clipboard
open fun getRate(): Double
Link copied to clipboard
fun getTau(): Time
Link copied to clipboard
fun hashCode(): Int
Link copied to clipboard
open fun initializationComplete(atTime: Time, environment: Environment<T, out Any>)
Link copied to clipboard
open fun setActions(actions: List<out Action<T>>)
Link copied to clipboard
open fun setConditions(conditions: List<out Condition<T>>)
Link copied to clipboard
open fun toString(): String
Link copied to clipboard
fun update(currentTime: Time, hasBeenExecuted: Boolean, environment: Environment<T, out Any>)