Skip to content

clock rate customization for each timed automaton in UPPAAL #285

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

You must be logged in to vote

There is no specific construct to cover such use-case, so it all has to be modeled.

The clock rates can be specified per location basis, so each location needs a derivative expression if the rate is not 1.

Alternatively, if the clocks are shared, then one can create an array of those clocks and array of rates, and then use forall expression on some extra automaton.

For example:

const int PN = 5; ///< number of processes
typedef int[1,PN] id_t; ///< process identifier
clock x[id_t]; ///< shared clocks, one per prcess
const int rate[id_t] = { 1,2,3,4,5 }; ///< clock rates, one per process, can be non-const

Template declaration:

template Template(clock& x) ///< clock is passed by reference

S…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
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