LsaMolecule

This class realizes an LsaMolecule, where arguments are of type Expression.

Constructors

Link copied to clipboard
constructor()
Empty molecule, no arguments.
constructor(@Nonnull listArgs: List<IExpression>)
Builds a new LsaMolecule by interpreting a list of IExpressions.
constructor(m: LsaMolecule)
Very fast constructor, produces a copy of an LsaMolecule.
constructor(argsString: String)
Builds an LsaMolecule by parsing the passed String.
constructor(argsString: String, description: String)
Builds an LsaMolecule by parsing the passed String.

Properties

Link copied to clipboard
Declares a dependency towards any modified molecule in the reachable scope.
Link copied to clipboard
Declares a dependency towards any other reaction in the reachable scope.
Link copied to clipboard
Declares a dependency on movement of nodes in the reachable scope.
Link copied to clipboard
Synthetic property representing the distance.
Link copied to clipboard
Synthetic property representing an LSA ID.
Link copied to clipboard
Synthetic property representing the current neighborhood.
Link copied to clipboard
Synthetic property representing the local node id.
Link copied to clipboard
Synthetic property representing the orientation.
Link copied to clipboard
Synthetic property representing a random value.
Link copied to clipboard
Synthetic property representing the distance.
Link copied to clipboard
Synthetic property representing the current selected neighbor ("+" conditions on the left).
Link copied to clipboard
Synthetic property representing the current simulation time.

Functions

Link copied to clipboard
open fun allocateVar(matches: Map<HashString, ITreeNode<out Any>>): List<IExpression>
Link copied to clipboard
open fun argsNumber(): Int
Link copied to clipboard
open fun compareTo(o: ILsaMolecule): Int
Link copied to clipboard
Determines whether this dependency depends on the provided dependency.
Link copied to clipboard
open fun equals(o: Any): Boolean
Link copied to clipboard
open fun forEach(action: Consumer<in IExpression>)
Link copied to clipboard
Link copied to clipboard
open fun getArg(i: Int): IExpression
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun hashCode(): Int
Link copied to clipboard
Link copied to clipboard
open fun isIstance(): Boolean
Link copied to clipboard
Link copied to clipboard
open fun makesDependent(dependency: Dependency): Boolean
Determines whether the provided dependency depends on this dependency.
Link copied to clipboard
open fun matches(mol: ILsaMolecule): Boolean
open fun matches(mol: List<out IExpression>, duplicateVariables: Boolean): Boolean
Link copied to clipboard
Link copied to clipboard
open fun size(): Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun toString(): String