-
In the requirements specification language, I can address variables of specific instances a template like
If I need to access these same variables in a function in my declarations, how could I do this? The same I have a Ball template that has hybrid clocks v and p. This ball template has multiple instances in the system, controlled by a parameter The id type is defined as:
Which is implicitly(?) used in this simple system definition:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
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:
Then Ball instantiations can use their id to get their own data. |
Beta Was this translation helpful? Give feedback.
-
Thank you, that's a good tip. I tried this and everything works.
|
Beta Was this translation helpful? Give feedback.
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:
Then Ball instantiations can use their id to get their own data.