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 a LsaMolecule by parsing the passed String.
constructor(argsString: String, description: String)
Builds a LsaMolecule by parsing the passed String.

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
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.

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
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
@Nonnull
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
Link copied to clipboard
open fun size(): Int
Link copied to clipboard
Link copied to clipboard
open fun toHashString(): HashString
Link copied to clipboard
open fun toString(): String