Revision 1171, 0.7 kB
(checked in by sindj, 14 years ago)
|
Temer dokoncena funkce na budovani apriorna. JS
|
Rev | Line | |
---|
[976] | 1 | #include "robustlib.h" |
---|
| 2 | |
---|
| 3 | point :: point(vec coordinates) |
---|
| 4 | { |
---|
| 5 | this->coordinates = coordinates; |
---|
| 6 | this->twinpoint = NULL; |
---|
| 7 | } |
---|
| 8 | |
---|
| 9 | point :: point(vec coordinates, point *twinpoint) |
---|
| 10 | { |
---|
| 11 | this->coordinates = coordinates; |
---|
| 12 | this->twinpoint = twinpoint; |
---|
| 13 | } |
---|
| 14 | |
---|
| 15 | segment :: segment(point *end1, point *end2) |
---|
| 16 | { |
---|
| 17 | this->end1 = end1; |
---|
| 18 | this->end2 = end2; |
---|
| 19 | } |
---|
| 20 | |
---|
[1171] | 21 | leaf :: leaf(vec condition, leaf *parent) |
---|
[976] | 22 | { |
---|
| 23 | this->condition = condition; |
---|
| 24 | this->parent = parent; |
---|
| 25 | } |
---|
| 26 | |
---|
| 27 | leaf :: evolvechildren(vec condition) |
---|
| 28 | { |
---|
| 29 | this->condition = condition; |
---|
| 30 | |
---|
| 31 | |
---|
| 32 | } |
---|
| 33 | |
---|
| 34 | emlig :: emlig(leaf *tree) : eEF() |
---|
| 35 | { |
---|
| 36 | this->tree = tree; |
---|
| 37 | } |
---|
| 38 | |
---|
| 39 | emlig :: emlig(vec [] conditions) : eEF() |
---|
| 40 | { |
---|
| 41 | emlig::buildtree(conditions); |
---|
| 42 | } |
---|
| 43 | |
---|
| 44 | emlig :: buildtree() |
---|
| 45 | {} |
---|