A Variable inside the layout Solver. It represents an indeterminate in the Expression that is used to create the Constraint. If any entity is interested in watching updates to the value of this indeterminate, it can assign a watcher as the owner.

Constructors

Variable(double value)

Creates a new Variable with the given constant value.

Properties

name String

An optional name given to the variable. This is useful in debugging Solver state.

read / write
owner Param

Variables represent state inside the solver. This state is usually of interest to some entity outside the solver. Such entities can (optionally) associate themselves with these variables. This means that when solver is flushed, it is easy to obtain a reference to the entity the variable is associated with.

read-only
value double

The current value of the variable.

read / write
hashCode int

Get a hash code for this object.

read-only, inherited
runtimeType Type

A representation of the runtime type of the object.

read-only, inherited

Operators

operator ==(other) bool

The equality operator.

inherited

Methods

applyUpdate(double updated) bool

Used by the Solver to apply updates to this variable. Only updated variables show up in Solver flush results.

noSuchMethod(Invocation invocation) → dynamic

Invoked when a non-existent method or property is accessed.

inherited
toString() String

Returns a string representation of this object.

inherited