Hi all,
I have an active state chart where some states have a tm() transition.
I have another process that can change some data in my class, and when that happens, I wish the tm() to be interrupted and the current state restarted right away.
I saw the cancelTimeout(arg) and cancelTimeouts() methods in my class but I'm not sure how to used them and not sure if they do what I just described.
What I did up to now is that when the other process changes my data, I call a trigger method to restart the state right away but it does not appear to be working.
What would you suggest to do?
Also, is there any doc/methods that would let me know in which current state my class is?
Thanks.
Note: I'm using Rhapsody 7.5.1 for C++ developers.
Topic
-
Re: Cancel and restart tm()
2013-02-22T22:54:46ZThis is the accepted answer. This is the accepted answer.
Actually I thought calling a transition on the same state did not work, but it appears it does work.
I was simply not in the right state when I was doing it!
_______________________________________
Using Rhapsody 7.5.1 for C++ developers -
Re: Cancel and restart tm()
2013-02-25T11:00:30ZThis is the accepted answer. This is the accepted answer.
- shanz9903
- 2013-02-25T09:53:22Z
As for what state your class is in, I only know about the macro IN_STATE. You'd have to use a switch or if statement with it I suppose. -
Re: Cancel and restart tm()
2013-03-21T18:30:49ZThis is the accepted answer. This is the accepted answer.
- shanz9903
- 2013-02-25T11:00:30Z
I meant IS_IN
_______________________________________
Using Rhapsody 7.5.1 for C++ developers