Verifying Total Sojourn Time in a Specific State in UPPAAL #271
-
Dear UPPAAL Team, I hope this message finds you well. I have two timed automata named "Software" and "Hardware". I have attached pictures of the models. Whenever the Software TA sends a signal through the "use" channel, the Hardware TA receives the signal and transitions to the "using" state. The Hardware remains in the "using" state (in my case 2 units of time) for a short period before transitioning to the "tail" state. I would like to write a query that verifies whether the total time the Hardware spends in the "tail" state (accumulated over all instances of "use?" in the Software TA) is less than a certain constant. I am unsure how to write this query. My initial approach was to save the clock values, but I understand that this is not possible in UPPAAL. In other words, I need to check if the sum of the sojourn times in the "tail" state is less than a specific constant. I have also attached my model for your reference. Thank you very much for your assistance. Best regards, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 8 replies
-
To extract the maximum time spent in
To compute the cumulative duration, please add a stop watch, e.g. Note that with stop watches the symbolic analysis becomes over-approximate (UPPAAL may start issuing See the publication about stopwatches: https://doi.org/10.1007/3-540-44618-4_12 |
Beta Was this translation helpful? Give feedback.
-
thank you so much. your answers are life saving. now my question is some locations like also is |
Beta Was this translation helpful? Give feedback.
If you define
sw
locally inhardware
then you can refer to it byhardware.sw
just like any variable.