Skip to content

calculate conditional cumulative duration in UPPAAL #282

Answered by mikucionisaau
Szpilman2 asked this question in Q&A
Discussion options

You must be logged in to vote

As for the first question, your model already uses sw stop-watch, so the total sum is just supremum value:

sup: sw

If you want to differentiate delays by some constant, then you will have to split Tail location into several and model the stop-watch accordingly.

For the second question, the naive approach currently is the only way. UPPAAL used to have state space reuse option, which could help a bit with multiple queries, but this functionality needs to be recovered.

Alternatively, we need to implement a different bounds query which would accept multiple predicates and collect separate data for each.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Szpilman2
Comment options

Answer selected by Szpilman2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants