Gem-graph 0.1.0
A modelling tool based on rewriting of geometric graphs.
Loading...
Searching...
No Matches
Functions
identity.c File Reference

Gem-graph-client algebra rules identity. More...

#include "../../../../include/fsm.h"
#include "../../../../include/widget.h"
#include "../../../../include/signal.h"
#include <stdio.h>
#include <stdlib.h>

Functions

void * widget_get_selected_rule_identity_btt ()
 Builds the rule identity items list.
 

Detailed Description

Gem-graph-client algebra rules identity.

This file is part of Gem-graph. It organizes functions needed to describe a rule identity.

Function Documentation

◆ widget_get_selected_rule_identity_btt()

void * widget_get_selected_rule_identity_btt ( )

Builds the rule identity items list.

TODO // today, an arbitrary mock-up without any link to the XML model

This list contains all the items required to identify the rule. No item should be repeated. No item may contradict another. Completeness is required. Non-mandatory elements can be added (comments, etc.).

The identity of each rule produced here is an arbitrary text used by each user to recognise each rule by name and distinguish it from others (it is desirable for the same rule identity to be shared by as many users as possible).

For the automaton, the identity of each rule is given exclusively by its set of conditions. Two rules cannot share the same set of conditions. If several rules apply to the same set of conditions in the same local space, then they must each have an additional condition determining their probability of execution in the event of a conflict. If two rules share the same 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.

Since
2024-08
See also
src/widget/one_rule/algebra/utilities/widget_set_item_text()
src/fsm/dispatch/fsm_journal_event() < TODO (or not ?)
src/widget/one_rule/algebra/dispatch/gtk_box_append() < TODO check items
Returns
rule identity