Summary: | Add template-sets to the language | ||
---|---|---|---|
Product: | UPPAAL | Reporter: | Gerd Behrmann <behrmann> |
Component: | Engine | Assignee: | Gerd Behrmann <behrmann> |
Status: | RESOLVED FIXED | ||
Severity: | enhancement | CC: | martijnh |
Priority: | P1 | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | All | ||
Architecture: | |||
Bug Depends on: | |||
Bug Blocks: | 196 |
Description
Gerd Behrmann
2004-12-02 11:58:18 CET
Reassigning to Martijn. Reassigning to Gerd. Support for template sets has been committed to CVS. At the moment template sets can be declared over integer types starting with a range starting at 0. This looks rather ugly and I suggest that once scalarsets are introduced, support for declaring template sets over integers is removed. Things that are missing: - Extending the XML format - Extending the GUI - Lots of testing :-) Increasing priority. The engine has been updated, but there is some GUI work left to be done. We should target this for 3.6 alpha 2. The syntax for template sets has changed. Rather than process P[i : int[0,4](int j) { ... } we now use process P(int[0, 4] +i, int j) { ... } The first argument (or more generally, the arguments for parameters prefixed with a + sign) is implicitly given and should not be specified when instantiating the template. E.g. the above template is instantiated as Ps = P(k); for k being an integer variable. Template set parameters must always be listed first. Otherwise the syntax is unchanged. This change has the benefit that we do not need to change the DTD of the XML format and we do not need to make any changes in the GUI to support template sets. This change has alrady been implemented on the trunk. I am resolving this bug as FIXED. Any further problems with template sets should be registered as new bugs. |