Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Related Pages

ConstraintViolationStruct Struct Reference
[Constraintnet - maintainance of constraint nets]

#include <constraintnet.h>

Collaboration diagram for ConstraintViolationStruct:

Collaboration graph
[legend]

Detailed Description

Holds information about a constraint violated by a solution.

Definition at line 145 of file constraintnet.h.

Data Fields

Constraint constraint
LevelValue lv1
LevelValue lv2
int nodeBindingIndex1
int nodeBindingIndex2
Number penalty


Field Documentation

Constraint ConstraintViolationStruct::constraint
 

violated constraint Definition at line 146 of file constraintnet.h.

Referenced by cnCompareViolation(), comCompareAllLvPairs(), comCompareWithContext(), cvAnalyse(), cvClone(), cvCompare(), cvCompareNatural(), cvContains(), cvNew(), and cvPrint().

LevelValue ConstraintViolationStruct::lv1
 

first node binding Definition at line 155 of file constraintnet.h.

Referenced by comCompareAllLvPairs(), comCompareWithContext(), cvAnalyse(), cvClone(), cvCompare(), cvDelete(), and cvNew().

LevelValue ConstraintViolationStruct::lv2
 

second node binding, maybe empty Definition at line 159 of file constraintnet.h.

Referenced by comCompareAllLvPairs(), comCompareWithContext(), cvAnalyse(), cvClone(), cvCompare(), cvDelete(), and cvNew().

int ConstraintViolationStruct::nodeBindingIndex1
 

holds the position of the LV causing the conflict, as calculated by lvIndex(). Definition at line 152 of file constraintnet.h.

Referenced by cnCompareViolation(), cvCompareNatural(), cvContains(), cvNew(), and cvPrint().

int ConstraintViolationStruct::nodeBindingIndex2
 

holds the position of the LV causing the conflict, as calculated by lvIndex(). Definition at line 156 of file constraintnet.h.

Referenced by cnCompareViolation(), cvCompareNatural(), cvContains(), cvNew(), and cvPrint().

Number ConstraintViolationStruct::penalty
 

holds the penalty of this particular instance of constraint (recall that a constraint declaration specifies an entire set of constraints, possibly with variable penalties). Definition at line 147 of file constraintnet.h.

Referenced by cnCompareViolation(), comCompareAllLvPairs(), comCompareWithContext(), cvClone(), cvCompare(), cvNew(), and cvPrint().


The documentation for this struct was generated from the following file:
CDG 0.95 (20 Oct 2004)