<!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>
-------- 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"><jhudak@sei.cmu.edu></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"><phf@sei.cmu.edu></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 -> I_C.brake_status;
C2: data port I_C.ok_to_run -> C_D_S.ok_to_run;
C3: data port C_D_S.desired_speed -> C_T_S.desired_speed;
C4: data port C_D_S.current_instantaneous_velocity ->
C_D_S.previous_instantaneous_velocity;
C5: data port C_T_S.throttle_setting -> throttle_setting;
C6: data port engine_state -> I_C.engine_state;
C7: data port resume -> I_C.resume;
C8: data port decrease_speed -> I_C.decrease_speed;
C9: data port increase_speed -> I_C.increase_speed;
-- C10: data port decrease_speed -> I_C.decrease_speed;
C11: data port set_speed -> I_C.set_speed;
flows
brake_flow_1: flow path brake_status ->
C1->I_C.FS1->C2->C_D_S.FS1-> C3->C_T_S.FS1->c5->throttle_actuator;
end cruise_control.single_thread;
</pre>
</body>
</html>