Class TConstraint (unit LOPanel)

Inherits from

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;

coeficients

TChildMetrics.



Functions

function Evaluate : integer;

if its inputs have been resolved

TConstraint.


function IsResolved : Boolean;

TConstraint.

function NumActualInputs : integer;

TConstraint.

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


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