<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Greetings:<br>
I have a couple questions regarding modal models, and one general
modeling question.<br>
<br>
1a. Should I be able to modify extended state parameters from within
transition refinements using SetVariable?<br>
<br>
In the attached simple (but otherwise uninteresting) example, I can
successfully SetVariable from within the state refinement and via
the transition setAction, but apparently not from within the
transition refinement.<br>
<br>
1b. When I run the attached simple example the first time after
loading it, I get the following error. It works as expected on
subsequent runs. What does this error mean?<br>
<blockquote>ptolemy.kernel.util.IllegalActionException: Failed to
compute schedule:<br>
in .vergiltest.state.SDF Director<br>
Because:<br>
Invalid weight argument, the number of elements for this weight is
zero.<br>
The weight is of class ptolemy.data.expr.Variable and its
description follows:<br>
ptolemy.data.expr.Variable {.vergiltest.relation.Parameter2} value
undefined<br>
A Dump of the offending graph follows.<br>
<br>
**I can send the rest if desired**<br>
</blockquote>
2. Is there any mechanism to reference the current state by name
from within a state refinement? I wish to do this for logging
purposes.<br>
<br>
3. Is there any mechanism to for a model to reference the current
top-level director's iteration count? (this is for any model - not
just modal models, also for logging purposes)<br>
<br>
Appreciate the help,<br>
<br>
Frank<br>
<br>
PS: Congrats and thanks for the Ptolemy book! I love it!<br>
<pre class="moz-signature" cols="72">
</pre>
</body>
</html>