LsaStandardCondition

simple LSA-condition (example: ). Search an instance of a template in a node. The LSAMolecule matched, if exist, will not be deleted from the node Lsa-space . It can be deleted from the reaction, if necessary.

Inheritors

Constructors

Link copied to clipboard
constructor(mol: ILsaMolecule, n: ILsaNode)
Builds an LsaStandardCondition.

Properties

Link copied to clipboard
val node: Node<T>

Functions

Link copied to clipboard
abstract fun cloneCondition(node: Node<T>, reaction: Reaction<T>): Condition<T>
open fun cloneCondition(node: Node<T>, reaction: Reaction<T>): Condition<T>
This method allows to clone this action on a new node.
How to override: create a new action of your concrete subtype.
Link copied to clipboard
open fun filter(matchesList: List<Map<HashString, ITreeNode<out Any>>>, validNodes: List<ILsaNode>, retrieved: List<Map<ILsaNode, List<ILsaMolecule>>>): Boolean
When this method is called, the condition must filter the current matches and allowed nodes.
Link copied to clipboard
open fun getContext(): Context
Link copied to clipboard
fun getInboundDependencies(): ListSet<? extends Dependency>
How to override: if you intend your condition to be potentially changed by any change in the context, return null.
Link copied to clipboard
Override if your Condition can return a more specific type of node.
Link copied to clipboard
This method is a support for the propensity calculation inside the Reactions.
Link copied to clipboard
Link copied to clipboard
open fun reactionReady()
This method is called by the Simulation once the Reaction whose this Condition belongs to is the next one to be executed, and all its conditions passed (namely, the next operation will be the reaction execution).
Link copied to clipboard
open fun toString(): String