92 lines
4.6 KiB
XML
92 lines
4.6 KiB
XML
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
|
|
<section xmlns="http://docbook.org/ns/docbook" version="5.0" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="_conditions_8c" xml:lang="en-US">
|
|
<title>src/widget/main_window/one_rule/algebra/conditions.c File Reference</title>
|
|
<indexterm><primary>src/widget/main_window/one_rule/algebra/conditions.c</primary></indexterm>
|
|
<para>
|
|
|
|
<para>Algebra of rule conditions. </para>
|
|
|
|
</para>
|
|
<programlisting linenumbering="unnumbered">#include "../../../../../include/util.h"<?linebreak?>#include "../../../../../include/fsm.h"<?linebreak?>#include "../../../../../include/widget.h"<?linebreak?>#include "../../../../../include/signal.h"<?linebreak?>#include <stdio.h><?linebreak?>#include <stdlib.h><?linebreak?></programlisting>Include dependency graph for conditions.c:<para>
|
|
<informalfigure>
|
|
<mediaobject>
|
|
<imageobject>
|
|
<imagedata width="50%" align="center" valign="middle" scalefit="0" fileref="../../d6/d08/conditions_8c__incl.png"></imagedata>
|
|
</imageobject>
|
|
</mediaobject>
|
|
</informalfigure>
|
|
</para>
|
|
<simplesect>
|
|
<title>Functions </title>
|
|
<itemizedlist>
|
|
<listitem><para>void * <link linkend="_conditions_8c_1a8d42128cf54da36d55112fa5f5634f96">widget_get_selected_rule_conditions_list_btt</link> ()</para>
|
|
</listitem>
|
|
</itemizedlist>
|
|
</simplesect>
|
|
<section>
|
|
<title>Detailed Description</title>
|
|
|
|
<para>Algebra of rule conditions. </para>
|
|
|
|
<para>This file is part of Gem-graph. It hosts the functions needed to describe the conditions under which a rule is applied. </para>
|
|
</section>
|
|
<section>
|
|
<title>Function Documentation</title>
|
|
<anchor xml:id="_conditions_8c_1a8d42128cf54da36d55112fa5f5634f96"/><section>
|
|
<title>widget_get_selected_rule_conditions_list_btt()</title>
|
|
<indexterm><primary>widget_get_selected_rule_conditions_list_btt</primary><secondary>conditions.c</secondary></indexterm>
|
|
<indexterm><primary>conditions.c</primary><secondary>widget_get_selected_rule_conditions_list_btt</secondary></indexterm>
|
|
<para><computeroutput>void * widget_get_selected_rule_conditions_list_btt ( )</computeroutput></para>
|
|
<para>Builds and presents the conditions list of a rule.</para>
|
|
|
|
<para>This list sets out all the conditions that the rule must meet in order to be applied.</para>
|
|
|
|
<para>Today, an arbitrary presentation with no link to the XML model and no verification of compliance with the meta-rules. (see below) TODO</para>
|
|
|
|
<para>|- - - - - - - - - - - - - - meta-rules - - - - - - - - - - - - - - - ></para>
|
|
|
|
<para>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)</para>
|
|
|
|
<para>(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.</para>
|
|
|
|
<para>< - - - - - - - - - - - - - - meta-rules - - - - - - - - - - - - - - -|</para>
|
|
|
|
<para><formalpara><title>Since</title>
|
|
|
|
<para>2024-08</para>
|
|
</formalpara>
|
|
<formalpara><title>See also</title>
|
|
|
|
<para>src/widget/one_rule/algebra/utilities/widget_set_item_text() </para>
|
|
|
|
<para>src/fsm/dispatch/fsm_journal_event() < TODO (for each item ?)</para>
|
|
|
|
<para>src/widget/one_rule/algebra/dispatch()</para>
|
|
</formalpara>
|
|
<formalpara><title>Returns</title>
|
|
|
|
<para>the conditions list </para>
|
|
</formalpara>
|
|
</para>
|
|
Here is the call graph for this function:<para>
|
|
<informalfigure>
|
|
<mediaobject>
|
|
<imageobject>
|
|
<imagedata width="50%" align="center" valign="middle" scalefit="0" fileref="../../de/d0e/conditions_8c_a8d42128cf54da36d55112fa5f5634f96_cgraph.png"></imagedata>
|
|
</imageobject>
|
|
</mediaobject>
|
|
</informalfigure>
|
|
</para>
|
|
Here is the caller graph for this function:<para>
|
|
<informalfigure>
|
|
<mediaobject>
|
|
<imageobject>
|
|
<imagedata width="50%" align="center" valign="middle" scalefit="0" fileref="../../de/d0e/conditions_8c_a8d42128cf54da36d55112fa5f5634f96_icgraph.png"></imagedata>
|
|
</imageobject>
|
|
</mediaobject>
|
|
</informalfigure>
|
|
</para>
|
|
</section>
|
|
</section>
|
|
</section>
|