entryGuard and exitGuard. #113
Replies: 1 comment
-
Hi, During a transition processing:
.. before a transition is finalized. If at least one guard calls Guards may also initiate other transitions using the usual methods e.g. There are several methods on Hope this helps! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Good morning.
I am trying to figure out hoe entryGuard() and exitGuard() work in the HFSM2 framework.
In other frameworks, typically, the guard methods have a return type of bool. If the guard method returns true then the guard condition is satisfied and the transition will occur. It appears that in HFSM2 the signature for entryGuard is
void entryGuard(GuardControl&)
I only saw one example that uses the entryGuard ( debug_logger_interface) - and in this example the guard is not used.
Could some guidance/an example be given on use of entryGuard() and exitGuard() methods.
(it seems ??) that this same functionality could be accomplished by setting variables in the Context but this seems hackish
Thanks
Victor
Beta Was this translation helpful? Give feedback.
All reactions