gem-graph-client/doc/rtfm/man3/conditions.c.3

75 lines
2.6 KiB
Groff

.TH "src/widget/main_window/one_rule/algebra/conditions.c" 3 "Version 0.1.0" "Gem-graph" \" -*- nroff -*-
.ad l
.nh
.SH NAME
src/widget/main_window/one_rule/algebra/conditions.c \- Algebra of rule conditions\&.
.SH SYNOPSIS
.br
.PP
\fC#include '\&.\&./\&.\&./\&.\&./\&.\&./\&.\&./include/util\&.h'\fP
.br
\fC#include '\&.\&./\&.\&./\&.\&./\&.\&./\&.\&./include/fsm\&.h'\fP
.br
\fC#include '\&.\&./\&.\&./\&.\&./\&.\&./\&.\&./include/widget\&.h'\fP
.br
\fC#include '\&.\&./\&.\&./\&.\&./\&.\&./\&.\&./include/signal\&.h'\fP
.br
\fC#include <stdio\&.h>\fP
.br
\fC#include <stdlib\&.h>\fP
.br
.SS "Functions"
.in +1c
.ti -1c
.RI "void * \fBwidget_get_selected_rule_conditions_list_btt\fP ()"
.br
.in -1c
.SH "Detailed Description"
.PP
Algebra of rule conditions\&.
This file is part of Gem-graph\&. It hosts the functions needed to describe the conditions under which a rule is applied\&.
.SH "Function Documentation"
.PP
.SS "void * widget_get_selected_rule_conditions_list_btt ()"
Builds and presents the conditions list of a rule\&.
.PP
This list sets out all the conditions that the rule must meet in order to be applied\&.
.PP
Today, an arbitrary presentation with no link to the XML model and no verification of compliance with the meta-rules\&. (see below) TODO
.PP
|- - - - - - - - - - - - - - meta-rules - - - - - - - - - - - - - - - >
.PP
No conditions should be repeated\&. No condition may contradict another (== a unique condition per address in rule workspace) Completeness is not required (== there does not need to be one condition per address in the rule workspace)
.PP
(NB The following applies to server workers) Two rules cannot share the same set of conditions\&. If several rules apply to the same set of local conditions - which can happen if several different actions are possible from the same situation - they must each include an additional condition determining their probability of execution in the event of a conflict\&. If two rules share the same local set of conditions, they must both be evaluated\&. If all the conditions of one rule are included in the conditions of another rule, then the other rule must be evaluated first\&.
.PP
< - - - - - - - - - - - - - - meta-rules - - - - - - - - - - - - - - -|
.PP
\fBSince\fP
.RS 4
2024-08
.RE
.PP
\fBSee also\fP
.RS 4
src/widget/one_rule/algebra/utilities/widget_set_item_text()
.PP
src/fsm/dispatch/fsm_add_log() < TODO (for each item ?)
.PP
src/widget/one_rule/algebra/dispatch()
.RE
.PP
\fBReturns\fP
.RS 4
the conditions list
.RE
.PP
.SH "Author"
.PP
Generated automatically by Doxygen for Gem-graph from the source code\&.