gem-graph-client/doc/docbook/de/d0e/conditions_8c.xml

92 lines
4.6 KiB
XML
Raw Normal View History

<?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">
2024-10-20 01:05:12 +02:00
<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>
2024-10-25 22:12:02 +02:00
<programlisting linenumbering="unnumbered">#include &quot;../../../../../include/util.h&quot;<?linebreak?>#include &quot;../../../../../include/fsm.h&quot;<?linebreak?>#include &quot;../../../../../include/widget.h&quot;<?linebreak?>#include &quot;../../../../../include/signal.h&quot;<?linebreak?>#include &lt;stdio.h&gt;<?linebreak?>#include &lt;stdlib.h&gt;<?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.svg"></imagedata>
2024-10-25 22:12:02 +02:00
</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>
2024-10-25 17:32:30 +02:00
<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 - - - - - - - - - - - - - - - &gt;</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>&lt; - - - - - - - - - - - - - - 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_add_log() &lt; 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>
2024-10-25 22:12:02 +02:00
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.svg"></imagedata>
2024-10-25 22:12:02 +02:00
</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.svg"></imagedata>
2024-10-25 22:12:02 +02:00
</imageobject>
</mediaobject>
</informalfigure>
</para>
</section>
</section>
</section>