A member that can be used to construct an Expression that may be used to create a constraint. This is to facilitate the easy creation of constraints. The use of the operator overloads is completely optional and is only meant as a convenience. The Constraint expressions can be created by manually creating instance of Constraint variables, then terms and combining those to create expression.
- Implemented by
Constructors
Properties
- isConstant → bool
-
Returns if this member is a constant. Constant members can be combined more easily without making the expression non-linear. This makes them easier to use with multiplication and division operators. Constant expression that have zero value may also eliminate other expressions from the solver when used with the multiplication operator.
read-only - value → double
-
The current constant value of this member. After a
Solver
flush, this is value read by entities outside theSolver
.read-only - 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 *(
EquationMember m) → Expression -
Creates a Expression by multiplying this member with the argument. Both members may need to be hoisted to expressions themselves before this can occur.
-
operator +(
EquationMember m) → Expression -
Creates a Expression by adding this member with the argument. Both members may need to be hoisted to expressions themselves before this can occur.
-
operator -(
EquationMember m) → Expression -
Creates a Expression by subtracting the argument from this member. Both members may need to be hoisted to expressions themselves before this can occur.
-
operator /(
EquationMember m) → Expression -
Creates a Expression by dividing this member by the argument. Both members may need to be hoisted to expressions themselves before this can occur.
-
operator <=(
EquationMember m) → Constraint -
Creates a Constraint by using this member as the left hand side expression and the argument as the right hand side Expression of a Constraint with a Relation.lessThanOrEqualTo relationship between the two.
-
operator >=(
EquationMember m) → Constraint -
Creates a Constraint by using this member as the left hand side expression and the argument as the right hand side Expression of a Constraint with a Relation.greaterThanOrEqualTo relationship between the two.
-
operator ==(
other) → bool -
The equality operator.
inherited
Methods
-
asExpression(
) → Expression -
The representation of this member after it is hoisted to be an expression.
-
equals(
EquationMember m) → Constraint -
Creates a Constraint by using this member as the left hand side expression and the argument as the right hand side Expression of a Constraint with a Relation.equalTo relationship between the two.
-
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