Skip to content

Adressing specific instances of templates in UPPAAL-C #158

Answered by thorulf4
AsgerHB asked this question in Q&A
Discussion options

You must be logged in to vote

This is not really possible as template variables are not yet declared in the global declarations.

The simplest work around is probably moving your template state into global declarations. With something like:

hybrid clock v[ball_id];
hybrid clock p[ball_id];

Then Ball instantiations can use their id to get their own data.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by yrke
Comment options

AsgerHB
Oct 23, 2022
Collaborator Author

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