Class Constraint
A constraint, consisting of an equation governed by an expression and a relational operator, and an associated strength.
public class Constraint
- Inheritance
-
Constraint
- Inherited Members
Constructors
Constraint(Expression, RelationalOperator, double)
Initializes a new instance of the Constraint struct.
public Constraint(Expression expression, RelationalOperator @operator, double strength)
Parameters
expressionExpressionThe Expression.
operatorRelationalOperatorThe RelationalOperator.
strengthdoubleThe strength.
Constraint(Expression, WeightedRelation)
Initializes a new instance of the Constraint struct.
public Constraint(Expression expression, WeightedRelation relation)
Parameters
expressionExpressionThe Expression.
relationWeightedRelationThe WeightedRelation.
Properties
Expression
The Expression.
public Expression Expression { get; }
Property Value
Operator
The RelationalOperator.
public RelationalOperator Operator { get; }
Property Value
Strength
The strength.
public double Strength { get; }
Property Value
Methods
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.