|
Symmetri
|
Go to the source code of this file.
Classes | |
| struct | symmetri::identity< T > |
| class | symmetri::Callback |
| Callback is a wrapper around any type that you to tie to a transition. Typically this is an invokable object, such as a function, that executes some side-effects, but it can by anything if you implement a fire function for it. The output can be used to communicate success or failure to the petri-net executor. You can create custom behavior by defining a tailored "Token fire(const A&)" for your class A. More... | |
Functions | |
| template<typename T> | |
| bool | symmetri::isSynchronous (const T &) |
| Checks if the callback is synchronous. Synchronous callbacks are immediately executed inside the Petri net executor. Asynchronous callbacks are deferred to the TaskSystem. | |
| template<typename T> | |
| void | symmetri::cancel (const T &) |
| The default cancel implementation is naive. It only returns a user-exit state and does nothing to the actual Callback itself, and it will still complete. Because the transition is by default not cancelled, it will produce a reducer which potentially can still be processed. | |
| template<typename T> | |
| void | symmetri::pause (const T &) |
| Implements a pause action for a Callback. By default it does nothing and not pause the Callback. | |
| template<typename T> | |
| void | symmetri::resume (const T &) |
| Templates a resume action for a Callback. By default it does nothing and not resume the Callback. | |
| template<typename T> | |
| Token | symmetri::fire (const T &callback) |
| Generates a Token based on what kind of information the Callback returns. | |
| template<typename T> | |
| Eventlog | symmetri::getLog (const T &) |
| Get the Log object. By default it returns an empty vector. | |
| void symmetri::cancel | ( | const T & | ) |
The default cancel implementation is naive. It only returns a user-exit state and does nothing to the actual Callback itself, and it will still complete. Because the transition is by default not cancelled, it will produce a reducer which potentially can still be processed.
| T | the type of the callback. |
| Token symmetri::fire | ( | const T & | callback | ) |
Generates a Token based on what kind of information the Callback returns.
| T | the type of the callback. |
| callback | The function to be executed. |
| Eventlog symmetri::getLog | ( | const T & | ) |
Get the Log object. By default it returns an empty vector.
| T | the type of the callback. |
| bool symmetri::isSynchronous | ( | const T & | ) |
Checks if the callback is synchronous. Synchronous callbacks are immediately executed inside the Petri net executor. Asynchronous callbacks are deferred to the TaskSystem.
| T | the type of the callback. |
| void symmetri::pause | ( | const T & | ) |
Implements a pause action for a Callback. By default it does nothing and not pause the Callback.
| T | the type of the callback. |
| void symmetri::resume | ( | const T & | ) |
Templates a resume action for a Callback. By default it does nothing and not resume the Callback.
| T | the type of the callback. |