Lsa Neighborhood Condition
Constructors
Link copied to clipboard
constructor(node: ILsaNode, molecule: ILsaMolecule, environment: Environment<List<ILsaMolecule>, out Any>)
Functions
Link copied to clipboard
abstract fun cloneCondition(node: Node<List<ILsaMolecule>>, reaction: Reaction<List<ILsaMolecule>>): ILsaCondition
abstract fun cloneCondition(node: Node<List<ILsaMolecule>>, reaction: Reaction<List<ILsaMolecule>>): LsaAbstractCondition
This method allows to clone this action on a new node.
open fun cloneCondition(node: Node<List<ILsaMolecule>>, r: Reaction<List<ILsaMolecule>>): LsaNeighborhoodCondition
How to override: create a new action of your concrete subtype.
Link copied to clipboard
abstract fun filter(matches: List<Map<HashString, ITreeNode<out Any>>>, validNodes: List<ILsaNode>, retrieved: List<Map<ILsaNode, List<ILsaMolecule>>>): Boolean
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
Link copied to clipboard
How to override: if you intend your condition to be potentially changed by any change in the context, return null.
Link copied to clipboard
This method is a support for the propensity calculation inside the Reactions.
Link copied to clipboard