From b3f2d1eb5b8e3136a2bb8c822c3ab1b5013cd803 Mon Sep 17 00:00:00 2001 From: msmit Date: Thu, 17 Jun 2010 11:47:01 +0000 Subject: Thu Jun 17 11:43:57 UTC 2010 Marcel Smit * connectors/dds4ccm/tutorials/Shapes/Tutorial/idl.html: Extended and corrected some minor errors. --- CIAO/ChangeLog | 5 ++ .../dds4ccm/tutorials/Shapes/Tutorial/idl.html | 54 +++++++++++++++++++++- 2 files changed, 58 insertions(+), 1 deletion(-) diff --git a/CIAO/ChangeLog b/CIAO/ChangeLog index d0c58270e90..722e2e566ca 100644 --- a/CIAO/ChangeLog +++ b/CIAO/ChangeLog @@ -1,3 +1,8 @@ +Thu Jun 17 11:43:57 UTC 2010 Marcel Smit + + * connectors/dds4ccm/tutorials/Shapes/Tutorial/idl.html: + Extended and corrected some minor errors. + Thu Jun 17 11:27:31 UTC 2010 Marcel Smit * connectors/dds4ccm/tutorials/Shapes/Shapes_asm/ports/Shapes_defn.idl: diff --git a/CIAO/connectors/dds4ccm/tutorials/Shapes/Tutorial/idl.html b/CIAO/connectors/dds4ccm/tutorials/Shapes/Tutorial/idl.html index fa4496ee7bf..1d426ce47c2 100644 --- a/CIAO/connectors/dds4ccm/tutorials/Shapes/Tutorial/idl.html +++ b/CIAO/connectors/dds4ccm/tutorials/Shapes/Tutorial/idl.html @@ -85,8 +85,60 @@

The component IDL file itself is located in - Shapes_asm/Shapes_Control_comp/ports/Shapes_Control_comp.idl
+ Shapes_asm/Shapes_Control_comp/src/Shapes_Control_comp.idl

and looks like this:

+

+ module Shapes
+ {
+   component Control_comp
+   {
+     uses Shapes::Control_obj control;

+     attribute unsigned long rate;
+     attribute unsigned short max_x;
+     attribute unsigned short max_y;
+     attribute unsigned short max_size;
+     attribute boolean resize_shape;
+   };
};
+
+

+

+ The controller uses the Control_obj interface. +

+

+ The following attributes are used: +

    +
  • rate  : Controls the rate in which the controller component + sends update to the sender. +
  • +
  • Since the shapes moves about in a rectangle shaped window, one should + set the boundaries of this rectangle: +
      +
    • max_x  : Sets the width of the rectangle shaped window.
    • +
    • max_y  : Sets the height of the rectangle shaped window.
    • +
    +
  • +
  • max_size  : Set the maximum size of the registered shape. +
  • +
  • resize_shape  : Indicates wether the shape is resizeable. +
  • +
+ The attributes are set by the deployment plan and cannot be changed throughout + the lifecycle of the controller component. +

Sender IDL file

+ The component IDL file itself is located in +
+ Shapes_asm/Shapes_Sender_comp/src/Shapes_Sender_comp.idl
+ and looks like this: +

+ module Shapes
+ {
+   component Sender_comp
+   {
+     port ShapesConnector::DDS_Write info_write;
+     provides Shapes::Control_obj control;
+   };
}; +
+

\ No newline at end of file -- cgit v1.2.1