LsaMolecule

class LsaMolecule : SimpleMolecule, ILsaMolecule

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

Constructors

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

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
open fun dependsOn(m: Dependency): Boolean
Link copied to clipboard
open fun equals(o: Any): Boolean
Link copied to clipboard
open fun forEach(action: Consumer<out Any>)
Link copied to clipboard
open fun generalize(): ILsaMolecule
Link copied to clipboard
open fun getArg(i: Int): IExpression
Link copied to clipboard
fun getName(): String
Link copied to clipboard
open fun hasDuplicateVariables(): Boolean
Link copied to clipboard
open fun hashCode(): Int
Link copied to clipboard
open fun isIdenticalTo(mol: ILsaMolecule): Boolean
Link copied to clipboard
open fun isIstance(): Boolean
Link copied to clipboard
open fun iterator(): Iterator<IExpression>
Link copied to clipboard
open fun makesDependent(dependency: Dependency): Boolean
Link copied to clipboard
open fun matches(mol: ILsaMolecule): Boolean
open fun matches(mol: List<out IExpression>, duplicateVariables: Boolean): Boolean
Link copied to clipboard
open fun moreGenericOf(mol: ILsaMolecule): Boolean
Link copied to clipboard
open fun size(): Int
Link copied to clipboard
open fun spliterator(): Spliterator<IExpression>
Link copied to clipboard
open fun toHashString(): HashString
Link copied to clipboard
open fun toString(): String

Properties

Link copied to clipboard
val SYN_D: HashString
Synthetic property representing the distance.
Link copied to clipboard
val SYN_MOL_ID: HashString
Synthetic property representing an LSA ID.
Link copied to clipboard
val SYN_NEIGH: HashString
Synthetic property representing the current neighborhood.
Link copied to clipboard
val SYN_NODE_ID: HashString
Synthetic property representing the local node id.
Link copied to clipboard
val SYN_O: HashString
Synthetic property representing the orientation.
Link copied to clipboard
val SYN_RAND: HashString
Synthetic property representing a random value.
Link copied to clipboard
val SYN_ROUTE: HashString
Synthetic property representing the distance.
Link copied to clipboard
val SYN_SELECTED: HashString
Synthetic property representing the current selected neighbor ("+" conditions on the left).
Link copied to clipboard
val SYN_T: HashString
Synthetic property representing the current simulation time.