\begin{DoxyCompactList}\small\item\em The \doxylink{fsm_2dispatch_8c_a435d1a5171a7d69662d701234722fee2}{fsm\+\_\+journal\+\_\+publication\+\_\+request()} is called only once, by \doxylink{main_8c_a3c04138a5bfe5d72780bb7e82a18e627}{main()}, just after closing the app and before ending the program. \end{DoxyCompactList}\item
\begin{DoxyCompactList}\small\item\em fsm init is the first function called by \doxylink{main_8c}{main.\+c} It initiates the journal and the four lists\+: \textquotesingle{}measures\textquotesingle{}, \textquotesingle{}results\textquotesingle{}, \textquotesingle{}displayables results\textquotesingle{} and \textquotesingle{}preferences\textquotesingle{}. \end{DoxyCompactList}\item
\begin{DoxyCompactList}\small\item\em setter for the static boolean\+: \textquotesingle{}preferences\+\_\+have\+\_\+been\+\_\+modified\textquotesingle{}\end{DoxyCompactList}\item
\begin{DoxyCompactList}\small\item\em getter for the static boolean\+: \textquotesingle{}preferences\+\_\+have\+\_\+been\+\_\+modified\textquotesingle{}\end{DoxyCompactList}\item
int \mbox{\hyperlink{fsm_2dispatch_8c_a9123915ffd10fe1ae18254898b1c0ebf}{fsm\+\_\+get\+\_\+exec\+\_\+edit}} ()
\begin{DoxyCompactList}\small\item\em some client pages (in particular "{}state"{} and "{}rules"{}) will be displayed and behave differently depending on whether the fsm is in edit or run state. \end{DoxyCompactList}\item
\begin{DoxyCompactList}\small\item\em The value of the static int choice\+\_\+\+STATE\+\_\+\+RULES\+\_\+\+DATA can be one of the enum include/fsm enum fsm\+\_\+enum\+\_\+state\+\_\+rules\+\_\+data. \end{DoxyCompactList}\item
\begin{DoxyCompactList}\small\item\em setter for the static value\+: \textquotesingle{}choice\+\_\+\+STATE\+\_\+\+RULES\+\_\+\+DATA\textquotesingle{} (in this file) \end{DoxyCompactList}\item
\begin{DoxyCompactList}\small\item\em setter for the static value\+: \textquotesingle{}choice\+\_\+\+STATE\+\_\+\+RULES\+\_\+\+DATA\textquotesingle{} (in this file) \end{DoxyCompactList}\end{DoxyCompactItemize}
\item Select a single view of the model from all those possible. The different views show either the space, or the rule tree, or a single rule of interest, or measurements or results. NB an overview is possible, but it does not provide details.
\item Apply a selected measurement to the currently running model
\item Select some results for study or/and presentation.
\item Choose the user\textquotesingle{}s preferred values for a set of parameters used to modify the appearance or behaviour of gem-\/graph.
some client pages (in particular "{}state"{} and "{}rules"{}) will be displayed and behave differently depending on whether the fsm is in edit or run state.
TODO A function must obtain this boolean when it stores the current state of the fsm (including \doxylink{structpreferences}{preferences}) before closing the current session.
The value of the static int choice\+\_\+\+STATE\+\_\+\+RULES\+\_\+\+DATA can be one of the enum include/fsm enum fsm\+\_\+enum\+\_\+state\+\_\+rules\+\_\+data.
fsm init is the first function called by \doxylink{main_8c}{main.\+c} It initiates the journal and the four lists\+: \textquotesingle{}measures\textquotesingle{}, \textquotesingle{}results\textquotesingle{}, \textquotesingle{}displayables results\textquotesingle{} and \textquotesingle{}preferences\textquotesingle{}.
It is mandatory for any event to call this function to be published in the journal.
Before publication, a filter can be applied here (and only here) to select only some events of interest (during debugging, for example).
If there are too many events, a filter can be applied here to select a few interesting events for publication in the log.
This filter can operate on any the following five parameters\+: severity, source, \texorpdfstring{$\ast$}{*}file\+\_\+source, \texorpdfstring{$\ast$}{*}function\+\_\+source, \texorpdfstring{$\ast$}{*}string\+\_\+value. \begin{DoxySeeAlso}{See also}
below (params)
\end{DoxySeeAlso}
Simple filters (on a single parameter) can be combined using the logical operators \textquotesingle{}and\textquotesingle{} and \textquotesingle{}or\textquotesingle{} and parentheses.
Use\+: \$ grep -\/r "{}fsm\+\_\+journal\+\_\+event"{} to confirm the callergraph calls.
enum fsm\+\_\+enum\+\_\+journal\+\_\+severity in include/fsm.\+h \textquotesingle{}severity\textquotesingle{} is a pre-\/defined value that must be associated to each event. It ranges from zero to six \+: CRITICAL ERROR WARNING INFO MESSAGE DEBUG SPEW 0 1 2 3 4 5 6
enum fsm\+\_\+enum\+\_\+journal\+\_\+source in include/fsm.\+h \textquotesingle{}source\textquotesingle{} is a pre-\/defined value that can be associated to each event. It is not mandatory. It can be set to \textquotesingle{}NULL\textquotesingle{}.
\end{DoxySeeAlso}
\begin{DoxyParams}{Parameters}
{\em\texorpdfstring{$\ast$}{*}file\+\_\+source}&\texorpdfstring{$<$}{<}\texorpdfstring{$>$}{>} the name of the file that emits the event. \\
\hline
{\em\texorpdfstring{$\ast$}{*}function\+\_\+source}&\texorpdfstring{$<$}{<}\texorpdfstring{$>$}{>} the function that emits the event. \\
\hline
{\em\texorpdfstring{$\ast$}{*}string\+\_\+value}&\texorpdfstring{$<$}{<}\texorpdfstring{$>$}{>} any value that can qualify the event and provides useful information when reading the log. \\
The \doxylink{fsm_2dispatch_8c_a435d1a5171a7d69662d701234722fee2}{fsm\+\_\+journal\+\_\+publication\+\_\+request()} is called only once, by \doxylink{main_8c_a3c04138a5bfe5d72780bb7e82a18e627}{main()}, just after closing the app and before ending the program.
This is to guarantee the chronological order of the events in the journal.
The log is modified for each event but events can be send asynchronously. This is why the journal is only published once, before the end of "{}main()"{}, Its chronological order is therefore guaranteed.
src/journal.\+c/fsm\+\_\+journal\+\_\+publish() (called here) is the last function of the program to be executed.
The \doxylink{structfsm__struct__journal}{fsm\+\_\+struct\+\_\+journal} (gg\+\_\+logs) is a static instance in this file. Therefore, all the functions that read or write it are in this file. This is to avoid uncontrolled operations on it.
setter for the static value\+: \textquotesingle{}choice\+\_\+\+STATE\+\_\+\+RULES\+\_\+\+DATA\textquotesingle{} (in this file)
see include/fsm enum fsm\+\_\+enum\+\_\+state\+\_\+rules\+\_\+data \{ SYNTH, STATE, RULES, DATA \} Today (2024-\/10) the initial page is set to \textquotesingle{}SYNTH\textquotesingle{}. \begin{DoxySeeAlso}{See also}
line 292 choice\+\_\+\+STATE\+\_\+\+RULES\+\_\+\+DATA = SYNTH; NB This choice can be temporarily modified for debugging purpose\+:
end of the function\+: \doxylink{fsm_2dispatch_8c}{fsm/dispatch.\+c} window\+\_\+design\+\_\+topbar\+\_\+left()