| Class TConstraint (unit LOPanel) |
TObject
constraints can have up to three input variables the method for solving the constraint is represented as an ordered linear combination of the inputs and the constant with the constant expressed last
| Constructors |
constructor Create;TChildMetrics.
| Functions |
function Evaluate : integer;TConstraint.
function IsResolved : Boolean;
function NumActualInputs : integer;| Properties |
| Events |
| Variables |
Inputs : array [0..2] of PVariable;
Left : Boolean;
Match : PVariable;
MaxSize : integer;
MinSize : integer;
OrderedCombination : array [0..3] of single;
Output : PVariable;| Constructors |
constructor Create;coeficients
TChildMetrics.ReadFromStream} { TConstraint class implementation } {--------------------------------------- TConstraint.Create } { initialize fields
| Functions |
function Evaluate : integer;if its inputs have been resolved
TConstraint.IsResolved} {--------------------------------------- TConstraint.Evaluate } { Evaluate the constraint by calculating linear combination of inputs and constant
function IsResolved : Boolean;TConstraint.Create } {--------------------------------------- TConstraint.IsResolved } { True if every input variable in it is resolved
function NumActualInputs : integer;TConstraint.Evaluate } {--------------------------------------- TConstraint.NumActualInputs } { Only several first inputs can be not nil
| Properties |
| Events |
| Variables |
Inputs : array [0..2] of PVariable;
Left : Boolean;Match variable: for left - right, for top - bottom
Match : PVariable;Variable to be resolved in a constraint
MaxSize : integer;Minimal size
MinSize : integer;Is this variable left (top) or right (bottom
OrderedCombination : array [0..3] of single;Minimal size
Output : PVariable;three inputs in the equation