<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
  <title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
<br>
<br>
Peter Feiler wrote:<br>
<blockquote type="cite" cite="mid409FD2DD.3090302@sei.cmu.edu">
  <meta http-equiv="Content-Type" content="text/html;">
  <title></title>
  <br>
  <br>
-------- Original Message --------
  <table cellpadding="0" cellspacing="0" border="0">
    <tbody>
      <tr>
        <th valign="baseline" align="right" nowrap="nowrap">Subject: </th>
        <td>aadl keyword question</td>
      </tr>
      <tr>
        <th valign="baseline" align="right" nowrap="nowrap">Date: </th>
        <td>Wed, 05 May 2004 09:24:05 -0400</td>
      </tr>
      <tr>
        <th valign="baseline" align="right" nowrap="nowrap">From: </th>
        <td>John Hudak <a class="moz-txt-link-rfc2396E"
 href="mailto:jhudak@sei.cmu.edu">&lt;jhudak@sei.cmu.edu&gt;</a></td>
      </tr>
      <tr>
        <th valign="baseline" align="right" nowrap="nowrap">To: </th>
        <td>Peter Feiler <a class="moz-txt-link-rfc2396E"
 href="mailto:phf@sei.cmu.edu">&lt;phf@sei.cmu.edu&gt;</a></td>
      </tr>
    </tbody>
  </table>
  <br>
  <br>
  <pre>Hi Peter:
I am changing the cruise control model to reflect in ports instead of 
devices (as we talked about at the end of the day on Monday).  You said 
I needed to change the keyword to something, but can't remember what.  
Below is the implementation:


system implementation  cruise_control.single_thread
-- define the instance of components particular to this implementation
   subcomponents
       I_C: system in_control;
       C_V: system compute_velocity;
       C_D_S: system compute_desired_speed;
       C_T_S: system compute_throttle_setting;
       TA: device throttle_actuator;    *** I want to change these 
devices to inports, how should I change the line? ***
       ENGINE: device engine_state;
       RESUME: device resume_button;
       SP_UP: device speed_up_button;
       SP_DN: device speed_dn_button;
       SETBUTTON: device set_button;
      
-- make the connections to the componenets
   connections
-- devices to software
          C1:  data port my_brake_status -&gt; I_C.brake_status;
          C2:  data port I_C.ok_to_run -&gt; C_D_S.ok_to_run;
          C3:  data port C_D_S.desired_speed -&gt; C_T_S.desired_speed;
         C4:  data port C_D_S.current_instantaneous_velocity -&gt;  
C_D_S.previous_instantaneous_velocity;
          C5:  data port C_T_S.throttle_setting -&gt; throttle_setting;
          C6:  data port engine_state -&gt; I_C.engine_state;
          C7:  data port resume -&gt; I_C.resume;
          C8:  data port decrease_speed -&gt; I_C.decrease_speed;
          C9:  data port increase_speed -&gt; I_C.increase_speed;
--          C10:  data port decrease_speed -&gt; I_C.decrease_speed;
          C11:  data port set_speed -&gt; I_C.set_speed;
    flows
       brake_flow_1: flow path brake_status -&gt; 
C1-&gt;I_C.FS1-&gt;C2-&gt;C_D_S.FS1-&gt; C3-&gt;C_T_S.FS1-&gt;c5-&gt;throttle_actuator;

end cruise_control.single_thread;
  </pre>
  <pre wrap="">
<hr width="90%" size="4">
_______________________________________________
Sae-aadl-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Sae-aadl-users@lists.sei.cmu.edu">Sae-aadl-users@lists.sei.cmu.edu</a>
<a class="moz-txt-link-freetext" href="https://lists.sei.cmu.edu/mailman/listinfo/sae-aadl-users">https://lists.sei.cmu.edu/mailman/listinfo/sae-aadl-users</a>
  </pre>
</blockquote>
</body>
</html>