diff options
Diffstat (limited to 'CIAO/connectors/ami4ccm/tutorials/Hello/Tutorial/01_general.html')
-rw-r--r-- | CIAO/connectors/ami4ccm/tutorials/Hello/Tutorial/01_general.html | 143 |
1 files changed, 57 insertions, 86 deletions
diff --git a/CIAO/connectors/ami4ccm/tutorials/Hello/Tutorial/01_general.html b/CIAO/connectors/ami4ccm/tutorials/Hello/Tutorial/01_general.html index 0812b351214..455beadb294 100644 --- a/CIAO/connectors/ami4ccm/tutorials/Hello/Tutorial/01_general.html +++ b/CIAO/connectors/ami4ccm/tutorials/Hello/Tutorial/01_general.html @@ -1,41 +1,31 @@ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> +<!--//$Id$ --> <HTML> <HEAD> <META HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; charset=windows-1252"> <TITLE>AMI4CCM Hello Tutorial - General</TITLE> - <META NAME="GENERATOR" CONTENT="OpenOffice.org 3.2 (Win32)"> - <META NAME="CREATED" CONTENT="0;0"> - <META NAME="CHANGEDBY" CONTENT="Marijke Hengstmengel"> - <META NAME="CHANGED" CONTENT="20100625;13251200"> - <META NAME="CHANGEDBY" CONTENT="Marijke Hengstmengel"> - <STYLE TYPE="text/css"> - <!--//$Id$ --> - <!-- - H2.cjk { font-family: "SimSun" } - --> - </STYLE> </HEAD> -<BODY LANG="nl-NL" DIR="ltr"> +<BODY> <TABLE WIDTH="100%" BORDER=0 CELLPADDING=2 CELLSPACING=2 STYLE="PAGE-BREAK-BEFORE: always"> - <TR> - <TD> - <P><BR></P></TD> - <TD> - <P ALIGN=center><IMG border=0 name=graphics1 align=bottom src="images/images.png" width="4%" height="5%" ></P></TD> - <TD> - <P ALIGN=right><A href="02_idl.html">Next</A></P></TD></TR></TABLE> + <TR> + <TD> </TD> + <TD ALIGN=center><IMG border=0 align=bottom src="images/images.png" width="4%" height="5%" ></TD> + <TD ALIGN=right><A href="02_idl.html">Next</A></TD> + </TR> +</TABLE> <HR> <H1>General</H1> <P>This tutorial explains how to use Asynchronous Method Invocation for CCM (AMI4CCM). The AMI Connector component handles the asynchronous invocation using CORBA AMI.</P> -<P STYLE="MARGIN-BOTTOM: 0cm"><BR></P> + <H2 CLASS="western">System</H2> <P>The system consists of three components: </P> <UL> - <LI><P STYLE="MARGIN-BOTTOM: 0cm">A Sender component </P> - <LI><P STYLE="MARGIN-BOTTOM: 0cm">A Receiver component </P> - <LI><P>An AMI connector </P></LI></UL> + <LI>A Sender component</LI> + <LI>A Receiver component</LI> + <LI>An AMI connector</LI> +</UL> <P>In this tutorial a Sender wants to invoke methods on the Receiver asynchronously and synchronously. Therefor the Sender and the Receiver are connected via an AMI connector for the asynchronously invoked methods and @@ -47,77 +37,58 @@ the asynchronous invocation and callback to the user component. The Receiver <P>There are different methods used in this example in order to show different aspects: </P> <UL> - <LI><P STYLE="MARGIN-BOTTOM: 0cm"><FONT COLOR="#000000"><FONT SIZE=3>method with return - value, in- and out argument:</FONT></FONT></P></LI></UL> -<P STYLE="MARGIN-BOTTOM: 0cm; MARGIN-LEFT: 2cm"><FONT SIZE=2><FONT COLOR="#0000ff">long</FONT><FONT COLOR="#000000"> -</FONT><FONT COLOR="#000000">foo (</FONT><FONT COLOR="#0000ff">in</FONT><FONT COLOR="#000000"> -</FONT><FONT COLOR="#0000ff">string</FONT><FONT COLOR="#000000"> </FONT><FONT COLOR="#000000">in_str, -</FONT><FONT COLOR="#0000ff">out</FONT><FONT COLOR="#000000"> </FONT><FONT COLOR="#0000ff">string</FONT><FONT COLOR="#000000"> -</FONT><FONT COLOR="#000000">answer);</FONT></FONT></P> -<UL> - <LI><P STYLE="MARGIN-BOTTOM: 0cm"><FONT COLOR="#000000"><FONT SIZE=3>void method with out - argument:</FONT></FONT></P></LI></UL> -<P STYLE="MARGIN-BOTTOM: 0cm; MARGIN-LEFT: 2cm"><FONT SIZE=2><FONT COLOR="#0000ff">void</FONT><FONT COLOR="#000000"> -</FONT><FONT COLOR="#000000">hello (</FONT><FONT COLOR="#0000ff">out</FONT><FONT COLOR="#000000"> </FONT><FONT COLOR="#0000ff">long</FONT><FONT COLOR="#000000"> -</FONT><FONT COLOR="#000000">answer);</FONT></FONT></P> -<UL> - <LI><P STYLE="MARGIN-BOTTOM: 0cm"><FONT COLOR="#000000"><FONT SIZE=3>method to set and get - an attribute:</FONT></FONT></P></LI></UL> -<P STYLE="MARGIN-BOTTOM: 0cm; MARGIN-LEFT: 2cm"><FONT COLOR="#000000"> -<FONT SIZE=2>attribute -</FONT></FONT><FONT COLOR="#0000ff"><FONT SIZE=2>short</FONT></FONT><FONT COLOR="#000000"><FONT SIZE=2> -rw_attrib<BR></FONT></FONT> -<FONT COLOR="#000000"><FONT SIZE=2> getraises -(InternalError)<BR></FONT></FONT> -<FONT COLOR="#000000"><FONT SIZE=2> setraises -(InternalError);</FONT></FONT></P> -<UL> - <LI><P STYLE="MARGIN-BOTTOM: 0cm"><FONT COLOR="#000000"><FONT SIZE=3>method to get an - readonly attribute:</FONT></FONT></P></LI></UL> -<P STYLE="MARGIN-BOTTOM: 0cm; MARGIN-LEFT: 2cm"><FONT COLOR="#0000ff"> -<FONT SIZE=2>readonly</FONT><FONT COLOR="#000000"> -</FONT><FONT COLOR="#000000">attribute </FONT><FONT COLOR="#0000ff">short</FONT><FONT COLOR="#000000"> </FONT><FONT COLOR="#000000">ro_attrib -raises (InternalError);</FONT></FONT></P> -<H2 CLASS="western">Directory structure</H2> + <LI>method with return value, in- and out argument:<br> + <CODE>long foo (in string in_str, out string answer);</CODE></LI> + <LI>void method with out argument:<br> + <CODE>void hello (out long answer);</CODE></LI> + <LI><method to set and get an attribute:<br> + <CODE>attribute short rw_attrib<BR> + getraises(InternalError)<BR> + setraises (InternalError);</CODE></LI> + <LI>method to get an readonly attribute:<br> + <CODE>readonly attribute short ro_attrib raises (InternalError);</CODE></LI> +</UL> + +<H2>Directory structure</H2> <P>The following convention is used: </P> <UL> - <LI><P STYLE="MARGIN-BOTTOM: 0cm">|--<B>*_asm</B> - : Directory contains an assembly. </P> - <LI><P STYLE="MARGIN-BOTTOM: 0cm"> |--<B>ports</B> : C:\ACE\latest\ACE_wrappers\TAO\CIAO\connectors\ami4ccm\tutorials\Hello\Tutorial\02_idl.html + <LI>|--<B>*_asm</B> + : Directory contains an assembly.</LI> + <LI> |--<B>ports</B> : C:\ACE\latest\ACE_wrappers\TAO\CIAO\connectors\ami4ccm\tutorials\Hello\Tutorial\02_idl.html + Directory contains common IDL code for the assembly. </LI> + <LI> |--<B>*_comp</B> : Directory contains an + component. </LI> + <LI> |-- + <B>ports</B> : Directory contains common IDL code for the component. </LI> + <LI> |-- <B>src</B> : Directory contains the IDL + and *_exec-files for the component.</LI></UL> - Directory contains common IDL code for the assembly. </P> - <LI><P STYLE="MARGIN-BOTTOM: 0cm"> |--<B>*_comp</B> : Directory contains an - component. </P> - <LI><P STYLE="MARGIN-BOTTOM: 0cm"> |-- - <B>ports</B> : Directory contains common IDL - code for the component. </P> - <LI><P> |-- <B>src</B> : Directory contains the IDL - and *_exec-files for the component. </P></LI></UL> -<H2 CLASS="western">File naming convention</H2> +<H2 >File naming convention</H2> <P>The following convention is used: </P> <UL> - <LI><P STYLE="MARGIN-BOTTOM: 0cm"><B>*_defn.idl</B> - These files will contain definitions, - like enumerations, constants and so on. Typically located in *_asm/ports. </P> - <LI><P STYLE="MARGIN-BOTTOM: 0cm"><B>*_obj.idl</B> - These files will contain the interfaces - between components. Typically located in *_asm/ports. </P> - <LI><P><B>*_comp.idl</B> - These files - will contain the component declaration. Typically located in *_asm/*_comp/src. - </P></LI></UL> -<H2 CLASS="western">Additional conventions</H2> + <LI><B>*_defn.idl</B> - These files will contain definitions, + like enumerations, constants and so on. Typically located in *_asm/ports. </LI> + <LI><B>*_obj.idl</B> - These files will contain the interfaces + between components. Typically located in *_asm/ports. </LI> + <LI><B>*_comp.idl</B> - These files will contain the component declaration. Typically located in *_asm/*_comp/src. + </LI> +</UL> +<H2>Additional conventions</H2> <UL> - <LI><P STYLE="MARGIN-BOTTOM: 0cm">MPC files are located in + <LI>MPC files are located in the same directory as the IDL for the common mpc files and in the same - directory as the executor files for the component mpc files. </P> - <LI><P>Files that were generated by the TAO IDL compiler + directory as the executor files for the component mpc files. </LI> + <LI>Files that were generated by the TAO IDL compiler should all be located in one subdirectory. In this tutorial the name of this - subdirectory is "GeneratedCode". </P> - <TABLE WIDTH="100%" BORDER=0 CELLPADDING=2 CELLSPACING=2> - <TR> - <TD></TD> - <TD> - <P ALIGN=center><IMG border=0 name=graphics3 align=bottom src="images/images.png" width="4%" height="5%" ></P></TD> - <TD> - <P ALIGN=left><A href="02_idl.html">Next</A></P></TD></TR></TABLE></LI></UL> + subdirectory is "GeneratedCode". </LI> +</UL> +<TABLE WIDTH="100%" BORDER=0 CELLPADDING=2 CELLSPACING=2> + <TR> + <TD> </TD> + <TD align=center><IMG border=0 name=graphics3 align=bottom src="images/images.png" width="4%" height="5%" ></TD> + <TD align - right><A href="02_idl.html">Next</A></TD> + </TR> +</TABLE> <P><BR><BR></P> </BODY> </HTML> |