Problem with field visibility in FSM transition setActions

Problem with field visibility in FSM transition setActions

Post by ryan.p.tim » Thu, 23 Aug 2007 08:22:43


his is a multi-part message in MIME format.


----------------------------------------------------------------------------
Posted to the ptolemy-hackers mailing list. Please send administrative
mail for this list to: XXXX@XXXXX.COM
Hello,



I understand that a transition setAction in a FSM can access only
parameters of the FSM or parameters of the destination state via
refinementName.paramName. I am trying to do this in a circular
transition (source and destination state the same) and am getting "An
error occurred during type inference Because: The ID Forward is
undefined" where Forward is the name of the source/destination
state/refinement. A transition from another state to Forward has no
problem accessing the parameters of Forward.



What I'm trying to do is to process some data in the Forward state and
send out some number of messages (exact number is determined inside the
Forward refinement), then in the next state wait for that same number of
replies from another part of the system. It would be simplest if the
state refinements could access a parameter of the whole FSM but this
appears to not be allowed. Is there a simple way for the Forward state
to pass a count to its successor state?



Any help with either issue will be much appreciated.

Ryan Timmons



Ryan Timmons

Software Engineer

Lockheed Martin Space Systems Company

Advanced Technology Center, Building 153

1111 Lockheed Martin Way, Sunnyvale CA

Work: 408-742-1189 Cell: 248-895-1935

XXXX@XXXXX.COM




<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="Street"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="State"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="City"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="address"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="PlaceType"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="PlaceName"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="place"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:navy;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:Arial;
color:windowtext;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
{page:Section1;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=navy>

<div class=Section1>

<p class=MsoNormal><font size=2 face=Arial><span style='font-si