SAPEREGradient

class SAPEREGradient<P : Position<P>?> : AbstractReaction<List<ILsaMolecule>>

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
open fun SAPEREGradient(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.
Link copied to clipboard
open fun SAPEREGradient(env: Environment<List<ILsaMolecule>, P>, n: ILsaNode, td: TimeDistribution<List<ILsaMolecule>>, sourceTemplate: String, gradientTemplate: String, valuePosition: Int, expression: String, contextTemplate: String, gradThreshold: Double)
Builds a new SAPERE Gradient.

Functions

Link copied to clipboard
open fun canExecute(): Boolean
Link copied to clipboard
open fun cloneOnNewNode(node: Node<List<ILsaMolecule>>, currentTime: Time): Reaction<List<ILsaMolecule>>
Link copied to clipboard
fun compareTo(o: Reaction<T>): Int
Link copied to clipboard
fun equals(o: Any): Boolean
Link copied to clipboard
open fun execute()
Link copied to clipboard
open fun getActions(): List<Action<List<ILsaMolecule>>>
Link copied to clipboard
open fun getConditions(): List<Condition<List<ILsaMolecule>>>
Link copied to clipboard
fun getInboundDependencies(): ListSet<Dependency>
abstract fun getInboundDependencies(): ListSet<out Dependency>
Link copied to clipboard
fun getInputContext(): Context
Link copied to clipboard
open fun getLsaNode(): ILsaNode
Link copied to clipboard
fun getNode(): Node<T>
Link copied to clipboard
fun getOutboundDependencies(): ListSet<Dependency>
abstract fun getOutboundDependencies(): ListSet<out Dependency>
Link copied to clipboard
fun getOutputContext(): Context
Link copied to clipboard
open fun getRate(): Double
Link copied to clipboard
fun getTau(): Time
Link copied to clipboard
fun getTimeDistribution(): TimeDistribution<T>
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<Action<T>>)
Link copied to clipboard
open fun setConditions(conditions: List<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>)