|Re: How to add time related information in state machine? [message #1736867 is a reply to message #1736864]
||Mon, 04 July 2016 05:23
| Ed Willink
Registered: July 2009
If you just want to express a constraint using time you can use a
comment, or some spurious OCL that has no more value than a comment.
If you want execution to observe a time constraint, you need a code
generation approach that supports time. Perhaps the combination of MARTE
and Papyrus-RT may help.
On 04/07/2016 07:17, Syed Samsul Arefin wrote:
> In a state machine, as we know, a transition occurs when a trigger fire
> and a certain guard is true. Now, I want to add a little bit more
> information (constraint) here which is, if the constraint is true for a
> certain amount of time (say 10 sec) then the transition will occur. I
> mean, It does not only require the constraint to be to occur the
> transition true but also it requires the constraint to be true for at
> least 10 second.
> So, is that feasible? If so, how can I do it using papyrus and ocl? Do I
> have to use MARTE? Any suggestion? Thank you.
This email has been checked for viruses by Avast antivirus software.
Powered by FUDForum
. Page generated in 0.01281 seconds