diff options
Diffstat (limited to 'modules/CIAO/docs')
212 files changed, 17742 insertions, 0 deletions
diff --git a/modules/CIAO/docs/CIAO.pdf b/modules/CIAO/docs/CIAO.pdf Binary files differnew file mode 100644 index 00000000000..496a4af14ba --- /dev/null +++ b/modules/CIAO/docs/CIAO.pdf diff --git a/modules/CIAO/docs/CIAO_Style_Guide.txt b/modules/CIAO/docs/CIAO_Style_Guide.txt new file mode 100644 index 00000000000..28c3245bc76 --- /dev/null +++ b/modules/CIAO/docs/CIAO_Style_Guide.txt @@ -0,0 +1,60 @@ +Error/Debug messages +======================== +ciao_debug_level () and associated environment are no longer used. +Instead, there are error message levels, in order from least to most +severe: + +LM_TRACE +LM_DEBUG +LM_INFO +LM_NOTICE +LM_WARNING +LM_ERROR +LM_CRITICAL +LM_ALERT +LM_EMERGENCY + +Please use the full range. Severity LM_TRACE through LM_NOTICE should +use ACE_DEBUG. LM_WARNING through LM_EMERGENCY should use ACE_ERROR. + +The verbosity of the logging output, i.e. which severity of logging +messages are output, is configured at runtime from the command line of +any CIAO executable with --log-level. + +Examples of usage: +LM_TRACE should be used for gratuitous tracing flow of execution +messages, and insignificant debug values. Feel free to be as detailed +as possible here, the purpose is to make our lives easier when users +are having problems. LM_DEBUG should be used to report significant +debugging values and configuration parameters. LM_INFO should be used +to report subactions (e.g. activiation of ports, establishment of +connections), and LM_NOTICE should be used to report significant +actions (e.g., component installation complete, container creation). + +Debug messages should begin with "ClassName::MethodName - ". +There is a macro in CIAO_common.h called CLINFO. This macro expands +to a set of default log message decorators, and should be prepended to +any and all debug messages and error messages, e.g.: + +ACE_DEBUG((LM_INFO, CLINFO + "Servant_Activator::etherialize - Your message here")); + +It is VERY IMPORTANT to follow this format for EVERY MESSAGE to make +it easier to filter and make sense of logging output. + +All methods (no exceptions!) must have a CIAO_TRACE statement at the +beginning. + +Memory Allocation +======================= +All calls to allocate memory should use ACE_NEW_THROW_EX with +CORBA::NO_MEMORY, e.g.: + +ACE_NEW_THROW_EX(pointer_var, constructor, CORBA::NO_MEMORY); + +Locking +======================= +Use gards as much as possible, using the _THROW_EX versions of the +acquisition macros throwing CORBA::NO_RESOURCES. + + diff --git a/modules/CIAO/docs/ConfigValues.html b/modules/CIAO/docs/ConfigValues.html new file mode 100644 index 00000000000..70ade5ca68d --- /dev/null +++ b/modules/CIAO/docs/ConfigValues.html @@ -0,0 +1,270 @@ +<!-- $Id$ --> +<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> +<html> <head> +<title>ConfigValues Index</title> +</head> + +<body> + +<h1>Index of ConfigValues</h1> + +<font size="+1" color="red">This page is currently a placeholder for +all the configuration values we will support when creating various CCM +deployment mechanisms, such as ComponentServers and Containers. The +ConfigValues listed here are currently only partially supported in +CIAO. <p> + +Note from self: There are discrepancy in this document. Most +significantly, (RT)ComponentServer's don't get their ConfigValues +directly from that passed in thru +ServerActivator::create_component_server but rather, using some sort +of pre-defined command line flags. +</font> + +<h2>ComponentServer</h2> +The <code>ConfigValues</code> for a <code>ComponentServer</code> are +passed in via <code>ServerActivator::create_component_server</code> +operation. CIAO accepts the following feature names:<p> + +<table border="3" spacing="2" cellpadding="3"> + <tr> + <th>FeatureName</th> + <th>type</th> + <th>Requirement</th> + <th>Remarks</th> + </tr> + <tr> + <td>CIAO-svcconf-id</td> + <td>string</td> + <td> + Optional + </td> + <td> + Specify the canonical svc.conf id. This id should only serve + as a hint for the deployment framework in determining the + actual svc.conf file used to start up the component server. + Currently, CIAO's ServerActivator maintains a set of svc.conf + files and use this id value to map to the exact svc.conf file + name. + </td> + </tr> + <tr> + <td>CIAO-ORB[option]</td> + <td>string</td> + <td> + Optional + </td> + <td> + Specify an ORB option that you want to pass to the + ComponentServer ORB. + </td> + </tr> +</table> + +<h2>RTComponentServer (Real-time ComponentServer)</h2> + +Like a regular <code>ComponentServer</code>, the +<code>ConfigValues</code> for a <code>RTComponentServer</code> are +passed in via <code>ServerActivator::create_component_server</code> +operation. On top of the <code>ConfigValues</code> accepted by the +regular <code>ComponentServer</code>, a real-time ComponentServer also +accepts the following feature names:<p> + +<table border="3" spacing="2" cellpadding="3"> + <tr> + <th>FeatureName</th> + <th>type</th> + <th>Requirement</th> + <th>Remarks</th> + </tr> + <tr> + <td>CIAO-rtcad-filename</td> + <td>string</td> + <td> + Optional + </td> + <td> + Specify the filename of RTCAD extension XML file. + The component server will invoke the XML parser and translate + the content of the file into the following two ConfigValues + (CIAO-RTresources and CIAO-RTPolicySets) to + RTComponentServer implementation. + </td> + </tr> + <tr> + <td>CIAO-RTresources</td> + <td><code>CIAO::RTConfiguration::RTORB_Resources_Info</code></td> + <td> + Optional + </td> + <td> + <code>CIAO::RTConfiguration::RTORB_Resources_Info</code> as + defined in + <code>$CIAO_ROOT/tools/XML_Helpers/RTConfiguration.idl</code> + defines the system wise resources an RT ORB should allocate. + These resources then can be used to define the RT policies in + the RTPolicySet described subsequently. + </td> + </tr> + <tr> + <td>CIAO-RTPolicySets</td> + <td><code>CIAO::RTConfiguration::Policy_Sets</code></td> + <td> + Optional + </td> + <td> + <code>CIAO::RTConfiguration::Policy_Sets</code>, also + defined in + <code>$CIAO_ROOT/tools/XML_Helpers/RTConfiguration.idl</code>, + defines a list of policy sets, which are named sequences of + policies. These policies often refer to the global resources + defined in the previous CIAO-RTresource via names. Likewise, + an <b>RT-container</b> also specifies the RTPolicySet its POA + uses via the name defined here. + </td> + </tr> +</table> + +<h2>Container</h2> +The <code>ConfigValues</code> for a <code>Container</code> are +passed in via <code>ComponentServer::create_container</code> +operation. CIAO accepts the following feature names:<p> + +<table border="3" spacing="2" cellpadding="3"> + <tr> + <th>FeatureName</th> + <th>type</th> + <th>Requirement</th> + <th>Remarks</th> + </tr> + <tr> + <td> + CIAO-Container-Type + </td> + <td> + <code>string</code> + </td> + <td> + currently not supported. + </td> + <td> + Possible value: <code>session</code>, <code>rt-session</code>, + <code>unclassified</code>, <code>rt-unclassified</code>. + </td> + </tr> + + <tr> + <td> + CIAO-POAPolicies + </td> + <td> + <code>CORBA::PolicyList</code> + </td> + <td> + Currently not supported. + </td> + <td> + Must not conflict with CIAO-Container-Type setting. + (Certain containers assume several POA policies.) + </td> + </tr> + + <tr> + <td> + CIAO-RTPolicySet + </td> + <td> + <code>string</code> + </td> + <td> + Optional + </td> + <td> + Name, as defined in RTCompoenentServer's CIAO-RTPolicySets, of + the PolicySet this container uses. + </td> + </tr> +</table> + + +<h2>CCMHome</h2> +The <code>ConfigValues</code> for a <code>CCMHome</code> are +passed in via <code>Container::install_home</code> +operation. CIAO accepts the following feature names:<p> + +<table border="3" spacing="2" cellpadding="3"> + <tr> + <th>FeatureName</th> + <th>type</th> + <th>Requirement</th> + <th>Remarks</th> + </tr> + <tr> + <td>CIAO-executor-path</td> + <td><code>string</code></td> + <td> + REQUIRED + </td> + <td> + This string value specifies the location of the executor DLL. + In the future, we should use UUIDs to identify the component + executors and query the ComponentInstallation interface for + the actual location of the DLL. + </td> + </tr> + <tr> + <td>CIAO-executor-entrypt</td> + <td><code>string</code></td> + <td> + REQUIRED + </td> + <td> + This string value specifies the entry point of the executor + DLL. It points to a factory function for the component executor. + </td> + </tr> + <tr> + <td>CIAO-servant-path</td> + <td><code>string</code></td> + <td> + REQUIRED + </td> + <td> + This string value specifies the location of the servant DLL. + In the future, we should use UUIDs to identify the component + servants and query the ComponentInstallation interface for + the actual location of the DLL. <p> + + Servant are part of the Container framework and we can use + type checking to ensure servant and container match with each + other. + </td> + </tr> + <tr> + <td>CIAO-executor-entrypt</td> + <td><code>string</code></td> + <td> + REQUIRED + </td> + <td> + This string value specifies the entry point of the servant + DLL. It points to a factory function for the compnent servant. + </td> + </tr> +</table> + +<!-- + <tr> + <td> + a + </td> + <td> + b + </td> + <td> + c + </td> + </tr> +--> +<!--#include virtual="/~nanbor/signature.html" --> +</body> </html> diff --git a/modules/CIAO/docs/EnvVars.html b/modules/CIAO/docs/EnvVars.html new file mode 100644 index 00000000000..a088f793de0 --- /dev/null +++ b/modules/CIAO/docs/EnvVars.html @@ -0,0 +1,35 @@ +<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> +<html> +<head> +<!-- $Id$ --> + <title>Environment Variables used by CIAO</title> +</head> +<body> +<h1>Environment Variables used by CIAO</h1> +<ul> +<!-- <li><b><code></code></b><p> --> <li><b><code>CIAO_DEBUG_LEVEL</code></b>: +An interger value accessible using <code>CIAO::debug_level()</code> +call. Currently, CIAO follow the following usage conventions:<br> + <br> + <ul> + <li> 20 < debug_level ≤ 20: Generate CIAO internal debug +messages </li> + <li> 10 < debug_level ≤ 20: Generate CIAO tools debug messages + </li> + <li> 0 < debug_level ≤ 10: Generate component-level debug +messages </li> + </ul> + <p> </p> + </li> + <li><b><code>CIAO_DUMP_SAMPLE_HISTORY</code></b>: This environment +variable was added for lack of component configuration support. Set it +to 1 to turn on the dumping of performance samples to stdout in some +performance test components.</li> +</ul> +<hr> +<address>Nanbor Wang</address> +<!-- hhmts start --> +Last modified: Sun Nov 30 20:29:14 Mountain Standard Time 2003 +<!-- hhmts end --> +</body> +</html> diff --git a/modules/CIAO/docs/OMG-CCM-Tutorial.ppt b/modules/CIAO/docs/OMG-CCM-Tutorial.ppt Binary files differnew file mode 100644 index 00000000000..b90ffc68640 --- /dev/null +++ b/modules/CIAO/docs/OMG-CCM-Tutorial.ppt diff --git a/modules/CIAO/docs/Porting_Hints.txt b/modules/CIAO/docs/Porting_Hints.txt new file mode 100644 index 00000000000..feed93d2eb7 --- /dev/null +++ b/modules/CIAO/docs/Porting_Hints.txt @@ -0,0 +1,55 @@ +Porting applications to the refactored DAnCE: + +1) ciao_client_dnc base projects should be changed to ccm_stub +2) ciao_component_dnc should be changed to ciao_executor +3) ciao_servant_dnc should be changed to ciao_servant +4) Executor implementations now require that the configuration_complete + operation be implemented. +5) ciao_{pre,post}activate are no longer invoked. + +It should be noted that this new version of CIAO/DAnCE no longer supports +implicitly homed components. Components must either be explicitly homed +(ie, an explicitly deployed home instance combined with a component instance +that specifically identifies that home), or unhomed. In the unhomed case, +a factory method that instantiates the component executor must be added +to the _exec header and source files. + + +Porting the plan +=================== +There are a number of changes to the plan structure to better comply with +the specification. + +1) idref refrences must now be made using an attribute xmi:idref instead + of using element content, i.e., + + <artifact>Receiver_Stub</artifact> + + should be transformed into + + <artifact xmi:idref="Receiver_Stub" /> + +2) Entrypoint information is now listed in the execParameters for the + monolithicImplementation instead of the implementationArtifact elements. + Furthermore, the container (servant) and executor artifacts must be + explicitly identified. The following execParameters must be present + on all monolithic implementations for homes and unhomed components: + + . "home factory" - contains the executor entrypoint for homes + . "component factory" - contains the executory entrypoint for unhomed + components + . "edu.vanderbilt.dre.CIAO.ServantEntrypoint" - contains the container + (servant) entrypoint for both homes and unhomed components + . "edu.vanderbilt.dre.CIAO.ServantArtifact" - Identifies the name + element of the artifact that implements the container (servant) + . "edu.vanderbilt.dre.CIAO.ExecutorArtifact" - Identifies the name + element of the artifact that implements the executor. + +3) IOR output configProperties have changed: + . "RegisterNaming" is now edu.vanderbilt.dre.DAnCE.RegisterNaming + . "ComponentIOR" is now edu.vanderbilt.dre.DAnCE.InstanceIOR + +4) Connection endpoints must now include the <provider> element after the <portName> element. +. SimplexReceptacle, MultiplexReceptacle, EventEmitter, and EventPublisher should be false +. Facet and EventConsumer should be true + diff --git a/modules/CIAO/docs/Purify.html b/modules/CIAO/docs/Purify.html new file mode 100644 index 00000000000..fff258db120 --- /dev/null +++ b/modules/CIAO/docs/Purify.html @@ -0,0 +1,72 @@ +<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> +<html> + <head> + <title>Using Rational Purify with CIAO</title> + <!-- $Id$ --> + </head> + <body> + <h1>Using Rational Purify with CIAO</h1> + <p>This document is about using Purify with Visual Studio 7.1 to track down + memory leaks and other bugs in CIAO applications. For the Linux/Unix + environment, Valgrind is a better-suited tool - see Will Otte's documentation + on using Valgrind with CIAO in this directory.</p> + <p>Purify can be run from within Visual Studio, or standalone. The executable is + c:\Program Files\Rational\PurifyPlus\purifyw.exe. Typing this will bring up the + same Purify window you see if you run it from within Visual Studio. You can + install Purify from the web by going to <A href="file://\\Atlantis\software\RationSuiteEnterprise-v2003-06-12"> + \\Atlantis\software\RationSuiteEnterprise-v2003-06-12</A> and clicking + on <code>C57BPML.zip</code>. This will install a whole bunch of Rational stuff + by default, so you will probaby want to deselect everything but PurifyPlus, + although Quantify is a good bottleneck-finder when you're trying to improve + performance, so that might be worth installing and playing with as well. During + the installation process, you'll be prompted for a mode of licensing. Select + the use of a license server, and then you'll be prompted for its address. Use <code> + rational.vuse.vanderbilt.edu</code>.</p> + <p>The option to exclude all modules in Windows directories will probably be set + by default, but if you notice memory leaks reported for Windows stuff, you + might want to double check this and turn it off. From the PurifyPlus menu bar + item in Visual Studio, it's at <b>PurifyPlus->Purify->Settings->DefaultSettings->PowerCheck</b>. + When run for the first time, Purify will instrument all libraries linked to the + executable. Select <b>PurifyPlus->Purify->Run</b>, and a window will pop + up prompting you for the executable name, command line options, and working + directory.</p> + <p>Purify's output will appear in the Visual Studio text editing window. This + output can be saved to the given filename. The type of error reported is + indicated by a 3-letter code - the most common are UMR (Unitialized Memory + Read), FMM (Freeing Mismatched Memory), and MLK (Memory Leak). Each of these + can be expanded to show the call stack. The depth of the call stack can be + modified in Settings if it's not deep enough. FMM messages will show both + allocation and deallocation call stacks.</p> + Quite often in CIAO, we will want to Purify a process that is spawned by + another process, and therefore not directly runnable in Purify. This is fairly + easy to do, but it must be done from the command line. If the name of the child + process we want to instrument is <code>child.exe</code>, then it can be + instrumented by typing + <br> + <code>purifyw /Run=no /Replace=yes child.exe</code><br> + This will rename the original executable as <code>child.exe.Original</code>, + and the new instrumented executable will be <code>child.exe</code>. Now when + you run the parent process under Purify, you'll see one window opened up in + Visual Studio's text editor for this process, and when the child process is + spawned, a second window will open. A couple of caveats to make this work + smoothly: + <ul> + <li> + Instrumented executables run 2 to 5 times slower than uninstrumented ones, so + any timeouts in the code should be extended accordingly. For example, if an + instrumented NodeApplication is spawned by NodeManager, add <code>-d 15</code> or + <code>-d 20</code> + to NodeManager's command line. + <li> + If an instrumented process is simply killed, there will probably be many + spurious error messages, mostly related to ORB resources that were not cleaned + up by a graceful shutdown. All processes tested with Purify should have a + graceful shutdown built in to eliminate these bogus memory leak messages. + </li> + </ul> + <hr> + <address>Jeff Parsons</address> + <!-- hhmts start --> Last modified: Oct 3 2005 + <!-- hhmts end --> + </body> +</html> diff --git a/modules/CIAO/docs/RT-Extension.html b/modules/CIAO/docs/RT-Extension.html new file mode 100644 index 00000000000..3414a30b78e --- /dev/null +++ b/modules/CIAO/docs/RT-Extension.html @@ -0,0 +1,132 @@ +<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> +<!-- $Id$ --> +<html> <head> +<title>Using the Real-time Extension in CIAO</title> +</head> + +<body> +<h1>Using the Real-time Extension in CIAO</h1> + +<!-- ============================================================ --> +<h3>Abstract</H3> + +The real-time extension support in CIAO enables application developers +to deploy real-time applications by specifying real-time +configurations as XML descriptors without modifying the component +implementation. In fact, embedding the real-time configuration +policies in component implementations decrease the reusability of the +software components. + +Different types of real-time policy can be applied at different +stage of the component development lifecycle, e.g., +<ul> + <li>Component implementation + <li>Component packaging + <li>Application composition + <li>Target platform configuration + <li>Deployment configuration +</ul> + +Real-time policies can also be applied to various scope in an +applications, e.g., many real-time policies can be associate with some +or all of the following ORB mechanisms: +<ul> + <li>ORBs + <li>POAs + <li>Threads + <li>Object references +</ul> + +<!-- ============================================================ --> +<h3>CIAO's Real-time Extension</h3> + +CIAO extends CCM's assembly descriptor to support the specifications +of real-time policies. This mechanism allows you to allocate +resources that are global to a RTComponentServer and to define real-time +policies required by a component installation. Currently, CIAO +support configuration of certain real-time policies at the POA level, +i.e., in CCM's terminology, the container level. These policies +include: + +<ol> + <li>Priority Model Policy + <li>Threadpool Policy + <li>Banded Connection Policy +</ol> + +The kind of resources that are global to a RT component server that CIAO +real-time extension specifies include: + +<ol> + <li>Threadpool + <li>Threadpool with lanes + <li>Connection bands +</ol> + +<!-- ============================================================ --> +<h3>Using the CIAO Real-time Extension</h3> + +Application developers can define the aforementioned Real-Time +extension Descriptor (.rtd file) that CIAO defines to allocate +resources and specify real-time policies. The Document Type +Definition (DTD) for the real-time extension description is defined in +this <a href="XML/ciao_rt_cad_ext.dtd">file</a>. Each .RTD file +specifies the required resources and the policy definitions within a +RTComponentServer. + +A RTComponentServer can be associated to a .RTD file. This is done by +using the "extension" element with "class" attributed set to +"RT-CAD-EXT", within a processcollocation or hostcollocation element. +Here is an example: +<code><pre> + + <processcollocation> + . + . + . + <extension class="RT-CAD-EXT" origin="CIAO">somefile.rtd</extension> + . + </processcollocation> +</pre></code> + +Each .RTD file contains the two major subelements: +<ul> + <li><rtresources>: defines all the RT resources the assciating + RTComponentServer should provide. + <li><rtpolicysets>: defines named collections of policies + (<rtpolicyset>) that apply to component installations in + the RTComponentServer. +</ul> + +The <rtpolicyset>'s defined in the .RTD file can be associated +to a component installation, i.e., a component placement within the +RTComponentServer to which the .RTD file is associated. For example, + +<code><pre> + <homeplacement> + . + . + , + <extension class="RT-POLICY-SET" + origin="CIAO">A_POLICY_NAME</extension> + . + </homeplacement> +</pre></code> + +<h3>Future Addition</h3> + +As mentioned earlier, RT policies can be applied at various stages of +component-based deployment lifecycle and at different scope. For +example, applying RTpolicies at the ORB level, or at the object +reference level of a component receptacle. These extensions involve +at least, extending the "appropriate" XML descriptor definition and +extending the CIAO runtime, including core and/or the CIDL generated +code to configure the policies. How other RT-related policies can be +added will be reviewed in my thesis available shortly. + +<hr> +<address>Nanbor Wang</address> +<!-- hhmts start --> +Last modified: Sun Nov 30 19:23:25 Mountain Standard Time 2003 +<!-- hhmts end --> +</body> </html> diff --git a/modules/CIAO/docs/TODO.html b/modules/CIAO/docs/TODO.html new file mode 100644 index 00000000000..e1007725715 --- /dev/null +++ b/modules/CIAO/docs/TODO.html @@ -0,0 +1,240 @@ +<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"><p> +<!-- $Id$ --> +<html> <head> +<title>Component-Integrated ACE ORB - TODO list</title> +</head> + +<body> +<h1>Component-Integrated ACE ORB (CIAO) - TODO list</h1> + +The following is a prioritized list of things (with the highest +priority items first) that the DOC group is working on. The expected +date of accomplishments are also added as ETA (expected time of +accomplishment) : + +<h3>Things to do:</h3> +<ul> + <li> Integrate TAO's real-time event channel within the + container. Components can use this feature to communicate using + <CODE>eventtype</CODE>s a pub-sub mode. The code is available in a + branch and it needs to be integrated in to the main-trunk. (ETA - + 2004/08) + </li> <p> + + <li> Allow components (i.e., assemblies) to be connected using the + NameService (ETA - 2004/08) </li> <p> + + <li> Allow non-component enabled clients to access reference to a + component or an assembly using NameService (ETA - 2004/08) </li> <p> + + <li>Allowing components to set attributes, atleast attributes of + basic types. As a first step we need to implement the + <CODE>StandardConfigurator</CODE> interface. The servant for the + <CODE> StandardConfigurator</CODE> interface should be implemented + and activated by the servant for the component. DAnCE can extract + the reference from the servant and use it to set attributes (ETA - + 2004/08)</li><p> + +<li>Now that we have supports for ccm_{activate,passivate,remove}, we + need to rethink how a container manages the lifecycle of all the + components/homes it hosts so all the servants related to a + component get destroyed "properly". The aforementioned + SessionComponent operations will also depend on the proper + lifecycle management. <p> + + This includes making sure all components' appropriate + ccm_passivate and ccm_remove operations are called when the + ComponentServer is closing down.<p> (ETA - 2004/08) </li> + + <li> Migrate RT features from RTComponentServer to DAnCE + (ETA - 2004/10) </li> <p> + + <li> Static configuration of components using DAnCE (ETA - 2004/12) + </li> <p> + + <li>We need a set of tests to make sure most (and later + all) of the data types are function correctly. + More importantly, we need to make sure all the + component keywords are supported okay. (ETA - 2004/07)<p> + + <li>The naming convention used in <a + href="new_component.html">creating new component + instructions</a> and that used in <a + href="templates/">templates</a> do not match. (Files containing + glue code are named *_svnt.* and *GS.* respectively.) We need + to address that.(ETA - 07/2004) <p> </li> + + <li> Retire the old assembly and deployment framework (ETA - + 2004/10)<p> </li> + + <li>We need to review the implementation of servant glue code and + container implementations to make sure that they are + thread-safe, if the container calls for it. Currently, these + states are changed only by the deployment framework which always + runs in single thread, so it's not a serious problem. However, + it's perfectly legal to dynamically configure connnections, which + will be the case if we want to add new components or remove + components from the assembly.(ETA - 2004/09)<p> + + <li> Add support for creating a thread pool within the the component + server. We don't have support for this, which has made our users + resort to spawning threads within the components, which breaks + portability of the executor code. (ETA - 2004/09) </li> <p> + + <li> At present components in an assembly have no way of knowing + whether the assembly is complete or not. This becomes important when + there are hierarchical assemblies, and the assembly at a higher + level needs to pass on attrbute information to the assembly at a + lower level. The spec talks about <CODE> configuration_complete () + </CODE> whose semantics are a bit unclear. We may have to use this + to inform the components that the configuration is infact + complete. (ETA - 2004/09)</li><p> + + +<li> Need to develop tools that would allow components to be added + dynamically to an existing assembly and remove components + dynamically from an existing assembly (ETA - 2004/12) <li> <p>. + +<li>The CCM_Core libraries need to be refactored so regular CIAO + users no longer need to link to CIAO_Server but to + CIAO_Container library instead. Currently, the session + container implementation is throwing exceptions from the + deployment modules when it fails to install a home. But these + feature should really be implmented in the Deployment::Container + interface instead. (ETA - 2004/12)<p> + +<li>HomeRegistrar related files from the CCM_Core projects have + been removed. We need to move them into a new directory when we + get to a new HomeFinder/HomeRegistrar implementation. Notice + that the deployment framework will need to use the HomeRegistrar + interface to register components/homes. (ETA - 2004/12)<p> + +<li>We should add support for the unclassified container and use the + property file of some sort to configure the empty container.<p> + + Process component (which have 1:1 servant to OID mapping) might + be useful too (no need to support PSS in this case?)<p> + + Persistent object references/IDs can be useful for statically + configured DRE systems as they eliminate the initial handshakes + in a multi-process system and enable each process to start up + independently. (ETA - Not known) <p> + + <li>The new <code>generate_component_mpc.pl</code> script should + invoke the <code>generate_export_file.pl</code> automatically + and created the necessary export files instead of only printing + out the hints on how to do that. (ETA - Not known)<p> + + <li>We need a ConfigValues parser for extracting common name-value + info out of a ConfigValues sequence. This would be needed if + components have to set complex user defined types as attributes. + (ETA - not known). </li><p> + + <li><b>Container Factory</b>: We need to provide a container factory + interface to decide what kind of container we need to use. Hmm, + isn't this the job of <code>ComponentServer</code> interface? + (ETA - not known)</li><p> + + <li><b>ComponentInstallation</b>: This is a simple interface that + provides (UUID, Location) mappings. Both UUID and Location are + of string type. Since ACE supports UUID implementation, we can + probably use that to generate a UUID. Location should be URI, but + let's just map that to locations in filesystem (pathnames) for + now. So we will most likely need to provide more downloading + mechanisms in the future, e.g., http, ftp, etc. <p> + + ComponentInstallation is the interface assembly mechanism used + to interact with the deployment mechanism. We are free to + implement the deployment mechanism (i.e., shipping of code to + various locations of application domains) the way we like but + the assembly mechanism depends on this interface to determine + where to fetch a specific implementation.<p> + + One thing that we really need is an installation tool set which + can be used to manage remote installation, by parsing various + XML descriptors and either push or pull the right implmentation + for a certain host in the list of hosts the component need to be + installed. According to the CCM spec., ComponentInstallation + interface implementation can retrieve a implementation (DLL) on + an on-demand basis. Therefore, there is probably no need to + push the appropriate DLL over right away when we feed some + descriptors into the installation tool. The tool, however, + should accurately extract the correct OS/compiler information + and inform the ComponentInstallation impl which and where to + fetch the right implmentation for the host it is running on. (ETA - not + known)<p> + <li> This is a set of the to-do associated with the DAnCE implementation. + <p> + <ul> + <li>We need to put the ComponentServer layer back in. In the current + implementation we use NodeApplication as both the Session Container + and the ComponentServer. We need to seperate the two + entities so we can hook any Container with the + ComponentServer. This change is essential to the RT + configuration and for the future of CIAO.<p> + + <li>Bala added ciao_[pre|post]_activate to the Session Component to + force the order of actions upon start-up, but this will not + work with the new DnC framework. We need to change the DnC framework + a bit to make this feature available again.<p> + + <li>We need to work on the Resource Management process in + DAnCE. Right now this part of the DnC spec is omitted in our + implementation.<p> + + <li>We need to work on the packaging process more so we can ship + binaries around when the dll/so is not available in the + local node.<p> + </ul> + +</ul> + +<h3>Cool ideas</h3> +<ul> + <li>Currently, developing a component will create 3 DLLs, one for + the client side stuff, one for the servant glue code, and one + for the executors. We need to figure out a way to automate + these stuff. MPC is a good starting point to generate scripts + to create project templates.<p> + + <li>Management of <code>ComponentInstallation</code> can be done + using a CORBAscript of some sort as this involve mostly + registering and unregistering of locations of component + implementations.<p> +</ul> + +<h3>Finished Work</h3> +<ul> + <li>The exception returned from CIAO_Daemon when it fails to + locate a DLL is quite useless to say the least. It needs + fixing.<p> + + CIAO now provides more meaningful error message now.<p> + + <li>We should create a new workspace/target in TAO such as CIAO_ONLY + to simplify the process of using CIAO. Currently, you have to + checkout the README file in CIAO_ROOT to figure out what TAO + modules are required by CIAO.<p> + + A new target "CIAO_Core" is now available in ACE's top level + Makefile.<p> + + <li>We need better debug info and a way to control how different + level of debug info are generated in CIAO.<p> Some preliminary + support using the <a href="EnvVars.html">environment + variable</a> <code>CIAO_DEBUG_LEVEL</code> has been added.<P> + + <li>Miminal implementation of CIDL compiler.<p> + + <li>CCM core workspace now contains 3 different DLLs: + <UL> + <li>CCM_Client - Needed by CCM-awared client + <li>CCM_Container - Needed by executors and servers + <li>CCM_Server - Needed by servers and CIAO tools + </UL><p> + + <li>A SessionContainer implementation.<p> + +</ul> + +</body> </html> diff --git a/modules/CIAO/docs/Trace.html b/modules/CIAO/docs/Trace.html new file mode 100644 index 00000000000..001cddd007e --- /dev/null +++ b/modules/CIAO/docs/Trace.html @@ -0,0 +1,32 @@ +<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> +<html> +<head> +<!-- $Id$ --> + <title>CIAO Logging facility</title> +</head> +<body> +<h1>CIAO Logging Facility +</h1> +Based on the various logging techniques provided by ACE mechanism, CIAO +has introduced some new logging macros to assist CIAO developers in +diagnosing CIAO codes.<br> +<ul> + <li><span style="font-weight: bold;">CIAO_TRACE<br> + </span> By placing CIAO_TRACE at the beginning of +a CIAO function or method, you can get the tracing message of when +these functions are entered and when they are exited at runtime. To +enable this feature, however, you need to set CIAO_NTRACE to 0 in +$ACE_ROOT\ace\config.h. CIAO_TRACE works in a identical way as +ACE_TRACE. The only distinction is that CIAO_TRACE will output the the +tracing messages for CIAO projects only while dumping the excessive +messages from ACE on top of which CIAO is built. <br> + </li> +</ul> +<hr> +<address>Ming Xiong<br> +Last modified: Thur Aug 12:50 am 2005 +</address> +<!-- hhmts start --> +<!-- hhmts end --> +</body> +</html> diff --git a/modules/CIAO/docs/XML/ciao_rt_cad_ext.dtd b/modules/CIAO/docs/XML/ciao_rt_cad_ext.dtd new file mode 100644 index 00000000000..7877afe2151 --- /dev/null +++ b/modules/CIAO/docs/XML/ciao_rt_cad_ext.dtd @@ -0,0 +1,93 @@ +<!-- + $Id$ + + DTD for CIAO ComponentAssembly real-time extension. + The extension for this type of XML document should be .RTD + + A component server can be associated to one conforming XML + descriptor file of this DTD via the <extension> tag under + <hostcollocation>, <processcollocation> as + + <extension class="RT-CAD-EXT" + origin="CIAO">pathname_to_xml_file.xml</extension> + + The root element is <rtcad-ext>. + + The <extension> tag under <homeplacement> element can be used to + specify the <rtpolicyset> named in this file (using rtpolicyset's + id attribute.) For example, + + <extension class="RT-POLICY-SET" + origin="CIAO">IDREF_of_some_rtpolicyset</extension> + +--> + +<!ELEMENT rtcad_ext ( rtresources?, rtpolicyset+ ) > + +<!-- RT Resources grammar definitions --> + +<!ELEMENT rtresources (threadpool | threadpoolwithlanes | connectionbands)* > + +<!ELEMENT threadpool EMPTY> +<!ATTLIST threadpool + id ID #REQUIRED + stacksize CDATA #REQUIRED + static_threads CDATA #REQUIRED + dynamic_threads CDATA #REQUIRED + priority CDATA #REQUIRED + buffering (yes | no) #REQUIRED + max_buffer CDATA #REQUIRED + buffer_size CDATA #REQUIRED > + +<!ELEMENT threadpoolwithlanes (lane+) > +<!ATTLIST threadpoolwithlanes + id ID #REQUIRED + stacksize CDATA #REQUIRED + borrowing (yes | no) #REQUIRED + buffering (yes | no) #REQUIRED + max_buffer CDATA #REQUIRED + buffer_size CDATA #REQUIRED > + +<!ELEMENT lane EMPTY> +<!ATTLIST lane + priority CDATA #REQUIRED + static_threads CDATA #REQUIRED + dynamic_threads CDATA #REQUIRED > + +<!ELEMENT connectionbands (band+) > +<!ATTLIST connectionbands + id ID #REQUIRED > + +<!ELEMENT band EMPTY> +<!ATTLIST band + low CDATA #REQUIRED + high CDATA #REQUIRED > + +<!-- RT Policy_Set grammar definitions --> +<!-- Each type of policy in rtpoliyset can only appear once --> +<!ELEMENT rtpolicyset (priority_model_policy, + threadpool_policy, + banded_connection_policy)+ > +<!ATTLIST rtpolicyset + id ID #REQUIRED> + +<!ELEMENT priority_model_policy EMPTY> +<!ATTLIST priority_model_policy + type (server_declared | client_propagated) #REQUIRED + priority CDATA #REQUIRED> + +<!ELEMENT threadpool_policy EMPTY> +<!-- + "idref" must be previously defined by the id attribute of + either <threadpool> or <threadpoollanes> element +--> +<!ATTLIST threadpool_policy + idref IDREF #REQUIRED> + +<!ELEMENT banded_connection_policy EMPTY> +<!-- + "idref" must be previously defined by the id attribute of + <connectionbands> element. +--> +<!ATTLIST banded_connection_policy + idref IDREF #REQUIRED>
\ No newline at end of file diff --git a/modules/CIAO/docs/XML/componentassembly.dtd b/modules/CIAO/docs/XML/componentassembly.dtd new file mode 100644 index 00000000000..d61fb47505f --- /dev/null +++ b/modules/CIAO/docs/XML/componentassembly.dtd @@ -0,0 +1,367 @@ +<!-- DTD for Component Assembly Descriptor. The root element + is <componentassembly>. Elements are listed + alphabetically. + --> + +<!-- Simple xml link attributes based on W3C WD-xlink-19980303. + May change slightly when XLL is finalized. + --> +<!ENTITY % simple-link-attributes " + xml:link CDATA #FIXED 'SIMPLE' + href CDATA #REQUIRED +" > + +<!ELEMENT componentassembly + ( description? + , componentfiles + , partitioning + , connections? + , extension* + ) > +<!ATTLIST componentassembly + id ID #REQUIRED + derivedfrom CDATA #IMPLIED > + +<!-- If file not available locally, then download via codebase link --> +<!ELEMENT codebase EMPTY > +<!ATTLIST codebase + filename CDATA #IMPLIED + %simple-link-attributes; > + +<!ELEMENT componentfile + ( fileinarchive + | codebase + | link + ) > +<!ATTLIST componentfile + id ID #REQUIRED + type CDATA #IMPLIED > + +<!ELEMENT componentfileref EMPTY > +<!ATTLIST componentfileref + idref CDATA #REQUIRED > + +<!ELEMENT componentfiles + ( componentfile+ + ) > + +<!ELEMENT componentimplref EMPTY > +<!ATTLIST componentimplref + idref CDATA #REQUIRED > + +<!ELEMENT componentinstantiation + ( usagename? + , componentproperties? + , registercomponent* + , extension* + ) > +<!ATTLIST componentinstantiation + id ID #REQUIRED > + +<!ELEMENT componentinstantiationref EMPTY > +<!ATTLIST componentinstantiationref + idref CDATA #REQUIRED > + +<!ELEMENT componentproperties + ( fileinarchive + | codebase + ) > + +<!ELEMENT componentsupportedinterface + ( componentinstantiationref + | findby + )> + +<!ELEMENT connectevent + ( ( consumesport + | existinginterface + ) + , ( emitsport + | publishesport + ) + ) > +<!ATTLIST connectevent + id ID #IMPLIED > + +<!ELEMENT connecthomes + ( proxyhome + , destinationhome + ) > +<!ATTLIST connecthomes + id ID #IMPLIED > + +<!ELEMENT connectinterface + ( usesport + , ( providesport + | componentsupportedinterface + | existinginterface + | homeinterface + ) + ) > +<!ATTLIST connectinterface + id ID #IMPLIED > + +<!ELEMENT connections + ( connectinterface + | connectevent + | connecthomes + | extension + )* > + +<!ELEMENT consumesidentifier ( #PCDATA ) > + +<!ELEMENT consumesport + ( consumesidentifier + , ( componentinstantiationref + | findby + ) + )> + +<!ELEMENT description ( #PCDATA ) > + +<!ELEMENT destination ( #PCDATA ) > + +<!ELEMENT destinationhome + ( homeplacementref + | findby + ) > + +<!ELEMENT emitsidentifier ( #PCDATA ) > + +<!ELEMENT emitsport + ( emitsidentifier + , ( componentinstantiationref + | findby + ) + )> + +<!ELEMENT executableplacement + ( usagename? + , componentfileref + , componentimplref? + , invocation? + , destination? + , extension* + ) > +<!ATTLIST executableplacement + id ID #REQUIRED + cardinality CDATA "1" > + +<!ELEMENT existinginterface + ( findby )> + +<!-- The "extension" element is used for vendor-specific extensions --> +<!ELEMENT extension (#PCDATA) > +<!ATTLIST extension + class CDATA #REQUIRED + origin CDATA #REQUIRED + id ID #IMPLIED + extra CDATA #IMPLIED + html-form CDATA #IMPLIED > + +<!-- The "fileinarchive" element is used to specify a file in the archive. + If the file is independent of an archive then link is used to point to + the archive in which the file may be found. + --> +<!ELEMENT fileinarchive + ( link? ) > +<!ATTLIST fileinarchive + name CDATA #REQUIRED > + +<!ELEMENT findby + ( namingservice + | stringifiedobjectref + | traderquery + | homefinder + | extension + ) > + +<!ELEMENT homefinder EMPTY > +<!ATTLIST homefinder + name CDATA #REQUIRED > + +<!ELEMENT homeinterface + ( homeplacementref + | findby + )> + +<!ELEMENT homeplacement + ( usagename? + , componentfileref + , componentimplref? + , homeproperties? + , componentproperties? + , registerwithhomefinder* + , registerwithnaming* + , registerwithtrader* + , componentinstantiation* + , destination? + , extension* + ) > +<!ATTLIST homeplacement + id ID #REQUIRED + cardinality CDATA "1" > + +<!ELEMENT homeplacementref EMPTY > +<!ATTLIST homeplacementref + idref CDATA #REQUIRED > + +<!ELEMENT homeproperties + ( fileinarchive + | codebase + ) > + +<!ELEMENT hostcollocation + ( usagename? + , impltype? + , ( homeplacement + | executableplacement + | processcollocation + | extension + )+ + , destination? + ) > +<!ATTLIST hostcollocation + id ID #IMPLIED + cardinality CDATA "1" > + +<!ELEMENT impltype EMPTY > +<!ATTLIST impltype + language CDATA #REQUIRED + version CDATA #IMPLIED > + +<!ELEMENT invocation EMPTY > +<!ATTLIST invocation + args CDATA #REQUIRED > + +<!ELEMENT link ( #PCDATA ) > +<!ATTLIST link + %simple-link-attributes; > + +<!ELEMENT namingservice EMPTY > +<!ATTLIST namingservice + name CDATA #REQUIRED > + +<!ELEMENT partitioning + ( homeplacement + | executableplacement + | processcollocation + | hostcollocation + | extension + )* > + +<!ELEMENT processcollocation + ( usagename? + , impltype? + , ( homeplacement + | extension + )+ + , destination? + ) > +<!ATTLIST processcollocation + id ID #IMPLIED + cardinality CDATA "1" > + +<!ELEMENT providesidentifier ( #PCDATA ) > + +<!ELEMENT providesport + ( providesidentifier + , ( componentinstantiationref + | findby + ) + ) > + +<!ELEMENT proxyhome + ( homeplacementref + | findby + ) > + +<!ELEMENT publishesidentifier ( #PCDATA ) > + +<!ELEMENT publishesport + ( publishesidentifier + , ( componentinstantiationref + | findby + ) + ) > + +<!ELEMENT registercomponent + ( ( providesidentifier + | consumesidentifier + )? + , ( registerwithnaming + | registerwithtrader + )+ + ) > + +<!ELEMENT registerwithhomefinder EMPTY > +<!ATTLIST registerwithhomefinder + name CDATA #REQUIRED > + +<!ELEMENT registerwithnaming EMPTY > +<!ATTLIST registerwithnaming + name CDATA #IMPLIED > + +<!ELEMENT registerwithtrader + ( traderexport ) > +<!ATTLIST registerwithtrader + tradername CDATA #IMPLIED > + +<!-- DEVNOTE: is tradername necessary? --> +<!-- DEVNOTE: Should trader properties be specified in component file? + And in assembly file? --> + +<!ELEMENT stringifiedobjectref ( #PCDATA ) > + +<!ELEMENT traderconstraint ( #PCDATA ) > + +<!ELEMENT traderexport + ( traderservicetypename + , traderproperties + ) > + +<!ELEMENT traderpolicy + ( traderpolicyname + , traderpolicyvalue + ) > + +<!ELEMENT traderpolicyname ( #PCDATA ) > + +<!ELEMENT traderpolicyvalue ( #PCDATA ) > + +<!ELEMENT traderpreference ( #PCDATA ) > + +<!ELEMENT traderproperties + ( traderproperty+ ) > + +<!ELEMENT traderproperty + ( traderpropertyname + , traderpropertyvalue + ) > + +<!ELEMENT traderpropertyname ( #PCDATA ) > + +<!ELEMENT traderpropertyvalue ( #PCDATA ) > + +<!ELEMENT traderquery + ( traderservicetypename + , traderconstraint + , traderpreference? + , traderpolicy* + , traderspecifiedprop* + ) > + +<!ELEMENT traderservicetypename ( #PCDATA ) > + +<!ELEMENT traderspecifiedprop ( #PCDATA ) > + +<!ELEMENT usagename ( #PCDATA ) > + +<!ELEMENT usesidentifier ( #PCDATA ) > + +<!ELEMENT usesport + ( usesidentifier + , ( componentinstantiationref + | findby + ) + ) > diff --git a/modules/CIAO/docs/XML/corbacomponent.dtd b/modules/CIAO/docs/XML/corbacomponent.dtd new file mode 100644 index 00000000000..fd5ec98f377 --- /dev/null +++ b/modules/CIAO/docs/XML/corbacomponent.dtd @@ -0,0 +1,316 @@ +<!-- DTD for CORBA Component Descriptor. The root element is + <corbacomponent>. Elements are listed alphabetically. +--> + +<!-- Simple xml link attributes based on W3C WD-xlink-19980303. + May change when XLL is finalized. --> + +<!ENTITY % simple-link-attributes " + xml:link CDATA #FIXED 'SIMPLE' + href CDATA #REQUIRED +"> + +<!ELEMENT accessmode EMPTY> +<!ATTLIST accessmode + mode (READ_ONLY|READ_WRITE) #REQUIRED > + +<!ELEMENT componentfeatures + ( inheritscomponent? + , supportsinterface* + , ports + , operationpolicies? + , extension* + ) > +<!ATTLIST componentfeatures + name CDATA #REQUIRED + repid CDATA #REQUIRED > + +<!ELEMENT componentkind + ( service + | session + | process + | entity + | unclassified + ) > + +<!ELEMENT componentproperties + ( fileinarchive + ) > + +<!ELEMENT componentrepid EMPTY > +<!ATTLIST componentrepid + repid CDATA #IMPLIED > + +<!ELEMENT containermanagedpersistence + ( storagehome + , pssimplementation? + , accessmode + , psstransaction + , params? + ) > + +<!ELEMENT configurationcomplete EMPTY > +<!ATTLIST configurationcomplete + set ( true | false ) #REQUIRED > + +<!ELEMENT consumes + ( eventpolicy + , extension* ) > +<!ATTLIST consumes + consumesname CDATA #REQUIRED + eventtype CDATA #REQUIRED > + +<!ELEMENT corbacomponent + ( corbaversion + , cormponentrepid + , homerepid + , componentkind + , interop? + , transaction? + , security? + , threading + , configurationcomplete + , extendedpoapolicy* + , repository? + , segment* + , componentproperties? + , homeproperties? + , homefeatures+ + , componentfeatures+ + , interface* + , extension* + ) > + +<!ELEMENT corbaversion (#PCDATA) > + +<!ELEMENT description ( #PCDATA ) > + +<!ELEMENT emits + ( eventpolicy + , extension* ) > +<!ATTLIST emits + emitsname CDATA #REQUIRED + eventtype CDATA #REQUIRED > + +<!ELEMENT entity + ( servant ) > + +<!ELEMENT eventpolicy EMPTY> +<!ATTLIST eventpolicy + policy ( normal | default | transaction ) #IMPLIED> + +<!ELEMENT extendedpoapolicy EMPTY> +<!ATTLIST extendedpoapolicy + name CDATA #REQUIRED + value CDATA #REQUIRED > + +<!-- The "extension" element is used for vendor-specific extensions --> +<!ELEMENT extension (#PCDATA) > +<!ATTLIST extension + class CDATA #REQUIRED + origin CDATA #REQUIRED + id ID #IMPLIED + extra CDATA #IMPLIED + html-form CDATA #IMPLIED > + +<!-- The "fileinarchive" element is used to specify a file in the + archive. If the file is in another archive then link is used to + point to the archive in which the file may be found. + --> +<!ELEMENT fileinarchive + ( link? ) > +<!ATTLIST fileinarchive + name CDATA #REQUIRED > + +<!ELEMENT homefeatures + ( inheritshome? + , operationpolicies? + , extension* ) > +<!ATTLIST homefeatures + name CDATA #REQUIRED + repid CDATA #REQUIRED > + +<!ELEMENT homeproperties + ( fileinarchive + ) > + +<!ELEMENT homerepid EMPTY > +<!ATTLIST homerepid + repid CDATA #IMPLIED > + +<!ELEMENT inheritscomponent EMPTY> +<!ATTLIST inheritscomponent + repid CDATA #REQUIRED> + +<!ELEMENT inheritshome EMPTY> +<!ATTLIST inheritshome + repid CDATA #REQUIRED> + +<!ELEMENT inheritsinterface EMPTY> +<!ATTLIST inheritsinterface + repid CDATA #REQUIRED> + +<!ELEMENT ins EMPTY> +<!ATTLIST ins + name CDATA #REQUIRED > + +<!ELEMENT interface + ( inheritsinterface* + , operationpolicies? ) > +<!ATTLIST interface + name CDATA #REQUIRED + repid CDATA #REQUIRED > + +<!ELEMENT interop EMPTY> +<!ATTLIST interop + type CDATA #REQUIRED + direction ( hasview | isview ) #REQUIRED + descriptor CDATA #REQUIRED > + +<!ELEMENT link ( #PCDATA ) > +<!ATTLIST link + %simple-link-attributes; > + +<!ELEMENT objref EMPTY> +<!ATTLIST objref + string CDATA #REQUIRED > + +<!ELEMENT operation + ( transaction? + , requiredrights? ) > +<!ATTLIST operation + name CDATA #REQUIRED > + +<!-- an operation name of "*" specifies all operations in the current +scope --> +<!ELEMENT operationpolicies + ( operation+ ) > + +<!ELEMENT param EMPTY > +<!ATTLIST param + name CDATA #REQUIRED + value CDATA #REQUIRED > + +<!ELEMENT params (param+) > + +<!ELEMENT poapolicies EMPTY> +<!ATTLIST poapolicies + thread (ORB_CTRL_MODEL | SINGLE_THREAD_SAFE ) #REQUIRED + lifespan (TRANSIENT | PERSISTENT ) #REQUIRED + iduniqueness (UNIQUE_ID | MULTIPLE_ID) #REQUIRED + idassignment (USER_ID | SYSTEM_ID) #REQUIRED + servantretention (RETAIN | NON_RETAIN) #REQUIRED + requestprocessing (USE_ACTIVE_OBJECT_MAP_ONLY + |USE_DEFAULT_SERVANT + |USE_SERVANT_MANAGER) #REQUIRED + implicitactivation (IMPLICIT_ACTIVATION + |NON_IMPLICIT_ACTIVATION) #REQUIRED > + +<!ELEMENT ports + ( uses + | provides + | emits + | publishes + | consumes + )* > + +<!ELEMENT process + ( servant ) > + +<!ELEMENT provides + ( operationpolicies? + , extension* ) > +<!ATTLIST provides + providesname CDATA #REQUIRED + repid CDATA #REQUIRED + facettag CDATA #REQUIRED > + +<!ELEMENT pssimplementation EMPTY> +<!ATTLIST pssimplementation + id CDATA #REQUIRED > + +<!ELEMENT psstransaction (psstransactionisolationlevel?) > +<!ATTLIST psstransaction + policy (TRANSACTIONAL|NON_TRANSACTIONAL) #REQUIRED > + +<!ELEMENT psstransactionisolationlevel EMPTY> +<!ATTLIST psstransactionisolationlevel + level (READ_UNCOMMITTED|READ_COMMITTED|REPEATABLE_READ|SERIALIZABLE) + #REQUIRED > + +<!ELEMENT publishes + ( eventpolicy + , extension* ) > +<!ATTLIST publishes + publishesname CDATA #REQUIRED + eventtype CDATA #REQUIRED > + +<!ELEMENT repository + ( ins + | objref + | link + ) > +<!ATTLIST repository + type CDATA #IMPLIED > + +<!ELEMENT requiredrights + ( right* ) > + +<!ELEMENT right + ( description? ) > +<!ATTLIST right + name CDATA #REQUIRED > + +<!ELEMENT security + ( requiredrights? ) > +<!ATTLIST security + rightsfamily CDATA #REQUIRED + rightscombinator (secallrights | secanyrights) #REQUIRED > + +<!ELEMENT segment + ( segmentmember+ + , containermanagedpersistence? + , extension* + ) > +<!ATTLIST segment + name CDATA #REQUIRED + segmenttag CDATA #REQUIRED > + +<!ELEMENT segmentmember EMPTY> +<!ATTLIST segmentmember + facettag CDATA #REQUIRED > + +<!ELEMENT servant EMPTY > +<!ATTLIST servant + lifetime (component|method|transaction|container) #REQUIRED > + +<!ELEMENT service EMPTY > + +<!ELEMENT session + ( servant ) > + +<!ELEMENT storagehome EMPTY> +<!ATTLIST storagehome + id CDATA #REQUIRED > + +<!ELEMENT supportsinterface + ( operationpolicies? + , extension* ) > +<!ATTLIST supportsinterface + repid CDATA #REQUIRED > + +<!ELEMENT threading EMPTY> +<!ATTLIST threading + policy ( serialize | multithread ) #REQUIRED > + +<!ELEMENT transaction EMPTY > +<!ATTLIST transaction + use (self-managed|not-supported|required|supports|requiresnew| + mandatory|never) #REQUIRED > +<!ELEMENT unclassified + ( poapolicies ) > + +<!ELEMENT uses ( extension* ) > +<!ATTLIST uses + usesname CDATA #REQUIRED + repid CDATA #REQUIRED > diff --git a/modules/CIAO/docs/XML/properties.dtd b/modules/CIAO/docs/XML/properties.dtd new file mode 100644 index 00000000000..adfe8699fb7 --- /dev/null +++ b/modules/CIAO/docs/XML/properties.dtd @@ -0,0 +1,87 @@ +<!-- DTD for CORBA Component property file. The root element + is <properties>. Elements are listed alphabetically. +--> + +<!ELEMENT choice ( #PCDATA ) > + +<!ELEMENT choices ( choice | range )+ ) > + +<!ELEMENT defaultvalue ( #PCDATA ) > + +<!ELEMENT description ( #PCDATA ) > + +<!ELEMENT value ( #PCDATA ) > + +<!ELEMENT properties + ( description? + , ( simple + | sequence + | struct + | valuetype + )* + ) > + +<!ELEMENT range (value, value) > + +<!ELEMENT simple + ( description? + , value + , choices? + , defaultvalue? + ) > +<!ATTLIST simple + name CDATA #IMPLIED + type ( boolean + | char + | double + | float + | short + | long + | objref + | octet + | string + | ulong + | ushort + | longlong + | ulonglong + | wchar + | wstring + | fixed + ) #REQUIRED > + +<!ELEMENT sequence + ( description? + , ( simple* + | struct* + | sequence* + | valuetype* + ) + ) > +<!ATTLIST sequence + name CDATA #IMPLIED + type CDATA #REQUIRED > + +<!ELEMENT struct + ( description? + , ( simple + | sequence + | struct + | valuetype + )* + ) > +<!ATTLIST struct + name CDATA #IMPLIED + type CDATA #REQUIRED > + +<!ELEMENT valuetype + ( description? + , ( simple + | sequence + | struct + | valuetype + )* + ) > +<!ATTLIST valuetype + name CDATA #IMPLIED + type CDATA #REQUIRED + primarykey (true | false) "false" > diff --git a/modules/CIAO/docs/XML/softpkg.dtd b/modules/CIAO/docs/XML/softpkg.dtd new file mode 100644 index 00000000000..ee87b811cc6 --- /dev/null +++ b/modules/CIAO/docs/XML/softpkg.dtd @@ -0,0 +1,220 @@ +<!-- DTD for softpkg. Used to describe CORBA Component + implementations. The root element is <softpkg>. + Elements are listed alphabetically. + --> +<!-- Revision $Id$ --> +<!-- Simple xml link attributes based on W3C WD-xlink-19980303. + May change when XLL is finalized. --> + +<!ENTITY % simple-link-attributes " + xml:link CDATA #FIXED 'SIMPLE' + href CDATA #REQUIRED +"> + +<!ELEMENT author + ( name + | company + | webpage + )* > + +<!ELEMENT code + ( ( codebase + | fileinarchive + | link + ) + , entrypoint? + , usage? + ) > +<!ATTLIST code + type CDATA #IMPLIED > + +<!-- If file not available locally, then download via codebase link --> +<!ELEMENT codebase EMPTY > +<!ATTLIST codebase + filename CDATA #IMPLIED + %simple-link-attributes; > + +<!ELEMENT compiler EMPTY > +<!ATTLIST compiler + name CDATA #REQUIRED + version CDATA #IMPLIED > + +<!ELEMENT company ( #PCDATA ) > + +<!ELEMENT dependency + ( softpkgref + | codebase + | fileinarchive + | localfile + | name + | valuetypefactory + ) > +<!ATTLIST dependency + type CDATA #IMPLIED + action (assert | install) "assert"> + +<!ELEMENT description ( #PCDATA ) > + +<!ELEMENT descriptor + ( link + | fileinarchive + ) > +<!ATTLIST descriptor + type CDATA #IMPLIED> + +<!ELEMENT entrypoint ( #PCDATA) > + +<!-- The "extension" element is used for vendor-specific extensions --> +<!ELEMENT extension (#PCDATA) > +<!ATTLIST extension + class CDATA #REQUIRED + origin CDATA #REQUIRED + id ID #IMPLIED + extra CDATA #IMPLIED + html-form CDATA #IMPLIED > + +<!-- The "fileinarchive" element is used to specify a file in the archive. + If the file is in another archive then link is used to point to + the archive in which the file may be found. + --> +<!ELEMENT fileinarchive + ( link? ) > +<!ATTLIST fileinarchive + name CDATA #REQUIRED > + +<!ELEMENT idl + ( link + | fileinarchive + | repository + ) > +<!ATTLIST idl + id CDATA #REQUIRED + homeid CDATA #REQUIRED > + +<!ELEMENT implementation + ( description + | code + | compiler + | dependency + | descriptor + | extension + | programminglanguage + | humanlanguage + | os + | propertyfile + | processor + | runtime + )* > +<!ATTLIST implementation + id ID #IMPLIED + variation CDATA #IMPLIED > + +<!ELEMENT implref EMPTY > +<!ATTLIST implref + idref CDATA #REQUIRED > + +<!ELEMENT ins EMPTY > +<!ATTLIST inc + name CDATA #REQUIRED > + +<!ELEMENT humanlanguage EMPTY > +<!ATTLIST humanlanguage + name CDATA #REQUIRED > + +<!ELEMENT license ( #PCDATA ) > +<!ATTLIST license + %simple-link-attributes; > + +<!ELEMENT link ( #PCDATA ) > +<!ATTLIST link + %simple-link-attributes; > + +<!-- A file that should be available in the local environment --> +<!ELEMENT localfile EMPTY > +<!ATTLIST localfile + name CDATA #REQUIRED > + +<!ELEMENT name ( #PCDATA ) > + +<!ELEMENT objref EMPTY > +<!ATTLIST objref + string CDATA #REQUIRED > + +<!ELEMENT os EMPTY > +<!ATTLIST os + name CDATA #REQUIRED + version CDATA #IMPLIED> + +<!ELEMENT pkgtype ( #PCDATA ) > +<!ATTLIST pkgtype + version CDATA #IMPLIED > + +<!ELEMENT processor EMPTY > +<!ATTLIST processor + name CDATA #REQUIRED > + +<!ELEMENT programminglanguage EMPTY> +<!ATTLIST programminglanguage + name CDATA #REQUIRED + version CDATA #IMPLIED > + +<!ELEMENT propertyfile + ( fileinarchive + | link) > +<!ATTLIST propertyfile + type CDATA #IMPLIED > + +<!ELEMENT repository + ( ins + | objref + | link + ) > +<!ATTLIST repository + type CDATA #IMPLIED > + +<!ELEMENT runtime EMPTY > +<!ATTLIST runtime + name CDATA #REQUIRED + version CDATA #IMPLIED> + +<!ELEMENT softpkg + ( title + | pkgtype + | author + | description? + | license + | idl + | propertyfile + | dependency + | descriptor + | implementation + | extension + )* > +<!ATTLIST softpkg + name ID #REQUIRED + version CDATA #IMPLIED > + +<!ELEMENT softpkgref + ( ( fileinarchive + | link + ) + , implref? + ) > + +<!ELEMENT title ( #PCDATA ) > + +<!ELEMENT usage ( #PCDATA ) > + +<!ELEMENT valuetypefactory + ( codebase + | fileinarchive + | link + ) > +<!ATTLIST valuetypefactory + repid CDATA #REQUIRED + valueentrypoint CDATA #IMPLIED + factoryentrypoint CDATA #IMPLIED > + +<!ELEMENT webpage ( #PCDATA ) > +<!ATTLIST webpage + %simple-link-attributes; > diff --git a/modules/CIAO/docs/com-impl.html b/modules/CIAO/docs/com-impl.html new file mode 100644 index 00000000000..ed5948ab9cf --- /dev/null +++ b/modules/CIAO/docs/com-impl.html @@ -0,0 +1,60 @@ +<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> +<!-- $Id$ --> +<html> <head> +<title>Implementing a CCM Component</title> +</head> + +<body> +<h1>Implementing a CCM Component</h1> + +This document explains how to implement a single component. At this +moment, CIAO lacks a CIDL compiler, and we depends on manually +generating the servant glue code for containers and local executor +interface. Check out this <a href="new_components.html">page</a> to +find how all files are generate4d in CIAO. +The following figure shows how this is done:<p> + + +<img src="imgs/File-Gen-Existing.png"><p> + +And when we have a working CIDL (or, CCIDL "CIAO's Component +Implementation Definition Language") compiler, the file will be +generated using a CIDL file (which is rather simple.) This figure +depicts the "Right Way" [TM] this should be done:<p> + +<img src="imgs/File-Gen-Future.png"><p> + +Checkout a <a href="../tools/CCIDL/README">list of things to do</a> for implementing CIDL compiler.<p> + +I think it is debatable whether we should merge the "Servant DLL" and +"Component Implementation DLL" into one DLL. Me think not. My +approach, however, creates some complication on requireing a mechanism +to locate the servant code (and DLL) from component implementation. + + +<h2>Libraries Dependencies</h2> Implementing a component creates 3 +DLL's as shown in the above figure. Both "Servant DLL" and "Component +Implementation DLL" depend on the "Client DLL". "Servant DLL" and +"Component Implementation DLL" are not mutually dependent, however. +All the generated DLLs depends on other TAO and CIAO common +libraries. Here's a break down of which libraries depends on which +other libraries: + +<ul> + <li><b>Client DLL</b>: ace.lib tao.lib TAO_IFR_Client.lib + CIAO_Clientd.lib + <li><b>Servant DLL</b>: ace.lib tao.lib <b>Client DLL</b> + TAO_IFR_Client.lib TAO_PortableServer.lib TAO_Security.lib + CIAO_Container.lib CIAO_Client.lib + <li><b>Component Implementation DLL</b>: ace.lib tao.lib + <b>Client DLL</b> TAO_IFR_Client.lib TAO_Security.lib + CIAO_Container.lib +</ul> + + <!--#include virtual="/~nanbor/signature.html" --> +<!-- <hr> --> +<!-- <\!-- hhmts start -\-> --> +<!-- Last modified: Tue Dec 10 22:41:50 Central Standard Time 2002 --> +<!-- <\!-- hhmts end -\-> --> +<!-- <address>Nanbor Wang <nanbor@cs.wustl.edu></address> --> +</body> </html> diff --git a/modules/CIAO/docs/fm/CIAO.fm b/modules/CIAO/docs/fm/CIAO.fm Binary files differnew file mode 100644 index 00000000000..2d9f30978b4 --- /dev/null +++ b/modules/CIAO/docs/fm/CIAO.fm diff --git a/modules/CIAO/docs/fm/images/CIAO_Component_Container_and_CORBA.eps b/modules/CIAO/docs/fm/images/CIAO_Component_Container_and_CORBA.eps Binary files differnew file mode 100644 index 00000000000..199356e471f --- /dev/null +++ b/modules/CIAO/docs/fm/images/CIAO_Component_Container_and_CORBA.eps diff --git a/modules/CIAO/docs/fm/images/CIAO_Component_Container_and_CORBA.sxd b/modules/CIAO/docs/fm/images/CIAO_Component_Container_and_CORBA.sxd Binary files differnew file mode 100644 index 00000000000..c9274592024 --- /dev/null +++ b/modules/CIAO/docs/fm/images/CIAO_Component_Container_and_CORBA.sxd diff --git a/modules/CIAO/docs/fm/images/CIAO_Components_Administrator_Highlight.eps b/modules/CIAO/docs/fm/images/CIAO_Components_Administrator_Highlight.eps Binary files differnew file mode 100644 index 00000000000..d15f7622a60 --- /dev/null +++ b/modules/CIAO/docs/fm/images/CIAO_Components_Administrator_Highlight.eps diff --git a/modules/CIAO/docs/fm/images/CIAO_Components_Administrator_Highlight.sxd b/modules/CIAO/docs/fm/images/CIAO_Components_Administrator_Highlight.sxd Binary files differnew file mode 100644 index 00000000000..434e9c640ad --- /dev/null +++ b/modules/CIAO/docs/fm/images/CIAO_Components_Administrator_Highlight.sxd diff --git a/modules/CIAO/docs/fm/images/CIAO_Components_Messenger_Highlight.eps b/modules/CIAO/docs/fm/images/CIAO_Components_Messenger_Highlight.eps Binary files differnew file mode 100644 index 00000000000..a59c4c51367 --- /dev/null +++ b/modules/CIAO/docs/fm/images/CIAO_Components_Messenger_Highlight.eps diff --git a/modules/CIAO/docs/fm/images/CIAO_Components_Messenger_Highlight.sxd b/modules/CIAO/docs/fm/images/CIAO_Components_Messenger_Highlight.sxd Binary files differnew file mode 100644 index 00000000000..39f15ee32c3 --- /dev/null +++ b/modules/CIAO/docs/fm/images/CIAO_Components_Messenger_Highlight.sxd diff --git a/modules/CIAO/docs/fm/images/CIAO_Components_Messenger_Runnable_Highlight.eps b/modules/CIAO/docs/fm/images/CIAO_Components_Messenger_Runnable_Highlight.eps Binary files differnew file mode 100644 index 00000000000..e381ccee506 --- /dev/null +++ b/modules/CIAO/docs/fm/images/CIAO_Components_Messenger_Runnable_Highlight.eps diff --git a/modules/CIAO/docs/fm/images/CIAO_Components_Messenger_Runnable_Highlight.sxd b/modules/CIAO/docs/fm/images/CIAO_Components_Messenger_Runnable_Highlight.sxd Binary files differnew file mode 100644 index 00000000000..e31cea90d52 --- /dev/null +++ b/modules/CIAO/docs/fm/images/CIAO_Components_Messenger_Runnable_Highlight.sxd diff --git a/modules/CIAO/docs/fm/images/CIAO_Components_Receiver_Highlight.eps b/modules/CIAO/docs/fm/images/CIAO_Components_Receiver_Highlight.eps Binary files differnew file mode 100644 index 00000000000..9f45c415037 --- /dev/null +++ b/modules/CIAO/docs/fm/images/CIAO_Components_Receiver_Highlight.eps diff --git a/modules/CIAO/docs/fm/images/CIAO_Components_Receiver_Highlight.sxd b/modules/CIAO/docs/fm/images/CIAO_Components_Receiver_Highlight.sxd Binary files differnew file mode 100644 index 00000000000..61beec7cae2 --- /dev/null +++ b/modules/CIAO/docs/fm/images/CIAO_Components_Receiver_Highlight.sxd diff --git a/modules/CIAO/docs/fm/images/CIAO_Descriptors_Administrator.eps b/modules/CIAO/docs/fm/images/CIAO_Descriptors_Administrator.eps Binary files differnew file mode 100644 index 00000000000..520d868bdf9 --- /dev/null +++ b/modules/CIAO/docs/fm/images/CIAO_Descriptors_Administrator.eps diff --git a/modules/CIAO/docs/fm/images/CIAO_Descriptors_Administrator.sxd b/modules/CIAO/docs/fm/images/CIAO_Descriptors_Administrator.sxd Binary files differnew file mode 100644 index 00000000000..b7075b1d398 --- /dev/null +++ b/modules/CIAO/docs/fm/images/CIAO_Descriptors_Administrator.sxd diff --git a/modules/CIAO/docs/fm/images/CIAO_Descriptors_Application.eps b/modules/CIAO/docs/fm/images/CIAO_Descriptors_Application.eps Binary files differnew file mode 100644 index 00000000000..f291c21aa79 --- /dev/null +++ b/modules/CIAO/docs/fm/images/CIAO_Descriptors_Application.eps diff --git a/modules/CIAO/docs/fm/images/CIAO_Descriptors_Application.sxd b/modules/CIAO/docs/fm/images/CIAO_Descriptors_Application.sxd Binary files differnew file mode 100644 index 00000000000..fe3745e5fc9 --- /dev/null +++ b/modules/CIAO/docs/fm/images/CIAO_Descriptors_Application.sxd diff --git a/modules/CIAO/docs/fm/images/CIAO_Descriptors_Messenger.eps b/modules/CIAO/docs/fm/images/CIAO_Descriptors_Messenger.eps Binary files differnew file mode 100644 index 00000000000..c1e997bf8f8 --- /dev/null +++ b/modules/CIAO/docs/fm/images/CIAO_Descriptors_Messenger.eps diff --git a/modules/CIAO/docs/fm/images/CIAO_Descriptors_Messenger.sxd b/modules/CIAO/docs/fm/images/CIAO_Descriptors_Messenger.sxd Binary files differnew file mode 100644 index 00000000000..ee5286986b0 --- /dev/null +++ b/modules/CIAO/docs/fm/images/CIAO_Descriptors_Messenger.sxd diff --git a/modules/CIAO/docs/fm/images/CIAO_Descriptors_Messenger_Assembly.eps b/modules/CIAO/docs/fm/images/CIAO_Descriptors_Messenger_Assembly.eps Binary files differnew file mode 100644 index 00000000000..924c5e62d11 --- /dev/null +++ b/modules/CIAO/docs/fm/images/CIAO_Descriptors_Messenger_Assembly.eps diff --git a/modules/CIAO/docs/fm/images/CIAO_Descriptors_Messenger_Assembly.sxd b/modules/CIAO/docs/fm/images/CIAO_Descriptors_Messenger_Assembly.sxd Binary files differnew file mode 100644 index 00000000000..fc4c07c269a --- /dev/null +++ b/modules/CIAO/docs/fm/images/CIAO_Descriptors_Messenger_Assembly.sxd diff --git a/modules/CIAO/docs/fm/images/CIAO_Descriptors_Receiver.eps b/modules/CIAO/docs/fm/images/CIAO_Descriptors_Receiver.eps Binary files differnew file mode 100644 index 00000000000..ff3c3b74733 --- /dev/null +++ b/modules/CIAO/docs/fm/images/CIAO_Descriptors_Receiver.eps diff --git a/modules/CIAO/docs/fm/images/CIAO_Descriptors_Receiver.sxd b/modules/CIAO/docs/fm/images/CIAO_Descriptors_Receiver.sxd Binary files differnew file mode 100644 index 00000000000..67555eb68a4 --- /dev/null +++ b/modules/CIAO/docs/fm/images/CIAO_Descriptors_Receiver.sxd diff --git a/modules/CIAO/docs/fm/images/CIAO_Generic_Component_Diagram.eps b/modules/CIAO/docs/fm/images/CIAO_Generic_Component_Diagram.eps Binary files differnew file mode 100644 index 00000000000..9999c12552e --- /dev/null +++ b/modules/CIAO/docs/fm/images/CIAO_Generic_Component_Diagram.eps diff --git a/modules/CIAO/docs/fm/images/CIAO_Generic_Component_Diagram.sxd b/modules/CIAO/docs/fm/images/CIAO_Generic_Component_Diagram.sxd Binary files differnew file mode 100644 index 00000000000..9b0cb8c21f2 --- /dev/null +++ b/modules/CIAO/docs/fm/images/CIAO_Generic_Component_Diagram.sxd diff --git a/modules/CIAO/docs/fm/images/CIAO_IDL3_to_IDL2_Files.eps b/modules/CIAO/docs/fm/images/CIAO_IDL3_to_IDL2_Files.eps Binary files differnew file mode 100644 index 00000000000..4d541937873 --- /dev/null +++ b/modules/CIAO/docs/fm/images/CIAO_IDL3_to_IDL2_Files.eps diff --git a/modules/CIAO/docs/fm/images/CIAO_IDL3_to_IDL2_Files.sxd b/modules/CIAO/docs/fm/images/CIAO_IDL3_to_IDL2_Files.sxd Binary files differnew file mode 100644 index 00000000000..861f5a15cdb --- /dev/null +++ b/modules/CIAO/docs/fm/images/CIAO_IDL3_to_IDL2_Files.sxd diff --git a/modules/CIAO/docs/fm/images/CIAO_IDL_CIDL_Files.eps b/modules/CIAO/docs/fm/images/CIAO_IDL_CIDL_Files.eps Binary files differnew file mode 100644 index 00000000000..6df8ae5272e --- /dev/null +++ b/modules/CIAO/docs/fm/images/CIAO_IDL_CIDL_Files.eps diff --git a/modules/CIAO/docs/fm/images/CIAO_IDL_CIDL_Files.sxd b/modules/CIAO/docs/fm/images/CIAO_IDL_CIDL_Files.sxd Binary files differnew file mode 100644 index 00000000000..8c1f626ed6c --- /dev/null +++ b/modules/CIAO/docs/fm/images/CIAO_IDL_CIDL_Files.sxd diff --git a/modules/CIAO/docs/fm/images/CIAO_IDL_CIDL_Files_CIDL_Highlight.eps b/modules/CIAO/docs/fm/images/CIAO_IDL_CIDL_Files_CIDL_Highlight.eps Binary files differnew file mode 100644 index 00000000000..dc77e8e97ec --- /dev/null +++ b/modules/CIAO/docs/fm/images/CIAO_IDL_CIDL_Files_CIDL_Highlight.eps diff --git a/modules/CIAO/docs/fm/images/CIAO_IDL_CIDL_Files_CIDL_Highlight.sxd b/modules/CIAO/docs/fm/images/CIAO_IDL_CIDL_Files_CIDL_Highlight.sxd Binary files differnew file mode 100644 index 00000000000..aab58862aca --- /dev/null +++ b/modules/CIAO/docs/fm/images/CIAO_IDL_CIDL_Files_CIDL_Highlight.sxd diff --git a/modules/CIAO/docs/fm/images/CIAO_MessengerHome_Class_Diagram.eps b/modules/CIAO/docs/fm/images/CIAO_MessengerHome_Class_Diagram.eps Binary files differnew file mode 100644 index 00000000000..1fec26375aa --- /dev/null +++ b/modules/CIAO/docs/fm/images/CIAO_MessengerHome_Class_Diagram.eps diff --git a/modules/CIAO/docs/fm/images/CIAO_MessengerHome_Class_Diagram.sxd b/modules/CIAO/docs/fm/images/CIAO_MessengerHome_Class_Diagram.sxd Binary files differnew file mode 100644 index 00000000000..b641b2cd3c9 --- /dev/null +++ b/modules/CIAO/docs/fm/images/CIAO_MessengerHome_Class_Diagram.sxd diff --git a/modules/CIAO/docs/fm/images/CIAO_Messenger_Class_Diagram.eps b/modules/CIAO/docs/fm/images/CIAO_Messenger_Class_Diagram.eps Binary files differnew file mode 100644 index 00000000000..b68053dd664 --- /dev/null +++ b/modules/CIAO/docs/fm/images/CIAO_Messenger_Class_Diagram.eps diff --git a/modules/CIAO/docs/fm/images/CIAO_Messenger_Class_Diagram.sxd b/modules/CIAO/docs/fm/images/CIAO_Messenger_Class_Diagram.sxd Binary files differnew file mode 100644 index 00000000000..287fc0c97bc --- /dev/null +++ b/modules/CIAO/docs/fm/images/CIAO_Messenger_Class_Diagram.sxd diff --git a/modules/CIAO/docs/fm/images/CIAO_Messenger_Component_Diagram.eps b/modules/CIAO/docs/fm/images/CIAO_Messenger_Component_Diagram.eps Binary files differnew file mode 100644 index 00000000000..0eb8ae53773 --- /dev/null +++ b/modules/CIAO/docs/fm/images/CIAO_Messenger_Component_Diagram.eps diff --git a/modules/CIAO/docs/fm/images/CIAO_Messenger_Component_Diagram.sxd b/modules/CIAO/docs/fm/images/CIAO_Messenger_Component_Diagram.sxd Binary files differnew file mode 100644 index 00000000000..34dc595d299 --- /dev/null +++ b/modules/CIAO/docs/fm/images/CIAO_Messenger_Component_Diagram.sxd diff --git a/modules/CIAO/docs/fm/images/CIAO_Messenger_Deployment_Diagram.eps b/modules/CIAO/docs/fm/images/CIAO_Messenger_Deployment_Diagram.eps Binary files differnew file mode 100644 index 00000000000..4beae29323f --- /dev/null +++ b/modules/CIAO/docs/fm/images/CIAO_Messenger_Deployment_Diagram.eps diff --git a/modules/CIAO/docs/fm/images/CIAO_Messenger_Deployment_Diagram.sxd b/modules/CIAO/docs/fm/images/CIAO_Messenger_Deployment_Diagram.sxd Binary files differnew file mode 100644 index 00000000000..4a28077f309 --- /dev/null +++ b/modules/CIAO/docs/fm/images/CIAO_Messenger_Deployment_Diagram.sxd diff --git a/modules/CIAO/docs/fm/images/CIAO_Messenger_Deployment_Diagram_All_Connections_Highlight.eps b/modules/CIAO/docs/fm/images/CIAO_Messenger_Deployment_Diagram_All_Connections_Highlight.eps Binary files differnew file mode 100644 index 00000000000..785b42673da --- /dev/null +++ b/modules/CIAO/docs/fm/images/CIAO_Messenger_Deployment_Diagram_All_Connections_Highlight.eps diff --git a/modules/CIAO/docs/fm/images/CIAO_Messenger_Deployment_Diagram_All_Connections_Highlight.sxd b/modules/CIAO/docs/fm/images/CIAO_Messenger_Deployment_Diagram_All_Connections_Highlight.sxd Binary files differnew file mode 100644 index 00000000000..0b4f235a918 --- /dev/null +++ b/modules/CIAO/docs/fm/images/CIAO_Messenger_Deployment_Diagram_All_Connections_Highlight.sxd diff --git a/modules/CIAO/docs/fm/images/CIAO_Messenger_Deployment_Diagram_All_Nodes_Highlight.eps b/modules/CIAO/docs/fm/images/CIAO_Messenger_Deployment_Diagram_All_Nodes_Highlight.eps Binary files differnew file mode 100644 index 00000000000..16b34a2ce5e --- /dev/null +++ b/modules/CIAO/docs/fm/images/CIAO_Messenger_Deployment_Diagram_All_Nodes_Highlight.eps diff --git a/modules/CIAO/docs/fm/images/CIAO_Messenger_Deployment_Diagram_All_Nodes_Highlight.sxd b/modules/CIAO/docs/fm/images/CIAO_Messenger_Deployment_Diagram_All_Nodes_Highlight.sxd Binary files differnew file mode 100644 index 00000000000..ec31dff72fd --- /dev/null +++ b/modules/CIAO/docs/fm/images/CIAO_Messenger_Deployment_Diagram_All_Nodes_Highlight.sxd diff --git a/modules/CIAO/docs/fm/images/CIAO_Messenger_Deployment_Diagram_Connection_Highlight.eps b/modules/CIAO/docs/fm/images/CIAO_Messenger_Deployment_Diagram_Connection_Highlight.eps Binary files differnew file mode 100644 index 00000000000..a4d12ef666d --- /dev/null +++ b/modules/CIAO/docs/fm/images/CIAO_Messenger_Deployment_Diagram_Connection_Highlight.eps diff --git a/modules/CIAO/docs/fm/images/CIAO_Messenger_Deployment_Diagram_Connection_Highlight.sxd b/modules/CIAO/docs/fm/images/CIAO_Messenger_Deployment_Diagram_Connection_Highlight.sxd Binary files differnew file mode 100644 index 00000000000..109aa0d33fc --- /dev/null +++ b/modules/CIAO/docs/fm/images/CIAO_Messenger_Deployment_Diagram_Connection_Highlight.sxd diff --git a/modules/CIAO/docs/fm/images/CIAO_Messenger_Deployment_Diagram_Node_Highlight.eps b/modules/CIAO/docs/fm/images/CIAO_Messenger_Deployment_Diagram_Node_Highlight.eps Binary files differnew file mode 100644 index 00000000000..fe802ede9b8 --- /dev/null +++ b/modules/CIAO/docs/fm/images/CIAO_Messenger_Deployment_Diagram_Node_Highlight.eps diff --git a/modules/CIAO/docs/fm/images/CIAO_Messenger_Deployment_Diagram_Node_Highlight.sxd b/modules/CIAO/docs/fm/images/CIAO_Messenger_Deployment_Diagram_Node_Highlight.sxd Binary files differnew file mode 100644 index 00000000000..e273d767461 --- /dev/null +++ b/modules/CIAO/docs/fm/images/CIAO_Messenger_Deployment_Diagram_Node_Highlight.sxd diff --git a/modules/CIAO/docs/fm/images/CIAO_Messenger_IDL_Generated_Class_Diagram.eps b/modules/CIAO/docs/fm/images/CIAO_Messenger_IDL_Generated_Class_Diagram.eps Binary files differnew file mode 100644 index 00000000000..52336bee092 --- /dev/null +++ b/modules/CIAO/docs/fm/images/CIAO_Messenger_IDL_Generated_Class_Diagram.eps diff --git a/modules/CIAO/docs/fm/images/CIAO_Messenger_IDL_Generated_Class_Diagram.sxd b/modules/CIAO/docs/fm/images/CIAO_Messenger_IDL_Generated_Class_Diagram.sxd Binary files differnew file mode 100644 index 00000000000..374744638e8 --- /dev/null +++ b/modules/CIAO/docs/fm/images/CIAO_Messenger_IDL_Generated_Class_Diagram.sxd diff --git a/modules/CIAO/docs/fm/images/CIAO_Messenger_Interaction_Diagram.eps b/modules/CIAO/docs/fm/images/CIAO_Messenger_Interaction_Diagram.eps Binary files differnew file mode 100644 index 00000000000..dcfe7db00a8 --- /dev/null +++ b/modules/CIAO/docs/fm/images/CIAO_Messenger_Interaction_Diagram.eps diff --git a/modules/CIAO/docs/fm/images/CIAO_Messenger_Interaction_Diagram.sxd b/modules/CIAO/docs/fm/images/CIAO_Messenger_Interaction_Diagram.sxd Binary files differnew file mode 100644 index 00000000000..bb39ca53a27 --- /dev/null +++ b/modules/CIAO/docs/fm/images/CIAO_Messenger_Interaction_Diagram.sxd diff --git a/modules/CIAO/docs/fm/images/CIAO_Roadmap_01.eps b/modules/CIAO/docs/fm/images/CIAO_Roadmap_01.eps Binary files differnew file mode 100644 index 00000000000..9b1f7e7337c --- /dev/null +++ b/modules/CIAO/docs/fm/images/CIAO_Roadmap_01.eps diff --git a/modules/CIAO/docs/fm/images/CIAO_Roadmap_01.sxd b/modules/CIAO/docs/fm/images/CIAO_Roadmap_01.sxd Binary files differnew file mode 100644 index 00000000000..8227c8d1ca1 --- /dev/null +++ b/modules/CIAO/docs/fm/images/CIAO_Roadmap_01.sxd diff --git a/modules/CIAO/docs/fm/images/CIAO_Roadmap_02.eps b/modules/CIAO/docs/fm/images/CIAO_Roadmap_02.eps Binary files differnew file mode 100644 index 00000000000..166f1fbdb3c --- /dev/null +++ b/modules/CIAO/docs/fm/images/CIAO_Roadmap_02.eps diff --git a/modules/CIAO/docs/fm/images/CIAO_Roadmap_02.sxd b/modules/CIAO/docs/fm/images/CIAO_Roadmap_02.sxd Binary files differnew file mode 100644 index 00000000000..499b12e8023 --- /dev/null +++ b/modules/CIAO/docs/fm/images/CIAO_Roadmap_02.sxd diff --git a/modules/CIAO/docs/fm/images/CIAO_Roadmap_03.eps b/modules/CIAO/docs/fm/images/CIAO_Roadmap_03.eps Binary files differnew file mode 100644 index 00000000000..e91f91330b7 --- /dev/null +++ b/modules/CIAO/docs/fm/images/CIAO_Roadmap_03.eps diff --git a/modules/CIAO/docs/fm/images/CIAO_Roadmap_03.sxd b/modules/CIAO/docs/fm/images/CIAO_Roadmap_03.sxd Binary files differnew file mode 100644 index 00000000000..710fbf2b247 --- /dev/null +++ b/modules/CIAO/docs/fm/images/CIAO_Roadmap_03.sxd diff --git a/modules/CIAO/docs/fm/images/CIAO_Roadmap_04.eps b/modules/CIAO/docs/fm/images/CIAO_Roadmap_04.eps Binary files differnew file mode 100644 index 00000000000..8b5b1a6b01c --- /dev/null +++ b/modules/CIAO/docs/fm/images/CIAO_Roadmap_04.eps diff --git a/modules/CIAO/docs/fm/images/CIAO_Roadmap_04.sxd b/modules/CIAO/docs/fm/images/CIAO_Roadmap_04.sxd Binary files differnew file mode 100644 index 00000000000..f163a28db22 --- /dev/null +++ b/modules/CIAO/docs/fm/images/CIAO_Roadmap_04.sxd diff --git a/modules/CIAO/docs/fm/images/CIAO_Roadmap_05.eps b/modules/CIAO/docs/fm/images/CIAO_Roadmap_05.eps Binary files differnew file mode 100644 index 00000000000..4fe79d1f1b6 --- /dev/null +++ b/modules/CIAO/docs/fm/images/CIAO_Roadmap_05.eps diff --git a/modules/CIAO/docs/fm/images/CIAO_Roadmap_05.sxd b/modules/CIAO/docs/fm/images/CIAO_Roadmap_05.sxd Binary files differnew file mode 100644 index 00000000000..7a2add97011 --- /dev/null +++ b/modules/CIAO/docs/fm/images/CIAO_Roadmap_05.sxd diff --git a/modules/CIAO/docs/fm/images/CIAO_Roadmap_06.eps b/modules/CIAO/docs/fm/images/CIAO_Roadmap_06.eps Binary files differnew file mode 100644 index 00000000000..5564282e65b --- /dev/null +++ b/modules/CIAO/docs/fm/images/CIAO_Roadmap_06.eps diff --git a/modules/CIAO/docs/fm/images/CIAO_Roadmap_06.sxd b/modules/CIAO/docs/fm/images/CIAO_Roadmap_06.sxd Binary files differnew file mode 100644 index 00000000000..8121ceb64b7 --- /dev/null +++ b/modules/CIAO/docs/fm/images/CIAO_Roadmap_06.sxd diff --git a/modules/CIAO/docs/fm/images/CIAO_Roadmap_07.eps b/modules/CIAO/docs/fm/images/CIAO_Roadmap_07.eps Binary files differnew file mode 100644 index 00000000000..5e279f30297 --- /dev/null +++ b/modules/CIAO/docs/fm/images/CIAO_Roadmap_07.eps diff --git a/modules/CIAO/docs/fm/images/CIAO_Roadmap_07.sxd b/modules/CIAO/docs/fm/images/CIAO_Roadmap_07.sxd Binary files differnew file mode 100644 index 00000000000..884efe0ea5e --- /dev/null +++ b/modules/CIAO/docs/fm/images/CIAO_Roadmap_07.sxd diff --git a/modules/CIAO/docs/fm/images/CIAO_Roadmap_08.eps b/modules/CIAO/docs/fm/images/CIAO_Roadmap_08.eps Binary files differnew file mode 100644 index 00000000000..d56e2626795 --- /dev/null +++ b/modules/CIAO/docs/fm/images/CIAO_Roadmap_08.eps diff --git a/modules/CIAO/docs/fm/images/CIAO_Roadmap_08.sxd b/modules/CIAO/docs/fm/images/CIAO_Roadmap_08.sxd Binary files differnew file mode 100644 index 00000000000..7e53c97fdbb --- /dev/null +++ b/modules/CIAO/docs/fm/images/CIAO_Roadmap_08.sxd diff --git a/modules/CIAO/docs/fm/images/CIAO_Roadmap_09.eps b/modules/CIAO/docs/fm/images/CIAO_Roadmap_09.eps Binary files differnew file mode 100644 index 00000000000..06272f3d65d --- /dev/null +++ b/modules/CIAO/docs/fm/images/CIAO_Roadmap_09.eps diff --git a/modules/CIAO/docs/fm/images/CIAO_Roadmap_09.sxd b/modules/CIAO/docs/fm/images/CIAO_Roadmap_09.sxd Binary files differnew file mode 100644 index 00000000000..f43524d5eb8 --- /dev/null +++ b/modules/CIAO/docs/fm/images/CIAO_Roadmap_09.sxd diff --git a/modules/CIAO/docs/fm/images/CIAO_Roadmap_Overview.eps b/modules/CIAO/docs/fm/images/CIAO_Roadmap_Overview.eps Binary files differnew file mode 100644 index 00000000000..65ae8c9de46 --- /dev/null +++ b/modules/CIAO/docs/fm/images/CIAO_Roadmap_Overview.eps diff --git a/modules/CIAO/docs/fm/images/CIAO_Roadmap_Overview.sxd b/modules/CIAO/docs/fm/images/CIAO_Roadmap_Overview.sxd Binary files differnew file mode 100644 index 00000000000..7d7eaebd5a1 --- /dev/null +++ b/modules/CIAO/docs/fm/images/CIAO_Roadmap_Overview.sxd diff --git a/modules/CIAO/docs/fm/images/CIAO_Runnable_Class_Diagram.eps b/modules/CIAO/docs/fm/images/CIAO_Runnable_Class_Diagram.eps Binary files differnew file mode 100644 index 00000000000..a27d4af7d68 --- /dev/null +++ b/modules/CIAO/docs/fm/images/CIAO_Runnable_Class_Diagram.eps diff --git a/modules/CIAO/docs/fm/images/CIAO_Runnable_Class_Diagram.sxd b/modules/CIAO/docs/fm/images/CIAO_Runnable_Class_Diagram.sxd Binary files differnew file mode 100644 index 00000000000..c15bd72becc --- /dev/null +++ b/modules/CIAO/docs/fm/images/CIAO_Runnable_Class_Diagram.sxd diff --git a/modules/CIAO/docs/fm/images/OCILOGO_bw_book.eps b/modules/CIAO/docs/fm/images/OCILOGO_bw_book.eps Binary files differnew file mode 100644 index 00000000000..708fd10aae9 --- /dev/null +++ b/modules/CIAO/docs/fm/images/OCILOGO_bw_book.eps diff --git a/modules/CIAO/docs/generate_component_mpc.html b/modules/CIAO/docs/generate_component_mpc.html new file mode 100644 index 00000000000..101f0734d0f --- /dev/null +++ b/modules/CIAO/docs/generate_component_mpc.html @@ -0,0 +1,84 @@ +<!doctype html public "-//w3c//dtd html 4.0 transitional//en"> +<html> + <head> + <title>TAO IDL compiler User's Guide</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> + <meta name="GENERATOR" content="Mozilla/4.5 [en] (X11; I; SunOS 5.5.1 sun4u) [Netscape]"> + <!-- $Id$ --> + </head> + <body text="#000000" bgcolor="#ffffff" link="#0000ff" vlink="#cc0000"> + <hr> + <h3>Using The generate_component_mpc.pl Script</h3> + This document describes the options and usage of the Perl script <tt>generate_component_mpc.pl</tt> + in the <tt>$(CIAO_ROOT)/bin</tt> directory. + <HR> + <P> + <h4>Assumptions</h4> + This script is useful for generating MPC files for relatively simple component + applications. The string name passed to the script should be the name of the <em>single</em> + IDL file for that build (without the extension). The names of export files, preprocessor + macros, and library names in the generated MPC file will all be constructed + from this string. It is also assumed that the IDL file for a component build + will contain a single component declaration. + <P> + Judicious use of the script options in the table below will generate a build + that keeps to a minimum both the code generated from IDL and the number of + linked libraries from the middleware. + <P> + <HR> + <h4><A NAME="options">Script Options</A></h4> + <table BORDER="2" CELLSPACING="2" CELLPADDING="0"> + <tr> + <th> + Option</th> + <th> + Description</th> + <th> + Remark</th> + </tr> + <tr> + <a NAME="h"> + <td><tt>-h</tt></td> + <td>The compiler prints out the options that are given below and exits clean + </td> + <td> </td> + </tr> + <tr> + </A> <a NAME="p"> + <td><tt>-p</tt><i> string</i></td> + <td>Indicates another make/project that this one depends on</td> + <td>Used as a project name prefix unless overridden by <tt>-u</tt> option</td> + </tr> + <tr> + </A> <a name="l"> + <td><tt>-l</tt><i> string</i></td> + </TD> + <td>Path to the dependent name value of <tt>-p</tt></td> + <td>Needed only if the dependent make/project isn't already in the search path</td> + </tr> + <tr> + </A> <a name="n"> + <td><tt>-n</tt></td> + <td>Non-component make/project</td> + <td>Generates a <tt>*_stub</tt> and <tt>*_skel</tt> pair of builds, instead of the + default <tt>*_stub</tt>, <tt>*_svnt</tt> and <tt>*_exec</tt> builds.</td> + </tr> + <tr> + </A> <a name="c"> + <td><tt>-c</tt></td> + <td>Create a client make/project</td> + <td>Generates a build for a "driver" executable. Assumes there is a single C++ + source file named <tt>client.cpp</tt></td> + </tr> + <tr> + </A> <a name="u"> + <td><tt>-u</tt></TT><i> string</i></td> + <td>Unique project name prefix</td> + <td>Occasionally needed since MPC doesn't accept duplicate project names anywhere + in the tree over which it is proecessing. This option overrides the value of + the <tt>-p</tt> option, if present</td> + </tr> + </table> + </A> + </body> +</html> diff --git a/modules/CIAO/docs/imgs/CCM-v5.vsd b/modules/CIAO/docs/imgs/CCM-v5.vsd Binary files differnew file mode 100644 index 00000000000..7f4d7539050 --- /dev/null +++ b/modules/CIAO/docs/imgs/CCM-v5.vsd diff --git a/modules/CIAO/docs/imgs/CCM.vsd b/modules/CIAO/docs/imgs/CCM.vsd Binary files differnew file mode 100644 index 00000000000..239a4e7943d --- /dev/null +++ b/modules/CIAO/docs/imgs/CCM.vsd diff --git a/modules/CIAO/docs/imgs/DAnCE-Dynamic.png b/modules/CIAO/docs/imgs/DAnCE-Dynamic.png Binary files differnew file mode 100644 index 00000000000..2e9917e1520 --- /dev/null +++ b/modules/CIAO/docs/imgs/DAnCE-Dynamic.png diff --git a/modules/CIAO/docs/imgs/DAnCE-Dynamic.sxd b/modules/CIAO/docs/imgs/DAnCE-Dynamic.sxd Binary files differnew file mode 100644 index 00000000000..b795c5ae049 --- /dev/null +++ b/modules/CIAO/docs/imgs/DAnCE-Dynamic.sxd diff --git a/modules/CIAO/docs/imgs/File-Gen-Existing.png b/modules/CIAO/docs/imgs/File-Gen-Existing.png Binary files differnew file mode 100644 index 00000000000..8deb5d32fd3 --- /dev/null +++ b/modules/CIAO/docs/imgs/File-Gen-Existing.png diff --git a/modules/CIAO/docs/imgs/File-Gen-Future.png b/modules/CIAO/docs/imgs/File-Gen-Future.png Binary files differnew file mode 100644 index 00000000000..1daef691bdf --- /dev/null +++ b/modules/CIAO/docs/imgs/File-Gen-Future.png diff --git a/modules/CIAO/docs/imgs/File_Generation_Flow.vsd b/modules/CIAO/docs/imgs/File_Generation_Flow.vsd Binary files differnew file mode 100644 index 00000000000..ef6332d49ac --- /dev/null +++ b/modules/CIAO/docs/imgs/File_Generation_Flow.vsd diff --git a/modules/CIAO/docs/imgs/IDL-CIDL-classes.vsd b/modules/CIAO/docs/imgs/IDL-CIDL-classes.vsd Binary files differnew file mode 100644 index 00000000000..0986aa78d70 --- /dev/null +++ b/modules/CIAO/docs/imgs/IDL-CIDL-classes.vsd diff --git a/modules/CIAO/docs/imgs/basic-container.png b/modules/CIAO/docs/imgs/basic-container.png Binary files differnew file mode 100644 index 00000000000..9df767b45a2 --- /dev/null +++ b/modules/CIAO/docs/imgs/basic-container.png diff --git a/modules/CIAO/docs/imgs/ciao-dynamic1.jpg b/modules/CIAO/docs/imgs/ciao-dynamic1.jpg Binary files differnew file mode 100644 index 00000000000..a385ad30848 --- /dev/null +++ b/modules/CIAO/docs/imgs/ciao-dynamic1.jpg diff --git a/modules/CIAO/docs/imgs/ciao-dynamic2.jpg b/modules/CIAO/docs/imgs/ciao-dynamic2.jpg Binary files differnew file mode 100644 index 00000000000..e0a705b9d3a --- /dev/null +++ b/modules/CIAO/docs/imgs/ciao-dynamic2.jpg diff --git a/modules/CIAO/docs/imgs/ciao-static-vs-dynamic.jpg b/modules/CIAO/docs/imgs/ciao-static-vs-dynamic.jpg Binary files differnew file mode 100644 index 00000000000..b876b7a82cb --- /dev/null +++ b/modules/CIAO/docs/imgs/ciao-static-vs-dynamic.jpg diff --git a/modules/CIAO/docs/imgs/ciao-static1.jpg b/modules/CIAO/docs/imgs/ciao-static1.jpg Binary files differnew file mode 100644 index 00000000000..313084ff34d --- /dev/null +++ b/modules/CIAO/docs/imgs/ciao-static1.jpg diff --git a/modules/CIAO/docs/imgs/ciao-static2.jpg b/modules/CIAO/docs/imgs/ciao-static2.jpg Binary files differnew file mode 100644 index 00000000000..86ded87f448 --- /dev/null +++ b/modules/CIAO/docs/imgs/ciao-static2.jpg diff --git a/modules/CIAO/docs/imgs/component-basic.png b/modules/CIAO/docs/imgs/component-basic.png Binary files differnew file mode 100644 index 00000000000..520dc9c4cca --- /dev/null +++ b/modules/CIAO/docs/imgs/component-basic.png diff --git a/modules/CIAO/docs/imgs/dance_arch.jpg b/modules/CIAO/docs/imgs/dance_arch.jpg Binary files differnew file mode 100644 index 00000000000..3c91b912213 --- /dev/null +++ b/modules/CIAO/docs/imgs/dance_arch.jpg diff --git a/modules/CIAO/docs/imgs/dance_arch.vsd b/modules/CIAO/docs/imgs/dance_arch.vsd Binary files differnew file mode 100644 index 00000000000..cfe75fca9c6 --- /dev/null +++ b/modules/CIAO/docs/imgs/dance_arch.vsd diff --git a/modules/CIAO/docs/imgs/deployment.png b/modules/CIAO/docs/imgs/deployment.png Binary files differnew file mode 100644 index 00000000000..4cd8c6be646 --- /dev/null +++ b/modules/CIAO/docs/imgs/deployment.png diff --git a/modules/CIAO/docs/imgs/extended-container.png b/modules/CIAO/docs/imgs/extended-container.png Binary files differnew file mode 100644 index 00000000000..39977e6eb83 --- /dev/null +++ b/modules/CIAO/docs/imgs/extended-container.png diff --git a/modules/CIAO/docs/imgs/home-config.png b/modules/CIAO/docs/imgs/home-config.png Binary files differnew file mode 100644 index 00000000000..aebf5e62751 --- /dev/null +++ b/modules/CIAO/docs/imgs/home-config.png diff --git a/modules/CIAO/docs/imgs/static_dance_arch.jpg b/modules/CIAO/docs/imgs/static_dance_arch.jpg Binary files differnew file mode 100644 index 00000000000..b12694ce348 --- /dev/null +++ b/modules/CIAO/docs/imgs/static_dance_arch.jpg diff --git a/modules/CIAO/docs/imgs/static_dance_arch.vsd b/modules/CIAO/docs/imgs/static_dance_arch.vsd Binary files differnew file mode 100644 index 00000000000..1ca1f50f69d --- /dev/null +++ b/modules/CIAO/docs/imgs/static_dance_arch.vsd diff --git a/modules/CIAO/docs/imgs/static_dance_impl.jpg b/modules/CIAO/docs/imgs/static_dance_impl.jpg Binary files differnew file mode 100644 index 00000000000..cd2f9f0dc81 --- /dev/null +++ b/modules/CIAO/docs/imgs/static_dance_impl.jpg diff --git a/modules/CIAO/docs/imgs/static_dance_impl.vsd b/modules/CIAO/docs/imgs/static_dance_impl.vsd Binary files differnew file mode 100644 index 00000000000..6c21e6139d4 --- /dev/null +++ b/modules/CIAO/docs/imgs/static_dance_impl.vsd diff --git a/modules/CIAO/docs/index.html b/modules/CIAO/docs/index.html new file mode 100644 index 00000000000..9aa2b9969aa --- /dev/null +++ b/modules/CIAO/docs/index.html @@ -0,0 +1,168 @@ +<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> +<html> +<head> +<!-- $Id$ --> + <title>CIAO - Component-Integrated ACE ORB</title> +</head> +<body> +<h1>CIAO - Component-Integrated ACE ORB</h1> +<h2>Introduction</h2> +CIAO is TAO's implementation of <a + href="http://www.omg.org/cgi-bin/doc?formal/02-06-65"> CORBA Component +Model (CCM)</a> specially optimized for distributed real-time embedded +(DRE) systems. +This page contains links to other documents and resources for building +and using CIAO.<br> +<br> +<hr> +<h2>The CIAO Project</h2> +<ul> + <li>The main <a href="http://www.cs.wustl.edu/%7Eschmidt/CIAO.html"> +CIAO project page</a>.</li> + <li><a href="../CIAO-INSTALL.html">Installation instructions</a> for +CIAO<br> + </li> + <li>CIAO <a href="releasenotes/index.html">Status (aka. release +notes.)</a></li> + <li>CIAO <a href="EnvVars.html">Environment Variables</a> <br> + </li> + <li>CIAO <a href="Trace.html">Logging Facility</a><br> + </li> + <li>CIAO <a href="../NEWS">NEWS</a></li> +</ul> +<hr> +<ul> +</ul> +<ul> + <p><!-- + + <li>This <a href="new_components.html">page on implementing new + + component</a> explains all the user-defined and tool-generated + + files when implementing a component.<p> + + + + <li>The <a href="ConfigValues.html">Configuration Name/Value + + lists</a> lists all the configuration values that CIAO will pass + + into vaious CCM mechanisms. The information shown in this page + + is not visible to CIAO end-users, which include modeling tool + + developers. The information that matters for most users is how + + these configurations are represented in various XML + + descriptors and CIDL specifications.<p> + +--> + </p> +</ul> +<h2>CCM-defined Interface Diagrams</h2> +Here is a set of UML diagrams that we use to figure out the +relationship among all the different interfaces in CCM. You can +browse the related part from the following list: +<ul> + <li><a href="imgs/component-basic.png"> Basic component interfaces </a></li> + <li><a href="imgs/home-config.png"> Home and configuration interfaces + </a></li> + <li><a href="imgs/basic-container.png"> Basic container interfaces </a></li> + <li><a href="imgs/extended-container.png"> Extended container +interfaces </a></li> + <li><a href="imgs/DAnCE-Dynamic.png"> Deployment and configuration +(DAnCE) interfaces </a></li> +</ul> +All these diagrams are generated from the <a href="imgs/CCM.vsd">CCM.vsd +Visio file</a> (The same file in Visio V.5 format is <a + href="imgs/CCM-v5.vsd">here</a>.) and OpenOffice source file + <a href="imgs/DAnCE-Dynamic.sxd">DAnCE-Dynamic.sxd</a> <br> +<br> +<hr> +<h2>CIAO's D&C Framework (<a href="http://www.dre.vanderbilt.edu/Doxygen/Current/html/tao/ciao/dance/index.html">DAnCE</a>) part-by-part</h2> +DAnCE's implementation is based on the OMG's Deployment and Configuration +Specification version [ptc/2003-07-08]. Here is a list of the major +actors of CIAO runtime that a user should be aware of. +<ul> + <li><strong>NodeManager:</strong> +A daemon process responsible for managing NodeApplications that reside +in the same physical node.</li> + <p> </p> + <li><strong>NodeApplicationManager:</strong> +A infrastructure component responsible for deploying +locality-constrained applications onto a node. A NodeApplicationManager +is usually created by NodeManager.<br> + </li> + <p> </p> + <li><strong>NodeApplication:</strong> +A component server instance spawned by NodeApplicationManager. <br> + </li> + <p> </p> + <li><strong>ExecutionManager:</strong> +Infrastructure component responsible for executing an component-based +DRE application based on the information from DeploymentPlan.</li> + <p> </p> + <li><strong>DomainApplicationManager</strong>: +Domain-oriented auxiliary component created and used by +ExecutionManager to deploy the component-based DRE application at the +domain level. <br> + <br> + </li> + <li><strong>PlanLauncher</strong></strong>: +Executor component responsible for parsing the XML-based +deploymentplan and passing the plan to ExecutionManager for execution.<br> + <br> +To understand the runtime inter-relationships of various CIAO actors, +you may click <a href="imgs/DAnCE-Dynamic.png">here</a> to see a +sequence diagram that gives you a clear representation of what's +happening when you start a DAnCE-based DRE application. Special thanks +to <a href="mailto:Friedhelm.wolf@gmx.de">Friedhelm Wolf</a> who +initiated and contributed most part of this +diagram.<br> + <br> + </li> +</ul> +<hr> +<h2>CIAO CCM tutorials</h2> +There are several tutorials to help you understand CIAO and CCM: +<ul> + <li> <a + href="http://www.cs.wustl.edu/%7Eschmidt/OMG-CCM-Tutorial.ppt">Tutorial +on the CORBA Component Model (CCM)</a>. This tutorial presents an +overview of the CORBA Component Model (CCM), +describing its key features and illustrating how to write CCM +applications in C++. + <p> </p> + </li> + <li><a href="../examples/Hello"><code>$(CIAO_ROOT)/DAnCE/examples/Hello.</code></a> +This example illustrates how to build and deploy a CIAO based +application <a href="../examples/Hello/step-by-step.html">step-by-step</a>. +There is +also a detailed documentation explaining this example avalable in both <a + href="http://www.dre.vanderbilt.edu/%7Edengg/CCM/CCM_Hello_example.pdf">PDF</a> +and <a + href="http://www.dre.vanderbilt.edu/%7Edengg/CCM/CCM_Hello_example.ppt"> +PowerPoint</a> format.<br> + <br> + </li> + <li><a href="./tutorials/Quoter/Simple">$(CIAO_ROOT)/docs/tutorials/Quoter/Simple</a>. +This example illustrates the implementation of the "famous" Quoter +example in the CIAO world. Please refer to <a + href="tutorials/Quoter/Simple/README.html">README</a> for more +information. </li> <P> + +<li><a +href="./tutorials/CoSMIC/">$(CIAO_ROOT)/docs/tutorials/COSMIC/</a>. +This is a step-by-step tutorial on how to use CoSMIC to +generate deployment descriptors requied by the above <a +href="./tutorials/Quoter/Simple">Quoter</a> example </li> + +</ul> +<!--#include virtual="/~nanbor/signature.html" --><!-- <hr> --><!-- <\!-- hhmts start -\-> --><!-- Last modified: Mon Nov 04 07:55:22 Central Standard Time 2002 --><!-- <\!-- hhmts end -\-> --> +<!-- <address>Nanbor Wang <nanbor@cs.wustl.edu></address> --><!-- LocalWords: CCM UML vsd Visio + + --> +</body> +</html> diff --git a/modules/CIAO/docs/new_components.html b/modules/CIAO/docs/new_components.html new file mode 100644 index 00000000000..db10fca2103 --- /dev/null +++ b/modules/CIAO/docs/new_components.html @@ -0,0 +1,129 @@ +<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> +<!-- $Id$ --> +<html> <head> +<title>Procedures to prepare a new component implementation</title> +</head> + +<body> +<h1>Preparing a new component implementation</h1> + +I am documenting the steps required to prepare a component implementation. +Personally, I prefer to set up a directory to contain only <b>one</b> +component implementation. I believe the procedures outlined below +will work if you have multiple component implementation in the same +IDL files. The purpose of this document is to record the procedures +and steps on how these files relate to each others and how they come +about during the development process.<p> + +Assuming we need to create a new component called +<code><b>Orc</b></code>. Below is the list of files you'll need to +deal with. Our goal is to greatly reduce the number of files you need +to deal with manually... + +<ol> + <li><font color="red"><code><b>Orc</b>.idl</code></font> - This is + the IDL file that contains the component and component home + definitions.<p> + + As you will eventually create 3 DLLs (or shared objects), you + will also need 3 sets of different export macros files as + following.<p> + + <li><code><b>Orc</b>_stub_export.h</code> - This file is generated + using the following command:<p> + + <code>generate_export_file.pl <b>ORC</b>_STUB > <b>Orc</b>_stub_export.h</code><p> + + This file makes macros like <code><b>ORC</b>_STUB_Export</code> + and friends available. They are usually controlled by + <code><b>ORC</b>_STUB_BUILD_DLL</code><p> + + <li><code><b>Orc</b>_svnt_export.h</code> - This file is generated + using the following command:<p> + + <code>generate_export_file.pl <b>ORC</b>_SVNT > <b>Orc</b>_svnt_export.h</code><p> + + This file makes macros like <code><b>ORC</b>_SVNT_Export</code> + and friends available. They are usually controlled by + <code><b>ORC</b>_SVNT_BUILD_DLL</code><p> + + <li><code><b>Orc</b>_exec_export.h</code> - This file is generated + using the following command:<p> + + <code>generate_export_file.pl <b>ORC</b>_EXEC > <b>Orc</b>_exec_export.h</code><p> + + This file makes macros like <code><b>ORC</b>_EXEC_Export</code> + and friends available. They are usually controlled by + <code><b>ORC</b>_EXEC_BUILD_DLL</code><p> + + <li><code><b>Orc</b>E.idl</code> - Component Executor equivalent + interface definitions. This file should be generated + automatically by the CIDL compiler as illustrated in this + <a href="com-impl.html">file</a> but we currently are still + working on the implementation of the CIDL compiler. Therefore, + you still need to create this file manually.<p> + + <li><font color="red"><code><b>Orc</b>EI.idl</code></font> - + Optional Component Executor implementation interface + definitions. Often time, when you implement a non-trivial + monolithic component implementation, you are required to define + the monolithic local executor interface which often inherits + from the component monolithic executor interface and all the + provided interfaces. The actually executor implementation will + inherit from this user defined interface instead of the default + executor mapping defined in <code><b>Orc</b>E.idl</code>. You + will need to do the same when you wish to support non-vanilla + component interface, such as + <code>Components::SessionComponent</code>, and/or + <code>Components::SessionSynchronization</code>.<p> + + Ideally, it would be perfect if we can auto-generate this + optional IDL file using CIDL compiler. However, I'm not sure + the plan CIDL language contains enough information that's + required to generate this file.<p> + + <li><font color="red"><code><b>Orc</b>_exec.*</code></font> - These + are files containing the actually component implementation that + you have to write manually. It, however, depends on the + equivalent executor IDL definition (that will be) generated by + the CIDL files.<p> + + <li><code><b>Orb</b>_svnt.*</code> - These are files containing the + servant glue code that bridge a container to the component + executor that you implement. Like the component executor + mapping IDL file, these files should be generated by the CIDL + compiler but are currently generated manually.<p> + + <li><code><b>Orc</b>.csd</code> - Component Softpkg Descriptor. We + need some kind of tool to generate this file automatically. It + is currently being generated manually, however.<p> + + + <li><code><b>Orc</b>.ssd</code> - Servant Softpkg Descriptor. This + is a CIAO extension descriptor file which uses the same softpkg + DTD as described in CCM spec. CIAO requires this file because + CIAO separates the executors into a completely separate DLL. + Like <code><b>Orc</b>.csd</code>, this file should be generated + automatically through some tool, but it is currently manually + crafted.<p> + + <li><code><b>Orc</b>.ccd</code> - CORBA Component Descriptor. This + file is currently being generated manually thou a template + should really be generated by CIAO's CIDL compiler.<p> + + <li><font color="red"><code><b>Orc</b>.mpc</code></font> - Makefile + Project Creator definition file. There is a perl script to + generate a minimal MPC definition at + <code>$(CIAO_ROOT)/bin/generate_component_mpc.pl</code> so + people can use it to implement the simplest component + implementation outlined in this file.<p> + +</ol> + + +<hr> +<address></address> +<!-- hhmts start --> +Last modified: Fri Mar 21 16:06:48 Central Standard Time 2003 +<!-- hhmts end --> +</body> </html> diff --git a/modules/CIAO/docs/releasenotes/dance.html b/modules/CIAO/docs/releasenotes/dance.html new file mode 100644 index 00000000000..6980860b3c8 --- /dev/null +++ b/modules/CIAO/docs/releasenotes/dance.html @@ -0,0 +1,229 @@ +<?xml version="1.0" encoding="iso-8859-1" ?> +<!-- $Id$ --> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> + <head> + <title>Deployment And Configuration Engine (DAnCE) Release Notes</title> + </head> + + <body> + <h1>Deployment And Configuration Engine (DAnCE) Release Notes</h1> + + <p><b>D</b>eployment <b>An</b>d <b>C</b>onfiguration <b>E</b>ngine + <b>(DAnCE)</b> is an implementation of the run-time infrastructure as + defined by the final adopted <a + href="http://www.omg.org/cgi-bin/doc?ptc/2003-07-08">OMG Deployment & + Configuration (D&C) specification (ptc/2003-07-08)</a>, which deals with the + configuration and deployment of component-based applications. Currently + DAnCE only supports the deployment & configuration of CORBA + Component Model (CCM)-based applications, though we are interested in + generalizing it for other component models in future work. DAnCE uses + XML descriptors to drive the deployment it performs. One way to + generate these descriptors is using the <b>Co</b>mponent + <b>S</b>ynthesis using <b>M</b>odel-<b>I</b>ntegrated <b>C</b>omputing + (<a href="http://www.dre.vanderbilt.edu/cosmic">CoSMIC</a>) tool-suite. + DAnCE currently uses <b>C</b>omponent <b>I</b>ntegrated <b>A</b>CE + <b>O</b>RB (<a href="http://www.dre.vanderbilt.edu/CIAO">CIAO</a>) as + the underlying CCM implementation in the current release, though again + we are interested in generalizing it for other CCM implementations in + future work. + </p> + + <h3>D&C XML Schema Handling</h3> + + <p> The XML handlers shipped with DAnCE are capable of handling almost + all elements that are defined in the D&C schema. In this context, + handling refers to reading the XML tags and converting them to the + equivalent in-memory IDL-based data structures defined by the + specifications. DAnCE supports the following types of descriptors + specified in the D&C specification:</p> + <ul> + <li> + <p> + <b>CORBA Component Descriptor(.ccd)</b> – + Contains information about component interfaces including + component ports. + </p> + </li> + <li> + <p> + <b>Component Implementation Descriptor(.cid)</b> + – Contains information about component implementations + which might be either monolithic or assembly based. In the case + of assembly based implementations, this descriptor also captures + the dependencies and the connections among components + </p> + </li> + <li> + <p> + <b>Implementation Artifact Descriptor(.iad)</b> + – Contains information about implementation artifacts + in-cluding dependencies between such artifacts + </p> + </li> + <li> + <p> + <b>Component Package Descriptor(.cpd)</b> – + Contains information about grouping of multiple imple-mentations + of the same component interface into component packages + </p> + </li> + <li> + <p> + <b>Package Configuration Descriptor(.pcd)</b> + – Contains information about specific configurations of + such component packages + </p> + </li> + <li> + <p> + <b>Component Domain Descriptor(.cdd)</b> – + Contains information about the target environment in which the + component-based application will be deployed + </p> + </li> + <li> + <p> + <b>TopLevel Package Descriptor(.tpd)</b> – Contains + information identifying the top-level element in a component + package descriptor which might include information about multiple + elements + </p> + </li> + + <li> + <p> + <b>Component Deployment Plan(.cdp)</b> – Contains + information that actually drives the deployment including + information about individual components that represent the + leaf-nodes in case of a hierarchical assembly, connections + between components, and assignment of components to nodes etc. + </p> + </li> + </ul> + <p> For all the above elements, DAnCE supports proxying of the elements + as defined by XMI, i.e, DAnCE supports both parsing of the elements + inline and reference through <b><code>href</code></b> attribute. Some + D&C schema elements are however not handled, including:</p> + <ul> + <li> + <p> + <b>Deployment:Any</b> – This is a complex + element that is composed of many sub-elements. Currently, DAnCE + only parses a subset of the sub-elements of + <b><code>Deployment:Any</code></b>. Specifically, DAnCE supports all the + basic data types defined as part of <b><code>Deployment:Any</code></b>, + and doesn't understand any complex types. + </p> + </li> + <li> + <p> + <b>xmi:Extension</b> – This element allows the + augmention of the standard D&C schema with user-defined + elements. Currently DAnCE doesn't support user-defined extensions + to the schema. + </p> + </li> + <li> + <p> + <b>Deployment:Requirement</b> – This element is + allows the description of requirements of component-based + applications. Since handling this description requires interaction + with the <b><code>TargetManager</code></b> interface (which is not yet + supported), support for <b><code>Deployment:Requirement</code></b> is not + present. + </p> + </li> + <li> + <p> + <b>Deployment:ComponentPropertyDescriptioncode></b> – + This element is used to specify default values for attributes of + component. DAnCE doesn't support setting the values for attributes + of components using this tag. + </p> + </li> + <li> + <p> + <b>Deployment:ComponentExternalPortEndpoint, + Deployment:ExternalReferenceEndpoint</b> – These + elements are used to specify connections between ports of + components in one assembly with ports of components in a different + assembly, or connections between component ports and external + connection endpoints. These features are needed to support + assemblies of components. DAnCE doesn't support yet hierarchical + assemblies, i.e., creation of assemblies which can themselves + contain sub-assemblies. + </p> + </li> + <li> + <p> + <b>Deployment:PlanPropertyMapping</b> – This + element is used to delegate property mapping between a component's + external properties to properties of subcomponents that actually + implement the behavior of the larger component. Since DAnCE doesn't + support hierarchical assemblies, this tag is not yet supported. + </p> + </li> + </ul> + <p> We plan to support these features in future versions of DAnCE. + </p> + <hr /> + <h3> D&C Management Interfaces</h3> + + <p> The D&C specification defines a set of standard CORBA + interfaces that are used to perform the deployment of component-based + applications. These interfaces depend on the in-memory IDL data + structures that are built by DAnCE's XML handlers. Below we outline the + list of interfaces defined by the specification and the level of + support for each interface in DAnCE:</p> + <ul> + <li> + <p> + <b>RepositoryManager</b> – Only the + <b><code>installPackage()</code></b> and <b><code>findPackageByName()</code></b> + operations of this interface are implemented. + </p> + </li> + <li> + <p> + <b>TargetManager</b> – This interface has not + been implemented at all. Implementation of this interface is + planned for the future. + </p> + </li> + <li> + <p> + <b>ExecutionManager</b> – All operations defined + in this interface are implemented. + </p> + </li> + <li> + <p> + <b>DomainApplicationManager, DomainApplication</b> + – All operations except <b><code>getApplications()</code></b> + operation of DomainApplicationManager are implemented. + </p> + </li> + <li> + <p> + <b>NodeManager </b>– All operations except <strong><code>joinDomain()</code></strong> and <strong><code>leaveDomain()</code></strong> operations of NodeManager are implemented. </p> + </li> + <li> + <p><b> NodeApplicationManager, NodeApplication</b> – All operations defined in these interfaces are + implemented. </p> + </li> + </ul> + <p> + We plan to finish implementing the unsupported features in future versions of DAnCE. + </p> + <p> + <a href="http://validator.w3.org/check?uri=referer"> + <img src="http://www.w3.org/Icons/valid-xhtml10" alt="Valid XHTML 1.0!" + height="31" width="88" /> + </a> + </p> + <address> + Last modified $Date$ by $Author$ + </address> + </body> +</html> diff --git a/modules/CIAO/docs/releasenotes/index.html b/modules/CIAO/docs/releasenotes/index.html new file mode 100644 index 00000000000..324f1d83c77 --- /dev/null +++ b/modules/CIAO/docs/releasenotes/index.html @@ -0,0 +1,170 @@ +<!doctype html public "-//w3c//dtd html 4.0 transitional//en"> +<html> +<head> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> + <meta name="GENERATOR" content="Mozilla/4.79 [en] (Windows NT 5.0; U) [Netscape]"> + <title>CIAO Release Information and TODO List</title> +</head> +<body text="#000000" bgcolor="#FFFFFF"> +<!-- $Id$ --> +<center> +<hr></center> + +<center> +<h3> +Release Information for the Component Integrated ACE ORB (CIAO)</h3></center> +This document contains information on the following topics related to the +<a href="../../VERSION">current +release</a> of <a href="http://www.dre.vanderbilt.edu/CIAO">CIAO</a>: + +<table BORDER=0 CELLSPACING=0 CELLPADDING=10 > +<tr> +<td VALIGN=TOP> +<b></b> +<br> +<ul> +<li> +<a href="../index.html">Introduction</a></li> +<li> +<a href="#status">Current Status of CIAO</a></li> +<li> +<a href="dance.html">Status of DAnCE</a></li> +<li> +<a href="../TODO.html">TODO list</a></li> +</ul> +</td> +</table> + + +<hr> +<h2>Current Status</h2><a name="status"> +<ol> +<li>The first cut of the new <a + href="http://www.omg.org/cgi-bin/doc?ptc/2003-07-02"> DnC </a> + specification implementation, which we call DAnCE is available in + this distribution. DAnCE is housed under <CODE> $CIAO_ROOT + </CODE>. We plan to enhance DAnCE in the next few months. We believe + DAnCE will replace existing tool sets in <CODE> + $CIAO_ROOT/tools</CODE>. There are a few features in + <CODE>$CIAO_ROOT/tools</CODE> that are missing in the DAnCE + implementation. Please see <a href="../TODO.html"> TODO </a> file + for more details. We plan to implement them soon and use DAnCE + continuously. + + <li> The first cut of DAnCE includes two parts: + <ul> + <li> + A modeling tool chain , <a href="http://www.dre.vanderbilt.edu/CoSMIC/"> + CoSMIC</a>, which is capable of describing the Assembly/Component + using <a + href="http://www.isis.vanderbilt.edu/Projects/gme/default.html"> + GME</a> as the development bed. The artifacts generated from the + CoSMIC are a set of XML descriptors. + + <!-- Tao, I realy don't understand what this means - Bala --> + <li>This run-time infrastructure that performs the actual deployment + and configuration, with a superset of the capabilities described in + OMG DnC specification with CIAO extension. </a>.<p><p> + + </ul> + <!-- Tao, can you please see whether this is needed --> + In the new DnC run-time framework we have migrated all the + functionalities present in the old CIAO runtime except the + Real-Time configuration and Static Configuration, which are + developed by Washington University in St. Louis. Currently, + the two CIAO runtime co-exist in our source and the component + implementation could be used with both framework without much + change. (For the change that one has to go through please + read <a href="./switch.html">this</a>.)<p> + + + + <li> Two operations <CODE> ciao_preactivate ()</CODE> and + <CODE>ciao_postactivate ()</CODE> have been added to the + <CODE>SessionComponent</CODE> interface. This implies that component + developers have to implement those operations within the + executor. We plan to get around this, i.e., users having to + implement these two operations, in the next month or so. <p> + + <li> + + Here is a set of updates in the CIDL Compiler.<p> + <ul> + <li>Fixed bugs in generation of inherited: home operations, + attribute operations, port operations, home factory operations, + supported operations.<p> + + <li>Added support for multiplex uses ports. This implies that users + could use "uses multiple" in their component definitions. <p> + + <li>Added automatic registration of value factories for event + consumers. This has been long outstanding. This change alleviates + component developers need to register the valuetype factory of their + eventtypes with the ORB. <p> + + <li>Added support for emits keyword and we now generate navigation + code for this.<p> + + <li>Fixed bug with multiple facets in a build that provide the same + interface.<p> + + <li>Added option <code>--gen-exec-impl</code> to generate executor + impl classes, with no-op versions of each IDL operation.<p> + + <li>Implemented get_all_facets() and get_all_consumers() navigation + methods.<p> + + <li>Added support for the IDL keywords <code>setraises</code> and + <code>getraises</code>, associated with attributes in IDL3.<p> + + <li>Added support for both subscription and event push of event types + that are a base class of the IDL-specified port type. A check is + performed during the subscribe call to make sure the eventtype is + actually an ancestor of the declared port type.<p> + + <li>Problems with generated code when the composition declaration is + nested inside one or more IDL modules has prompted a change. The + 'CIAO_GLUE_' prefix has been eliminated. The composition name is now + mapped to a C++ namespace, prefixed with 'CIDL_'. This new namespace + (as well as namespaces generated from IDL modules enclosing the + composition name, if any) encloses + <ul> + <li>the component servant class</li> + <li>the home servant class</li> + <li>all facet servant classes, if any</li> + <li>the *_Exec interface in the *E.idl file</li> + <li>all executor impl classes, if automatically generated</li> + </ul> + <p> + </ul> + <p> + + + <li> CIAO doesn't yet support features that help integrating CORBA + components with Enterprise Java Beans (EJB).<p> + + <li> Test to demonstrate composition of applications with real-time + behavior using CIAO's real-time extension was added. Please see + ACE_wrappers/TAO/CIAO/tests/RTCCM/Priority_Test.<p> + + <li> The CIAO static configurator tool has been enhanced to support + processing of RTCORBA policy related information. Please see + ACE_wrappers/TAO/CIAO/docs/static_ciao_index.html.<p> + + <li> To further interoperability with non-component-aware clients, there + are files in the $CIAO_ROOT/tools/IDL3_to_IDL2 directory that can be + compiled into an executable called tao_idl3_to_idl2. This executable + takes an IDL file (on the command line) containing IDL3 declarations + and outputs an IDL file with the IDL3 declarations converted to + equivalent IDL2. IDL2 declarations in the input file are unchanged. + See the README file in that directory for more information.<p> + +</ol> + + + +<b>Email: </b><a href="mailto:"</a<ADDRESS>ciao-users@cse.wustl.edu</ADDRESS> +</body> </html> + +<!-- LocalWords: TODOs CCM IDL CCIDL CIDL backend idl + --> diff --git a/modules/CIAO/docs/releasenotes/switch.html b/modules/CIAO/docs/releasenotes/switch.html new file mode 100644 index 00000000000..1120239b6ec --- /dev/null +++ b/modules/CIAO/docs/releasenotes/switch.html @@ -0,0 +1,35 @@ +<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> +<!-- $Id$ --> +<html> <head> +<title>Migrating the component implementation</title> +</head> + +<body> +<h3>When switching from the old CIAO runtime to the new one</h1> + +<ul> + There are only one thing needs to be done to migrate the component + implementation from the old runtime to the new runtime. + <br><br> + Find all the component MPC files in your component implementation + source directories and make the following changes. + + for every project in your MPC files which inherites from any of + the following MPC template (base project): <code> ciao_client, ciao_component, + ciao_servant, ciao_server,</code> replace them with <code> ciao_client_dnc, + ciao_component_dnc, ciao_servant_dnc, ciao_server_dnc</code>. Then + generate your makefile/solution/project files using either + <code>mwc.pl</code> or <code>mpc.pl</code> and build (rebuild) your + binaries.<br> + + A couple examples of the component implementation are at: + <code>$CIAO_ROOT/DAnCE/tests</code>. +</ul> + +<h3>When switching from the new CIAO runtime to the old one</h3> + <ul> + Reverse the above changes. + </ul> + + <b>Email: </b><a href="mailto:"</a<ADDRESS>ciao-users@cse.wustl.edu</ADDRESS> +</body> </html> diff --git a/modules/CIAO/docs/schema/06-04-02.xsd b/modules/CIAO/docs/schema/06-04-02.xsd new file mode 100644 index 00000000000..60b5c0ce54c --- /dev/null +++ b/modules/CIAO/docs/schema/06-04-02.xsd @@ -0,0 +1,1010 @@ +<!-- CORBA Component Model (CCM) Specification --> +<!-- Version 4.0 --> +<!-- Object Management Group, Inc. --> +<!-- Document Number formal/2006-04-01 --> +<!-- Chapter 16: XMI for CCM --> + +<!-- Copyright 2002, Laboratoire d’Informatique Fond de Lille --> +<!-- Copyright 2006, Object Management Group, Inc. --> + +<!-- The companies listed above have granted to the Object --> +<!-- Management Group, Inc. (OMG) a nonexlcusive, royalty-free, --> +<!-- paid up, worldwide license to copy and distribute this --> +<!-- document and to modify this document and distribute copies --> +<!-- of the modified version. Each of the copyright holders --> +<!-- listed above has agreed that no person shall be deemed to --> +<!-- have infringed the copyright in the included material of --> +<!-- any such copyright holder by reason of having used the --> +<!-- specification set forth herein or having conformed any --> +<!-- computer software to the specification. --> + +<!-- This XML was defined by the XML Metadata Interchange --> +<!-- (XMI) version 2 specification on the Deployment PSM for --> +<!-- CCM, which is derived from PIM in the Deployment and --> +<!-- Configuration specification. --> + + +<xsd:schema + xmlns:xsd="http://www.w3.org/2001/XMLSchema" + xmlns:xmi="http://www.omg.org/XMI" + xmlns:Deployment="http://www.omg.org/Deployment" + targetNamespace="http://www.omg.org/Deployment" + > + <xsd:import namespace="http://www.omg.org/XMI"/> + <xsd:complexType name="Any"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="type" type="Deployment:DataType"/> + <xsd:element name="value" type="Deployment:DataValue"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="Any" type="Deployment:Any"/> + <xsd:complexType name="DataType"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="kind" type="Deployment:TCKind"/> + <xsd:element name="enum" type="Deployment:EnumType"/> + <xsd:element name="objref" type="Deployment:ObjrefType"/> + <xsd:element name="boundedString" type="Deployment:BoundedStringType"/> + <xsd:element name="fixed" type="Deployment:FixedType"/> + <xsd:element name="array" type="Deployment:ArrayType"/> + <xsd:element name="sequence" type="Deployment:SequenceType"/> + <xsd:element name="alias" type="Deployment:AliasType"/> + <xsd:element name="struct" type="Deployment:StructType"/> + <xsd:element name="value" type="Deployment:ValueType"/> + <xsd:element name="union" type="Deployment:UnionType"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="DataType" type="Deployment:DataType"/> + <xsd:complexType name="DataValue"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="short" type="xsd:short"/> + <xsd:element name="long" type="xsd:int"/> + <xsd:element name="ushort" type="xsd:unsignedShort"/> + <xsd:element name="ulong" type="xsd:unsignedInt"/> + <xsd:element name="float" type="xsd:float"/> + <xsd:element name="double" type="xsd:double"/> + <xsd:element name="boolean" type="xsd:boolean"/> + <xsd:element name="octet" type="xsd:unsignedByte"/> + <xsd:element name="opaque" type="xsd:base64Binary"/> + <xsd:element name="objref" type="xsd:string"/> + <xsd:element name="enum" type="xsd:string"/> + <xsd:element name="string" type="xsd:string"/> + <xsd:element name="longlong" type="xsd:long"/> + <xsd:element name="ulonglong" type="xsd:unsignedLong"/> + <xsd:element name="longdouble" type="xsd:double"/> + <xsd:element name="fixed" type="xsd:string"/> + <xsd:element name="any" type="Deployment:Any"/> + <xsd:element name="typecode" type="Deployment:DataType"/> + <xsd:element name="element" type="Deployment:DataValue"/> + <xsd:element name="discriminator" type="Deployment:DataValue"/> + <xsd:element name="value" type="Deployment:DataValue"/> + <xsd:element name="boxedValue" type="Deployment:DataValue"/> + <xsd:element name="member" type="Deployment:NamedValue"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="DataValue" type="Deployment:DataValue"/> + <xsd:complexType name="EnumType"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="typeId" type="xsd:string"/> + <xsd:element name="member" type="xsd:string"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="EnumType" type="Deployment:EnumType"/> + <xsd:complexType name="ObjrefType"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="typeId" type="xsd:string"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="ObjrefType" type="Deployment:ObjrefType"/> + <xsd:complexType name="BoundedStringType"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="bound" type="xsd:string"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="BoundedStringType" type="Deployment:BoundedStringType"/> + <xsd:complexType name="FixedType"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="digits" type="xsd:string"/> + <xsd:element name="scale" type="xsd:string"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="FixedType" type="Deployment:FixedType"/> + <xsd:complexType name="ArrayType"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="length" type="xsd:string"/> + <xsd:element name="elementType" type="Deployment:DataType"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="ArrayType" type="Deployment:ArrayType"/> + <xsd:complexType name="SequenceType"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="bound" type="xsd:string"/> + <xsd:element name="elementType" type="Deployment:DataType"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="SequenceType" type="Deployment:SequenceType"/> + <xsd:complexType name="AliasType"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="typeId" type="xsd:string"/> + <xsd:element name="elementType" type="Deployment:DataType"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="AliasType" type="Deployment:AliasType"/> + <xsd:complexType name="StructType"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="typeId" type="xsd:string"/> + <xsd:element name="member" type="Deployment:StructMemberType"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="StructType" type="Deployment:StructType"/> + <xsd:complexType name="StructMemberType"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="type" type="Deployment:DataType"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="StructMemberType" type="Deployment:StructMemberType"/> + <xsd:complexType name="ValueType"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="typeId" type="xsd:string"/> + <xsd:element name="modifier" type="xsd:string"/> + <xsd:element name="baseType" type="Deployment:DataType"/> + <xsd:element name="member" type="Deployment:ValueMemberType"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="ValueType" type="Deployment:ValueType"/> + <xsd:complexType name="ValueMemberType"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="visibility" type="xsd:string"/> + <xsd:element name="type" type="Deployment:DataType"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="ValueMemberType" type="Deployment:ValueMemberType"/> + <xsd:complexType name="UnionType"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="typeId" type="xsd:string"/> + <xsd:element name="default" type="Deployment:UnionMemberType"/> + <xsd:element name="discriminatorType" type="Deployment:DataType"/> + <xsd:element name="member" type="Deployment:UnionMemberType"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="UnionType" type="Deployment:UnionType"/> + <xsd:complexType name="UnionMemberType"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="type" type="Deployment:DataType"/> + <xsd:element name="label" type="Deployment:DataValue"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="UnionMemberType" type="Deployment:UnionMemberType"/> + <xsd:complexType name="NamedValue"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="value" type="Deployment:DataValue"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="NamedValue" type="Deployment:NamedValue"/> + <xsd:complexType name="Bridge"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="label" type="xsd:string"/> + <xsd:element name="connect" type="Deployment:Interconnect"/> + <xsd:element name="resource" type="Deployment:Resource"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="Bridge" type="Deployment:Bridge"/> + <xsd:complexType name="Interconnect"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="label" type="xsd:string"/> + <xsd:element name="connection" type="Deployment:Bridge"/> + <xsd:element name="connect" type="Deployment:Node"/> + <xsd:element name="resource" type="Deployment:Resource"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="Interconnect" type="Deployment:Interconnect"/> + <xsd:complexType name="Node"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="label" type="xsd:string"/> + <xsd:element name="connection" type="Deployment:Interconnect"/> + <xsd:element name="sharedResource" type="Deployment:SharedResource"/> + <xsd:element name="resource" type="Deployment:Resource"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="Node" type="Deployment:Node"/> + <xsd:complexType name="Resource"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="resourceType" type="xsd:string"/> + <xsd:element name="property" type="Deployment:SatisfierProperty"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="Resource" type="Deployment:Resource"/> + <xsd:complexType name="SharedResource"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="resourceType" type="xsd:string"/> + <xsd:element name="node" type="Deployment:Node"/> + <xsd:element name="property" type="Deployment:SatisfierProperty"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="SharedResource" type="Deployment:SharedResource"/> + <xsd:complexType name="Domain"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="UUID" type="xsd:string"/> + <xsd:element name="label" type="xsd:string"/> + <xsd:element name="sharedResource" type="Deployment:SharedResource"/> + <xsd:element name="node" type="Deployment:Node"/> + <xsd:element name="interconnect" type="Deployment:Interconnect"/> + <xsd:element name="bridge" type="Deployment:Bridge"/> + <xsd:element name="infoProperty" type="Deployment:Property"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="Domain" type="Deployment:Domain"/> + <xsd:complexType name="ResourceAllocation"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="elementName" type="xsd:string"/> + <xsd:element name="resourceName" type="xsd:string"/> + <xsd:element name="property" type="Deployment:Property"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="ResourceAllocation" type="Deployment:ResourceAllocation"/> + <xsd:complexType name="PlanPropertyMapping"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="source" type="xsd:string"/> + <xsd:element name="externalName" type="xsd:string"/> + <xsd:element name="delegatesTo" type="Deployment:PlanSubcomponentPropertyReference"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="PlanPropertyMapping" type="Deployment:PlanPropertyMapping"/> + <xsd:complexType name="PlanSubcomponentPropertyReference"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="propertyName" type="xsd:string"/> + <xsd:element name="instance" type="Deployment:InstanceDeploymentDescription"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="PlanSubcomponentPropertyReference" type="Deployment:PlanSubcomponentPropertyReference"/> + <xsd:complexType name="PlanSubcomponentPortEndpoint"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="portName" type="xsd:string"/> + <xsd:element name="provider" type="xsd:string"/> + <xsd:element name="kind" type="Deployment:CCMComponentPortKind"/> + <xsd:element name="instance" type="Deployment:InstanceDeploymentDescription"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="PlanSubcomponentPortEndpoint" type="Deployment:PlanSubcomponentPortEndpoint"/> + <xsd:complexType name="PlanConnectionDescription"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="source" type="xsd:string"/> + <xsd:element name="deployRequirement" type="Deployment:Requirement"/> + <xsd:element name="externalEndpoint" type="Deployment:ComponentExternalPortEndpoint"/> + <xsd:element name="internalEndpoint" type="Deployment:PlanSubcomponentPortEndpoint"/> + <xsd:element name="externalReference" type="Deployment:ExternalReferenceEndpoint"/> + <xsd:element name="deployedResource" type="Deployment:ConnectionResourceDeploymentDescription"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="PlanConnectionDescription" type="Deployment:PlanConnectionDescription"/> + <xsd:complexType name="InstanceDeploymentDescription"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="node" type="xsd:string"/> + <xsd:element name="source" type="xsd:string"/> + <xsd:element name="implementation" type="Deployment:MonolithicDeploymentDescription"/> + <xsd:element name="configProperty" type="Deployment:Property"/> + <xsd:element name="deployedResource" type="Deployment:InstanceResourceDeploymentDescription"/> + <xsd:element name="deployedSharedResource" type="Deployment:InstanceResourceDeploymentDescription"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="InstanceDeploymentDescription" type="Deployment:InstanceDeploymentDescription"/> + <xsd:complexType name="MonolithicDeploymentDescription"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="source" type="xsd:string"/> + <xsd:element name="artifact" type="Deployment:ArtifactDeploymentDescription"/> + <xsd:element name="execParameter" type="Deployment:Property"/> + <xsd:element name="deployRequirement" type="Deployment:Requirement"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="MonolithicDeploymentDescription" type="Deployment:MonolithicDeploymentDescription"/> + <xsd:complexType name="ArtifactDeploymentDescription"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="location" type="xsd:string"/> + <xsd:element name="node" type="xsd:string"/> + <xsd:element name="source" type="xsd:string"/> + <xsd:element name="execParameter" type="Deployment:Property"/> + <xsd:element name="deployRequirement" type="Deployment:Requirement"/> + <xsd:element name="deployedResource" type="Deployment:ResourceDeploymentDescription"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="ArtifactDeploymentDescription" type="Deployment:ArtifactDeploymentDescription"/> + <xsd:complexType name="DeploymentPlan"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="label" type="xsd:string"/> + <xsd:element name="UUID" type="xsd:string"/> + <xsd:element name="realizes" type="Deployment:ComponentInterfaceDescription"/> + <xsd:element name="implementation" type="Deployment:MonolithicDeploymentDescription"/> + <xsd:element name="instance" type="Deployment:InstanceDeploymentDescription"/> + <xsd:element name="connection" type="Deployment:PlanConnectionDescription"/> + <xsd:element name="externalProperty" type="Deployment:PlanPropertyMapping"/> + <xsd:element name="dependsOn" type="Deployment:ImplementationDependency"/> + <xsd:element name="artifact" type="Deployment:ArtifactDeploymentDescription"/> + <xsd:element name="infoProperty" type="Deployment:Property"/> + <xsd:element name="localityConstraint" type="Deployment:PlanLocality"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="DeploymentPlan" type="Deployment:DeploymentPlan"/> + <xsd:complexType name="ResourceDeploymentDescription"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="requirementName" type="xsd:string"/> + <xsd:element name="resourceName" type="xsd:string"/> + <xsd:element name="property" type="Deployment:Property"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="ResourceDeploymentDescription" type="Deployment:ResourceDeploymentDescription"/> + <xsd:complexType name="InstanceResourceDeploymentDescription"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="resourceUsage" type="Deployment:ResourceUsageKind"/> + <xsd:element name="requirementName" type="xsd:string"/> + <xsd:element name="resourceName" type="xsd:string"/> + <xsd:element name="property" type="Deployment:Property"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="InstanceResourceDeploymentDescription" type="Deployment:InstanceResourceDeploymentDescription"/> + <xsd:complexType name="ConnectionResourceDeploymentDescription"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="targetName" type="xsd:string"/> + <xsd:element name="requirementName" type="xsd:string"/> + <xsd:element name="resourceName" type="xsd:string"/> + <xsd:element name="property" type="Deployment:Property"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="ConnectionResourceDeploymentDescription" type="Deployment:ConnectionResourceDeploymentDescription"/> + <xsd:complexType name="PlanLocality"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="constraint" type="Deployment:PlanLocalityKind"/> + <xsd:element name="constrainedInstance" type="Deployment:InstanceDeploymentDescription"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="PlanLocality" type="Deployment:PlanLocality"/> + <xsd:complexType name="Capability"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="resourceType" type="xsd:string"/> + <xsd:element name="property" type="Deployment:SatisfierProperty"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="Capability" type="Deployment:Capability"/> + <xsd:complexType name="ComponentPropertyDescription"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="type" type="Deployment:DataType"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="ComponentPropertyDescription" type="Deployment:ComponentPropertyDescription"/> + <xsd:complexType name="ComponentPortDescription"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="specificType" type="xsd:string"/> + <xsd:element name="supportedType" type="xsd:string"/> + <xsd:element name="provider" type="xsd:string"/> + <xsd:element name="exclusiveProvider" type="xsd:string"/> + <xsd:element name="exclusiveUser" type="xsd:string"/> + <xsd:element name="optional" type="xsd:string"/> + <xsd:element name="kind" type="Deployment:CCMComponentPortKind"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="ComponentPortDescription" type="Deployment:ComponentPortDescription"/> + <xsd:complexType name="ComponentInterfaceDescription"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="label" type="xsd:string"/> + <xsd:element name="UUID" type="xsd:string"/> + <xsd:element name="specificType" type="xsd:string"/> + <xsd:element name="supportedType" type="xsd:string"/> + <xsd:element name="idlFile" type="xsd:string"/> + <xsd:element name="configProperty" type="Deployment:Property"/> + <xsd:element name="port" type="Deployment:ComponentPortDescription"/> + <xsd:element name="property" type="Deployment:ComponentPropertyDescription"/> + <xsd:element name="infoProperty" type="Deployment:Property"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="ComponentInterfaceDescription" type="Deployment:ComponentInterfaceDescription"/> + <xsd:complexType name="ImplementationArtifactDescription"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="label" type="xsd:string"/> + <xsd:element name="UUID" type="xsd:string"/> + <xsd:element name="location" type="xsd:string"/> + <xsd:element name="execParameter" type="Deployment:Property"/> + <xsd:element name="deployRequirement" type="Deployment:Requirement"/> + <xsd:element name="dependsOn" type="Deployment:NamedImplementationArtifact"/> + <xsd:element name="infoProperty" type="Deployment:Property"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="ImplementationArtifactDescription" type="Deployment:ImplementationArtifactDescription"/> + <xsd:complexType name="MonolithicImplementationDescription"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="nodeExecParameter" type="Deployment:Property"/> + <xsd:element name="primaryArtifact" type="Deployment:NamedImplementationArtifact"/> + <xsd:element name="deployRequirement" type="Deployment:ImplementationRequirement"/> + <xsd:element name="componentExecParameter" type="Deployment:Property"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="MonolithicImplementationDescription" type="Deployment:MonolithicImplementationDescription"/> + <xsd:complexType name="AssemblyPropertyMapping"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="externalName" type="xsd:string"/> + <xsd:element name="delegatesTo" type="Deployment:SubcomponentPropertyReference"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="AssemblyPropertyMapping" type="Deployment:AssemblyPropertyMapping"/> + <xsd:complexType name="SubcomponentPropertyReference"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="propertyName" type="xsd:string"/> + <xsd:element name="instance" type="Deployment:SubcomponentInstantiationDescription"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="SubcomponentPropertyReference" type="Deployment:SubcomponentPropertyReference"/> + <xsd:complexType name="SubcomponentPortEndpoint"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="portName" type="xsd:string"/> + <xsd:element name="instance" type="Deployment:SubcomponentInstantiationDescription"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="SubcomponentPortEndpoint" type="Deployment:SubcomponentPortEndpoint"/> + <xsd:complexType name="AssemblyConnectionDescription"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="deployRequirement" type="Deployment:Requirement"/> + <xsd:element name="externalEndpoint" type="Deployment:ComponentExternalPortEndpoint"/> + <xsd:element name="internalEndpoint" type="Deployment:SubcomponentPortEndpoint"/> + <xsd:element name="externalReference" type="Deployment:ExternalReferenceEndpoint"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="AssemblyConnectionDescription" type="Deployment:AssemblyConnectionDescription"/> + <xsd:complexType name="SubcomponentInstantiationDescription"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="basePackage" type="Deployment:ComponentPackageDescription"/> + <xsd:element name="specializedConfig" type="Deployment:PackageConfiguration"/> + <xsd:element name="selectRequirement" type="Deployment:Requirement"/> + <xsd:element name="configProperty" type="Deployment:Property"/> + <xsd:element name="referencedPackage" type="Deployment:ComponentPackageReference"/> + <xsd:element name="importedPackage" type="Deployment:ComponentPackageImport"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="SubcomponentInstantiationDescription" type="Deployment:SubcomponentInstantiationDescription"/> + <xsd:complexType name="ComponentAssemblyDescription"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="instance" type="Deployment:SubcomponentInstantiationDescription"/> + <xsd:element name="connection" type="Deployment:AssemblyConnectionDescription"/> + <xsd:element name="externalProperty" type="Deployment:AssemblyPropertyMapping"/> + <xsd:element name="localityConstraint" type="Deployment:Locality"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="ComponentAssemblyDescription" type="Deployment:ComponentAssemblyDescription"/> + <xsd:complexType name="ComponentImplementationDescription"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="label" type="xsd:string"/> + <xsd:element name="UUID" type="xsd:string"/> + <xsd:element name="implements" type="Deployment:ComponentInterfaceDescription"/> + <xsd:element name="assemblyImpl" type="Deployment:ComponentAssemblyDescription"/> + <xsd:element name="monolithicImpl" type="Deployment:MonolithicImplementationDescription"/> + <xsd:element name="configProperty" type="Deployment:Property"/> + <xsd:element name="capability" type="Deployment:Capability"/> + <xsd:element name="dependsOn" type="Deployment:ImplementationDependency"/> + <xsd:element name="infoProperty" type="Deployment:Property"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="ComponentImplementationDescription" type="Deployment:ComponentImplementationDescription"/> + <xsd:complexType name="ComponentPackageReference"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="requiredUUID" type="xsd:string"/> + <xsd:element name="requiredName" type="xsd:string"/> + <xsd:element name="requiredType" type="Deployment:ComponentInterfaceDescription"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="ComponentPackageReference" type="Deployment:ComponentPackageReference"/> + <xsd:complexType name="ComponentPackageDescription"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="label" type="xsd:string"/> + <xsd:element name="UUID" type="xsd:string"/> + <xsd:element name="realizes" type="Deployment:ComponentInterfaceDescription"/> + <xsd:element name="configProperty" type="Deployment:Property"/> + <xsd:element name="implementation" type="Deployment:PackagedComponentImplementation"/> + <xsd:element name="infoProperty" type="Deployment:Property"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="ComponentPackageDescription" type="Deployment:ComponentPackageDescription"/> + <xsd:complexType name="ComponentUsageDescription"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="basePackage" type="Deployment:ComponentPackageDescription"/> + <xsd:element name="specializedConfig" type="Deployment:PackageConfiguration"/> + <xsd:element name="selectRequirement" type="Deployment:Requirement"/> + <xsd:element name="configProperty" type="Deployment:Property"/> + <xsd:element name="referencedPackage" type="Deployment:ComponentPackageReference"/> + <xsd:element name="importedPackage" type="Deployment:ComponentPackageImport"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="ComponentUsageDescription" type="Deployment:ComponentUsageDescription"/> + <xsd:complexType name="PackagedComponentImplementation"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="referencedImplementation" type="Deployment:ComponentImplementationDescription"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="PackagedComponentImplementation" type="Deployment:PackagedComponentImplementation"/> + <xsd:complexType name="NamedImplementationArtifact"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="referencedArtifact" type="Deployment:ImplementationArtifactDescription"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="NamedImplementationArtifact" type="Deployment:NamedImplementationArtifact"/> + <xsd:complexType name="ImplementationRequirement"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="resourceUsage" type="Deployment:ResourceUsageKind"/> + <xsd:element name="resourcePort" type="xsd:string"/> + <xsd:element name="componentPort" type="xsd:string"/> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="resourceType" type="xsd:string"/> + <xsd:element name="property" type="Deployment:Property"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="ImplementationRequirement" type="Deployment:ImplementationRequirement"/> + <xsd:complexType name="ComponentPackageImport"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="location" type="xsd:string"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="ComponentPackageImport" type="Deployment:ComponentPackageImport"/> + <xsd:complexType name="PackageConfiguration"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="label" type="xsd:string"/> + <xsd:element name="UUID" type="xsd:string"/> + <xsd:element name="basePackage" type="Deployment:ComponentPackageDescription"/> + <xsd:element name="specializedConfig" type="Deployment:PackageConfiguration"/> + <xsd:element name="selectRequirement" type="Deployment:Requirement"/> + <xsd:element name="configProperty" type="Deployment:Property"/> + <xsd:element name="referencedPackage" type="Deployment:ComponentPackageReference"/> + <xsd:element name="importedPackage" type="Deployment:ComponentPackageImport"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="PackageConfiguration" type="Deployment:PackageConfiguration"/> + <xsd:complexType name="Locality"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="constraint" type="Deployment:LocalityKind"/> + <xsd:element name="constrainedInstance" type="Deployment:SubcomponentInstantiationDescription"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="Locality" type="Deployment:Locality"/> + <xsd:complexType name="RequirementSatisfier"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="resourceType" type="xsd:string"/> + <xsd:element name="property" type="Deployment:SatisfierProperty"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="RequirementSatisfier" type="Deployment:RequirementSatisfier"/> + <xsd:complexType name="SatisfierProperty"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="kind" type="Deployment:SatisfierPropertyKind"/> + <xsd:element name="dynamic" type="xsd:string"/> + <xsd:element name="value" type="Deployment:Any"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="SatisfierProperty" type="Deployment:SatisfierProperty"/> + <xsd:complexType name="Requirement"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="resourceType" type="xsd:string"/> + <xsd:element name="property" type="Deployment:Property"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="Requirement" type="Deployment:Requirement"/> + <xsd:complexType name="Property"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="value" type="Deployment:Any"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="Property" type="Deployment:Property"/> + <xsd:complexType name="ExternalReferenceEndpoint"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="location" type="xsd:string"/> + <xsd:element name="provider" type="xsd:string"/> + <xsd:element name="portName" type="xsd:string"/> + <xsd:element name="supportedType" type="xsd:string"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="ExternalReferenceEndpoint" type="Deployment:ExternalReferenceEndpoint"/> + <xsd:complexType name="ComponentExternalPortEndpoint"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="portName" type="xsd:string"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="ComponentExternalPortEndpoint" type="Deployment:ComponentExternalPortEndpoint"/> + <xsd:complexType name="ImplementationDependency"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="requiredType" type="xsd:string"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="ImplementationDependency" type="Deployment:ImplementationDependency"/> + <xsd:complexType name="ToplevelPackageDescription"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="package" type="Deployment:PackageConfiguration"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="ToplevelPackageDescription" type="Deployment:ToplevelPackageDescription"/> + <xsd:simpleType name="TCKind"> + <xsd:restriction base="xsd:string"> + <xsd:enumeration value="tk_null"/> + <xsd:enumeration value="tk_void"/> + <xsd:enumeration value="tk_short"/> + <xsd:enumeration value="tk_long"/> + <xsd:enumeration value="tk_ushort"/> + <xsd:enumeration value="tk_ulong"/> + <xsd:enumeration value="tk_float"/> + <xsd:enumeration value="tk_double"/> + <xsd:enumeration value="tk_boolean"/> + <xsd:enumeration value="tk_char"/> + <xsd:enumeration value="tk_octet"/> + <xsd:enumeration value="tk_any"/> + <xsd:enumeration value="tk_TypeCode"/> + <xsd:enumeration value="tk_Principal"/> + <xsd:enumeration value="tk_objref"/> + <xsd:enumeration value="tk_struct"/> + <xsd:enumeration value="tk_union"/> + <xsd:enumeration value="tk_enum"/> + <xsd:enumeration value="tk_string"/> + <xsd:enumeration value="tk_sequence"/> + <xsd:enumeration value="tk_array"/> + <xsd:enumeration value="tk_alias"/> + <xsd:enumeration value="tk_except"/> + <xsd:enumeration value="tk_longlong"/> + <xsd:enumeration value="tk_ulonglong"/> + <xsd:enumeration value="tk_longdouble"/> + <xsd:enumeration value="tk_wchar"/> + <xsd:enumeration value="tk_wstring"/> + <xsd:enumeration value="tk_fixed"/> + <xsd:enumeration value="tk_value"/> + <xsd:enumeration value="tk_value_box"/> + <xsd:enumeration value="tk_native"/> + <xsd:enumeration value="tk_abstract_interface"/> + <xsd:enumeration value="tk_local_interface"/> + <xsd:enumeration value="tk_component"/> + <xsd:enumeration value="tk_home"/> + <xsd:enumeration value="tk_event"/> + </xsd:restriction> + </xsd:simpleType> + <xsd:simpleType name="PlanLocalityKind"> + <xsd:restriction base="xsd:string"> + <xsd:enumeration value="SameProcess"/> + <xsd:enumeration value="DifferentProcess"/> + <xsd:enumeration value="NoConstraint"/> + </xsd:restriction> + </xsd:simpleType> + <xsd:simpleType name="ResourceUsageKind"> + <xsd:restriction base="xsd:string"> + <xsd:enumeration value="None"/> + <xsd:enumeration value="InstanceUsesResource"/> + <xsd:enumeration value="ResourceUsesInstance"/> + <xsd:enumeration value="PortUsesResource"/> + <xsd:enumeration value="ResourceUsesPort"/> + </xsd:restriction> + </xsd:simpleType> + <xsd:simpleType name="LocalityKind"> + <xsd:restriction base="xsd:string"> + <xsd:enumeration value="SameNodeAnyProcess"/> + <xsd:enumeration value="SameNodeSameProcess"/> + <xsd:enumeration value="SameNodeDifferentProcess"/> + <xsd:enumeration value="DifferentNode"/> + <xsd:enumeration value="DifferentProcess"/> + <xsd:enumeration value="NoConstraint"/> + </xsd:restriction> + </xsd:simpleType> + <xsd:simpleType name="CCMComponentPortKind"> + <xsd:restriction base="xsd:string"> + <xsd:enumeration value="Facet"/> + <xsd:enumeration value="SimplexReceptacle"/> + <xsd:enumeration value="MultiplexReceptacle"/> + <xsd:enumeration value="EventEmitter"/> + <xsd:enumeration value="EventPublisher"/> + <xsd:enumeration value="EventConsumer"/> + </xsd:restriction> + </xsd:simpleType> + <xsd:simpleType name="SatisfierPropertyKind"> + <xsd:restriction base="xsd:string"> + <xsd:enumeration value="Quantity"/> + <xsd:enumeration value="Capacity"/> + <xsd:enumeration value="Minimum"/> + <xsd:enumeration value="Maximum"/> + <xsd:enumeration value="Attribute"/> + <xsd:enumeration value="Selection"/> + </xsd:restriction> + </xsd:simpleType> + <xsd:element name="Deployment"> + <xsd:complexType> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element ref="Deployment:Any"/> + <xsd:element ref="Deployment:DataType"/> + <xsd:element ref="Deployment:DataValue"/> + <xsd:element ref="Deployment:EnumType"/> + <xsd:element ref="Deployment:ObjrefType"/> + <xsd:element ref="Deployment:BoundedStringType"/> + <xsd:element ref="Deployment:FixedType"/> + <xsd:element ref="Deployment:ArrayType"/> + <xsd:element ref="Deployment:SequenceType"/> + <xsd:element ref="Deployment:AliasType"/> + <xsd:element ref="Deployment:StructType"/> + <xsd:element ref="Deployment:StructMemberType"/> + <xsd:element ref="Deployment:ValueType"/> + <xsd:element ref="Deployment:ValueMemberType"/> + <xsd:element ref="Deployment:UnionType"/> + <xsd:element ref="Deployment:UnionMemberType"/> + <xsd:element ref="Deployment:NamedValue"/> + <xsd:element ref="Deployment:Bridge"/> + <xsd:element ref="Deployment:Interconnect"/> + <xsd:element ref="Deployment:Node"/> + <xsd:element ref="Deployment:Resource"/> + <xsd:element ref="Deployment:SharedResource"/> + <xsd:element ref="Deployment:Domain"/> + <xsd:element ref="Deployment:ResourceAllocation"/> + <xsd:element ref="Deployment:PlanPropertyMapping"/> + <xsd:element ref="Deployment:PlanSubcomponentPropertyReference"/> + <xsd:element ref="Deployment:PlanSubcomponentPortEndpoint"/> + <xsd:element ref="Deployment:PlanConnectionDescription"/> + <xsd:element ref="Deployment:InstanceDeploymentDescription"/> + <xsd:element ref="Deployment:MonolithicDeploymentDescription"/> + <xsd:element ref="Deployment:ArtifactDeploymentDescription"/> + <xsd:element ref="Deployment:DeploymentPlan"/> + <xsd:element ref="Deployment:ResourceDeploymentDescription"/> + <xsd:element ref="Deployment:InstanceResourceDeploymentDescription"/> + <xsd:element ref="Deployment:ConnectionResourceDeploymentDescription"/> + <xsd:element ref="Deployment:PlanLocality"/> + <xsd:element ref="Deployment:Capability"/> + <xsd:element ref="Deployment:ComponentPropertyDescription"/> + <xsd:element ref="Deployment:ComponentPortDescription"/> + <xsd:element ref="Deployment:ComponentInterfaceDescription"/> + <xsd:element ref="Deployment:ImplementationArtifactDescription"/> + <xsd:element ref="Deployment:MonolithicImplementationDescription"/> + <xsd:element ref="Deployment:AssemblyPropertyMapping"/> + <xsd:element ref="Deployment:SubcomponentPropertyReference"/> + <xsd:element ref="Deployment:SubcomponentPortEndpoint"/> + <xsd:element ref="Deployment:AssemblyConnectionDescription"/> + <xsd:element ref="Deployment:SubcomponentInstantiationDescription"/> + <xsd:element ref="Deployment:ComponentAssemblyDescription"/> + <xsd:element ref="Deployment:ComponentImplementationDescription"/> + <xsd:element ref="Deployment:ComponentPackageReference"/> + <xsd:element ref="Deployment:ComponentPackageDescription"/> + <xsd:element ref="Deployment:ComponentUsageDescription"/> + <xsd:element ref="Deployment:PackagedComponentImplementation"/> + <xsd:element ref="Deployment:NamedImplementationArtifact"/> + <xsd:element ref="Deployment:ImplementationRequirement"/> + <xsd:element ref="Deployment:ComponentPackageImport"/> + <xsd:element ref="Deployment:PackageConfiguration"/> + <xsd:element ref="Deployment:Locality"/> + <xsd:element ref="Deployment:RequirementSatisfier"/> + <xsd:element ref="Deployment:SatisfierProperty"/> + <xsd:element ref="Deployment:Requirement"/> + <xsd:element ref="Deployment:Property"/> + <xsd:element ref="Deployment:ExternalReferenceEndpoint"/> + <xsd:element ref="Deployment:ComponentExternalPortEndpoint"/> + <xsd:element ref="Deployment:ImplementationDependency"/> + <xsd:element ref="Deployment:ToplevelPackageDescription"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + </xsd:element> +</xsd:schema> + diff --git a/modules/CIAO/docs/schema/Basic_Deployment_Data.xsd b/modules/CIAO/docs/schema/Basic_Deployment_Data.xsd new file mode 100644 index 00000000000..ddcc349a42f --- /dev/null +++ b/modules/CIAO/docs/schema/Basic_Deployment_Data.xsd @@ -0,0 +1,430 @@ +<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.w3.org/2001/XMLSchema XMLSchema.xsd" + xmlns:Deployment="http://www.omg.org/Deployment" + xmlns:xmi="http://www.omg.org/XMI" + targetNamespace="http://www.omg.org/Deployment"> + + <xsd:import namespace="http://www.omg.org/XMI" + schemaLocation="XMI.xsd" /> + + <xsd:complexType name="IdRef"> + <xsd:attributeGroup ref="xmi:LinkAttribs" /> + </xsd:complexType> + + <xsd:simpleType name="TCKind"> + <xsd:restriction base="xsd:NCName"> <!-- std says xsd:string --> + <xsd:enumeration value="tk_null"/> + <xsd:enumeration value="tk_void"/> + <xsd:enumeration value="tk_short"/> + <xsd:enumeration value="tk_long"/> + <xsd:enumeration value="tk_ushort"/> + <xsd:enumeration value="tk_ulong"/> + <xsd:enumeration value="tk_float"/> + <xsd:enumeration value="tk_double"/> + <xsd:enumeration value="tk_boolean"/> + <xsd:enumeration value="tk_char"/> + <xsd:enumeration value="tk_octet"/> + <xsd:enumeration value="tk_any"/> + <xsd:enumeration value="tk_TypeCode"/> + <xsd:enumeration value="tk_Principal"/> + <xsd:enumeration value="tk_objref"/> + <xsd:enumeration value="tk_struct"/> + <xsd:enumeration value="tk_union"/> + <xsd:enumeration value="tk_enum"/> + <xsd:enumeration value="tk_string"/> + <xsd:enumeration value="tk_sequence"/> + <xsd:enumeration value="tk_array"/> + <xsd:enumeration value="tk_alias"/> + <xsd:enumeration value="tk_except"/> + <xsd:enumeration value="tk_longlong"/> + <xsd:enumeration value="tk_ulonglong"/> + <xsd:enumeration value="tk_longdouble"/> + <xsd:enumeration value="tk_wchar"/> + <xsd:enumeration value="tk_wstring"/> + <xsd:enumeration value="tk_fixed"/> + <xsd:enumeration value="tk_value"/> + <xsd:enumeration value="tk_value_box"/> + <xsd:enumeration value="tk_native"/> + <xsd:enumeration value="tk_abstract_interface"/> + <xsd:enumeration value="tk_local_interface"/> + <xsd:enumeration value="tk_component"/> + <xsd:enumeration value="tk_home"/> + <xsd:enumeration value="tk_event"/> + </xsd:restriction> + </xsd:simpleType> + + <xsd:complexType name="DataType"> + <xsd:sequence> + <xsd:element name="kind" type="Deployment:TCKind"/> + <xsd:choice minOccurs="0"> + <xsd:element name="enum" type="Deployment:EnumType" /> + <xsd:element name="struct" type="Deployment:StructType"/> + <xsd:element name="value" type="Deployment:ValueType"/> + <xsd:element name="sequence" type="Deployment:SequenceType"/> + <xsd:element name="alias" type="Deployment:AliasType"/> + </xsd:choice> + +<!-- +@@ not supported now.. + + <xsd:element name="objref" type="Deployment:ObjrefType"/> + <xsd:element name="boundedString" type="Deployment:BoundedStringType"/> + <xsd:element name="fixed" type="Deployment:FixedType"/> + <xsd:element name="array" type="Deployment:ArrayType"/> + + <xsd:element name="union" type="Deployment:UnionType"/> +--> + </xsd:sequence> + <xsd:attribute ref="xmi:id" /> + </xsd:complexType> + + <xsd:complexType name="DataValue"> + <xsd:choice maxOccurs="unbounded"> + <xsd:element name="short" type="xsd:short"/> + <xsd:element name="long" type="xsd:int"/> + <xsd:element name="ushort" type="xsd:unsignedShort"/> + <xsd:element name="ulong" type="xsd:unsignedInt"/> + <xsd:element name="float" type="xsd:float"/> + <xsd:element name="double" type="xsd:double"/> + <xsd:element name="boolean" type="xsd:boolean"/> + <xsd:element name="octet" type="xsd:unsignedByte"/> + <!-- xsd:element name="opaque" type="xsd:base64Binary"/ --> + <!-- <xsd:element name="objref" type="xsd:string"/> --> + <xsd:element name="enum" type="xsd:string"/> + <xsd:element name="string" type="xsd:string"/> + <xsd:element name="longlong" type="xsd:long"/> + <xsd:element name="ulonglong" type="xsd:unsignedLong"/> + <xsd:element name="longdouble" type="xsd:double"/> + <!-- <xsd:element name="fixed" type="xsd:string"/> --> + <!-- <xsd:element name="any" type="Deployment:Any"/> --> + <!-- <xsd:element name="typecode" type="Deployment:DataType"/> --> + <xsd:element name="element" type="Deployment:DataValue"/> + <!-- <xsd:element name="discriminator" type="Deployment:DataValue"/> --> + <!-- <xsd:element name="value" type="Deployment:DataValue"/> --> + <!-- <xsd:element name="boxedValue" type="Deployment:DataValue"/> --> + <xsd:element name="member" type="Deployment:NamedValue"/> + </xsd:choice> + </xsd:complexType> + + <xsd:complexType name="AliasType"> + <xsd:sequence> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="typeId" type="xsd:string"/> + <xsd:element name="elementType" type="Deployment:DataType"/> + </xsd:sequence> + </xsd:complexType> + + <xsd:complexType name="EnumType"> + <xsd:sequence> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="typeId" type="xsd:string"/> + <xsd:element name="member" type="xsd:string" maxOccurs="unbounded"/> + </xsd:sequence> + </xsd:complexType> + + <xsd:complexType name="StructType"> + <xsd:sequence> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="typeId" type="xsd:string"/> + <xsd:element name="member" type="Deployment:StructMemberType" minOccurs="0" maxOccurs="unbounded"/> + </xsd:sequence> + </xsd:complexType> + + <xsd:complexType name="StructMemberType"> + <xsd:sequence> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="type" type="Deployment:DataType"/> + </xsd:sequence> + </xsd:complexType> + + <xsd:complexType name="ValueType"> + <xsd:sequence> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="typeId" type="xsd:string"/> + <xsd:element name="modifier" type="xsd:string"/> + <xsd:element name="baseType" type="Deployment:DataType"/> + <xsd:element name="member" type="Deployment:ValueMemberType" minOccurs="0" maxOccurs="unbounded" /> + </xsd:sequence> + </xsd:complexType> + + <xsd:complexType name="ValueMemberType"> + <xsd:sequence> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="visibility" type="xsd:string"/> + <xsd:element name="type" type="Deployment:DataType"/> + </xsd:sequence> + </xsd:complexType> + + <xsd:complexType name="NamedValue"> + <xsd:sequence> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="value" type="Deployment:DataValue"/> + </xsd:sequence> + </xsd:complexType> + + <xsd:complexType name="SequenceType"> + <xsd:sequence> + <xsd:element name="bound" type="xsd:unsignedInt" minOccurs="0" /> + <xsd:element name="elementType" type="Deployment:DataType"/> + </xsd:sequence> + </xsd:complexType> + + <xsd:complexType name="Any"> + <xsd:sequence> + <xsd:element name="type" type="Deployment:DataType"/> + <xsd:element name="value" type="Deployment:DataValue"/> + </xsd:sequence> + </xsd:complexType> + + <xsd:complexType name="Property"> + <xsd:sequence> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="value" type="Deployment:Any"/> + </xsd:sequence> + </xsd:complexType> + +<!-- End of base definitions. --> + + <xsd:simpleType name="SatisfierPropertyKind"> + <xsd:restriction base="xsd:NCName"> + <xsd:enumeration value="Quantity"/> + <xsd:enumeration value="Capacity"/> + <xsd:enumeration value="Minimum"/> + <xsd:enumeration value="Maximum"/> + <xsd:enumeration value="Attribute"/> + <xsd:enumeration value="Selection"/> + </xsd:restriction> + </xsd:simpleType> + + <xsd:complexType name="SatisfierProperty"> + <xsd:sequence> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="kind" type="Deployment:SatisfierPropertyKind"/> + <xsd:element name="dynamic" type="xsd:boolean" /> + <xsd:element name="value" type="Deployment:Any"/> + </xsd:sequence> + </xsd:complexType> + + <xsd:complexType name="Resource"> + <xsd:sequence> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="resourceType" type="xsd:string" maxOccurs="unbounded" /> + <xsd:element name="property" type="Deployment:SatisfierProperty" minOccurs="0" maxOccurs="unbounded" /> + </xsd:sequence> + </xsd:complexType> + + <xsd:complexType name="Requirement"> + <xsd:sequence> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="resourceType" type="xsd:string"/> + <xsd:element name="property" type="Deployment:Property" minOccurs="0" maxOccurs="unbounded"/> + </xsd:sequence> + </xsd:complexType> + +<!-- Deployment --> + + <xsd:complexType name="ResourceDeploymentDescription"> + <xsd:sequence> + <xsd:element name="requirementName" type="xsd:string"/> + <xsd:element name="resourceName" type="xsd:string"/> + <xsd:element name="property" type="Deployment:Property" minOccurs="0" maxOccurs="unbounded"/> + </xsd:sequence> + </xsd:complexType> + + <xsd:complexType name="ArtifactDeploymentDescription"> + <xsd:sequence> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="source" type="xsd:string" minOccurs="0" maxOccurs="unbounded"/> + <xsd:element name="node" type="xsd:string" /> + <xsd:element name="location" type="xsd:string" minOccurs="0" maxOccurs="unbounded"/> + <xsd:element name="execParameter" type="Deployment:Property" minOccurs="0" maxOccurs="unbounded"/> + <xsd:element name="deployRequirement" type="Deployment:Requirement" minOccurs="0" maxOccurs="unbounded"/> + <xsd:element name="deployedResource" type="Deployment:ResourceDeploymentDescription" minOccurs="0" maxOccurs="unbounded"/> + </xsd:sequence> + <xsd:attribute ref="xmi:id" /> + </xsd:complexType> + + <xsd:complexType name="MonolithicDeploymentDescription"> + <xsd:sequence> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="source" type="xsd:string" minOccurs="0" maxOccurs="unbounded"/> + <xsd:element name="artifact" type="Deployment:IdRef" minOccurs="0" maxOccurs="unbounded"/> <!-- ArtifactDeploymentDescription --> + <xsd:element name="execParameter" type="Deployment:Property" minOccurs="0" maxOccurs="unbounded"/> + <xsd:element name="deployRequirement" type="Deployment:Requirement" minOccurs="0" maxOccurs="unbounded"/> + </xsd:sequence> + <xsd:attribute ref="xmi:id" /> + </xsd:complexType> + + <xsd:simpleType name="ResourceUsageKind"> + <xsd:restriction base="xsd:NCName"> + <xsd:enumeration value="None"/> + <xsd:enumeration value="InstanceUsesResource"/> + <xsd:enumeration value="ResourceUsesInstance"/> + <xsd:enumeration value="PortUsesResource"/> + <xsd:enumeration value="ResourceUsesPort"/> + </xsd:restriction> + </xsd:simpleType> + + <xsd:complexType name="InstanceResourceDeploymentDescription"> + <xsd:sequence> + <xsd:element name="resourceUsage" type="Deployment:ResourceUsageKind"/> + <xsd:element name="requirementName" type="xsd:string"/> + <xsd:element name="resourceName" type="xsd:string"/> + <xsd:element name="property" type="Deployment:Property" minOccurs="0" maxOccurs="unbounded" /> + </xsd:sequence> + </xsd:complexType> + + <xsd:complexType name="InstanceDeploymentDescription"> + <xsd:sequence> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="node" type="xsd:string"/> + <xsd:element name="source" type="xsd:string"/> + <xsd:element name="implementation" type="Deployment:IdRef"/> <!-- MonolithicDeploymentDescription --> + <xsd:element name="configProperty" type="Deployment:Property" minOccurs="0" maxOccurs="unbounded"/> + <xsd:element name="deployedResource" type="Deployment:InstanceResourceDeploymentDescription" minOccurs="0" maxOccurs="unbounded"/> + <xsd:element name="deployedSharedResource" type="Deployment:InstanceResourceDeploymentDescription" minOccurs="0"/> + </xsd:sequence> + <xsd:attribute ref="xmi:id" /> + </xsd:complexType> + + <xsd:simpleType name="CCMComponentPortKind"> + <xsd:restriction base="xsd:NCName"> + <xsd:enumeration value="Facet"/> + <xsd:enumeration value="SimplexReceptacle"/> + <xsd:enumeration value="MultiplexReceptacle"/> + <xsd:enumeration value="EventEmitter"/> + <xsd:enumeration value="EventPublisher"/> + <xsd:enumeration value="EventConsumer"/> + <xsd:enumeration value="ExtendedPort"/> + <xsd:enumeration value="MirrorPort"/> + </xsd:restriction> + </xsd:simpleType> + + <xsd:complexType name="ComponentPortDescription"> + <xsd:sequence> + <xsd:element name="name" type="xsd:string"/> + <!-- @@MAJO: Hack - specific/supported types should be required. --> + <xsd:element name="specificType" type="xsd:string" minOccurs="0"/> + <xsd:element name="supportedType" type="xsd:string" minOccurs="0" maxOccurs="unbounded"/> + <xsd:element name="provider" type="xsd:boolean"/> + <xsd:element name="exclusiveProvider" type="xsd:boolean"/> + <xsd:element name="exclusiveUser" type="xsd:boolean"/> + <xsd:element name="optional" type="xsd:boolean"/> + <xsd:element name="kind" type="Deployment:CCMComponentPortKind"/> + <xsd:element name="templateParam" type="xsd:string" minOccurs="0" maxOccurs="unbounded"/> + </xsd:sequence> + </xsd:complexType> + + <xsd:complexType name="ComponentPropertyDescription"> + <xsd:sequence> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="type" type="Deployment:DataType"/> + </xsd:sequence> + </xsd:complexType> + + <xsd:complexType name="ComponentExternalPortEndpoint"> + <xsd:sequence> + <xsd:element name="portName" type="xsd:string"/> + </xsd:sequence> + </xsd:complexType> + + <xsd:complexType name="PlanSubcomponentPortEndpoint"> + <xsd:sequence> + <xsd:element name="portName" type="xsd:string"/> + <xsd:element name="provider" type="xsd:string" minOccurs="0"/> + <xsd:element name="kind" type="Deployment:CCMComponentPortKind"/> + <xsd:element name="instance" type="Deployment:IdRef"/> <!-- InstanceDeploymentDescription --> + </xsd:sequence> + </xsd:complexType> + + <xsd:complexType name="ExternalReferenceEndpoint"> + <xsd:sequence> + <xsd:element name="location" type="xsd:string"/> + <xsd:element name="provider" type="xsd:boolean"/> + <xsd:element name="portName" type="xsd:string" minOccurs="0" /> + <xsd:element name="supportedType" type="xsd:string" minOccurs="0" maxOccurs="unbounded" /> + </xsd:sequence> + </xsd:complexType> + + <xsd:complexType name="ConnectionResourceDeploymentDescription"> + <xsd:sequence> + <xsd:element name="targetName" type="xsd:string"/> + <xsd:element name="requirementName" type="xsd:string"/> + <xsd:element name="resourceName" type="xsd:string"/> + <xsd:element name="property" type="Deployment:Property" minOccurs="0" maxOccurs="unbounded" /> + </xsd:sequence> + </xsd:complexType> + + <xsd:complexType name="PlanConnectionDescription"> + <xsd:sequence> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="source" type="xsd:string" minOccurs="0"/> + <xsd:element name="deployRequirement" type="Deployment:Requirement" minOccurs="0" maxOccurs="unbounded"/> + <xsd:element name="externalEndpoint" type="Deployment:ComponentExternalPortEndpoint" minOccurs="0" maxOccurs="unbounded"/> + <xsd:element name="internalEndpoint" type="Deployment:PlanSubcomponentPortEndpoint" minOccurs="0" maxOccurs="unbounded"/> + <xsd:element name="externalReference" type="Deployment:ExternalReferenceEndpoint" minOccurs="0" maxOccurs="unbounded"/> + <xsd:element name="deployedResource" type="Deployment:ConnectionResourceDeploymentDescription" minOccurs="0" maxOccurs="unbounded"/> + </xsd:sequence> + </xsd:complexType> + + <xsd:complexType name="ImplementationDependency"> + <xsd:sequence> + <xsd:element name="requiredType" type="xsd:string"/> + </xsd:sequence> + </xsd:complexType> + +<!-- Implementation --> + + <xsd:complexType name="Capability"> + <xsd:sequence> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="resourceType" type="xsd:string" minOccurs="0" maxOccurs="unbounded" /> + <xsd:element name="property" type="Deployment:SatisfierProperty" minOccurs="0" maxOccurs="unbounded" /> + </xsd:sequence> + </xsd:complexType> + + <xsd:complexType name="ImplementationRequirement"> + <xsd:sequence> + <xsd:element name="resourceUsage" type="Deployment:ResourceUsageKind" minOccurs="0"/> + <xsd:element name="resourcePort" type="xsd:string" minOccurs="0" /> + <xsd:element name="componentPort" type="xsd:string" minOccurs="0"/> + <xsd:element name="resourceType" type="xsd:string"/> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="property" type="Deployment:Property" minOccurs="0" maxOccurs="unbounded" /> + </xsd:sequence> + </xsd:complexType> + + <xsd:complexType name="SubcomponentPortEndpoint"> + <xsd:sequence> + <xsd:element name="portName" type="xsd:string"/> + <xsd:element name="instance" type="Deployment:IdRef"/> <!-- SubcomponentInstantiationDescription --> + </xsd:sequence> + </xsd:complexType> + + <xsd:complexType name="AssemblyConnectionDescription"> + <xsd:sequence> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="deployRequirement" type="Deployment:Requirement" minOccurs="0" maxOccurs="unbounded" /> + <xsd:element name="internalEndpoint" type="Deployment:SubcomponentPortEndpoint" minOccurs="0" maxOccurs="unbounded"/> + <xsd:element name="externalEndpoint" type="Deployment:ComponentExternalPortEndpoint" minOccurs="0" maxOccurs="unbounded"/> + <xsd:element name="externalReference" type="Deployment:ExternalReferenceEndpoint" minOccurs="0" maxOccurs="unbounded"/> + </xsd:sequence> + </xsd:complexType> + + <xsd:simpleType name="PlanLocalityKind"> + <xsd:restriction base="xsd:string"> + <xsd:enumeration value="SameProcess"/> + <xsd:enumeration value="DifferentProcess"/> + <xsd:enumeration value="NoConstraint"/> + </xsd:restriction> + </xsd:simpleType> + + <xsd:complexType name="PlanLocality"> + <xsd:sequence> + <xsd:element name="constraint" type="Deployment:PlanLocalityKind"/> + <xsd:element name="constrainedInstance" type="Deployment:IdRef" maxOccurs="unbounded" /> <!-- InstanceDeploymentDescription --> + </xsd:sequence> + </xsd:complexType> + +</xsd:schema> diff --git a/modules/CIAO/docs/schema/CIAOEvents.xsd b/modules/CIAO/docs/schema/CIAOEvents.xsd new file mode 100644 index 00000000000..645d7a6e530 --- /dev/null +++ b/modules/CIAO/docs/schema/CIAOEvents.xsd @@ -0,0 +1,104 @@ +<?xml version="1.0" encoding="utf-8"?> +<xsd:schema targetNamespace="http://www.dre.vanderbilt.edu/CIAOEvents" + xmlns:CIAO="http://www.dre.vanderbilt.edu/CIAOEvents" + xmlns:xsd="http://www.w3.org/2001/XMLSchema" + attributeFormDefault="unqualified"> + + <xsd:element name="CIAOEvents" type="CIAO:CIAOEventsDef"> + <xsd:annotation> + <xsd:documentation> + Root element for defining all the pub/sub services configuration + used by a DeploymentPlan. + A CIAO:Events document should reside in a separate file. + A DeploymentPlan can refer to one or more CIAO:Events file names + using the "infoProperty" tag. + </xsd:documentation> + </xsd:annotation> + </xsd:element> + +<!-- =============================================================== --> +<!-- CIAO Event Service Deployment Description --> +<!-- =============================================================== --> + + <xsd:simpleType name="EventServiceType"> + <xsd:restriction base="xsd:NCName"> + <xsd:enumeration value="EC"/> + <xsd:enumeration value="RTEC"/> + <xsd:enumeration value="NOTIFY"/> + <xsd:enumeration value="RTNOTIFY"/> + </xsd:restriction> + </xsd:simpleType> + + <xsd:complexType name="CIAOEventsDef"> + <xsd:sequence> + <xsd:element name="eventServiceConfiguration" type="CIAO:EventServiceDescription" maxOccurs="unbounded"/> + </xsd:sequence> + <xsd:attribute name="id" type="xsd:ID"/> + </xsd:complexType> + + <xsd:complexType name="EventServiceDescription"> + <xsd:sequence> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="node" type="xsd:string"/> + <xsd:element name="type" type="CIAO:EventServiceType"/> + <xsd:element name="svc_cfg_file" type="xsd:string"/> + <xsd:element name="filter" type="CIAO:Filter" minOccurs="0" maxOccurs="unbounded"/> + <xsd:element name="addr_serv" type="CIAO:AddressServerDescription" minOccurs="0" maxOccurs="unbounded"/> + <xsd:element name="udp_sender" type="CIAO:UDPSenderDescription" minOccurs="0" maxOccurs="unbounded"/> + <xsd:element name="udp_receiver" type="CIAO:UDPReceiverDescription" minOccurs="0" maxOccurs="unbounded"/> + </xsd:sequence> + <xsd:attribute name="id" type="xsd:ID"/> + </xsd:complexType> + + +<!-- =============================================================== --> +<!-- CIAO Event Filter Description --> +<!-- =============================================================== --> + + <xsd:simpleType name="FilterType"> + <xsd:restriction base="xsd:NCName"> + <xsd:enumeration value="CONJUNCTION"/> + <xsd:enumeration value="DISJUNCTION"/> + <xsd:enumeration value="LOGICAL_AND"/> + <xsd:enumeration value="NEGATE"/> + </xsd:restriction> + </xsd:simpleType> + + <xsd:complexType name="Filter"> + <xsd:sequence> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="type" type="CIAO:FilterType"/> + <xsd:element name="source" type="xsd:string" maxOccurs="unbounded"/> + </xsd:sequence> + <xsd:attribute name="id" type="xsd:ID"/> + </xsd:complexType> + +<!-- =============================================================== --> +<!-- CIAO Event Service Federation Description --> +<!-- =============================================================== --> + + <xsd:complexType name="AddressServerDescription"> + <xsd:sequence> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="port" type="xsd:unsignedShort"/> + <xsd:element name="address" type="xsd:string"/> + </xsd:sequence> + </xsd:complexType> + + <xsd:complexType name="UDPSenderDescription"> + <xsd:sequence> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="addr_serv_id" type="xsd:string"/> + </xsd:sequence> + </xsd:complexType> + + <xsd:complexType name="UDPReceiverDescription"> + <xsd:sequence> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="addr_serv_id" type="xsd:string" minOccurs="0" /> + <xsd:element name="is_multicast" type="xsd:boolean"/> + <xsd:element name="listen_port" type="xsd:unsignedShort"/> + </xsd:sequence> + </xsd:complexType> + +</xsd:schema> diff --git a/modules/CIAO/docs/schema/CIAOServerResources.xsd b/modules/CIAO/docs/schema/CIAOServerResources.xsd new file mode 100644 index 00000000000..7a62a0e6eab --- /dev/null +++ b/modules/CIAO/docs/schema/CIAOServerResources.xsd @@ -0,0 +1,218 @@ +<?xml version="1.0" encoding="utf-8"?> +<xsd:schema targetNamespace="http://www.dre.vanderbilt.edu/ServerResources" + xmlns:CIAO="http://www.dre.vanderbilt.edu/ServerResources" + xmlns:xsd="http://www.w3.org/2001/XMLSchema" + attributeFormDefault="unqualified"> + + <xsd:element name="ServerResources" type="CIAO:ServerResourcesDef"> + <xsd:annotation> + <xsd:documentation> + Root element for defining all the resources used by a DeploymentPlan. + A CIAO:ServerResources document should reside in a separate file. + A DeploymentPlan can refer to one or more CIAO:ServerResources file names + using the "infoProperty" tag. + </xsd:documentation> + </xsd:annotation> + </xsd:element> + + <xsd:complexType name="ServerResourcesDef"> + <xsd:sequence> + <xsd:element name="cmdline" type="CIAO:ServerCmdlineOptions" minOccurs="0"/> + <xsd:element name="svcconf" type="CIAO:ACESvcConf" minOccurs="0"/> + <xsd:element name="orbConfigs" type="CIAO:ORBConfigs" /> + </xsd:sequence> + <xsd:attribute name="id" type="xsd:ID"/> + </xsd:complexType> + + +<!-- =============================================================== --> + + <xsd:complexType name="ServerCmdlineOptions"> + <xsd:annotation> + <xsd:documentation> + Just a list of argv's that should be appended to the command + line used to start up the NodeApplication. + </xsd:documentation> + </xsd:annotation> + <xsd:sequence> + <xsd:element name="arg" type="xsd:string" maxOccurs="unbounded"/> + </xsd:sequence> + </xsd:complexType> + +<!-- ================================================================ --> + + <xsd:complexType name="ACESvcConf"> + <xsd:annotation> + <xsd:documentation> + Contains either a pointer to a svc.conf file, or the actual + content of the svc.conf file required to configure the + NodeApplication. + </xsd:documentation> + </xsd:annotation> + <xsd:choice> + <!-- Specify the URI of a svc.conf file. --> + <xsd:element name="uri" type="xsd:string"/> + + <!-- If we agree to use only XML based svc.conf "file", we will + support inlined svcconf entries here. If that will be the + case, we still need to convert ACE_Svc_Conf DTD to schema. --> + <!-- + <xsd:element name="inline" type="ACE_Svc_Conf"/> + --> + </xsd:choice> + </xsd:complexType> + +<!-- ========================================================================= --> + + <xsd:complexType name="ORBConfigs"> + <xsd:annotation> + <xsd:documentation> + Contains the shared resources the component ORB must support + and all available policySets that components installed under + the ORB can request. + </xsd:documentation> + </xsd:annotation> + <xsd:sequence> + <xsd:element name="resources" type="CIAO:ORBResources" + minOccurs="0"/> + <xsd:element name="policySet" type="CIAO:PolicySet" + maxOccurs="unbounded"/> + </xsd:sequence> + </xsd:complexType> + +<!-- ========================================================================= --> + + <xsd:complexType name="ORBResources"> + <xsd:choice maxOccurs="unbounded"> + <xsd:element name="threadpool" type="CIAO:ThreadpoolDef"/> + <xsd:element name="threadpoolWithLanes" type="CIAO:ThreadpoolWithLanesDef"/> + <xsd:element name="connectionBands" type="CIAO:ConnectionBandsDef"/> + <!-- Other ORB-wide resources that must be allocated by the ORB --> + </xsd:choice> + </xsd:complexType> + + <xsd:simpleType name="Priority"> + <xsd:restriction base="xsd:int"> + <xsd:minInclusive value="0"/> + <xsd:maxInclusive value="32767"/> + </xsd:restriction> + </xsd:simpleType> + + <xsd:complexType name="ThreadpoolDef"> + <xsd:sequence> + <xsd:element name="stacksize" type="xsd:unsignedLong"/> + <xsd:element name="static_threads" type="xsd:unsignedLong"/> + <xsd:element name="dynamic_threads" type="xsd:unsignedLong"/> + <xsd:element name="default_priority" type="CIAO:Priority"/> + <xsd:element name="allow_request_buffering" type="xsd:boolean"/> + <xsd:element name="max_buffered_requests" type="xsd:unsignedLong"/> + <xsd:element name="max_request_buffered_size" type="xsd:unsignedLong"/> + </xsd:sequence> + <xsd:attribute name="id" type="xsd:ID"/> + </xsd:complexType> + + <xsd:complexType name="ThreadpoolWithLanesDef"> + <xsd:sequence> + <xsd:element name="threadpoolLane" type="CIAO:ThreadpoolLaneDef" + maxOccurs="unbounded"/> + <xsd:element name="stacksize" type="xsd:unsignedLong" /> + <xsd:element name="allow_borrowing" type="xsd:boolean"/> + <xsd:element name="allow_request_buffering" type="xsd:boolean"/> + <xsd:element name="max_buffered_requests" type="xsd:unsignedLong"/> + <xsd:element name="max_request_buffered_size" type="xsd:unsignedLong"/> + </xsd:sequence> + <xsd:attribute name="id" type="xsd:ID"/> <!-- Threadpool ID should be + referenced by individual policies + in the policysets below --> + </xsd:complexType> + + <xsd:complexType name="ThreadpoolLaneDef"> + <xsd:sequence> + <xsd:element name="static_threads" type="xsd:unsignedLong"/> + <xsd:element name="dynamic_threads" type="xsd:unsignedLong"/> + <xsd:element name="priority" type="CIAO:Priority"/> + </xsd:sequence> + </xsd:complexType> + + <xsd:complexType name="ConnectionBandsDef"> + <xsd:annotation> + <xsd:documentation> + This is only used to provide a ORB-wide view of all connection bands. + The ORB doesn't really need to "create" this resource. + </xsd:documentation> + </xsd:annotation> + <xsd:sequence> + <xsd:element name="band" type="CIAO:PriorityBandDef" maxOccurs="unbounded"/> + </xsd:sequence> + <xsd:attribute name="id" type="xsd:ID"/> + </xsd:complexType> + + <xsd:complexType name="PriorityBandDef"> + <xsd:sequence> + <xsd:element name="low" type="xsd:int"/> + <xsd:element name="high" type="xsd:int"/> + </xsd:sequence> + </xsd:complexType> + +<!-- ========================================================================= --> + + <xsd:complexType name="PolicySet"> + <xsd:annotation> + <xsd:documentation> + Contains a set of CORBA Policies that can be applied to a + component instance at once. We should eventually expand this + list to incorporate all the policies defined in + ciaopolicy.xs. I'm focusing on the RT aspects for now. + + The ID of a policy set should be referenced by the component + instances in a DeploymentPlan document under the + "deployedResource" tag. + </xsd:documentation> + </xsd:annotation> + <xsd:choice maxOccurs="unbounded"> + <xsd:element name="priorityModel" type="CIAO:PriorityModelPolicyDef"/> + <xsd:element name="nwpriorityModel" type="CIAO:NWPriorityModelPolicyDef"/> + <xsd:element name="cnwpriorityModel" type="CIAO:CNWPriorityModelPolicyDef"/> + <xsd:element name="threadpool" type="xsd:IDREF"/> + <xsd:element name="priorityBandedConnection" type="xsd:IDREF"/> + </xsd:choice> + <xsd:attribute name="id" type="xsd:ID"/> + </xsd:complexType> + + <xsd:simpleType name="PriorityModel"> + <xsd:restriction base="xsd:NCName"> + <xsd:enumeration value="SERVER_DECLARED"/> + <xsd:enumeration value="CLIENT_PROPAGATED"/> + </xsd:restriction> + </xsd:simpleType> + + <xsd:simpleType name="NWPriorityModel"> + <xsd:restriction base="xsd:NCName"> + <xsd:enumeration value="SERVER_DECLARED_NWPRIORITY"/> + <xsd:enumeration value="CLIENT_PROPAGATED_NWPRIORITY"/> + </xsd:restriction> + </xsd:simpleType> + + <xsd:complexType name="PriorityModelPolicyDef"> + <xsd:sequence> + <xsd:element name="priority_model" type="CIAO:PriorityModel"/> + </xsd:sequence> + <xsd:attribute name="server_priority" type="CIAO:Priority"/> + </xsd:complexType> + + <xsd:complexType name="NWPriorityModelPolicyDef"> + <xsd:sequence> + <xsd:element name="nw_priority_model" type="CIAO:NWPriorityModel"/> + <xsd:element name="request_dscp" type="xsd:long"/> + <xsd:element name="reply_dscp" type="xsd:long"/> + </xsd:sequence> + </xsd:complexType> + + <xsd:complexType name="CNWPriorityModelPolicyDef"> + <xsd:sequence> + <xsd:element name="request_dscp" type="xsd:long"/> + <xsd:element name="reply_dscp" type="xsd:long"/> + </xsd:sequence> + </xsd:complexType> + +</xsd:schema> diff --git a/modules/CIAO/docs/schema/Deployment.xsd b/modules/CIAO/docs/schema/Deployment.xsd new file mode 100644 index 00000000000..591aa588d74 --- /dev/null +++ b/modules/CIAO/docs/schema/Deployment.xsd @@ -0,0 +1,29 @@ +<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.w3.org/2001/XMLSchema XMLSchema.xsd" + xmlns:Deployment="http://www.omg.org/Deployment" + targetNamespace="http://www.omg.org/Deployment"> + + <xsd:include schemaLocation="Basic_Deployment_Data.xsd"/> + <xsd:include schemaLocation="cpd.xsd"/> + <xsd:include schemaLocation="ccd.xsd"/> + <xsd:include schemaLocation="cdd.xsd"/> + <xsd:include schemaLocation="cdp.xsd"/> + <xsd:include schemaLocation="cid.xsd"/> + <xsd:include schemaLocation="iad.xsd"/> + <xsd:include schemaLocation="pcd.xsd"/> + <xsd:include schemaLocation="toplevel.xsd"/> + + +<!-- Top-level elements. --> + + <xsd:element name="domain" type="Deployment:Domain"/> + <xsd:element name="DeploymentPlan" type="Deployment:deploymentPlan"/> + <xsd:element name="implementationArtifactDescription" type="Deployment:ImplementationArtifactDescription" /> + <xsd:element name="componentInterfaceDescription" type="Deployment:ComponentInterfaceDescription"/> + <xsd:element name="componentImplementationDescription" type="Deployment:ComponentImplementationDescription"/> + <xsd:element name="componentPackageDescription" type="Deployment:ComponentPackageDescription"/> + <xsd:element name="packageConfiguration" type="Deployment:PackageConfiguration"/> + <xsd:element name="topLevelPackageDescription" type="Deployment:TopLevelPackageDescription"/> + +</xsd:schema> diff --git a/modules/CIAO/docs/schema/Modified_Deployment.xsd b/modules/CIAO/docs/schema/Modified_Deployment.xsd new file mode 100644 index 00000000000..65f5eb81d1e --- /dev/null +++ b/modules/CIAO/docs/schema/Modified_Deployment.xsd @@ -0,0 +1,826 @@ +<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.w3.org/2001/XMLSchema XMLSchema.xsd" + xmlns:Deployment="http://www.omg.org/Deployment" + targetNamespace="http://www.omg.org/Deployment"> + + + <xsd:simpleType name="TCKind"> + <xsd:restriction base="xsd:NCName"> + <xsd:enumeration value="tk_null"/> + <xsd:enumeration value="tk_void"/> + <xsd:enumeration value="tk_short"/> + <xsd:enumeration value="tk_long"/> + <xsd:enumeration value="tk_ushort"/> + <xsd:enumeration value="tk_ulong"/> + <xsd:enumeration value="tk_float"/> + <xsd:enumeration value="tk_double"/> + <xsd:enumeration value="tk_boolean"/> + <xsd:enumeration value="tk_char"/> + <xsd:enumeration value="tk_octet"/> + <xsd:enumeration value="tk_any"/> + <xsd:enumeration value="tk_TypeCode"/> + <xsd:enumeration value="tk_Principal"/> + <xsd:enumeration value="tk_objref"/> + <xsd:enumeration value="tk_struct"/> + <xsd:enumeration value="tk_union"/> + <xsd:enumeration value="tk_enum"/> + <xsd:enumeration value="tk_string"/> + <xsd:enumeration value="tk_sequence"/> + <xsd:enumeration value="tk_array"/> + <xsd:enumeration value="tk_alias"/> + <xsd:enumeration value="tk_except"/> + <xsd:enumeration value="tk_longlong"/> + <xsd:enumeration value="tk_ulonglong"/> + <xsd:enumeration value="tk_longdouble"/> + <xsd:enumeration value="tk_wchar"/> + <xsd:enumeration value="tk_wstring"/> + <xsd:enumeration value="tk_wfixed"/> + <xsd:enumeration value="tk_value"/> + <xsd:enumeration value="tk_value_box"/> + <xsd:enumeration value="tk_native"/> + <xsd:enumeration value="tk_abstract_interface"/> + <xsd:enumeration value="tk_local_interface"/> + <xsd:enumeration value="tk_component"/> + <xsd:enumeration value="tk_home"/> + <xsd:enumeration value="tk_event"/> + </xsd:restriction> + </xsd:simpleType> + + <xsd:complexType name="DataType"> + <xsd:choice> + <xsd:element name="kind" type="Deployment:TCKind"/> +<!-- +@@ not used, what for? + + <xsd:element name="enum" type="Deployment:EnumType"/> + <xsd:element name="objref" type="Deployment:ObjrefType"/> + <xsd:element name="boundedString" type="Deployment:BoundedStringType"/> + <xsd:element name="fixed" type="Deployment:FixedType"/> + <xsd:element name="array" type="Deployment:ArrayType"/> + <xsd:element name="sequence" type="Deployment:SequenceType"/> + <xsd:element name="alias" type="Deployment:AliasType"/> + <xsd:element name="struct" type="Deployment:StructType"/> + <xsd:element name="value" type="Deployment:ValueType"/> + <xsd:element name="union" type="Deployment:UnionType"/> +--> + </xsd:choice> + </xsd:complexType> + + + <xsd:complexType name="DataValue"> + <xsd:choice> + <xsd:element name="short" type="xsd:short"/> + <xsd:element name="long" type="xsd:int"/> + <xsd:element name="ushort" type="xsd:unsignedShort"/> + <xsd:element name="ulong" type="xsd:unsignedInt"/> + <xsd:element name="float" type="xsd:float"/> + <xsd:element name="double" type="xsd:double"/> + <xsd:element name="boolean" type="xsd:boolean"/> + <xsd:element name="octet" type="xsd:unsignedByte"/> + <!-- xsd:element name="opaque" type="xsd:base64Binary"/ --> + <xsd:element name="objref" type="xsd:string"/> + <xsd:element name="enum" type="xsd:string"/> + <xsd:element name="string" type="xsd:string"/> + <xsd:element name="longlong" type="xsd:long"/> + <xsd:element name="ulonglong" type="xsd:unsignedLong"/> + <xsd:element name="longdouble" type="xsd:double"/> + <xsd:element name="fixed" type="xsd:string"/> + +<!-- +@@ recursive + <xsd:element name="any" type="Deployment:Any"/> +--> + + <xsd:element name="typecode" type="Deployment:DataType"/> + +<!-- +@@ recursive + <xsd:element name="element" type="Deployment:DataValue"/> + <xsd:element name="discriminator" type="Deployment:DataValue"/> + <xsd:element name="value" type="Deployment:DataValue"/> + <xsd:element name="boxedValue" type="Deployment:DataValue"/> + <xsd:element name="member" type="Deployment:NamedValue"/> +--> + </xsd:choice> + </xsd:complexType> + + + <xsd:complexType name="Any"> + <xsd:sequence> + <xsd:element name="type" type="Deployment:DataType"/> + <xsd:element name="value" type="Deployment:DataValue"/> + </xsd:sequence> + </xsd:complexType> + + + <xsd:complexType name="Property"> + <xsd:sequence> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="value" type="Deployment:Any"/> + </xsd:sequence> + </xsd:complexType> + + +<!-- End of base definitions. --> + + <xsd:complexType name="Node"> + <xsd:sequence> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="label" type="xsd:string"/> +<!-- +@@ recursive, not used + <xsd:element name="connection" type="Deployment:Interconnect"/> + <xsd:element name="sharedResource" type="Deployment:SharedResource"/> + <xsd:element name="resource" type="Deployment:Resource"/> +--> + </xsd:sequence> + </xsd:complexType> + + + <xsd:simpleType name="SatisfierPropertyKind"> + <xsd:restriction base="xsd:NCName"> + <xsd:enumeration value="Quantity"/> + <xsd:enumeration value="Capacity"/> + <xsd:enumeration value="Minimum"/> + <xsd:enumeration value="Maximum"/> + <xsd:enumeration value="Attribute"/> + <xsd:enumeration value="Selection"/> + </xsd:restriction> + </xsd:simpleType> + + + <xsd:complexType name="SatisfierProperty"> + <xsd:sequence> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="kind" type="Deployment:SatisfierPropertyKind"/> + <xsd:element name="value" type="Deployment:Any"/> + </xsd:sequence> + </xsd:complexType> + + + <xsd:complexType name="Resource"> + <xsd:sequence> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="resourceType" type="xsd:string"/> + <xsd:element name="property" type="Deployment:SatisfierProperty"/> + </xsd:sequence> + </xsd:complexType> + + + <xsd:complexType name="SharedResource"> + <xsd:sequence> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="resourceType" type="xsd:string"/> + <xsd:element name="node" type="Deployment:Node"/> + <xsd:element name="property" type="Deployment:SatisfierProperty"/> + </xsd:sequence> + </xsd:complexType> + + + <xsd:complexType name="Domain"> + <xsd:sequence> + <xsd:element name="label" type="xsd:string"/> + <xsd:element name="UUID" type="xsd:string"/> + <xsd:element name="sharedResource" type="Deployment:SharedResource" minOccurs="0"/> + <xsd:element name="node" type="Deployment:Node" maxOccurs="unbounded"/> +<!-- +@@ recursive, not used + <xsd:element name="interconnect" type="Deployment:Interconnect"/> + <xsd:element name="bridge" type="Deployment:Bridge"/> +--> + <xsd:element name="infoProperty" type="Deployment:Property" minOccurs="0"/> + </xsd:sequence> + </xsd:complexType> + + + <xsd:complexType name="Requirement"> + <xsd:sequence> + <xsd:element name="resourceType" type="xsd:string"/> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="property" type="Deployment:Property"/> + </xsd:sequence> + </xsd:complexType> + + +<!-- Deployment --> + + <xsd:complexType name="ResourceDeploymentDescription"> + <xsd:sequence> + <xsd:element name="requirementName" type="xsd:string"/> + <xsd:element name="resourceName" type="xsd:string"/> + <xsd:element name="resourceValue" type="Deployment:Any"/> + </xsd:sequence> + </xsd:complexType> + + + <xsd:complexType name="ArtifactDeploymentDescription"> + <xsd:sequence> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="source" type="xsd:string"/> + <xsd:element name="node" type="xsd:string" minOccurs="0"/> + <xsd:element name="location" type="xsd:string" maxOccurs="unbounded"/> + <xsd:element name="execParameter" type="Deployment:Property" minOccurs="0"/> + <xsd:element name="deployRequirement" type="Deployment:Requirement" minOccurs="0"/> + <xsd:element name="deployedResource" type="Deployment:ResourceDeploymentDescription" minOccurs="0"/> + </xsd:sequence> + <xsd:attribute name="id" type="xsd:ID"/> + </xsd:complexType> + + + <xsd:complexType name="MonolithicDeploymentDescription"> + <xsd:sequence> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="source" type="xsd:string"/> + <xsd:element name="artifact" type="xsd:IDREF" maxOccurs="unbounded"/> <!-- ArtifactDeploymentDescription --> + <xsd:element name="execParameter" type="Deployment:Property" minOccurs="0"/> + <xsd:element name="deployRequirement" type="Deployment:Requirement" minOccurs="0"/> + </xsd:sequence> + <xsd:attribute name="id" type="xsd:ID"/> + </xsd:complexType> + + <xsd:simpleType name="ResourceUsageKind"> + <xsd:restriction base="xsd:NCName"> + <xsd:enumeration value="None"/> + <xsd:enumeration value="InstanceUsesResource"/> + <xsd:enumeration value="ResourceUsesInstance"/> + <xsd:enumeration value="PortUsesResource"/> + <xsd:enumeration value="ResourceUsesPort"/> + </xsd:restriction> + </xsd:simpleType> + + + <xsd:complexType name="InstanceResourceDeploymentDescription"> + <xsd:sequence> + <xsd:element name="resourceUsage" type="Deployment:ResourceUsageKind"/> + <xsd:element name="requirementName" type="xsd:string"/> + <xsd:element name="resourceName" type="xsd:string"/> + <xsd:element name="resourceValue" type="Deployment:Any"/> + </xsd:sequence> + </xsd:complexType> + + + <xsd:complexType name="InstanceDeploymentDescription"> + <xsd:sequence> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="node" type="xsd:string"/> + <xsd:element name="source" type="xsd:string"/> + <xsd:element name="implementation" type="xsd:IDREF"/> <!-- MonolithicDeploymentDescription --> + <xsd:element name="configProperty" type="Deployment:Property" minOccurs="0" maxOccurs="unbounded"/> + <xsd:element name="deployedResource" type="Deployment:InstanceResourceDeploymentDescription" minOccurs="0"/> + <xsd:element name="deployedSharedResource" type="Deployment:InstanceResourceDeploymentDescription" minOccurs="0"/> + </xsd:sequence> + <xsd:attribute name="id" type="xsd:ID"/> + </xsd:complexType> + + + <xsd:simpleType name="CCMComponentPortKind"> + <xsd:restriction base="xsd:NCName"> + <xsd:enumeration value="Facet"/> + <xsd:enumeration value="SimplexReceptacle"/> + <xsd:enumeration value="MultiplexReceptacle"/> + <xsd:enumeration value="EventEmitter"/> + <xsd:enumeration value="EventPublisher"/> + <xsd:enumeration value="EventConsumer"/> + </xsd:restriction> + </xsd:simpleType> + + + <xsd:complexType name="ComponentPortDescription"> + <xsd:sequence> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="specificType" type="xsd:string"/> + <xsd:element name="supportedType" type="xsd:string"/> + <xsd:element name="provider" type="xsd:string"/> + <xsd:element name="exclusiveProvider" type="xsd:string"/> + <xsd:element name="exclusiveUser" type="xsd:string"/> + <xsd:element name="optional" type="xsd:string"/> + <xsd:element name="kind" type="Deployment:CCMComponentPortKind"/> + </xsd:sequence> + </xsd:complexType> + + + <xsd:complexType name="ComponentPropertyDescription"> + <xsd:sequence> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="type" type="Deployment:DataType"/> + </xsd:sequence> + </xsd:complexType> + + + <xsd:complexType name="ComponentInterfaceDescription"> + <!-- @@mxiong: added minOccurs="0" maxOccurs="unbounded" + when adding config_handler support + for repoMan + --> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:sequence> + <xsd:element name="label" type="xsd:string"/> + <xsd:element name="UUID" type="xsd:string"/> + <xsd:element name="specificType" type="xsd:string"/> + <xsd:element name="supportedType" type="xsd:string" maxOccurs="unbounded" /> + <xsd:element name="idlFile" type="xsd:string" minOccurs="0"/> + <xsd:element name="configProperty" type="Deployment:Property" minOccurs="0"/> + <xsd:element name="port" type="Deployment:ComponentPortDescription" maxOccurs="unbounded"/> + <xsd:element name="property" type="Deployment:ComponentPropertyDescription" minOccurs="0"/> + <xsd:element name="infoProperty" type="Deployment:Property" minOccurs="0"/> + </xsd:sequence> + <xsd:element name="contentLocation" type="xsd:string"/> + </xsd:choice> + <!-- @@mxiong: added a href attribute + when adding config_handler support + for repoMan + --> + <xsd:attribute name="href" type="xsd:string" use="optional"/> + </xsd:complexType> + + + <xsd:complexType name="ComponentExternalPortEndpoint"> + <xsd:sequence> + <xsd:element name="portName" type="xsd:string"/> + </xsd:sequence> + </xsd:complexType> + + + <xsd:complexType name="PlanSubcomponentPortEndpoint"> + <xsd:sequence> + <xsd:element name="portName" type="xsd:string"/> + <xsd:element name="provider" type="xsd:string" minOccurs="0"/> + <xsd:element name="kind" type="Deployment:CCMComponentPortKind"/> + <xsd:element name="instance" type="xsd:IDREF"/> <!-- InstanceDeploymentDescription --> + </xsd:sequence> + </xsd:complexType> + + + <xsd:complexType name="ExternalReferenceEndpoint"> + <xsd:sequence> + <xsd:element name="location" type="xsd:string"/> + </xsd:sequence> + </xsd:complexType> + + + <xsd:complexType name="ConnectionResourceDeploymentDescription"> + <xsd:sequence> + <xsd:element name="targetName" type="xsd:string"/> + <xsd:element name="requirementName" type="xsd:string"/> + <xsd:element name="resourceName" type="xsd:string"/> + <xsd:element name="resourceValue" type="Deployment:Any"/> + </xsd:sequence> + </xsd:complexType> + + + <xsd:complexType name="PlanConnectionDescription"> + <xsd:sequence> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="source" type="xsd:string" minOccurs="0"/> + <xsd:element name="deployRequirement" type="Deployment:Requirement" minOccurs="0"/> + <xsd:element name="externalEndpoint" type="Deployment:ComponentExternalPortEndpoint" minOccurs="0" maxOccurs="unbounded"/> + <xsd:element name="internalEndpoint" type="Deployment:PlanSubcomponentPortEndpoint" minOccurs="0" maxOccurs="unbounded"/> + <xsd:element name="externalReference" type="Deployment:ExternalReferenceEndpoint" minOccurs="0" maxOccurs="unbounded"/> + <xsd:element name="deployedResource" type="Deployment:ConnectionResourceDeploymentDescription" minOccurs="0"/> + </xsd:sequence> + </xsd:complexType> + + + <xsd:complexType name="ImplementationDependency"> + <xsd:sequence> + <xsd:element name="requiredType" type="xsd:string"/> + </xsd:sequence> + </xsd:complexType> + + + <xsd:complexType name="DeploymentPlan"> + <xsd:sequence> + <xsd:element name="label" type="xsd:string" minOccurs="0"/> + <xsd:element name="UUID" type="xsd:string" minOccurs="0"/> + <xsd:element name="realizes" type="Deployment:ComponentInterfaceDescription" minOccurs="0" maxOccurs="1"/> + <xsd:element name="implementation" type="Deployment:MonolithicDeploymentDescription" maxOccurs="unbounded" /> + <xsd:element name="instance" type="Deployment:InstanceDeploymentDescription" minOccurs="0" maxOccurs="unbounded"/> + <xsd:element name="connection" type="Deployment:PlanConnectionDescription" minOccurs="0" maxOccurs="unbounded"/> + <!-- potentially recursive, not used + <xsd:element name="externalProperty" type="Deployment:PlanPropertyMapping"/> + --> + <xsd:element name="dependsOn" type="Deployment:ImplementationDependency" minOccurs="0" maxOccurs="unbounded"/> + <xsd:element name="artifact" type="Deployment:ArtifactDeploymentDescription" minOccurs="0" maxOccurs="unbounded"/> + <xsd:element name="infoProperty" type="Deployment:Property" minOccurs="0" maxOccurs="unbounded"/> + </xsd:sequence> + </xsd:complexType> + + + + +<!-- Implementation --> + + + <xsd:complexType name="Capability"> + <xsd:sequence> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="resourceType" type="xsd:string"/> + <xsd:element name="property" type="Deployment:SatisfierProperty"/> + </xsd:sequence> + </xsd:complexType> + + + <xsd:complexType name="NamedImplementationArtifact"> + <xsd:sequence> + <xsd:element name="name" type="xsd:string"/> + <!-- @@ recursive NIA->IAD->NIA --> + <xsd:element name="referencedArtifact" type="Deployment:ImplementationArtifactDescription"/> + </xsd:sequence> + </xsd:complexType> + + + <xsd:complexType name="ImplementationArtifactDescription"> + <!-- @@mxiong: added minOccurs="0" maxOccurs="1" + when adding config_handler support + for repoMan + --> + <xsd:choice minOccurs="0" maxOccurs="1"> + <xsd:sequence> + <xsd:element name="label" type="xsd:string"/> + <xsd:element name="UUID" type="xsd:string"/> + + <!-- @@ There probably should be only one location? --> + <xsd:element name="location" type="xsd:string" maxOccurs="unbounded"/> + <xsd:element name="execParameter" type="Deployment:Property" minOccurs="0"/> + <xsd:element name="deployRequirement" type="Deployment:Requirement" minOccurs="0"/> + <xsd:element name="dependsOn" type="Deployment:NamedImplementationArtifact" minOccurs="0" maxOccurs="unbounded"/> + <xsd:element name="infoProperty" type="Deployment:Property" minOccurs="0"/> + </xsd:sequence> + <xsd:element name="contentLocation" type="xsd:string"/> + </xsd:choice> + <!-- @@mxiong: added a href attribute + when adding config_handler support + for repoMan + --> + <xsd:attribute name="href" type="xsd:string" use="optional"/> + </xsd:complexType> + + + <xsd:complexType name="ImplementationRequirement"> + <xsd:sequence> + <xsd:element name="resourceUsage" type="Deployment:ResourceUsageKind"/> + <xsd:element name="resourcePort" type="xsd:string"/> + <xsd:element name="componentPort" type="xsd:string"/> + <xsd:element name="resourceType" type="xsd:string"/> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="property" type="Deployment:Property"/> + </xsd:sequence> + </xsd:complexType> + + + <xsd:complexType name="MonolithicImplementationDescription"> + <xsd:sequence> + <xsd:element name="execParameter" type="Deployment:Property" minOccurs="0"/> + <xsd:element name="primaryArtifact" type="Deployment:NamedImplementationArtifact" maxOccurs="unbounded"/> + <xsd:element name="deployRequirement" type="Deployment:ImplementationRequirement" minOccurs="0"/> + </xsd:sequence> + </xsd:complexType> + + + <xsd:complexType name="PackagedComponentImplementation"> + <xsd:sequence> + <xsd:element name="name" type="xsd:string"/> + <!-- @@ recursive CPD->PCI->CID->CAD->SID->CPD --> + <xsd:element name="referencedImplementation" type="Deployment:ComponentImplementationDescription"/> + </xsd:sequence> + </xsd:complexType> + + + <xsd:complexType name="ComponentPackageDescription"> + <!-- @@mxiong: added minOccurs="0" maxOccurs="1" + when adding config_handler support + for repoMan + --> + <xsd:choice minOccurs="0" maxOccurs="1"> + <xsd:sequence> + <xsd:element name="label" type="xsd:string"/> + <xsd:element name="UUID" type="xsd:string"/> + <xsd:element name="realizes" type="Deployment:ComponentInterfaceDescription" minOccurs="0"/> + <xsd:element name="configProperty" type="Deployment:Property" minOccurs="0"/> + <xsd:element name="implementation" type="Deployment:PackagedComponentImplementation"/> + <xsd:element name="infoProperty" type="Deployment:Property" minOccurs="0"/> + </xsd:sequence> + <xsd:element name="contentLocation" type="xsd:string"/> + </xsd:choice> + <!-- @@mxiong: added href + when adding config_handler support + for repoMan + --> + <xsd:attribute name="href" type="xsd:string" use="optional"/> + </xsd:complexType> + + + <xsd:complexType name="ComponentPackageReference"> + <xsd:sequence> + <xsd:element name="requiredUUID" type="xsd:string"/> + <xsd:element name="requiredName" type="xsd:string"/> + <xsd:element name="requiredType" type="xsd:string"/> + </xsd:sequence> + </xsd:complexType> + + + <xsd:complexType name="SubcomponentInstantiationDescription"> + <xsd:sequence> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="package" type="Deployment:ComponentPackageDescription"/> + <xsd:element name="configProperty" type="Deployment:Property" minOccurs="0"/> + <xsd:element name="selectRequirement" type="Deployment:Requirement" minOccurs="0"/> + <xsd:element name="reference" type="Deployment:ComponentPackageReference" minOccurs="0"/> + </xsd:sequence> + <xsd:attribute name="id" type="xsd:ID"/> + </xsd:complexType> + + + <xsd:complexType name="SubcomponentPortEndpoint"> + <xsd:sequence> + <xsd:element name="portName" type="xsd:string"/> + <xsd:element name="instance" type="xsd:IDREF"/> <!-- SubcomponentInstantiationDescription --> + </xsd:sequence> + </xsd:complexType> + + + <xsd:complexType name="AssemblyConnectionDescription"> + <xsd:sequence> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="deployRequirement" type="Deployment:Requirement" minOccurs="0"/> + <xsd:element name="externalEndpoint" type="Deployment:ComponentExternalPortEndpoint" minOccurs="0" maxOccurs="unbounded"/> + <xsd:element name="internalEndpoint" type="Deployment:SubcomponentPortEndpoint" minOccurs="0" maxOccurs="unbounded"/> + <xsd:element name="externalReference" type="Deployment:ExternalReferenceEndpoint" minOccurs="0" maxOccurs="unbounded"/> + </xsd:sequence> + </xsd:complexType> + + + <xsd:complexType name="SubcomponentPropertyReference"> + <xsd:sequence> + <xsd:element name="propertyName" type="xsd:string"/> + <xsd:element name="instance" type="Deployment:SubcomponentInstantiationDescription"/> + </xsd:sequence> + </xsd:complexType> + + + <xsd:complexType name="AssemblyPropertyMapping"> + <xsd:sequence> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="externalName" type="xsd:string"/> + <xsd:element name="delegatesTo" type="Deployment:SubcomponentPropertyReference"/> + </xsd:sequence> + </xsd:complexType> + + + <xsd:complexType name="ComponentAssemblyDescription"> + <xsd:sequence> + <xsd:element name="instance" type="Deployment:SubcomponentInstantiationDescription" maxOccurs="unbounded"/> + <xsd:element name="connection" type="Deployment:AssemblyConnectionDescription" maxOccurs="unbounded"/> + <xsd:element name="externalProperty" type="Deployment:AssemblyPropertyMapping" minOccurs="0"/> + </xsd:sequence> + </xsd:complexType> + + + <xsd:complexType name="ComponentImplementationDescription"> + <!-- @@mxiong: added minOccurs="0" maxOccurs="unbounded" + when adding config_handler support + for repoMan + --> + <xsd:choice minOccurs="0" maxOccurs="1"> + <xsd:sequence> + <xsd:element name="label" type="xsd:string"/> + <xsd:element name="UUID" type="xsd:string"/> + <xsd:element name="implements" type="Deployment:ComponentInterfaceDescription" minOccurs="0"/> + <xsd:choice> + <xsd:element name="assemblyImpl" type="Deployment:ComponentAssemblyDescription"/> + <xsd:element name="monolithicImpl" type="Deployment:MonolithicImplementationDescription"/> + </xsd:choice> + <xsd:element name="configProperty" type="Deployment:Property" minOccurs="0"/> + <xsd:element name="capability" type="Deployment:Capability" minOccurs="0"/> + <xsd:element name="dependsOn" type="Deployment:ImplementationDependency" minOccurs="0"/> + <xsd:element name="infoProperty" type="Deployment:Property" minOccurs="0"/> + </xsd:sequence> + <xsd:element name="contentLocation" type="xsd:string"/> + </xsd:choice> + <!-- @@mxiong: added href + when adding config_handler support + for repoMan + --> + <xsd:attribute name="href" type="xsd:string" use="optional"/> + </xsd:complexType> + + +<!-- Package --> + + + <xsd:complexType name="PackageConfiguration"> + <xsd:choice> + <xsd:sequence> + <xsd:element name="label" type="xsd:string"/> + <xsd:element name="UUID" type="xsd:string"/> +<!-- +@@ recursive, not used + <xsd:element name="specializedConfig" type="Deployment:PackageConfiguration"/> +--> + + <xsd:element name="basePackage" type="Deployment:ComponentPackageDescription"/> + <xsd:element name="reference" type="Deployment:ComponentPackageReference" minOccurs="0"/> + <xsd:element name="selectRequirement" type="Deployment:Requirement" minOccurs="0"/> + <xsd:element name="configProperty" type="Deployment:Property" minOccurs="0"/> + </xsd:sequence> + <xsd:element name="contentLocation" type="xsd:string"/> + </xsd:choice> + </xsd:complexType> + + + <xsd:complexType name="TopLevelPackageDescription"> + <xsd:sequence> + <xsd:element name="package" type="Deployment:PackageConfiguration" maxOccurs="unbounded"/> + </xsd:sequence> + </xsd:complexType> + + +<!-- Top-level elements. --> + + + <xsd:element name="domain" type="Deployment:Domain"/> + <xsd:element name="deploymentPlan" type="Deployment:DeploymentPlan"/> + <xsd:element name="implementationArtifactDescription" type="Deployment:ImplementationArtifactDescription" /> + <xsd:element name="componentInterfaceDescription" type="Deployment:ComponentInterfaceDescription"/> + <xsd:element name="componentImplementationDescription" type="Deployment:ComponentImplementationDescription"/> + <xsd:element name="componentPackageDescription" type="Deployment:ComponentPackageDescription"/> + <xsd:element name="packageConfiguration" type="Deployment:PackageConfiguration"/> + <xsd:element name="topLevelPackageDescription" type="Deployment:TopLevelPackageDescription"/> + + + +<!-- VAULT + +Place for strange things. Nobody knows what they are for... + +--> + +<!-- + + <xsd:complexType name="EnumType"> + <xsd:sequence> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="typeId" type="xsd:string"/> + <xsd:element name="member" type="xsd:string" maxOccurs="unbounded"/> + </xsd:sequence> + </xsd:complexType> + + <xsd:complexType name="ObjrefType"> + <xsd:sequence> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="typeId" type="xsd:string"/> + </xsd:sequence> + </xsd:complexType> + + + <xsd:complexType name="BoundedStringType"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="bound" type="xsd:string"/> + </xsd:choice> + </xsd:complexType> + + + <xsd:complexType name="FixedType"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="digits" type="xsd:string"/> + <xsd:element name="scale" type="xsd:string"/> + </xsd:choice> + </xsd:complexType> + + + <xsd:complexType name="ArrayType"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="length" type="xsd:string"/> + <xsd:element name="elementType" type="Deployment:DataType"/> + </xsd:choice> + </xsd:complexType> + + <xsd:complexType name="SequenceType"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="bound" type="xsd:string"/> + <xsd:element name="elementType" type="Deployment:DataType"/> + </xsd:choice> + </xsd:complexType> + + <xsd:complexType name="AliasType"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="typeId" type="xsd:string"/> + <xsd:element name="elementType" type="Deployment:DataType"/> + </xsd:choice> + </xsd:complexType> + + <xsd:complexType name="StructType"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="typeId" type="xsd:string"/> + <xsd:element name="member" type="Deployment:StructMemberType"/> + </xsd:choice> + </xsd:complexType> + + <xsd:complexType name="StructMemberType"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="type" type="Deployment:DataType"/> + </xsd:choice> + </xsd:complexType> + + <xsd:complexType name="ValueType"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="typeId" type="xsd:string"/> + <xsd:element name="modifier" type="xsd:string"/> + <xsd:element name="baseType" type="Deployment:DataType"/> + <xsd:element name="member" type="Deployment:ValueMemberType"/> + </xsd:choice> + </xsd:complexType> + + <xsd:complexType name="ValueMemberType"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="visibility" type="xsd:string"/> + <xsd:element name="type" type="Deployment:DataType"/> + </xsd:choice> + </xsd:complexType> + + <xsd:complexType name="UnionType"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="typeId" type="xsd:string"/> + <xsd:element name="default" type="Deployment:UnionMemberType"/> + <xsd:element name="discriminatorType" type="Deployment:DataType"/> + <xsd:element name="member" type="Deployment:UnionMemberType"/> + </xsd:choice> + </xsd:complexType> + + <xsd:complexType name="UnionMemberType"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="type" type="Deployment:DataType"/> + <xsd:element name="label" type="Deployment:DataValue"/> + </xsd:choice> + </xsd:complexType> + + + <xsd:complexType name="NamedValue"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="value" type="Deployment:DataValue"/> + </xsd:choice> + </xsd:complexType> + + + <xsd:complexType name="Bridge"> + <xsd:sequence> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="label" type="xsd:string"/> + <xsd:element name="connect" type="Deployment:Interconnect"/> + <xsd:element name="resource" type="Deployment:Resource"/> + </xsd:sequence> + </xsd:complexType> + + <xsd:complexType name="Interconnect"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="label" type="xsd:string"/> + <xsd:element name="connection" type="Deployment:Bridge"/> + <xsd:element name="connect" type="Deployment:Node"/> + <xsd:element name="resource" type="Deployment:Resource"/> + </xsd:choice> + </xsd:complexType> + + <xsd:complexType name="PlanPropertyMapping"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="source" type="xsd:string"/> + <xsd:element name="externalName" type="xsd:string"/> + <xsd:element name="delegatesTo" type="Deployment:PlanSubcomponentPropertyReference"/> + </xsd:choice> + </xsd:complexType> + + + <xsd:complexType name="PlanSubcomponentPropertyReference"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="propertyName" type="xsd:string"/> + <xsd:element name="instance" type="Deployment:InstanceDeploymentDescription"/> + </xsd:choice> + </xsd:complexType> + +--> + +<!-- + + This type is not referenced anywhere. + + <xsd:complexType name="RequirementSatisfier"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="resourceType" type="xsd:string"/> + <xsd:element name="property" type="Deployment:SatisfierProperty"/> + </xsd:choice> + </xsd:complexType> + +--> + +</xsd:schema> diff --git a/modules/CIAO/docs/schema/README.html b/modules/CIAO/docs/schema/README.html new file mode 100644 index 00000000000..d810c8a6065 --- /dev/null +++ b/modules/CIAO/docs/schema/README.html @@ -0,0 +1,64 @@ +<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> +<!-- $Id$ --> +<html> <head> +<title>Contents of $CIAO_ROOT/docs/schema</title> +</head> + +<body> +<h1>Contents of $CIAO_ROOT/docs/schema</h1> +The schema in this directory are all based on the new Deployment and +Configuration spec. As part of our work on DAnCE we have tried to +subset and normalize the schema so that our developers, and tools +would be able to parse and use the information effectively. + +The following table illustrates the meaning and use of the various +schemata in this directory: +<table width="100%" border=1> + <tr valign=top> + <td><b>Spec_Defined_Deployment.xsd</b></td> + <td>This is the schema file from the spec which is unaltered. This + is just for reference. CIAO and DAnCE will not be using this file + directly. + </td> + </tr> + <tr valign=top> + <td><b>Spec_Defined_XMI.xsd</b></td> + <td>The OMG spec defined schema file uses definitions from another + specification called the XMI spec which is part of the OMG + specification suite. This schema file is again for reference + without any edits. + </td> + </tr> + <tr valign=top> + <td><b>ccd.xsd, cdd.xsd, cdp.xsd, cid.xsd, cpd.xsd, iad.xsd, + pcd.xsd and toplevel.xcd</b></td> + <td> Descriptors that will be used by DAnCE. Section 5.5.3 of the + Deployment and Configuration spec talks about the various + descriptors that are part of the package. The schema files are + broken down in accordance with the suggested descriptor format in + the section mentioned above. + </td> + </tr> + <tr valign=top"> + <td><b>Deployment.xsd</b></td> + <td> The schema file that will be used by the applications in + their descriptors. Applications need not use Deployment.xsd, but + using this is encouraged for portability of their intance + documents.</td> + </tr> + <tr valign=top"> + <td><b>Modified_Deployment.xsd</b></td> + <td> This schema is modified from the original spec defined + schema. It is a bit simplified with different sections that makes + things easier for the developer to read and digest the + information. Not used within DAnCE.</td> + </tr> + <tr valign=top"> + <td><b>unused_elements.xsd</b></td> + <td> Schema elements that are not used within the OMG's schema and + the ones that CIAo and DAnCedoesn't support.</td> + </tr> +</table> +</body> +</html> + diff --git a/modules/CIAO/docs/schema/SANet_Network.xsd b/modules/CIAO/docs/schema/SANet_Network.xsd new file mode 100644 index 00000000000..d614528b481 --- /dev/null +++ b/modules/CIAO/docs/schema/SANet_Network.xsd @@ -0,0 +1,98 @@ +<?xml version="1.0" encoding="utf-8" ?> +<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.vanderbilt.edu/SANet SANet_Network.xsd" xmlns:SANet="http://www.vanderbilt.edu/SANet" + targetNamespace="http://www.vanderbilt.edu/SANet" elementFormDefault="qualified"> + <!-- Simple types. --> + <xs:simpleType name="NodeID"> + <xs:restriction base="xs:int"> + <xs:minInclusive value="1" /> + </xs:restriction> + </xs:simpleType> + <xs:simpleType name="PortID"> + <xs:restriction base="xs:string" /> + </xs:simpleType> + <xs:simpleType name="TaskCost"> + <xs:restriction base="xs:double" /> + </xs:simpleType> + <xs:simpleType name="CondUtil"> + <xs:restriction base="xs:double" /> + </xs:simpleType> + <xs:simpleType name="CondKind"> + <xs:restriction base="xs:string"> + <xs:enumeration value="ENVIRON" /> + <xs:enumeration value="SYSTEM" /> + <xs:enumeration value="DATA" /> + </xs:restriction> + </xs:simpleType> + <xs:simpleType name="Probability"> + <xs:restriction base="xs:double"> + <xs:minInclusive value="0" /> + <xs:maxInclusive value="1" /> + </xs:restriction> + </xs:simpleType> + <xs:simpleType name="LinkWeight"> + <xs:restriction base="xs:double"> + <xs:minInclusive value="-1" /> + <xs:maxInclusive value="1" /> + </xs:restriction> + </xs:simpleType> + <xs:simpleType name="MultFactor"> + <xs:restriction base="xs:double"> + <xs:minInclusive value="0" /> + <xs:maxInclusive value="1" /> + </xs:restriction> + </xs:simpleType> + <!-- Complex types corresponding to IDL structures. + (nodes, links, and network). --> + <xs:complexType name="TaskNode"> + <xs:sequence> + <xs:element name="nodeID" type="SANet:NodeID" /> + <xs:element name="name" type="xs:string" default="" /> + <xs:element name="priorProb" type="SANet:Probability" /> + <xs:element name="attenFactor" type="SANet:MultFactor" default="1" /> + <xs:element name="cost" type="SANet:TaskCost" default="0" /> + </xs:sequence> + </xs:complexType> + <xs:complexType name="CondNode"> + <xs:sequence> + <xs:element name="nodeID" type="SANet:NodeID" /> + <xs:element name="name" type="xs:string" default="" /> + <xs:element name="probTrue" type="SANet:Probability" default="0" /> + <xs:element name="utility" type="SANet:CondUtil" default="0" /> + <xs:element name="kind" type="SANet:CondKind" default="ENVIRON" /> + <xs:element name="attenFactor" type="SANet:MultFactor" default="1" /> + </xs:sequence> + </xs:complexType> + <xs:complexType name="PrecondLink"> + <xs:sequence> + <xs:element name="condID" type="SANet:NodeID" /> + <xs:element name="taskID" type="SANet:NodeID" /> + <xs:element name="portID" type="SANet:PortID" /> + <xs:element name="trueProb" type="SANet:Probability" /> + <xs:element name="falseProb" type="SANet:Probability" /> + </xs:sequence> + </xs:complexType> + <xs:complexType name="EffectLink"> + <xs:sequence> + <xs:element name="taskID" type="SANet:NodeID" /> + <xs:element name="condID" type="SANet:NodeID" /> + <xs:element name="portID" type="SANet:PortID" /> + <xs:element name="weight" type="SANet:LinkWeight" /> + </xs:sequence> + </xs:complexType> + <xs:complexType name="Network"> + <xs:sequence> + <xs:element name="defaultAttenFactor" type="SANet:MultFactor" default="1" /> + <xs:element name="defaultTaskCost" type="SANet:TaskCost" default="0" /> + <xs:element name="defaultCondUtil" type="SANet:CondUtil" default="0" /> + <xs:element name="defaultCondProbTrue" type="SANet:Probability" default="0" /> + <xs:element name="linkThresh" type="SANet:LinkWeight" default="0" /> + <xs:element name="taskNode" type="SANet:TaskNode" maxOccurs="unbounded" /> + <xs:element name="condNode" type="SANet:CondNode" maxOccurs="unbounded" /> + <xs:element name="precondLink" type="SANet:PrecondLink" maxOccurs="unbounded" /> + <xs:element name="effectLink" type="SANet:EffectLink" maxOccurs="unbounded" /> + </xs:sequence> + </xs:complexType> + <!-- Top-level network element. --> + <xs:element name="network" type="SANet:Network" /> +</xs:schema>
\ No newline at end of file diff --git a/modules/CIAO/docs/schema/ServerResourceUsage.txt b/modules/CIAO/docs/schema/ServerResourceUsage.txt new file mode 100644 index 00000000000..d8fc47ca7b3 --- /dev/null +++ b/modules/CIAO/docs/schema/ServerResourceUsage.txt @@ -0,0 +1,119 @@ + How to use CIAOServerResources.xsd + +Assuming we store two CIAO:ServerResources documents in two XML files +called "RTLinuxServerConfig.csr" and "RTwIN32ServerConfig.csr" +respectively. Two things need to happen in order to use the +PolicySet's defined in these files. First, we need to tell the DnC +tools what are all the CIAOServerResources files a DeploymentPlan +needs. This can easily be done by enumerating all these file in the +<infoProperty> element under the <DeploymentPlan>. For example, the +following XML document snippet shows a DeploymentPlan will reference +to two aforementioned CIAO:ServerResources files. The property name +"CIAOServerResourceRef" is a CIAO-specific extension that signifies +this need. The values of these properties simply specify the +filenames. + + + <infoProperty> + <name>CIAOServerResourceRef</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>RTLinuxServerConfig.csr</string> + </value> + </value> + + <name>CIAOServerResourceRef</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>RTWin32ServerConfig.csr</string> + </value> + </value> + </infoProperty> + +Second, we can now use the policy sets defined in these files by +associating a policy set with the entity the policy set will be +applied on. Currently, only associations with component instances are +supported. A component instance in deployment plan can specify the +policy set it wishes to be instantiated with. A PolicySet is +referenced by its name and the CIAO:ServerResources name. + + <deploymentplan> + .... + <instance ...> + + <deployedResource> + <resourceUsage>InstanceUsesResource</resourceUsage> + <requirementName>CIAO:PolicySet</requirementName> + <resourceName>here_we_insert_the_name_defined_in_CIAO:ServerResources</resourcename> + <property> +// +// name could be CIAO:InstancePolicy or CIAO:ReceptaclePolicy. +// Here we show an example of an CIAO::InstancePolicy. +// + <name>CIAO:InstancePolicy</name> + <value> + <type>tk_string</type> + <value> + <string>here_we_insert_the_PolicySet_name_defined_in_the_ServerResources</string> + </value> + </value> + </property> + </deployedResource> + +// Now we show an example of a CIAO:ReceptaclePolicy. +// + <deployedResource> + <resourceUsage>InstanceUsesResource</resourceUsage> + <requirementName>CIAO:PolicySet</requirementName> + <resourceName>here_we_insert_the_name_defined_in_CIAO:ServerResources</resourcename> +// +// First we specify that we are going to define a receptacle policy. +// + <property> +// +// Note the name of the policy. +// + <name>CIAO:ReceptaclePolicy</name> + <value> + <type>tk_string</type> + <value> + <string>here_we_insert_the_PolicySet_name_defined_in_the_ServerResources</string> + </value> + </value> + </property> +// +// Now we specify the receptacle (using the receptacle name) that is going to +// be associated with this policy. +// + <property> + <name>receptacle name from the .ccd file</name> + <value> + <type>tk_string</type> + <value> + <string>here_we_insert_the_PolicySet_name_defined_in_the_ServerResources</string> + </value> + </value> + </property> + </deployedResource> + + </instance> + </instance> + </deploymentplan> + +If only the name of the CIAO:ServerResources is specified, we are +using it as a collocation constraint. In this case, the +<deployedResource> will contain no <property> sub-element. Component +instances with different <resourceName> values will be deployed to the +same target node with different ServerResources names. DAnCE should +create two differnet NodeApplication on the same node. + +Likewise, specifying different CIAO:PolicySet IDs will force component +instances to be deployed into different containers (if they have the +same target node and ServerResource ID.) + diff --git a/modules/CIAO/docs/schema/Spec_Defined_Deployment.xsd b/modules/CIAO/docs/schema/Spec_Defined_Deployment.xsd new file mode 100644 index 00000000000..a59a47f1360 --- /dev/null +++ b/modules/CIAO/docs/schema/Spec_Defined_Deployment.xsd @@ -0,0 +1,897 @@ +<xsd:schema + xmlns:xsd="http://www.w3.org/2001/XMLSchema" + xmlns:xmi="http://www.omg.org/XMI" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xmlns:Deployment="http://www.omg.org/Deployment" + targetNamespace="http://www.omg.org/Deployment" + > + <xsd:import namespace="http://www.omg.org/XMI"/> + <xsd:complexType name="Any"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="type" type="Deployment:DataType"/> + <xsd:element name="value" type="Deployment:DataValue"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="Any" type="Deployment:Any"/> + <xsd:complexType name="DataType"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="kind" type="Deployment:TCKind"/> + <xsd:element name="enum" type="Deployment:EnumType"/> + <xsd:element name="objref" type="Deployment:ObjrefType"/> + <xsd:element name="boundedString" type="Deployment:BoundedStringType"/> + <xsd:element name="fixed" type="Deployment:FixedType"/> + <xsd:element name="array" type="Deployment:ArrayType"/> + <xsd:element name="sequence" type="Deployment:SequenceType"/> + <xsd:element name="alias" type="Deployment:AliasType"/> + <xsd:element name="struct" type="Deployment:StructType"/> + <xsd:element name="value" type="Deployment:ValueType"/> + <xsd:element name="union" type="Deployment:UnionType"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="DataType" type="Deployment:DataType"/> + <xsd:complexType name="DataValue"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="short" type="xsd:short"/> + <xsd:element name="long" type="xsd:int"/> + <xsd:element name="ushort" type="xsd:unsignedShort"/> + <xsd:element name="ulong" type="xsd:unsignedInt"/> + <xsd:element name="float" type="xsd:float"/> + <xsd:element name="double" type="xsd:double"/> + <xsd:element name="boolean" type="xsd:boolean"/> + <xsd:element name="octet" type="xsd:unsignedByte"/> + <xsd:element name="opaque" type="xsd:base64Binary"/> + <xsd:element name="objref" type="xsd:string"/> + <xsd:element name="enum" type="xsd:string"/> + <xsd:element name="string" type="xsd:string"/> + <xsd:element name="longlong" type="xsd:long"/> + <xsd:element name="ulonglong" type="xsd:unsignedLong"/> + <xsd:element name="longdouble" type="xsd:double"/> + <xsd:element name="fixed" type="xsd:string"/> + <xsd:element name="any" type="Deployment:Any"/> + <xsd:element name="typecode" type="Deployment:DataType"/> + <xsd:element name="element" type="Deployment:DataValue"/> + <xsd:element name="discriminator" type="Deployment:DataValue"/> + <xsd:element name="value" type="Deployment:DataValue"/> + <xsd:element name="boxedValue" type="Deployment:DataValue"/> + <xsd:element name="member" type="Deployment:NamedValue"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="DataValue" type="Deployment:DataValue"/> + <xsd:complexType name="EnumType"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="typeId" type="xsd:string"/> + <xsd:element name="member" type="xsd:string"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="EnumType" type="Deployment:EnumType"/> + <xsd:complexType name="ObjrefType"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="typeId" type="xsd:string"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="ObjrefType" type="Deployment:ObjrefType"/> + <xsd:complexType name="BoundedStringType"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="bound" type="xsd:string"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="BoundedStringType" type="Deployment:BoundedStringType"/> + <xsd:complexType name="FixedType"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="digits" type="xsd:string"/> + <xsd:element name="scale" type="xsd:string"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="FixedType" type="Deployment:FixedType"/> + <xsd:complexType name="ArrayType"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="length" type="xsd:string"/> + <xsd:element name="elementType" type="Deployment:DataType"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="ArrayType" type="Deployment:ArrayType"/> + <xsd:complexType name="SequenceType"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="bound" type="xsd:string"/> + <xsd:element name="elementType" type="Deployment:DataType"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="SequenceType" type="Deployment:SequenceType"/> + <xsd:complexType name="AliasType"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="typeId" type="xsd:string"/> + <xsd:element name="elementType" type="Deployment:DataType"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="AliasType" type="Deployment:AliasType"/> + <xsd:complexType name="StructType"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="typeId" type="xsd:string"/> + <xsd:element name="member" type="Deployment:StructMemberType"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="StructType" type="Deployment:StructType"/> + <xsd:complexType name="StructMemberType"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="type" type="Deployment:DataType"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="StructMemberType" type="Deployment:StructMemberType"/> + <xsd:complexType name="ValueType"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="typeId" type="xsd:string"/> + <xsd:element name="modifier" type="xsd:string"/> + <xsd:element name="baseType" type="Deployment:DataType"/> + <xsd:element name="member" type="Deployment:ValueMemberType"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="ValueType" type="Deployment:ValueType"/> + <xsd:complexType name="ValueMemberType"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="visibility" type="xsd:string"/> + <xsd:element name="type" type="Deployment:DataType"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="ValueMemberType" type="Deployment:ValueMemberType"/> + <xsd:complexType name="UnionType"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="typeId" type="xsd:string"/> + <xsd:element name="default" type="Deployment:UnionMemberType"/> + <xsd:element name="discriminatorType" type="Deployment:DataType"/> + <xsd:element name="member" type="Deployment:UnionMemberType"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="UnionType" type="Deployment:UnionType"/> + <xsd:complexType name="UnionMemberType"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="type" type="Deployment:DataType"/> + <xsd:element name="label" type="Deployment:DataValue"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="UnionMemberType" type="Deployment:UnionMemberType"/> + <xsd:complexType name="NamedValue"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="value" type="Deployment:DataValue"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="NamedValue" type="Deployment:NamedValue"/> + <xsd:complexType name="Bridge"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="label" type="xsd:string"/> + <xsd:element name="connect" type="Deployment:Interconnect"/> + <xsd:element name="resource" type="Deployment:Resource"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="Bridge" type="Deployment:Bridge"/> + <xsd:complexType name="Interconnect"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="label" type="xsd:string"/> + <xsd:element name="connection" type="Deployment:Bridge"/> + <xsd:element name="connect" type="Deployment:Node"/> + <xsd:element name="resource" type="Deployment:Resource"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="Interconnect" type="Deployment:Interconnect"/> + <xsd:complexType name="Node"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="label" type="xsd:string"/> + <xsd:element name="connection" type="Deployment:Interconnect"/> + <xsd:element name="sharedResource" type="Deployment:SharedResource"/> + <xsd:element name="resource" type="Deployment:Resource"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="Node" type="Deployment:Node"/> + <xsd:complexType name="Resource"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="resourceType" type="xsd:string"/> + <xsd:element name="property" type="Deployment:SatisfierProperty"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="Resource" type="Deployment:Resource"/> + <xsd:complexType name="SharedResource"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="resourceType" type="xsd:string"/> + <xsd:element name="node" type="Deployment:Node"/> + <xsd:element name="property" type="Deployment:SatisfierProperty"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="SharedResource" type="Deployment:SharedResource"/> + <xsd:complexType name="Domain"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="UUID" type="xsd:string"/> + <xsd:element name="label" type="xsd:string"/> + <xsd:element name="sharedResource" type="Deployment:SharedResource"/> + <xsd:element name="node" type="Deployment:Node"/> + <xsd:element name="interconnect" type="Deployment:Interconnect"/> + <xsd:element name="bridge" type="Deployment:Bridge"/> + <xsd:element name="infoProperty" type="Deployment:Property"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="Domain" type="Deployment:Domain"/> + <xsd:complexType name="PlanPropertyMapping"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="source" type="xsd:string"/> + <xsd:element name="externalName" type="xsd:string"/> + <xsd:element name="delegatesTo" type="Deployment:PlanSubcomponentPropertyReference"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="PlanPropertyMapping" type="Deployment:PlanPropertyMapping"/> + <xsd:complexType name="PlanSubcomponentPropertyReference"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="propertyName" type="xsd:string"/> + <xsd:element name="instance" type="Deployment:InstanceDeploymentDescription"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="PlanSubcomponentPropertyReference" type="Deployment:PlanSubcomponentPropertyReference"/> + <xsd:complexType name="PlanSubcomponentPortEndpoint"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="portName" type="xsd:string"/> + <xsd:element name="provider" type="xsd:string"/> + <xsd:element name="kind" type="Deployment:CCMComponentPortKind"/> + <xsd:element name="instance" type="Deployment:InstanceDeploymentDescription"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="PlanSubcomponentPortEndpoint" type="Deployment:PlanSubcomponentPortEndpoint"/> + <xsd:complexType name="PlanConnectionDescription"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="source" type="xsd:string"/> + <xsd:element name="deployRequirement" type="Deployment:Requirement"/> + <xsd:element name="externalEndpoint" type="Deployment:ComponentExternalPortEndpoint"/> + <xsd:element name="internalEndpoint" type="Deployment:PlanSubcomponentPortEndpoint"/> + <xsd:element name="externalReference" type="Deployment:ExternalReferenceEndpoint"/> + <xsd:element name="deployedResource" type="Deployment:ConnectionResourceDeploymentDescription"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="PlanConnectionDescription" type="Deployment:PlanConnectionDescription"/> + <xsd:complexType name="InstanceDeploymentDescription"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="node" type="xsd:string"/> + <xsd:element name="source" type="xsd:string"/> + <xsd:element name="implementation" type="Deployment:MonolithicDeploymentDescription"/> + <xsd:element name="configProperty" type="Deployment:Property"/> + <xsd:element name="deployedResource" type="Deployment:InstanceResourceDeploymentDescription"/> + <xsd:element name="deployedSharedResource" type="Deployment:InstanceResourceDeploymentDescription"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="InstanceDeploymentDescription" type="Deployment:InstanceDeploymentDescription"/> + <xsd:complexType name="MonolithicDeploymentDescription"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="source" type="xsd:string"/> + <xsd:element name="artifact" type="Deployment:ArtifactDeploymentDescription"/> + <xsd:element name="execParameter" type="Deployment:Property"/> + <xsd:element name="deployRequirement" type="Deployment:Requirement"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="MonolithicDeploymentDescription" type="Deployment:MonolithicDeploymentDescription"/> + <xsd:complexType name="ArtifactDeploymentDescription"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="location" type="xsd:string"/> + <xsd:element name="node" type="xsd:string"/> + <xsd:element name="source" type="xsd:string"/> + <xsd:element name="execParameter" type="Deployment:Property"/> + <xsd:element name="deployRequirement" type="Deployment:Requirement"/> + <xsd:element name="deployedResource" type="Deployment:ResourceDeploymentDescription"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="ArtifactDeploymentDescription" type="Deployment:ArtifactDeploymentDescription"/> + <xsd:complexType name="DeploymentPlan"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="label" type="xsd:string"/> + <xsd:element name="realizes" type="Deployment:ComponentInterfaceDescription"/> + <xsd:element name="implementation" type="Deployment:MonolithicDeploymentDescription"/> + <xsd:element name="instance" type="Deployment:InstanceDeploymentDescription"/> + <xsd:element name="connection" type="Deployment:PlanConnectionDescription"/> + <xsd:element name="externalProperty" type="Deployment:PlanPropertyMapping"/> + <xsd:element name="dependsOn" type="Deployment:ImplementationDependency"/> + <xsd:element name="artifact" type="Deployment:ArtifactDeploymentDescription"/> + <xsd:element name="infoProperty" type="Deployment:Property"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="DeploymentPlan" type="Deployment:DeploymentPlan"/> + <xsd:complexType name="ResourceDeploymentDescription"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="requirementName" type="xsd:string"/> + <xsd:element name="resourceName" type="xsd:string"/> + <xsd:element name="resourceValue" type="Deployment:Any"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="ResourceDeploymentDescription" type="Deployment:ResourceDeploymentDescription"/> + <xsd:complexType name="InstanceResourceDeploymentDescription"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="resourceUsage" type="Deployment:ResourceUsageKind"/> + <xsd:element name="requirementName" type="xsd:string"/> + <xsd:element name="resourceName" type="xsd:string"/> + <xsd:element name="resourceValue" type="Deployment:Any"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="InstanceResourceDeploymentDescription" type="Deployment:InstanceResourceDeploymentDescription"/> + <xsd:complexType name="ConnectionResourceDeploymentDescription"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="targetName" type="xsd:string"/> + <xsd:element name="requirementName" type="xsd:string"/> + <xsd:element name="resourceName" type="xsd:string"/> + <xsd:element name="resourceValue" type="Deployment:Any"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="ConnectionResourceDeploymentDescription" type="Deployment:ConnectionResourceDeploymentDescription"/> + <xsd:complexType name="Capability"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="resourceType" type="xsd:string"/> + <xsd:element name="property" type="Deployment:SatisfierProperty"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="Capability" type="Deployment:Capability"/> + <xsd:complexType name="ComponentPropertyDescription"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="type" type="Deployment:DataType"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="ComponentPropertyDescription" type="Deployment:ComponentPropertyDescription"/> + <xsd:complexType name="ComponentPortDescription"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="specificType" type="xsd:string"/> + <xsd:element name="supportedType" type="xsd:string"/> + <xsd:element name="provider" type="xsd:string"/> + <xsd:element name="exclusiveProvider" type="xsd:string"/> + <xsd:element name="exclusiveUser" type="xsd:string"/> + <xsd:element name="optional" type="xsd:string"/> + <xsd:element name="kind" type="Deployment:CCMComponentPortKind"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="ComponentPortDescription" type="Deployment:ComponentPortDescription"/> + <xsd:complexType name="ComponentInterfaceDescription"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="label" type="xsd:string"/> + <xsd:element name="UUID" type="xsd:string"/> + <xsd:element name="specificType" type="xsd:string"/> + <xsd:element name="supportedType" type="xsd:string"/> + <xsd:element name="idlFile" type="xsd:string"/> + <xsd:element name="configProperty" type="Deployment:Property"/> + <xsd:element name="port" type="Deployment:ComponentPortDescription"/> + <xsd:element name="property" type="Deployment:ComponentPropertyDescription"/> + <xsd:element name="infoProperty" type="Deployment:Property"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="ComponentInterfaceDescription" type="Deployment:ComponentInterfaceDescription"/> + <xsd:complexType name="ImplementationArtifactDescription"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="label" type="xsd:string"/> + <xsd:element name="UUID" type="xsd:string"/> + <xsd:element name="location" type="xsd:string"/> + <xsd:element name="execParameter" type="Deployment:Property"/> + <xsd:element name="deployRequirement" type="Deployment:Requirement"/> + <xsd:element name="dependsOn" type="Deployment:NamedImplementationArtifact"/> + <xsd:element name="infoProperty" type="Deployment:Property"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="ImplementationArtifactDescription" type="Deployment:ImplementationArtifactDescription"/> + <xsd:complexType name="MonolithicImplementationDescription"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="execParameter" type="Deployment:Property"/> + <xsd:element name="primaryArtifact" type="Deployment:NamedImplementationArtifact"/> + <xsd:element name="deployRequirement" type="Deployment:ImplementationRequirement"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="MonolithicImplementationDescription" type="Deployment:MonolithicImplementationDescription"/> + <xsd:complexType name="AssemblyPropertyMapping"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="externalName" type="xsd:string"/> + <xsd:element name="delegatesTo" type="Deployment:SubcomponentPropertyReference"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="AssemblyPropertyMapping" type="Deployment:AssemblyPropertyMapping"/> + <xsd:complexType name="SubcomponentPropertyReference"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="propertyName" type="xsd:string"/> + <xsd:element name="instance" type="Deployment:SubcomponentInstantiationDescription"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="SubcomponentPropertyReference" type="Deployment:SubcomponentPropertyReference"/> + <xsd:complexType name="SubcomponentPortEndpoint"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="portName" type="xsd:string"/> + <xsd:element name="instance" type="Deployment:SubcomponentInstantiationDescription"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="SubcomponentPortEndpoint" type="Deployment:SubcomponentPortEndpoint"/> + <xsd:complexType name="AssemblyConnectionDescription"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="deployRequirement" type="Deployment:Requirement"/> + <xsd:element name="externalEndpoint" type="Deployment:ComponentExternalPortEndpoint"/> + <xsd:element name="internalEndpoint" type="Deployment:SubcomponentPortEndpoint"/> + <xsd:element name="externalReference" type="Deployment:ExternalReferenceEndpoint"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="AssemblyConnectionDescription" type="Deployment:AssemblyConnectionDescription"/> + <xsd:complexType name="SubcomponentInstantiationDescription"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="package" type="Deployment:ComponentPackageDescription"/> + <xsd:element name="configProperty" type="Deployment:Property"/> + <xsd:element name="selectRequirement" type="Deployment:Requirement"/> + <xsd:element name="reference" type="Deployment:ComponentPackageReference"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="SubcomponentInstantiationDescription" type="Deployment:SubcomponentInstantiationDescription"/> + <xsd:complexType name="ComponentAssemblyDescription"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="instance" type="Deployment:SubcomponentInstantiationDescription"/> + <xsd:element name="connection" type="Deployment:AssemblyConnectionDescription"/> + <xsd:element name="externalProperty" type="Deployment:AssemblyPropertyMapping"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="ComponentAssemblyDescription" type="Deployment:ComponentAssemblyDescription"/> + <xsd:complexType name="ComponentImplementationDescription"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="label" type="xsd:string"/> + <xsd:element name="UUID" type="xsd:string"/> + <xsd:element name="implements" type="Deployment:ComponentInterfaceDescription"/> + <xsd:element name="assemblyImpl" type="Deployment:ComponentAssemblyDescription"/> + <xsd:element name="monolithicImpl" type="Deployment:MonolithicImplementationDescription"/> + <xsd:element name="configProperty" type="Deployment:Property"/> + <xsd:element name="capability" type="Deployment:Capability"/> + <xsd:element name="dependsOn" type="Deployment:ImplementationDependency"/> + <xsd:element name="infoProperty" type="Deployment:Property"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="ComponentImplementationDescription" type="Deployment:ComponentImplementationDescription"/> + <xsd:complexType name="ComponentPackageReference"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="requiredUUID" type="xsd:string"/> + <xsd:element name="requiredName" type="xsd:string"/> + <xsd:element name="requiredType" type="xsd:string"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="ComponentPackageReference" type="Deployment:ComponentPackageReference"/> + <xsd:complexType name="ComponentPackageDescription"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="label" type="xsd:string"/> + <xsd:element name="UUID" type="xsd:string"/> + <xsd:element name="realizes" type="Deployment:ComponentInterfaceDescription"/> + <xsd:element name="configProperty" type="Deployment:Property"/> + <xsd:element name="implementation" type="Deployment:PackagedComponentImplementation"/> + <xsd:element name="infoProperty" type="Deployment:Property"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="ComponentPackageDescription" type="Deployment:ComponentPackageDescription"/> + <xsd:complexType name="PackageConfiguration"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="label" type="xsd:string"/> + <xsd:element name="UUID" type="xsd:string"/> + <xsd:element name="specializedConfig" type="Deployment:PackageConfiguration"/> + <xsd:element name="basePackage" type="Deployment:ComponentPackageDescription"/> + <xsd:element name="reference" type="Deployment:ComponentPackageReference"/> + <xsd:element name="selectRequirement" type="Deployment:Requirement"/> + <xsd:element name="configProperty" type="Deployment:Property"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="PackageConfiguration" type="Deployment:PackageConfiguration"/> + <xsd:complexType name="PackagedComponentImplementation"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="referencedImplementation" type="Deployment:ComponentImplementationDescription"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="PackagedComponentImplementation" type="Deployment:PackagedComponentImplementation"/> + <xsd:complexType name="NamedImplementationArtifact"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="referencedArtifact" type="Deployment:ImplementationArtifactDescription"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="NamedImplementationArtifact" type="Deployment:NamedImplementationArtifact"/> + <xsd:complexType name="ImplementationRequirement"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="resourceUsage" type="Deployment:ResourceUsageKind"/> + <xsd:element name="resourcePort" type="xsd:string"/> + <xsd:element name="componentPort" type="xsd:string"/> + <xsd:element name="resourceType" type="xsd:string"/> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="property" type="Deployment:Property"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="ImplementationRequirement" type="Deployment:ImplementationRequirement"/> + <xsd:complexType name="RequirementSatisfier"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="resourceType" type="xsd:string"/> + <xsd:element name="property" type="Deployment:SatisfierProperty"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="RequirementSatisfier" type="Deployment:RequirementSatisfier"/> + <xsd:complexType name="SatisfierProperty"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="kind" type="Deployment:SatisfierPropertyKind"/> + <xsd:element name="value" type="Deployment:Any"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="SatisfierProperty" type="Deployment:SatisfierProperty"/> + <xsd:complexType name="Requirement"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="resourceType" type="xsd:string"/> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="property" type="Deployment:Property"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="Requirement" type="Deployment:Requirement"/> + <xsd:complexType name="Property"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="value" type="Deployment:Any"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="Property" type="Deployment:Property"/> + <xsd:complexType name="ExternalReferenceEndpoint"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="location" type="xsd:string"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="ExternalReferenceEndpoint" type="Deployment:ExternalReferenceEndpoint"/> + <xsd:complexType name="ComponentExternalPortEndpoint"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="portName" type="xsd:string"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="ComponentExternalPortEndpoint" type="Deployment:ComponentExternalPortEndpoint"/> + <xsd:complexType name="ImplementationDependency"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="requiredType" type="xsd:string"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="ImplementationDependency" type="Deployment:ImplementationDependency"/> + <xsd:complexType name="TopLevelPackageDescription"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="package" type="Deployment:PackageConfiguration"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="TopLevelPackageDescription" type="Deployment:TopLevelPackageDescription"/> + <xsd:simpleType name="TCKind"> + <xsd:restriction base="xsd:string"> + <xsd:enumeration value="tk_null"/> + <xsd:enumeration value="tk_void"/> + <xsd:enumeration value="tk_short"/> + <xsd:enumeration value="tk_long"/> + <xsd:enumeration value="tk_ushort"/> + <xsd:enumeration value="tk_ulong"/> + <xsd:enumeration value="tk_float"/> + <xsd:enumeration value="tk_double"/> + <xsd:enumeration value="tk_boolean"/> + <xsd:enumeration value="tk_char"/> + <xsd:enumeration value="tk_octet"/> + <xsd:enumeration value="tk_any"/> + <xsd:enumeration value="tk_TypeCode"/> + <xsd:enumeration value="tk_Principal"/> + <xsd:enumeration value="tk_objref"/> + <xsd:enumeration value="tk_struct"/> + <xsd:enumeration value="tk_union"/> + <xsd:enumeration value="tk_enum"/> + <xsd:enumeration value="tk_string"/> + <xsd:enumeration value="tk_sequence"/> + <xsd:enumeration value="tk_array"/> + <xsd:enumeration value="tk_alias"/> + <xsd:enumeration value="tk_except"/> + <xsd:enumeration value="tk_longlong"/> + <xsd:enumeration value="tk_ulonglong"/> + <xsd:enumeration value="tk_longdouble"/> + <xsd:enumeration value="tk_wchar"/> + <xsd:enumeration value="tk_wstring"/> + <xsd:enumeration value="tk_wfixed"/> + <xsd:enumeration value="tk_value"/> + <xsd:enumeration value="tk_value_box"/> + <xsd:enumeration value="tk_native"/> + <xsd:enumeration value="tk_abstract_interface"/> + <xsd:enumeration value="tk_local_interface"/> + <xsd:enumeration value="tk_component"/> + <xsd:enumeration value="tk_home"/> + <xsd:enumeration value="tk_event"/> + </xsd:restriction> + </xsd:simpleType> + <xsd:simpleType name="ResourceUsageKind"> + <xsd:restriction base="xsd:string"> + <xsd:enumeration value="None"/> + <xsd:enumeration value="InstanceUsesResource"/> + <xsd:enumeration value="ResourceUsesInstance"/> + <xsd:enumeration value="PortUsesResource"/> + <xsd:enumeration value="ResourceUsesPort"/> + </xsd:restriction> + </xsd:simpleType> + <xsd:simpleType name="CCMComponentPortKind"> + <xsd:restriction base="xsd:string"> + <xsd:enumeration value="Facet"/> + <xsd:enumeration value="SimplexReceptacle"/> + <xsd:enumeration value="MultiplexReceptacle"/> + <xsd:enumeration value="EventEmitter"/> + <xsd:enumeration value="EventPublisher"/> + <xsd:enumeration value="EventConsumer"/> + </xsd:restriction> + </xsd:simpleType> + <xsd:simpleType name="SatisfierPropertyKind"> + <xsd:restriction base="xsd:string"> + <xsd:enumeration value="Quantity"/> + <xsd:enumeration value="Capacity"/> + <xsd:enumeration value="Minimum"/> + <xsd:enumeration value="Maximum"/> + <xsd:enumeration value="Attribute"/> + <xsd:enumeration value="Selection"/> + </xsd:restriction> + </xsd:simpleType> + <xsd:element name="Deployment"> + <xsd:complexType> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element ref="Deployment:Any"/> + <xsd:element ref="Deployment:DataType"/> + <xsd:element ref="Deployment:DataValue"/> + <xsd:element ref="Deployment:EnumType"/> + <xsd:element ref="Deployment:ObjrefType"/> + <xsd:element ref="Deployment:BoundedStringType"/> + <xsd:element ref="Deployment:FixedType"/> + <xsd:element ref="Deployment:ArrayType"/> + <xsd:element ref="Deployment:SequenceType"/> + <xsd:element ref="Deployment:AliasType"/> + <xsd:element ref="Deployment:StructType"/> + <xsd:element ref="Deployment:StructMemberType"/> + <xsd:element ref="Deployment:ValueType"/> + <xsd:element ref="Deployment:ValueMemberType"/> + <xsd:element ref="Deployment:UnionType"/> + <xsd:element ref="Deployment:UnionMemberType"/> + <xsd:element ref="Deployment:NamedValue"/> + <xsd:element ref="Deployment:Bridge"/> + <xsd:element ref="Deployment:Interconnect"/> + <xsd:element ref="Deployment:Node"/> + <xsd:element ref="Deployment:Resource"/> + <xsd:element ref="Deployment:SharedResource"/> + <xsd:element ref="Deployment:Domain"/> + <xsd:element ref="Deployment:PlanPropertyMapping"/> + <xsd:element ref="Deployment:PlanSubcomponentPropertyReference"/> + <xsd:element ref="Deployment:PlanSubcomponentPortEndpoint"/> + <xsd:element ref="Deployment:PlanConnectionDescription"/> + <xsd:element ref="Deployment:InstanceDeploymentDescription"/> + <xsd:element ref="Deployment:MonolithicDeploymentDescription"/> + <xsd:element ref="Deployment:ArtifactDeploymentDescription"/> + <xsd:element ref="Deployment:DeploymentPlan"/> + <xsd:element ref="Deployment:ResourceDeploymentDescription"/> + <xsd:element ref="Deployment:InstanceResourceDeploymentDescription"/> + <xsd:element ref="Deployment:ConnectionResourceDeploymentDescription"/> + <xsd:element ref="Deployment:Capability"/> + <xsd:element ref="Deployment:ComponentPropertyDescription"/> + <xsd:element ref="Deployment:ComponentPortDescription"/> + <xsd:element ref="Deployment:ComponentInterfaceDescription"/> + <xsd:element ref="Deployment:ImplementationArtifactDescription"/> + <xsd:element ref="Deployment:MonolithicImplementationDescription"/> + <xsd:element ref="Deployment:AssemblyPropertyMapping"/> + <xsd:element ref="Deployment:SubcomponentPropertyReference"/> + <xsd:element ref="Deployment:SubcomponentPortEndpoint"/> + <xsd:element ref="Deployment:AssemblyConnectionDescription"/> + <xsd:element ref="Deployment:SubcomponentInstantiationDescription"/> + <xsd:element ref="Deployment:ComponentAssemblyDescription"/> + <xsd:element ref="Deployment:ComponentImplementationDescription"/> + <xsd:element ref="Deployment:ComponentPackageReference"/> + <xsd:element ref="Deployment:ComponentPackageDescription"/> + <xsd:element ref="Deployment:PackageConfiguration"/> + <xsd:element ref="Deployment:PackagedComponentImplementation"/> + <xsd:element ref="Deployment:NamedImplementationArtifact"/> + <xsd:element ref="Deployment:ImplementationRequirement"/> + <xsd:element ref="Deployment:RequirementSatisfier"/> + <xsd:element ref="Deployment:SatisfierProperty"/> + <xsd:element ref="Deployment:Requirement"/> + <xsd:element ref="Deployment:Property"/> + <xsd:element ref="Deployment:ExternalReferenceEndpoint"/> + <xsd:element ref="Deployment:ComponentExternalPortEndpoint"/> + <xsd:element ref="Deployment:ImplementationDependency"/> + <xsd:element ref="Deployment:TopLevelPackageDescription"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + </xsd:element> +</xsd:schema> diff --git a/modules/CIAO/docs/schema/Spec_Defined_XMI.xsd b/modules/CIAO/docs/schema/Spec_Defined_XMI.xsd new file mode 100644 index 00000000000..eac893f37c8 --- /dev/null +++ b/modules/CIAO/docs/schema/Spec_Defined_XMI.xsd @@ -0,0 +1,35 @@ +<?xml version="1.0" ?> +<xsd:schema targetNamespace="http://www.omg.org/XMI" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsd="http://www.w3.org/2001/XMLSchema" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation='http://www.w3.org/2001/XMLSchema XMLSchema.xsd'> + <xsd:attribute name="id" type="xsd:ID" /> + <xsd:attributeGroup name="IdentityAttribs"> + <xsd:attribute form="qualified" name="label" type="xsd:string" use="optional" /> + <xsd:attribute form="qualified" name="uuid" type="xsd:string" use="optional" /> + </xsd:attributeGroup> + <xsd:attributeGroup name="LinkAttribs"> + <xsd:attribute name="href" type="xsd:string" use="optional" /> + <xsd:attribute form="qualified" name="idref" type="xsd:IDREF" use="optional" /> + </xsd:attributeGroup> + <xsd:attributeGroup name="ObjectAttribs"> + <xsd:attributeGroup ref="xmi:IdentityAttribs" /> + <xsd:attributeGroup ref="xmi:LinkAttribs" /> + <xsd:attribute fixed="2.0" form="qualified" name="version" type="xsd:string" use="optional" /> + <xsd:attribute form="qualified" name="type" type="xsd:QName" use="optional" /> + </xsd:attributeGroup> + <xsd:complexType name="Extension"> + <xsd:choice maxOccurs="unbounded" minOccurs="0"> + <xsd:any processContents="lax" /> + </xsd:choice> + <xsd:attribute ref="xmi:id" /> + <xsd:attributeGroup ref="xmi:ObjectAttribs" /> + <xsd:attribute name="extender" type="xsd:string" use="optional" /> + <xsd:attribute name="extenderID" type="xsd:string" use="optional" /> + </xsd:complexType> + <xsd:element name="Extension" type="xmi:Extension" /> + <xsd:complexType name="Any"> + <xsd:choice maxOccurs="unbounded" minOccurs="0"> + <xsd:any processContents="skip" /> + </xsd:choice> + <xsd:anyAttribute processContents="skip" /> + </xsd:complexType> +</xsd:schema> diff --git a/modules/CIAO/docs/schema/Task_Map.xsd b/modules/CIAO/docs/schema/Task_Map.xsd new file mode 100644 index 00000000000..2138f082d48 --- /dev/null +++ b/modules/CIAO/docs/schema/Task_Map.xsd @@ -0,0 +1,90 @@ +<?xml version="1.0" encoding="utf-8" ?> +<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.vanderbilt.edu/SA-POP Task_Map.xsd" xmlns:SA-POP="http://www.vanderbilt.edu/SA-POP" + targetNamespace="http://www.vanderbilt.edu/SA-POP" elementFormDefault="qualified"> + <!-- Simple types. --> + <xs:simpleType name="TaskID"> + <xs:restriction base="xs:int"> + <xs:minInclusive value="1" /> + </xs:restriction> + </xs:simpleType> + <xs:simpleType name="TaskImplID"> + <xs:restriction base="xs:string" /> + </xs:simpleType> + <xs:simpleType name="ResourceID"> + <xs:restriction base="xs:string" /> + </xs:simpleType> + <xs:simpleType name="ResourceKind"> + <xs:restriction base="xs:string"> + <xs:enumeration value="UNARY" /> + <xs:enumeration value="DISCRETE" /> + <xs:enumeration value="RESERVOIR" /> + </xs:restriction> + </xs:simpleType> + <xs:simpleType name="ResourceValue"> + <xs:restriction base="xs:int"> + <xs:minInclusive value="0" /> + </xs:restriction> + </xs:simpleType> + <xs:simpleType name="ImplParamID"> + <xs:restriction base="xs:string" /> + </xs:simpleType> + <xs:simpleType name="ImplParamKind"> + <xs:restriction base="xs:string" /> + </xs:simpleType> + <xs:simpleType name="ImplParamValue"> + <xs:restriction base="xs:string" /> + </xs:simpleType> + <xs:simpleType name="TimeValue"> + <xs:restriction base="xs:int"> + <!-- -1 indicates unknown/unconstrained time --> + <xs:minInclusive value="-1" /> + </xs:restriction> + </xs:simpleType> + <!-- Complex types corresponding to IDL structures. + (resources, parameters, implementations, associations, and task map) --> + <xs:complexType name="Resource"> + <xs:sequence> + <xs:element name="resourceID" type="SA-POP:ResourceID" /> + <xs:element name="kind" type="SA-POP:ResourceKind" default="DISCRETE" /> + <xs:element name="capacity" type="SA-POP:ResourceValue" default="100" /> + </xs:sequence> + </xs:complexType> + <xs:complexType name="ImplParam"> + <xs:sequence> + <xs:element name="paramID" type="SA-POP:ImplParamID" /> + <xs:element name="kind" type="SA-POP:ImplParamKind" /> + <xs:element name="value" type="SA-POP:ImplParamValue" /> + </xs:sequence> + </xs:complexType> + <xs:complexType name="TaskImpl"> + <xs:sequence> + <xs:element name="implID" type="SA-POP:TaskImplID" /> + <xs:element name="param" type="SA-POP:ImplParam" maxOccurs="unbounded" /> + </xs:sequence> + </xs:complexType> + <xs:complexType name="TaskToImpl"> + <xs:sequence> + <xs:element name="taskID" type="SA-POP:TaskID" /> + <xs:element name="implID" type="SA-POP:TaskImplID" /> + <xs:element name="duration" type="SA-POP:TimeValue" default="-1" /> + </xs:sequence> + </xs:complexType> + <xs:complexType name="ImplToResource"> + <xs:sequence> + <xs:element name="implID" type="SA-POP:TaskImplID" /> + <xs:element name="resourceID" type="SA-POP:ResourceID" /> + <xs:element name="utilization" type="SA-POP:ResourceValue" /> + </xs:sequence> + </xs:complexType> + <xs:complexType name="TaskMap"> + <xs:sequence> + <xs:element name="taskImpl" type="SA-POP:TaskImpl" maxOccurs="unbounded" /> + <xs:element name="resource" type="SA-POP:Resource" maxOccurs="unbounded" /> + <xs:element name="taskToImpl" type="SA-POP:TaskToImpl" maxOccurs="unbounded" /> + <xs:element name="implToResource" type="SA-POP:ImplToResource" maxOccurs="unbounded" /> + </xs:sequence> + </xs:complexType> + <!-- Top-level task map element. --> + <xs:element name="taskMap" type="SA-POP:TaskMap"></xs:element> +</xs:schema>
\ No newline at end of file diff --git a/modules/CIAO/docs/schema/XMI.xsd b/modules/CIAO/docs/schema/XMI.xsd new file mode 100644 index 00000000000..afb17f9d3b5 --- /dev/null +++ b/modules/CIAO/docs/schema/XMI.xsd @@ -0,0 +1,39 @@ +<?xml version="1.0" ?> +<!-- This is a slightly modified XMI schema that has some elements not currently supported by XSC commented out --> +<xsd:schema targetNamespace="http://www.omg.org/XMI" + xmlns:xmi="http://www.omg.org/XMI" + xmlns:xsd="http://www.w3.org/2001/XMLSchema" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation='http://www.w3.org/2001/XMLSchema XMLSchema.xsd'> + <xsd:attribute name="id" type="xsd:ID" /> + <xsd:attributeGroup name="IdentityAttribs"> + <xsd:attribute form="qualified" name="label" type="xsd:string" use="optional" /> + <xsd:attribute form="qualified" name="uuid" type="xsd:string" use="optional" /> + </xsd:attributeGroup> + <xsd:attributeGroup name="LinkAttribs"> + <xsd:attribute name="href" type="xsd:string" use="optional" /> + <xsd:attribute form="qualified" name="idref" type="xsd:IDREF" use="optional" /> + </xsd:attributeGroup> + <xsd:attributeGroup name="ObjectAttribs"> + <xsd:attributeGroup ref="xmi:IdentityAttribs" /> + <xsd:attributeGroup ref="xmi:LinkAttribs" /> + <xsd:attribute fixed="2.0" form="qualified" name="version" type="xsd:string" use="optional" /> + <!-- <xsd:attribute form="qualified" name="type" type="xsd:QName" use="optional" /> --> + </xsd:attributeGroup> + <xsd:complexType name="Extension"> +<!-- <xsd:choice maxOccurs="unbounded" minOccurs="0"> + <xsd:any processContents="lax" /> + </xsd:choice> --> + <xsd:attribute ref="xmi:id" /> + <xsd:attributeGroup ref="xmi:ObjectAttribs" /> + <xsd:attribute name="extender" type="xsd:string" use="optional" /> + <xsd:attribute name="extenderID" type="xsd:string" use="optional" /> + </xsd:complexType> + <xsd:element name="extension" type="xmi:Extension" /> +<!-- <xsd:complexType name="Any"> + <xsd:choice maxOccurs="unbounded" minOccurs="0"> + <xsd:any processContents="skip" /> + </xsd:choice> + <xsd:anyAttribute processContents="skip" /> + </xsd:complexType> --> +</xsd:schema> diff --git a/modules/CIAO/docs/schema/ccd.xsd b/modules/CIAO/docs/schema/ccd.xsd new file mode 100644 index 00000000000..fcdac711b5a --- /dev/null +++ b/modules/CIAO/docs/schema/ccd.xsd @@ -0,0 +1,27 @@ +<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.w3.org/2001/XMLSchema XMLSchema.xsd" + xmlns:Deployment="http://www.omg.org/Deployment" + targetNamespace="http://www.omg.org/Deployment"> + + <xsd:include schemaLocation="Basic_Deployment_Data.xsd" /> + + <xsd:complexType name="ComponentInterfaceDescription"> + <xsd:choice minOccurs="0" maxOccurs="1"> + <xsd:sequence> + <xsd:element name="label" type="xsd:string" minOccurs="0"/> + <xsd:element name="UUID" type="xsd:string" minOccurs="0"/> + <!-- @@ MAJO : HACK - SpecificType and SupportedType should be required! --> + <xsd:element name="specificType" type="xsd:string" minOccurs="0" /> + <xsd:element name="supportedType" type="xsd:string" minOccurs="0" maxOccurs="unbounded"/> + <xsd:element name="idlFile" type="xsd:string" minOccurs="0" maxOccurs="unbounded"/> + <xsd:element name="configProperty" type="Deployment:Property" minOccurs="0" maxOccurs="unbounded"/> + <xsd:element name="port" type="Deployment:ComponentPortDescription" minOccurs="0" maxOccurs="unbounded"/> + <xsd:element name="property" type="Deployment:ComponentPropertyDescription" minOccurs="0" maxOccurs="unbounded"/> + <xsd:element name="infoProperty" type="Deployment:Property" minOccurs="0" maxOccurs="unbounded"/> + </xsd:sequence> + <xsd:element name="contentLocation" type="xsd:string"/> + </xsd:choice> + <xsd:attribute name="href" type="xsd:string" /> + </xsd:complexType> +</xsd:schema> diff --git a/modules/CIAO/docs/schema/cdd.xsd b/modules/CIAO/docs/schema/cdd.xsd new file mode 100644 index 00000000000..3fe64120bfd --- /dev/null +++ b/modules/CIAO/docs/schema/cdd.xsd @@ -0,0 +1,60 @@ +<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.w3.org/2001/XMLSchema XMLSchema.xsd" + xmlns:Deployment="http://www.omg.org/Deployment" + targetNamespace="http://www.omg.org/Deployment"> + +<xsd:include schemaLocation="Basic_Deployment_Data.xsd" /> + + <xsd:complexType name="Domain"> + <xsd:sequence> + <xsd:element name="UUID" type="xsd:string" minOccurs="0" /> + <xsd:element name="label" type="xsd:string" minOccurs="0" /> + <xsd:element name="node" type="Deployment:Node" maxOccurs="unbounded"/> + <xsd:element name="interconnect" type="Deployment:Interconnect" minOccurs="0" maxOccurs="unbounded"/> + <xsd:element name="bridge" type="Deployment:Bridge" minOccurs="0" maxOccurs="unbounded"/> + <xsd:element name="sharedResource" type="Deployment:SharedResource" minOccurs="0" maxOccurs="unbounded"/> + <xsd:element name="infoProperty" type="Deployment:Property" minOccurs="0" maxOccurs="unbounded"/> + </xsd:sequence> + </xsd:complexType> + + <xsd:complexType name="Bridge"> + <xsd:sequence> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="label" type="xsd:string" minOccurs="0" /> + <xsd:element name="connect" type="Deployment:Interconnect" maxOccurs="unbounded" /> + <xsd:element name="resource" type="Deployment:Resource" minOccurs="0" maxOccurs="unbounded" /> + </xsd:sequence> + </xsd:complexType> + + <xsd:complexType name="Interconnect"> + <xsd:sequence> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="label" type="xsd:string" minOccurs="0" /> + <xsd:element name="connection" type="Deployment:Bridge" minOccurs="0" maxOccurs="unbounded" /> + <xsd:element name="connect" type="Deployment:Node" maxOccurs="unbounded" /> + <xsd:element name="resource" type="Deployment:Resource" minOccurs="0" maxOccurs="unbounded" /> + </xsd:sequence> + </xsd:complexType> + + <xsd:complexType name="Node"> + <xsd:sequence> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="label" type="xsd:string" minOccurs="0" /> + <xsd:element name="connection" type="Deployment:Interconnect" minOccurs="0" maxOccurs="unbounded" /> + <xsd:element name="sharedResource" type="Deployment:SharedResource" minOccurs="0" maxOccurs="unbounded" /> + <xsd:element name="resource" type="Deployment:Resource" minOccurs="0" maxOccurs="unbounded" /> + </xsd:sequence> + </xsd:complexType> + + + <xsd:complexType name="SharedResource"> + <xsd:sequence> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="resourceType" type="xsd:string"/> + <xsd:element name="node" type="Deployment:Node"/> + <xsd:element name="property" type="Deployment:SatisfierProperty"/> + </xsd:sequence> + </xsd:complexType> + +</xsd:schema>
\ No newline at end of file diff --git a/modules/CIAO/docs/schema/cdp.xsd b/modules/CIAO/docs/schema/cdp.xsd new file mode 100644 index 00000000000..882d460736c --- /dev/null +++ b/modules/CIAO/docs/schema/cdp.xsd @@ -0,0 +1,43 @@ +<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.w3.org/2001/XMLSchema XMLSchema.xsd" + xmlns:Deployment="http://www.omg.org/Deployment" + targetNamespace="http://www.omg.org/Deployment"> + +<xsd:include schemaLocation="ccd.xsd" /> + <xsd:complexType name="PlanSubcomponentPropertyReference"> + <xsd:sequence> + <xsd:element name="propertyName" type="xsd:string"/> + <xsd:element name="instance" type="Deployment:InstanceDeploymentDescription"/> + </xsd:sequence> + </xsd:complexType> + + <xsd:complexType name="PlanPropertyMapping"> + <xsd:sequence> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="source" type="xsd:string" minOccurs="0" maxOccurs="unbounded" /> + <xsd:element name="externalName" type="xsd:string"/> + <xsd:element name="delegatesTo" type="Deployment:PlanSubcomponentPropertyReference" maxOccurs="unbounded" /> + </xsd:sequence> + </xsd:complexType> + + <!-- Note: name deploymentPlan should be DeploymentPlan, this is a hack to make XSC happy --> + <xsd:complexType name="deploymentPlan"> + <xsd:sequence> + <xsd:element name="label" type="xsd:string" minOccurs="0"/> + <xsd:element name="UUID" type="xsd:string" minOccurs="0"/> + <xsd:element name="realizes" type="Deployment:ComponentInterfaceDescription" minOccurs="0" /> + <xsd:element name="implementation" type="Deployment:MonolithicDeploymentDescription" minOccurs="0" maxOccurs="unbounded" /> + <xsd:element name="instance" type="Deployment:InstanceDeploymentDescription" minOccurs="0" maxOccurs="unbounded"/> + <xsd:element name="connection" type="Deployment:PlanConnectionDescription" minOccurs="0" maxOccurs="unbounded"/> + <!-- @@todo: needs to be added. --> + <xsd:element name="externalProperty" type="Deployment:PlanPropertyMapping" minOccurs="0" maxOccurs="unbounded" /> + <xsd:element name="dependsOn" type="Deployment:ImplementationDependency" minOccurs="0" maxOccurs="unbounded"/> + <xsd:element name="artifact" type="Deployment:ArtifactDeploymentDescription" minOccurs="0" maxOccurs="unbounded"/> + <xsd:element name="infoProperty" type="Deployment:Property" minOccurs="0" maxOccurs="unbounded"/> + <xsd:element name="localityConstraint" type="Deployment:PlanLocality" minOccurs="0" maxOccurs="unbounded"/> + </xsd:sequence> +</xsd:complexType> + + +</xsd:schema> diff --git a/modules/CIAO/docs/schema/ciaopolicy.xsd b/modules/CIAO/docs/schema/ciaopolicy.xsd new file mode 100644 index 00000000000..93a7415c4b4 --- /dev/null +++ b/modules/CIAO/docs/schema/ciaopolicy.xsd @@ -0,0 +1,607 @@ +<?xml version="1.0" encoding="utf-8"?> +<xs:schema targetNamespace="www.dre.vanderbilt.edu" + xmlns:ciao="www.dre.vanderbilt.edu" + xmlns:xs="http://www.w3.org/2001/XMLSchema" + elementFormDefault="qualified" + attributeFormDefault="unqualified"> + + <xs:element name="orbPolicies"> + <xs:annotation> + <xs:documentation> + The root element of the schema. Contains zero or more policies. + </xs:documentation> + </xs:annotation> + <xs:complexType> + <xs:sequence> + <xs:element name="policy" type="ciao:policyType" maxOccurs="unbounded" /> + </xs:sequence> + </xs:complexType> + </xs:element> + + <xs:complexType name="policyType"> + <xs:sequence> + <xs:choice> + <xs:element name="rebindPolicy" type="ciao:rebindPolicyType" /> + <xs:element name="syncScopePolicy" type="ciao:syncScopePolicyType" /> + <xs:element name="requestPriorityPolicy" type="ciao:requestPriorityPolicyType" /> + <xs:element name="replyPriorityPolicy" type="ciao:replyPriorityPolicyType" /> + <xs:element name="requestStartTimePolicy" type="ciao:requestStartTimePolicyType" /> + <xs:element name="requestEndTimePolicy" type="ciao:requestEndTimePolicyType" /> + <xs:element name="replyStartTimePolicy" type="ciao:replyStartTimePolicyType" /> + <xs:element name="replyEndTimePolicy" type="ciao:replyEndTimePolicyType" /> + <xs:element name="relativeRequestTimeoutPolicy" type="ciao:relativeRequestTimeoutPolicyType" /> + <xs:element name="relativeRoundtripPolicy" type="ciao:relativeRoundtripPolicyType" /> + <xs:element name="routingPolicy" type="ciao:routingPolicyType" /> + <xs:element name="maxHopsPolicy" type="ciao:maxHopsPolicyType" /> + <xs:element name="queueOrderPolicy" type="ciao:queueOrderPolicyType" /> + <xs:element name="priorityModelPolicy" type="ciao:priorityModelPolicyType" /> + <xs:element name="threadPoolPolicy" type="ciao:threadPoolPolicyType" /> + <xs:element name="serverProtocolPolicy" type="ciao:serverProtocolPolicyType" /> + <xs:element name="clientProtocolPolicy" type="ciao:clientProtocolPolicyType" /> + <xs:element name="privateConnectionPolicy" type="ciao:privateConnectionPolicyType" /> + <xs:element name="priorityBandedPolicy" type="ciao:priorityBandedPolicyType" /> + </xs:choice> + </xs:sequence> + </xs:complexType> + + <xs:complexType name="policyBase" abstract="true"> + <xs:annotation> + <xs:documentation> + This is the base policy type. All policies + should be an extension of this type. + </xs:documentation> + </xs:annotation> + <xs:sequence> + <xs:element name="override" type="ciao:overrideType" /> + <xs:element name="scope" type="ciao:scopeType" /> + </xs:sequence> + </xs:complexType> + + <xs:simpleType name="scopeType"> + <xs:restriction base="xs:string"> + <xs:enumeration value="ORB" /> + <xs:enumeration value="THREAD" /> + <xs:enumeration value="OBJECT" /> + <xs:enumeration value="POA" /> + </xs:restriction> + </xs:simpleType> + + <xs:simpleType name="policyIDType"> + <xs:annotation> + <xs:documentation> + This type represents the policy ID. + Need to add a restriction. + </xs:documentation> + </xs:annotation> + <xs:restriction base="xs:integer"> + </xs:restriction> + </xs:simpleType> + + <xs:simpleType name="overrideType"> + <xs:restriction base="xs:string"> + <xs:enumeration value="SET_OVERRIDE" /> + <xs:enumeration value="ADD_OVERRIDE" /> + </xs:restriction> + </xs:simpleType> + + + + <!-- The following are extensions of policyBase, one each for each policy + we may want to group these into seperate schema documents, for our + own sanity. + --> + <!-- Policies 23 - 35 are defined in Messaging_No_Impl.pidl, + with the exception of policy 32, defined in Messaging_RT_Policy.pidl + and policy 24, defined in Messaging_SyncScope_Policy.pidl --> + + <xs:complexType name="rebindPolicyType"> + <xs:annotation> + <xs:documentation> + Represents the RebindPolicy type, ID 23 + </xs:documentation> + </xs:annotation> + <xs:complexContent> + <xs:extension base="ciao:policyBase"> + <xs:sequence> + <xs:element name="rebindMode" type="ciao:rebindModeType" /> + </xs:sequence> + <xs:attribute name="typeID" type="xs:integer" use="required" fixed="23" /> + </xs:extension> + </xs:complexContent> + </xs:complexType> + + <xs:simpleType name="rebindModeType"> + <xs:annotation> + <xs:documentation> + Note: This is not strictly represented in the pidl as an enum, + but that appears to be the intent of the way it is declared. + </xs:documentation> + </xs:annotation> + <xs:restriction base="xs:string"> + <xs:enumeration value="TRANSPARENT" /> + <xs:enumeration value="NO_REBIND" /> + <xs:enumeration value="NO_RECONNECT" /> + </xs:restriction> + </xs:simpleType> + + <xs:complexType name="syncScopePolicyType"> + <xs:annotation> + <xs:documentation> + Represents a SyncScopePolicyType, ID 24 + </xs:documentation> + </xs:annotation> + <xs:complexContent> + <xs:extension base="ciao:policyBase"> + <xs:sequence> + <xs:element name="synchronization" type="ciao:syncScopeType" /> + </xs:sequence> + <xs:attribute name="typeID" type="xs:integer" use="required" fixed="25" /> + </xs:extension> + </xs:complexContent> + </xs:complexType> + + <xs:simpleType name="syncScopeType"> + <xs:annotation> + <xs:documentation> + Note: This was not declared an enum in Messaging_SyncScope_Policy.pidl, + but from the declaration, that appears to be the intent. + </xs:documentation> + </xs:annotation> + <xs:restriction base="xs:string"> + <xs:enumeration value="SYNC_NONE" /> + <xs:enumeration value="SYNC_WITH_TRANSPORT" /> + <xs:enumeration value="SYNC_WITH_SERVER" /> + <xs:enumeration value="SYNC_WITH_TARGET" /> + </xs:restriction> + </xs:simpleType> + + <xs:complexType name="requestPriorityPolicyType"> + <xs:annotation> + <xs:documentation> + Represents a RequestPriorityPolicy, ID 25 + </xs:documentation> + </xs:annotation> + <xs:complexContent> + <xs:extension base="ciao:policyBase"> + <xs:sequence> + <xs:element name="priorityRange" type="ciao:priorityRangeType" /> + </xs:sequence> + <xs:attribute name="typeID" type="xs:integer" use="required" fixed="25" /> + </xs:extension> + </xs:complexContent> + </xs:complexType> + + <xs:complexType name="replyPriorityPolicyType"> + <xs:annotation> + <xs:documentation> + Represents a ReplyPriorityPolicy, ID 26 + </xs:documentation> + </xs:annotation> + <xs:complexContent> + <xs:extension base="ciao:policyBase"> + <xs:sequence> + <xs:element name="priorityRange" type="ciao:priorityRangeType" /> + </xs:sequence> + <xs:attribute name="typeID" type="xs:integer" use="required" fixed="26" /> + </xs:extension> + </xs:complexContent> + </xs:complexType> + + <xs:complexType name="priorityRangeType"> + <xs:annotation> + <xs:documentation> + Represents a PriorityRange struct defined in Messaging_No_Impl.pidl + </xs:documentation> + </xs:annotation> + <xs:sequence> + <xs:element name="min" type="xs:integer" /> + <xs:element name="max" type="xs:integer" /> + </xs:sequence> + </xs:complexType> + + + <xs:complexType name="requestStartTimePolicyType"> + <xs:annotation> + <xs:documentation> + Represents a RequestStartTimePolicy, ID 27 + </xs:documentation> + </xs:annotation> + <xs:complexContent> + <xs:extension base="ciao:policyBase"> + <xs:sequence> + <xs:element name="startTime" type="ciao:utcTime" /> + </xs:sequence> + <xs:attribute name="typeID" type="xs:integer" use="required" fixed="27" /> + </xs:extension> + </xs:complexContent> + </xs:complexType> + + + <xs:complexType name="requestEndTimePolicyType"> + <xs:annotation> + <xs:documentation> + Represents a RequestEndTimePolicy, ID 28 + </xs:documentation> + </xs:annotation> + <xs:complexContent> + <xs:extension base="ciao:policyBase"> + <xs:sequence> + <xs:element name="endTime" type="ciao:utcTime" /> + </xs:sequence> + <xs:attribute name="typeID" type="xs:integer" use="required" fixed="28" /> + </xs:extension> + </xs:complexContent> + </xs:complexType> + + + <xs:complexType name="replyStartTimePolicyType"> + <xs:annotation> + <xs:documentation> + Represents a ReplyStartTimePolicy, ID 29 + </xs:documentation> + </xs:annotation> + <xs:complexContent> + <xs:extension base="ciao:policyBase"> + <xs:sequence> + <xs:element name="startTime" type="ciao:utcTime" /> + </xs:sequence> + <xs:attribute name="typeID" type="xs:integer" use="required" fixed="29" /> + </xs:extension> + </xs:complexContent> + </xs:complexType> + + + <xs:complexType name="replyEndTimePolicyType"> + <xs:annotation> + <xs:documentation> + Represents a ReplyEndTimePolicy, ID 30 + </xs:documentation> + </xs:annotation> + <xs:complexContent> + <xs:extension base="ciao:policyBase"> + <xs:sequence> + <xs:element name="endTime" type="ciao:utcTime" /> + </xs:sequence> + <xs:attribute name="typeID" type="xs:integer" use="required" fixed="30" /> + </xs:extension> + </xs:complexContent> + </xs:complexType> + + <xs:complexType name="utcTime"> + <xs:annotation> + <xs:documentation> + Represents a TimeBase::UtcT struct, defined in tao/TimeBase.pidl + </xs:documentation> + </xs:annotation> + <xs:sequence> + <xs:element name="time" type="xs:integer" /> + <xs:element name="inaccLo" type="xs:integer" /> + <xs:element name="inaccHi" type="xs:integer" /> + <xs:element name="tdf" type="xs:integer" /> + </xs:sequence> + </xs:complexType> + + <xs:complexType name="relativeRequestTimeoutPolicyType"> + <xs:annotation> + <xs:documentation> + Represents a RelativeRequestTimeoutPolicy, ID 31. + </xs:documentation> + </xs:annotation> + <xs:complexContent> + <xs:extension base="ciao:policyBase"> + <xs:sequence> + <xs:element name="relativeExpiry" type="xs:integer" /> + </xs:sequence> + <xs:attribute name="typeID" type="xs:integer" use="required" fixed="31" /> + </xs:extension> + </xs:complexContent> + </xs:complexType> + + <xs:complexType name="relativeRoundtripPolicyType"> + <xs:annotation> + <xs:documentation> + Represents a RelativeRoundtripPolicy, ID 32 + </xs:documentation> + </xs:annotation> + <xs:complexContent> + <xs:extension base="ciao:policyBase"> + <xs:sequence> + <xs:element name="relativeExpiry" type="xs:integer" /> + </xs:sequence> + <xs:attribute name="typeID" type="xs:integer" use="required" fixed="32" /> + </xs:extension> + </xs:complexContent> + </xs:complexType> + + <xs:complexType name="routingPolicyType"> + <xs:annotation> + <xs:documentation> + Represents a RoutingPolicy, ID 33 + </xs:documentation> + </xs:annotation> + <xs:complexContent> + <xs:extension base="ciao:policyBase"> + <xs:sequence> + <xs:element name="routingTypeRangeMin" type="ciao:routingType" /> + <xs:element name="routingTypeRangeMax" type="ciao:routingType" /> + </xs:sequence> + <xs:attribute name="typeID" type="xs:integer" use="required" fixed="33" /> + </xs:extension> + </xs:complexContent> + </xs:complexType> + + <xs:simpleType name="routingType"> + <xs:annotation> + <xs:documentation> + Note: This is not explicitly set up as an enum in Messaging_No_Impl.pidl, + but that appears to be the intent from the declaration. + </xs:documentation> + </xs:annotation> + <xs:restriction base="xs:string"> + <xs:enumeration value="ROUTE_NONE" /> + <xs:enumeration value="ROUTE_FORWARD" /> + <xs:enumeration value="ROUTE_STORE_AND_FORWARD" /> + </xs:restriction> + </xs:simpleType> + + <xs:complexType name="maxHopsPolicyType"> + <xs:annotation> + <xs:documentation> + Represents a MaxHopsPolicy, ID 34 + </xs:documentation> + </xs:annotation> + <xs:complexContent> + <xs:extension base="ciao:policyBase"> + <xs:sequence> + <xs:element name="maxHops" type="xs:integer" /> + </xs:sequence> + <xs:attribute name="typeID" type="xs:integer" use="required" fixed="34" /> + </xs:extension> + </xs:complexContent> + </xs:complexType> + + <xs:complexType name="queueOrderPolicyType"> + <xs:annotation> + <xs:documentation> + Represents a QueueOrderPolicy, ID 35 + </xs:documentation> + </xs:annotation> + <xs:complexContent> + <xs:extension base="ciao:policyBase"> + <xs:sequence> + <xs:element name="allowedOrders" type="ciao:ordersType" /> + </xs:sequence> + <xs:attribute name="typeID" type="xs:integer" use="required" fixed="35" /> + </xs:extension> + </xs:complexContent> + </xs:complexType> + + <xs:simpleType name="ordersType"> + <xs:annotation> + <xs:documentation> + Note: This is not explicitly declared to be an enum in Messaging_No_Impl.pidl, + but that appears to be the intent from the declaration. + </xs:documentation> + </xs:annotation> + <xs:restriction base="xs:string"> + <xs:enumeration value="ORDER_ANY" /> + <xs:enumeration value="ORDER_TEMPORAL" /> + <xs:enumeration value="ORDER_PRIORITY" /> + <xs:enumeration value="ORDER_DEADLINE" /> + </xs:restriction> + </xs:simpleType> + + <!-- Policies 40 - 45 are defined in RTCORBA.pidl --> + <!-- priorityModelPolicy --> + <xs:complexType name="priorityModelPolicyType"> + <xs:annotation> + <xs:documentation> + Represents the Priority Model Policy, ID 40 + </xs:documentation> + </xs:annotation> + + <xs:complexContent> + <xs:extension base="ciao:policyBase"> + <xs:sequence> + <xs:element name="priorityModel" type="ciao:priorityModelType" /> + <xs:element name="serverPriority" type="xs:integer" /> + </xs:sequence> + <xs:attribute name="typeID" type="xs:integer" use="required" fixed="40" /> + </xs:extension> + </xs:complexContent> + </xs:complexType> + + <xs:simpleType name="priorityModelType"> + <xs:restriction base="xs:string"> + <xs:enumeration value="CLIENT_PROPAGATED" /> + <xs:enumeration value="SERVER_DECLARED" /> + </xs:restriction> + </xs:simpleType> + + <!-- threadPoolPolicy --> + + <xs:complexType name="threadPoolPolicyType"> + <xs:annotation> + <xs:documentation> + Represents the ThreadPool policy, ID 41 + </xs:documentation> + </xs:annotation> + + <xs:complexContent> + <xs:extension base="ciao:policyBase"> + <xs:sequence> + <xs:element name="threadPoolID" type="xs:integer" /> + </xs:sequence> + <xs:attribute name="typeID" type="xs:integer" use="required" fixed="41" /> + </xs:extension> + </xs:complexContent> + </xs:complexType> + + + <!-- serverProtocolPolicy --> + + <xs:complexType name="serverProtocolPolicyType"> + <xs:annotation> + <xs:documentation> + Represents the Server Protocol policy, ID 42 + </xs:documentation> + </xs:annotation> + + <xs:complexContent> + <xs:extension base="ciao:policyBase"> + <xs:sequence> + <xs:element name="protocol" type="ciao:protocolType" + minOccurs="0" maxOccurs="unbounded" /> + </xs:sequence> + <xs:attribute name="typeID" type="xs:integer" use="required" fixed="42" /> + </xs:extension> + </xs:complexContent> + </xs:complexType> + + + <!-- clientProtocolPolicy --> + <xs:complexType name="clientProtocolPolicyType"> + <xs:annotation> + <xs:documentation> + Represents the Client Protocol policy, ID 43 + </xs:documentation> + </xs:annotation> + + <xs:complexContent> + <xs:extension base="ciao:policyBase"> + <xs:sequence> + <xs:element name="protocol" type="ciao:protocolType" + minOccurs="0" maxOccurs="unbounded" /> + </xs:sequence> + <xs:attribute name="typeID" type="xs:integer" use="required" fixed="43" /> + </xs:extension> + </xs:complexContent> + </xs:complexType> + + + <!-- Protocol definitions for client and server Protocol properties types. --> + <xs:complexType name="protocolType"> + <xs:sequence> + <xs:element name="protocolType" type="xs:integer" /> + <xs:element name="orbProtocolProperties" type="ciao:protocolPropertyType" /> + <xs:element name="transportProtocolProperties" type="ciao:protocolPropertyType" /> + </xs:sequence> + </xs:complexType> + + <xs:complexType name="protocolPropertyType"> + <xs:sequence> + <xs:choice> + <xs:element name="tcpProtocolProperties" type="ciao:tcpProtocolPropertiesType" /> + <xs:element name="giopProtocolProperties" type="ciao:giopProtocolPropertiesType" /> + <xs:element name="unixDomainProtocolProperties" type="ciao:unixDomainProtocolPropertiesType" /> + <xs:element name="sharedMemoryProtocolProperties" type="ciao:sharedMemoryProtocolPropertiesType" /> + </xs:choice> + </xs:sequence> + </xs:complexType> + + <xs:complexType name="protocolPropertyBase" abstract="true"> + <xs:annotation> + <xs:documentation> + Base type for all protocol properties. + </xs:documentation> + </xs:annotation> + <xs:attribute name="type" type="xs:string" use="required" /> + </xs:complexType> + + <xs:complexType name="tcpProtocolPropertiesType"> + <xs:complexContent> + <xs:extension base="ciao:protocolPropertyBase"> + <xs:sequence> + <xs:element name="sendBufferSize" type="xs:integer" /> + <xs:element name="recvBufferSize" type="xs:integer" /> + <xs:element name="keepAlive" type="xs:boolean" /> + <xs:element name="dontRoute" type="xs:boolean" /> + <xs:element name="noDelay" type="xs:boolean" /> + <xs:element name="enableNetworkPriority" type="xs:boolean" /> + </xs:sequence> + </xs:extension> + </xs:complexContent> + </xs:complexType> + + <xs:complexType name="giopProtocolPropertiesType"> + <xs:complexContent> + <xs:extension base="ciao:protocolPropertyBase" /> + </xs:complexContent> + </xs:complexType> + + <xs:complexType name="unixDomainProtocolPropertiesType"> + <xs:complexContent> + <xs:extension base="ciao:protocolPropertyBase"> + <xs:sequence> + <xs:element name="sendBufferSize" type="xs:integer" /> + <xs:element name="recvBufferSize" type="xs:integer" /> + </xs:sequence> + </xs:extension> + </xs:complexContent> + </xs:complexType> + + <xs:complexType name="sharedMemoryProtocolPropertiesType"> + <xs:complexContent> + <xs:extension base="ciao:protocolPropertyBase"> + <xs:sequence> + <xs:element name="preallocateBufferSize" type="xs:integer" /> + <xs:element name="mmapFilename" type="xs:string" /> + <xs:element name="mmapLockname" type="xs:string" /> + </xs:sequence> + </xs:extension> + </xs:complexContent> + </xs:complexType> + + <!-- TODO: Provide other protocolProperties types --> + + <!-- privateConnectionPolicy --> + <xs:complexType name="privateConnectionPolicyType"> + <xs:annotation> + <xs:documentation> + privateConnectionPolicy extension of policyBase, ID 44 + </xs:documentation> + </xs:annotation> + <xs:complexContent> + <xs:extension base="ciao:policyBase"> + <!-- empty --> + <xs:attribute name="typeID" type="xs:integer" use="required" fixed="44" /> + </xs:extension> + </xs:complexContent> + </xs:complexType> + + + <!-- priorityBandedPolicy --> + <xs:complexType name="priorityBandedPolicyType"> + <xs:annotation> + <xs:documentation> + priorityBandedPolicy extension of policyBase, ID 45 + </xs:documentation> + </xs:annotation> + + <xs:complexContent> + <xs:extension base="ciao:policyBase"> + <xs:sequence> + <xs:element name="priorityBand" type="ciao:priorityBandType" + minOccurs="0" maxOccurs="unbounded" /> + </xs:sequence> + <xs:attribute name="typeID" type="xs:integer" use="required" fixed="45" /> + </xs:extension> + </xs:complexContent> + </xs:complexType> + + + <xs:complexType name="priorityBandType"> + <xs:annotation> + <xs:documentation> + Represents the PriorityBand struct for the priorityBandedPolicy element. + </xs:documentation> + </xs:annotation> + <xs:sequence> + <xs:element name="low" type="xs:integer" /> + <xs:element name="high" type="xs:integer" /> + </xs:sequence> + </xs:complexType> + + + +</xs:schema>
\ No newline at end of file diff --git a/modules/CIAO/docs/schema/cid.xsd b/modules/CIAO/docs/schema/cid.xsd new file mode 100644 index 00000000000..62cdc75e7c5 --- /dev/null +++ b/modules/CIAO/docs/schema/cid.xsd @@ -0,0 +1,126 @@ +<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.w3.org/2001/XMLSchema XMLSchema.xsd" + xmlns:Deployment="http://www.omg.org/Deployment" + targetNamespace="http://www.omg.org/Deployment"> + + <xsd:include schemaLocation="Basic_Deployment_Data.xsd" /> + <xsd:include schemaLocation="ccd.xsd" /> + <xsd:include schemaLocation="iad.xsd" /> + <xsd:include schemaLocation="pcd.xsd" /> + <xsd:include schemaLocation="cpd.xsd" /> + + <xsd:complexType name="ComponentPackageReference"> + <xsd:sequence> + <xsd:element name="requiredUUID" type="xsd:string" minOccurs="0" /> + <xsd:element name="requiredName" type="xsd:string" minOccurs="0" /> + <xsd:element name="requiredType" type="Deployment:ComponentInterfaceDescription"/> + </xsd:sequence> + </xsd:complexType> + + <xsd:complexType name="SubcomponentInstantiationDescription"> + <xsd:sequence> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="basePackage" type="Deployment:ComponentPackageDescription" minOccurs="0" /> + <xsd:element name="specializedConfig" type="Deployment:PackageConfiguration" minOccurs="0" /> + <xsd:element name="selectRequirement" type="Deployment:Requirement" minOccurs="0" maxOccurs="unbounded" /> + <xsd:element name="configProperty" type="Deployment:Property" minOccurs="0" maxOccurs="unbounded" /> + <xsd:element name="referencedPackage" type="Deployment:ComponentPackageReference" minOccurs="0"/> + <xsd:element name="importedPackage" type="Deployment:ComponentPackageImport" minOccurs="0"/> + </xsd:sequence> + <xsd:attribute name="id" type="xsd:ID"/> + </xsd:complexType> + + <xsd:complexType name="SubcomponentPropertyReference"> + <xsd:sequence> + <xsd:element name="propertyName" type="xsd:string"/> + <xsd:element name="instance" type="Deployment:IdRef"/> + </xsd:sequence> + </xsd:complexType> + + <xsd:complexType name="AssemblyPropertyMapping"> + <xsd:sequence> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="externalName" type="xsd:string"/> + <xsd:element name="delegatesTo" type="Deployment:SubcomponentPropertyReference" minOccurs="0" maxOccurs="unbounded" /> + </xsd:sequence> + </xsd:complexType> + + <xsd:simpleType name="LocalityKind"> + <xsd:restriction base="xsd:string"> + <xsd:enumeration value="SameNodeAnyProcess"/> + <xsd:enumeration value="SameNodeSameProcess"/> + <xsd:enumeration value="SameNodeDifferentProcess"/> + <xsd:enumeration value="DifferentNode"/> + <xsd:enumeration value="DifferentProcess"/> + <xsd:enumeration value="NoConstraint"/> + </xsd:restriction> + </xsd:simpleType> + + <!-- Locality needs to be implemented --> + <xsd:complexType name="Locality"> + <xsd:sequence> + <xsd:element name="constraint" type="Deployment:LocalityKind"/> + <xsd:element name="constrainedInstance" type="Deployment:IdRef"/> + </xsd:sequence> + </xsd:complexType> + + <xsd:complexType name="ComponentAssemblyDescription"> + <xsd:sequence> + <xsd:element name="instance" type="Deployment:SubcomponentInstantiationDescription" minOccurs="0" maxOccurs="unbounded"/> + <xsd:element name="connection" type="Deployment:AssemblyConnectionDescription" minOccurs="0" maxOccurs="unbounded"/> + <xsd:element name="externalProperty" type="Deployment:AssemblyPropertyMapping" minOccurs="0" maxOccurs="unbounded" /> + <xsd:element name="locality" type="Deployment:Locality" minOccurs="0" maxOccurs="unbounded" /> <!-- @@todo: needs to be implemented --> + </xsd:sequence> + </xsd:complexType> + + <xsd:complexType name="MonolithicImplementationDescription"> + <xsd:sequence> + <xsd:element name="nodeExecParameter" type="Deployment:Property" minOccurs="0" maxOccurs="unbounded" /> + <xsd:element name="componentExecParameter" type="Deployment:Property" minOccurs="0" maxOccurs="unbounded" /> + <xsd:element name="deployRequirement" type="Deployment:ImplementationRequirement" minOccurs="0" maxOccurs="unbounded" /> + <xsd:element name="primaryArtifact" type="Deployment:NamedImplementationArtifact" minOccurs="0" maxOccurs="unbounded"/> + </xsd:sequence> + </xsd:complexType> + + <xsd:complexType name="ComponentImplementationDescription"> + <xsd:choice minOccurs="0" maxOccurs="1"> + <xsd:sequence> + <xsd:element name="label" type="xsd:string" minOccurs="0" /> + <xsd:element name="UUID" type="xsd:string" minOccurs="0" /> + <!-- @@ MAJO : Hack: Implements should be required. --> + <xsd:element name="implements" type="Deployment:ComponentInterfaceDescription" minOccurs="0" /> + <xsd:choice> + <xsd:element name="assemblyImpl" type="Deployment:ComponentAssemblyDescription"/> + <xsd:element name="monolithicImpl" type="Deployment:MonolithicImplementationDescription"/> + </xsd:choice> + <xsd:element name="configProperty" type="Deployment:Property" minOccurs="0" maxOccurs="unbounded" /> + <xsd:element name="capability" type="Deployment:Capability" minOccurs="0" maxOccurs="unbounded" /> + <xsd:element name="dependsOn" type="Deployment:ImplementationDependency" minOccurs="0" maxOccurs="unbounded" /> + <xsd:element name="infoProperty" type="Deployment:Property" minOccurs="0" maxOccurs="unbounded" /> + </xsd:sequence> + </xsd:choice> + <xsd:attribute name="href" type="xsd:string" use="optional"/> + </xsd:complexType> + + <xsd:complexType name="ConnectorImplementationDescription"> + <xsd:choice minOccurs="0" maxOccurs="1"> + <xsd:sequence> + <xsd:element name="label" type="xsd:string" minOccurs="0" /> + <xsd:element name="UUID" type="xsd:string" minOccurs="0" /> + <!-- @@ MAJO : Hack: Implements should be required. --> + <xsd:element name="implements" type="Deployment:ComponentInterfaceDescription" minOccurs="0" /> + <xsd:choice> + <xsd:element name="assemblyImpl" type="Deployment:ComponentAssemblyDescription"/> + <xsd:element name="monolithicImpl" type="Deployment:MonolithicImplementationDescription"/> + </xsd:choice> + <xsd:element name="configProperty" type="Deployment:Property" minOccurs="0" maxOccurs="unbounded" /> + <xsd:element name="capability" type="Deployment:Capability" minOccurs="0" maxOccurs="unbounded" /> + <xsd:element name="dependsOn" type="Deployment:ImplementationDependency" minOccurs="0" maxOccurs="unbounded" /> + <xsd:element name="infoProperty" type="Deployment:Property" minOccurs="0" maxOccurs="unbounded" /> + </xsd:sequence> + </xsd:choice> + <xsd:attribute name="href" type="xsd:string" use="optional"/> + </xsd:complexType> + +</xsd:schema> diff --git a/modules/CIAO/docs/schema/cpd.xsd b/modules/CIAO/docs/schema/cpd.xsd new file mode 100644 index 00000000000..b4313af65bf --- /dev/null +++ b/modules/CIAO/docs/schema/cpd.xsd @@ -0,0 +1,49 @@ +<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.w3.org/2001/XMLSchema XMLSchema.xsd" + xmlns:Deployment="http://www.omg.org/Deployment" + targetNamespace="http://www.omg.org/Deployment"> + + <xsd:include schemaLocation="cid.xsd" /> + <xsd:include schemaLocation="ccd.xsd" /> + + <xsd:complexType name="PackagedComponentImplementation"> + <xsd:sequence> + <xsd:element name="name" type="xsd:string"/> + <!-- @@ recursive CPD->PCI->CID->CAD->SID->CPD --> + <xsd:element name="referencedImplementation" type="Deployment:ComponentImplementationDescription"/> + </xsd:sequence> + </xsd:complexType> + + <xsd:complexType name="ComponentPackageDescription"> + <xsd:choice minOccurs="0" maxOccurs="1"> + <xsd:sequence> + <xsd:element name="label" type="xsd:string" minOccurs="0" /> + <xsd:element name="UUID" type="xsd:string" minOccurs="0" /> + <!-- @@MAJO - This is a hack, realizes is required. --> + <xsd:element name="realizes" type="Deployment:ComponentInterfaceDescription" minOccurs="0" /> + <xsd:element name="configProperty" type="Deployment:Property" minOccurs="0" maxOccurs="unbounded" /> + <xsd:element name="implementation" type="Deployment:PackagedComponentImplementation" maxOccurs="unbounded" /> + <xsd:element name="infoProperty" type="Deployment:Property" minOccurs="0" maxOccurs="unbounded" /> + </xsd:sequence> + </xsd:choice> + <xsd:attribute name="href" type="xsd:string" use="optional"/> + </xsd:complexType> + + <xsd:complexType name="ConnectorPackageDescription"> + <xsd:choice minOccurs="0" maxOccurs="1"> + <xsd:sequence> + <xsd:element name="label" type="xsd:string" minOccurs="0" /> + <xsd:element name="UUID" type="xsd:string" minOccurs="0" /> + <!-- @@MAJO - This is a hack, realizes is required. --> + <xsd:element name="realizes" type="Deployment:ComponentInterfaceDescription" minOccurs="0" /> + <xsd:element name="configProperty" type="Deployment:Property" minOccurs="0" maxOccurs="unbounded" /> + <xsd:element name="implementation" type="Deployment:ConnectorImplementationDescription" maxOccurs="unbounded" /> + <xsd:element name="infoProperty" type="Deployment:Property" minOccurs="0" maxOccurs="unbounded" /> + </xsd:sequence> + </xsd:choice> + <xsd:attribute name="href" type="xsd:string" use="optional"/> + </xsd:complexType> + +</xsd:schema> + diff --git a/modules/CIAO/docs/schema/iad.xsd b/modules/CIAO/docs/schema/iad.xsd new file mode 100644 index 00000000000..2f910b5d333 --- /dev/null +++ b/modules/CIAO/docs/schema/iad.xsd @@ -0,0 +1,32 @@ +<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.w3.org/2001/XMLSchema XMLSchema.xsd" + xmlns:Deployment="http://www.omg.org/Deployment" + targetNamespace="http://www.omg.org/Deployment"> + +<xsd:include schemaLocation="Basic_Deployment_Data.xsd" /> + + <xsd:complexType name="NamedImplementationArtifact"> + <xsd:sequence> + <xsd:element name="name" type="xsd:string"/> + <!-- @@ recursive NIA->IAD->NIA --> + <xsd:element name="referencedArtifact" type="Deployment:ImplementationArtifactDescription"/> + </xsd:sequence> + </xsd:complexType> + + <xsd:complexType name="ImplementationArtifactDescription"> + <xsd:choice minOccurs="0" maxOccurs="1"> + <xsd:sequence> + <xsd:element name="label" type="xsd:string" minOccurs="0" /> + <xsd:element name="UUID" type="xsd:string" minOccurs="0" /> + <xsd:element name="location" type="xsd:string" maxOccurs="unbounded"/> + <xsd:element name="dependsOn" type="Deployment:NamedImplementationArtifact" minOccurs="0" maxOccurs="unbounded"/> + <xsd:element name="execParameter" type="Deployment:Property" minOccurs="0" maxOccurs="unbounded" /> + <xsd:element name="infoProperty" type="Deployment:Property" minOccurs="0" maxOccurs="unbounded" /> + <xsd:element name="deployRequirement" type="Deployment:Requirement" minOccurs="0" maxOccurs="unbounded" /> + </xsd:sequence> + <xsd:element name="contentLocation" type="xsd:string"/> + </xsd:choice> + <xsd:attribute name="href" type="xsd:string" use="optional"/> + </xsd:complexType> +</xsd:schema>
\ No newline at end of file diff --git a/modules/CIAO/docs/schema/pcd.xsd b/modules/CIAO/docs/schema/pcd.xsd new file mode 100644 index 00000000000..5c7772f7d85 --- /dev/null +++ b/modules/CIAO/docs/schema/pcd.xsd @@ -0,0 +1,32 @@ +<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.w3.org/2001/XMLSchema XMLSchema.xsd" + xmlns:Deployment="http://www.omg.org/Deployment" + targetNamespace="http://www.omg.org/Deployment"> + + <xsd:include schemaLocation="Basic_Deployment_Data.xsd" /> + <xsd:include schemaLocation="cpd.xsd" /> + + <xsd:complexType name="ComponentPackageImport"> + <xsd:sequence> + <xsd:element name="location" type="xsd:string" minOccurs="0" maxOccurs="unbounded" /> + </xsd:sequence> + </xsd:complexType> + + <xsd:complexType name="PackageConfiguration"> + <xsd:choice> + <xsd:sequence> + <xsd:element name="label" type="xsd:string" minOccurs="0" /> + <xsd:element name="UUID" type="xsd:string" minOccurs="0" /> + <xsd:element name="basePackage" type="Deployment:ComponentPackageDescription" minOccurs="0" /> + <xsd:element name="specializedConfig" type="Deployment:PackageConfiguration" minOccurs="0" /> + <xsd:element name="importedPackage" type="Deployment:ComponentPackageImport" minOccurs="0" /> + <xsd:element name="referencedPackage" type="Deployment:ComponentPackageReference" minOccurs="0"/> + <xsd:element name="selectRequirement" type="Deployment:Requirement" minOccurs="0" maxOccurs="unbounded" /> + <xsd:element name="configProperty" type="Deployment:Property" minOccurs="0" maxOccurs="unbounded" /> + </xsd:sequence> + <xsd:element name="contentLocation" type="xsd:string" minOccurs="0"/> + </xsd:choice> + </xsd:complexType> + +</xsd:schema>
\ No newline at end of file diff --git a/modules/CIAO/docs/schema/toplevel.xsd b/modules/CIAO/docs/schema/toplevel.xsd new file mode 100644 index 00000000000..83e2feb999d --- /dev/null +++ b/modules/CIAO/docs/schema/toplevel.xsd @@ -0,0 +1,15 @@ +<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.w3.org/2001/XMLSchema XMLSchema.xsd" + xmlns:Deployment="http://www.omg.org/Deployment" + targetNamespace="http://www.omg.org/Deployment"> + + <xsd:include schemaLocation="pcd.xsd" /> + + <xsd:complexType name="TopLevelPackageDescription"> + <xsd:sequence> + <xsd:element name="package" type="Deployment:PackageConfiguration" minOccurs="0" maxOccurs="unbounded"/> <!-- changed --> + </xsd:sequence> + </xsd:complexType> + +</xsd:schema> diff --git a/modules/CIAO/docs/schema/unused_06-04-02.xsd b/modules/CIAO/docs/schema/unused_06-04-02.xsd new file mode 100644 index 00000000000..7d379ee7561 --- /dev/null +++ b/modules/CIAO/docs/schema/unused_06-04-02.xsd @@ -0,0 +1,201 @@ +<xsd:schema + xmlns:xsd="http://www.w3.org/2001/XMLSchema" + xmlns:xmi="http://www.omg.org/XMI" + xmlns:Deployment="http://www.omg.org/Deployment" + targetNamespace="http://www.omg.org/Deployment" + > + <xsd:import namespace="http://www.omg.org/XMI"/> + + + + + + + + + <xsd:complexType name="ObjrefType"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="typeId" type="xsd:string"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="ObjrefType" type="Deployment:ObjrefType"/> + <xsd:complexType name="BoundedStringType"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="bound" type="xsd:string"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="BoundedStringType" type="Deployment:BoundedStringType"/> + <xsd:complexType name="FixedType"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="digits" type="xsd:string"/> + <xsd:element name="scale" type="xsd:string"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="FixedType" type="Deployment:FixedType"/> + <xsd:complexType name="ArrayType"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="length" type="xsd:string"/> + <xsd:element name="elementType" type="Deployment:DataType"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="ArrayType" type="Deployment:ArrayType"/> + + + <xsd:complexType name="UnionType"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="typeId" type="xsd:string"/> + <xsd:element name="default" type="Deployment:UnionMemberType"/> + <xsd:element name="discriminatorType" type="Deployment:DataType"/> + <xsd:element name="member" type="Deployment:UnionMemberType"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="UnionType" type="Deployment:UnionType"/> + <xsd:complexType name="UnionMemberType"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="type" type="Deployment:DataType"/> + <xsd:element name="label" type="Deployment:DataValue"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="UnionMemberType" type="Deployment:UnionMemberType"/> + + + + + <xsd:complexType name="ResourceAllocation"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="elementName" type="xsd:string"/> + <xsd:element name="resourceName" type="xsd:string"/> + <xsd:element name="property" type="Deployment:Property"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="ResourceAllocation" type="Deployment:ResourceAllocation"/> + + <xsd:complexType name="ComponentUsageDescription"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="basePackage" type="Deployment:ComponentPackageDescription"/> + <xsd:element name="specializedConfig" type="Deployment:PackageConfiguration"/> + <xsd:element name="selectRequirement" type="Deployment:Requirement"/> + <xsd:element name="configProperty" type="Deployment:Property"/> + <xsd:element name="referencedPackage" type="Deployment:ComponentPackageReference"/> + <xsd:element name="importedPackage" type="Deployment:ComponentPackageImport"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="ComponentUsageDescription" type="Deployment:ComponentUsageDescription"/> + + + <xsd:complexType name="RequirementSatisfier"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="resourceType" type="xsd:string"/> + <xsd:element name="property" type="Deployment:SatisfierProperty"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + <xsd:element name="RequirementSatisfier" type="Deployment:RequirementSatisfier"/> + <xsd:element name="Deployment"> + <xsd:complexType> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element ref="Deployment:Any"/> + <xsd:element ref="Deployment:DataType"/> + <xsd:element ref="Deployment:DataValue"/> + <xsd:element ref="Deployment:EnumType"/> + <xsd:element ref="Deployment:ObjrefType"/> + <xsd:element ref="Deployment:BoundedStringType"/> + <xsd:element ref="Deployment:FixedType"/> + <xsd:element ref="Deployment:ArrayType"/> + <xsd:element ref="Deployment:SequenceType"/> + <xsd:element ref="Deployment:AliasType"/> + <xsd:element ref="Deployment:StructType"/> + <xsd:element ref="Deployment:StructMemberType"/> + <xsd:element ref="Deployment:ValueType"/> + <xsd:element ref="Deployment:ValueMemberType"/> + <xsd:element ref="Deployment:UnionType"/> + <xsd:element ref="Deployment:UnionMemberType"/> + <xsd:element ref="Deployment:NamedValue"/> + <xsd:element ref="Deployment:Bridge"/> + <xsd:element ref="Deployment:Interconnect"/> + <xsd:element ref="Deployment:Node"/> + <xsd:element ref="Deployment:Resource"/> + <xsd:element ref="Deployment:SharedResource"/> + <xsd:element ref="Deployment:Domain"/> + <xsd:element ref="Deployment:ResourceAllocation"/> + <xsd:element ref="Deployment:PlanPropertyMapping"/> + <xsd:element ref="Deployment:PlanSubcomponentPropertyReference"/> + <xsd:element ref="Deployment:PlanSubcomponentPortEndpoint"/> + <xsd:element ref="Deployment:PlanConnectionDescription"/> + <xsd:element ref="Deployment:InstanceDeploymentDescription"/> + <xsd:element ref="Deployment:MonolithicDeploymentDescription"/> + <xsd:element ref="Deployment:ArtifactDeploymentDescription"/> + <xsd:element ref="Deployment:DeploymentPlan"/> + <xsd:element ref="Deployment:ResourceDeploymentDescription"/> + <xsd:element ref="Deployment:InstanceResourceDeploymentDescription"/> + <xsd:element ref="Deployment:ConnectionResourceDeploymentDescription"/> + <xsd:element ref="Deployment:PlanLocality"/> + <xsd:element ref="Deployment:Capability"/> + <xsd:element ref="Deployment:ComponentPropertyDescription"/> + <xsd:element ref="Deployment:ComponentPortDescription"/> + <xsd:element ref="Deployment:ComponentInterfaceDescription"/> + <xsd:element ref="Deployment:ImplementationArtifactDescription"/> + <xsd:element ref="Deployment:MonolithicImplementationDescription"/> + <xsd:element ref="Deployment:AssemblyPropertyMapping"/> + <xsd:element ref="Deployment:SubcomponentPropertyReference"/> + <xsd:element ref="Deployment:SubcomponentPortEndpoint"/> + <xsd:element ref="Deployment:AssemblyConnectionDescription"/> + <xsd:element ref="Deployment:SubcomponentInstantiationDescription"/> + <xsd:element ref="Deployment:ComponentAssemblyDescription"/> + <xsd:element ref="Deployment:ComponentImplementationDescription"/> + <xsd:element ref="Deployment:ComponentPackageReference"/> + <xsd:element ref="Deployment:ComponentPackageDescription"/> + <xsd:element ref="Deployment:ComponentUsageDescription"/> + <xsd:element ref="Deployment:PackagedComponentImplementation"/> + <xsd:element ref="Deployment:NamedImplementationArtifact"/> + <xsd:element ref="Deployment:ImplementationRequirement"/> + <xsd:element ref="Deployment:ComponentPackageImport"/> + <xsd:element ref="Deployment:PackageConfiguration"/> + <xsd:element ref="Deployment:Locality"/> + <xsd:element ref="Deployment:RequirementSatisfier"/> + <xsd:element ref="Deployment:SatisfierProperty"/> + <xsd:element ref="Deployment:Requirement"/> + <xsd:element ref="Deployment:Property"/> + <xsd:element ref="Deployment:ExternalReferenceEndpoint"/> + <xsd:element ref="Deployment:ComponentExternalPortEndpoint"/> + <xsd:element ref="Deployment:ImplementationDependency"/> + <xsd:element ref="Deployment:ToplevelPackageDescription"/> + <xsd:element ref="xmi:Extension"/> + </xsd:choice> + <xsd:attribute ref="xmi:id" use="optional"/> + <xsd:attributeGroup ref="xmi:ObjectAttribs"/> + </xsd:complexType> + </xsd:element> +</xsd:schema> + + diff --git a/modules/CIAO/docs/schema/unused_elements.xsd b/modules/CIAO/docs/schema/unused_elements.xsd new file mode 100644 index 00000000000..c1200b088e9 --- /dev/null +++ b/modules/CIAO/docs/schema/unused_elements.xsd @@ -0,0 +1,161 @@ +<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.w3.org/2001/XMLSchema XMLSchema.xsd" + xmlns:Deployment="http://www.omg.org/Deployment" + targetNamespace="http://www.omg.org/Deployment"> + +<!-- VAULT + +Place for strange things. Nobody knows what they are for... + +--> + +<!-- + + <xsd:complexType name="EnumType"> + <xsd:sequence> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="typeId" type="xsd:string"/> + <xsd:element name="member" type="xsd:string" maxOccurs="unbounded"/> + </xsd:sequence> + </xsd:complexType> + + <xsd:complexType name="ObjrefType"> + <xsd:sequence> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="typeId" type="xsd:string"/> + </xsd:sequence> + </xsd:complexType> + + + <xsd:complexType name="BoundedStringType"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="bound" type="xsd:string"/> + </xsd:choice> + </xsd:complexType> + + + <xsd:complexType name="FixedType"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="digits" type="xsd:string"/> + <xsd:element name="scale" type="xsd:string"/> + </xsd:choice> + </xsd:complexType> + + + <xsd:complexType name="ArrayType"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="length" type="xsd:string"/> + <xsd:element name="elementType" type="Deployment:DataType"/> + </xsd:choice> + </xsd:complexType> + + <xsd:complexType name="SequenceType"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="bound" type="xsd:string"/> + <xsd:element name="elementType" type="Deployment:DataType"/> + </xsd:choice> + </xsd:complexType> + + <xsd:complexType name="AliasType"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="typeId" type="xsd:string"/> + <xsd:element name="elementType" type="Deployment:DataType"/> + </xsd:choice> + </xsd:complexType> + + <xsd:complexType name="StructType"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="typeId" type="xsd:string"/> + <xsd:element name="member" type="Deployment:StructMemberType"/> + </xsd:choice> + </xsd:complexType> + + <xsd:complexType name="StructMemberType"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="type" type="Deployment:DataType"/> + </xsd:choice> + </xsd:complexType> + + <xsd:complexType name="ValueType"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="typeId" type="xsd:string"/> + <xsd:element name="modifier" type="xsd:string"/> + <xsd:element name="baseType" type="Deployment:DataType"/> + <xsd:element name="member" type="Deployment:ValueMemberType"/> + </xsd:choice> + </xsd:complexType> + + <xsd:complexType name="ValueMemberType"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="visibility" type="xsd:string"/> + <xsd:element name="type" type="Deployment:DataType"/> + </xsd:choice> + </xsd:complexType> + + <xsd:complexType name="UnionType"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="typeId" type="xsd:string"/> + <xsd:element name="default" type="Deployment:UnionMemberType"/> + <xsd:element name="discriminatorType" type="Deployment:DataType"/> + <xsd:element name="member" type="Deployment:UnionMemberType"/> + </xsd:choice> + </xsd:complexType> + + <xsd:complexType name="UnionMemberType"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="type" type="Deployment:DataType"/> + <xsd:element name="label" type="Deployment:DataValue"/> + </xsd:choice> + </xsd:complexType> + + + <xsd:complexType name="NamedValue"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="value" type="Deployment:DataValue"/> + </xsd:choice> + </xsd:complexType> + + + <xsd:complexType name="PlanPropertyMapping"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="source" type="xsd:string"/> + <xsd:element name="externalName" type="xsd:string"/> + <xsd:element name="delegatesTo" type="Deployment:PlanSubcomponentPropertyReference"/> + </xsd:choice> + </xsd:complexType> + + + <xsd:complexType name="PlanSubcomponentPropertyReference"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="propertyName" type="xsd:string"/> + <xsd:element name="instance" type="Deployment:InstanceDeploymentDescription"/> + </xsd:choice> + </xsd:complexType> + +--> + +<!-- + + This type is not referenced anywhere. + + <xsd:complexType name="RequirementSatisfier"> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="name" type="xsd:string"/> + <xsd:element name="resourceType" type="xsd:string"/> + <xsd:element name="property" type="Deployment:SatisfierProperty"/> + </xsd:choice> + </xsd:complexType> + +--> + +</xsd:schema> diff --git a/modules/CIAO/docs/schema/xsc-banner.cpp b/modules/CIAO/docs/schema/xsc-banner.cpp new file mode 100644 index 00000000000..ecd90a877a6 --- /dev/null +++ b/modules/CIAO/docs/schema/xsc-banner.cpp @@ -0,0 +1,11 @@ +/* $Id$ + * This code was generated by the XML Schema Compiler. + * + * Changes made to this code will most likely be overwritten + * when the handlers are recompiled. + * + * If you find errors or feel that there are bugfixes to be made, + * please contact the current XSC maintainer: + * Will Otte <wotte@dre.vanderbilt.edu> + */ + diff --git a/modules/CIAO/docs/schema/xsc-banner.h b/modules/CIAO/docs/schema/xsc-banner.h new file mode 100644 index 00000000000..30370e90f40 --- /dev/null +++ b/modules/CIAO/docs/schema/xsc-banner.h @@ -0,0 +1,17 @@ +/* $Id$ + * This code was generated by the XML Schema Compiler. + * + * Changes made to this code will most likely be overwritten + * when the handlers are recompiled. + * + * If you find errors or feel that there are bugfixes to be made, + * please contact the current XSC maintainer: + * Will Otte <wotte@dre.vanderbilt.edu> + */ + +// Fix for Borland compilers, which seem to have a broken +// <string> include. +#ifdef __BORLANDC__ +# include <string.h> +#endif + diff --git a/modules/CIAO/docs/static_ciao_contents.html b/modules/CIAO/docs/static_ciao_contents.html new file mode 100755 index 00000000000..d043e4c0aee --- /dev/null +++ b/modules/CIAO/docs/static_ciao_contents.html @@ -0,0 +1,359 @@ +<!DOCTYPE html PUBLIC "-//w3c//dtd html 4.0 transitional//en"> +<html> +<head> + <meta http-equiv="Content-Type" + content="text/html; charset=iso-8859-1"> + <meta name="Author" content="Venkita Subramonian"> + <meta name="GENERATOR" + content="Mozilla/4.76 [en] (Windows NT 5.0; U) [Netscape]"> + <title>CIAO Static Configuration</title> + <base target="main"><!-- $Id$ --> +</head> +<body> +<center> +<h2>CIAO Static Configuration Support for Real-Time Platforms</h2> +</center> +<h3> +<a name="intro"></a>1. Introduction</h3> +The dynamic packaging, assembly, and deployment mechanisms currently +available +in CIAO are useful for application domains where component metadata is +less likely to be known a priori, where implementation upgrades may +need +to be performed on-line, and where platform features like loading and +unloading +dynamic libraries are both available and useful. Furthermore, the +new CCM Deployment and Configuration specification describes a wider +range +of configuration capabilities, opening up the question of alternative +component +configuration strategies more generally and requiring that any solution +we devise can be migrated to that new configuration approach. +<p>Therefore, we have incorporated support for component configuration +in CIAO on platforms like VxWorks, as a set of optional strategies and +optimizations to the existing CIAO configuration capabilities. By +supporting both dynamic and static styles of configuration in CIAO, we +will both (1) be able to realize our short term goals in making CIAO +available +on VxWorks for use in the Boeing PCES/MoBIES OEP, and (2) set a +precedent +for availability of static configuration capabilities more generally, +so +that DRE systems are well-supported within the new Deployment and +Configuration +specification implementation for CIAO as well. +</p> +<p>The fundamental intuition in understanding our approach is that in +DRE +systems the stages of the overall system lifecycle are similar to those +in more dynamic conventional component-oriented client-server +applications. +However, in DRE systems several phases of the system lifecycle are +compressed +into the compile-time and system-initialization phases, so that (1) for +testing and verification purposes the set of components in an +application +can be identified and analyzed before run-time, and (2) overheads for +run-time +operation following initialization are reduced and made more +predictable. +Furthermore, due to the nuances of the platforms traditionally used for +deploying DRE systems, not all features of conventional platforms are +available. +Our approach therefore avoids certain mechanisms that are either +unavailable +or too costly in terms of performance. +</p> +<p>We follow these intuitions in our approach, taking the existing +configuration +phases in CIAO and pushing several of them earlier in the configuration +lifecycle. We ensure that our approach can be realized in the +context +of the platforms on which the Boeing PCES/MoBIES OEP will be deployed, +notably VxWorks, by re-factoring the configuration mechanisms and +retargeting +them to use only the services available on the target real-time +platforms. +<br> + +</p> +<h3><a name="currentarch"></a>2. Current CIAO Configuration Architecture</h3> +<center> +<p><br> +<img src="imgs/ciao-dynamic1.jpg" height="462" width="774"></p> +<p><b>Figure 1. Current configuration process in CIAO</b></p> +</center> +<p>The first stage of the CIAO system lifecycle occurs off-line, when +component +package (.csd) and assembly (.cad) files are generated by a modeling +tool +or other prior stage of the tool chain. These files contain an +abstract +specification of the configuration that is to be achieved by CIAO in +each +particular deployment environment . +</p> +<p>CIAO interprets these .csd and .cad files, and creates and +configures +the components, their run-time server environments, and QoS properties +within the supporting ORB and other related infrastructure. +Currently, +CIAO runs several daemon processes for each deployment environment: one +or more Component Installation / Server Activation (CISA) daemons on +each +machine where components can be deployed, an additional Assembly +Manager +daemon and an Assembly Deployer process used by the system developer. +</p> +<p>The Assembly Manager stores an internal table with the target +platform +availability information . The Assembly Deployer +tells +the Assembly Manager which assemblies of components (each assembly is +defined +in a separate .cad file) should be deployed on which target +machines. +The Assembly Manager parses the XML structures in the .cad file, and +generates +its own internal data structure (<b>Figure 2</b>) as an intermediate +representation +of that assembly. +</p> +<p>The Assembly Manager then traverses (<b>Figure 2</b>) this +intermediate +representation, instructing each CISA daemon to install and configure +specific +component servers and containers, to create specific homes, and to +instantiate +specific component instances. Each CISA daemon has +additional +information about the component implementations available on that +endsystem +– each component UUID is mapped to a disk path for the .dll or .so file +within which a factory method for its home factory is defined. +</p> +<center> +<p><img src="imgs/ciao-dynamic2.jpg" height="384" width="699"></p> +<p><b>Figure 2. Intermediate representation of configuration information</b></p> +</center> +<p>The following steps are optional, and will only be performed if they +are explicitly specified in the assembly definition itself. For +the +sake of discussion, we consider the case where all the steps are in +fact +specified. The Assembly Manager will tell the CISA daemon the +UUIDs +of the components to be installed in that component server, and the +CISA +daemon will look up and load the appropriate dynamic library, invoke +the +home factory method to create the home, and then invoke the home’s +component +creation method. After all the component instances and homes have +been created and references to them have been obtained, the assembly +manager +will then make all the connections between ports and receptacles, +facets, +and event sources and sinks by invoking connect and subscribe methods +on +the receiving end component. +</p> +<p>QoS-specific metadata like priorities can be configured by a .cad +file +extension called a real-time descriptor (.rtcad) file. The +Assembly +Manager will read the .rtcad file and will parse and associate +real-time +policies with the appropriate component instances. One +implication +of this mechanism is that the Assembly Manager will maintain QoS +meta-data +within its intermediate representation, alongside the conventional CCM +meta-data. +</p> +<p>Furthermore, when the Assembly Manager interacts with the CISA +daemon(s) +on each endsystem, commands to configure particular component and +component +server run-time infrastructure QoS properties are passed from the +Assembly +Manager to the CISA daemon. The ORB (and as a future extension +the +ORB Services) of the endsystem on which the components are installed is +currently configured via the ACE Service Configurator. The CISA +daemon +maps different service configurations (as defined in particular +svc.conf +files) to logical names used in the component assembly descriptors. +</p> +<p>The logical configuration names are encoded within the .cad file as +an extension of the conventional .cad file format using the “extension” +element of the existing .cad file XML DTD. The Assembly Manager +passes +a component server creation command, containing a logical configuration +name, which the CISA daemon maps to a particular svc.conf file when it +creates a new component server. The CISA daemon adds a command +line +flag to the execution command line used to spawn the new component +server, +which causes that configuration file to be parsed and applied during +startup +of the component server itself. +</p> +<h3><a name="staticapproach"></a>3. Static Configuration Approach</h3> +In the static configuration approach (<b>Figure 3</b>), +configurations +XML files are translated in a code generation step just before compile +time (managed by the same project/Makefile processes that do the +compilation) +into C++ header and source files that are then compiled and linked with +the main application. +<center> +<p><img src="imgs/ciao-static1.jpg" height="523" width="800"></p> +<p><b>Figure 3. Static Configuration in CIAO</b></p> +</center> +<p>First, one of the generated files is a C++ header file, so that it +can +be included directly by C++ source files. There is no additional +parsing required to import a number of static constants and identifiers +it declares and defines, so that those constants end up being compiled +directly into C++ code. Second, where enumeration of information +is needed, the header file contains simple homogeneous C++ arrays so +that +C++ source code can iterate over those arrays with minimal +overhead. +Third, it declares information so that later information depends on +earlier +information (<b>Figure 4</b>), and the components are directly +configured +within that header file. +</p> +<center> +<p><img src="imgs/ciao-static2.jpg" height="476" width="816"></p> +<p><b>Figure 4. All XML files are parsed offline and stored as +cross-referenced +tables in Static_Assembly_Config.h</b></p> +</center> +<p>The major issues that we addressed in developing a re-factored +version +of the CIAO configuration mechanisms are as follows: +</p> +<p>1. XML parsing is too expensive to be performed during system +initialization, +so that all such parsing has been moved off-line to before +compile-time, +and the resulting information is linked statically into the application +itself. +</p> +<p>2. Each endsystem boots and initializes in a single process address +space, so that any remaining inter-process communication between +daemons +is replaced by direct interactions between objects, or at most between +threads. +</p> +<p>3. Dynamic link libraries are unavailable on VxWorks, so an +alternative +mechanism for obtaining the home factory method entry point is needed. +We gather this information from the XML files and statically generate a +map containing the entry point function names and the entry point +function pointers. This information will be used by the CIAO container +implementation instead of trying to load a dll and then finding the +entry +point in the dll. +</p> +<h4>Moving XML Parsing Earlier</h4> +We first focused on taking the XML parsing stage off-line. Since +the time required to do this by CIAO is currently reasonable as an +off-line +activity, we simply created (<b>Figure 4</b>) a stripped-down version +of +the Assembly Manager (reusing the existing class libraries the Assembly +Manager uses) that after it performs the XML parsing and generation of +its intermediate representation, emits a C++ header file containing +that +intermediate representation. +<h4>Combining Configuration Daemons at Run-Time</h4> +The intermediate representation is included in a configuration engine +(CIAO::Static_Configurator) +that consists of a simple reader for the intermediate representation, +again +derived from the code currently used in the Assembly Manager, which +will +dispatch to the configuration code used by the CISA daemons in the +dynamic +case. The configuration engine will be invoked from the +application’s +main entry point prior to starting execution of the application itself. +<h4>Eliminating Dynamic Library Loading</h4> +All code will need to be known a priori, and linked statically into the +application. If alternative configurations must be supported +statically, +then those separate configurations can be alternative selections chosen +during the build process. If alternative configurations must be +selected +adaptively at run-time then all the code for each possible +configuration +must be linked in statically, and appropriate mechanisms used to +re-target +a logical name dynamically to each particular configuration (e.g., +different +configurations for different system modes). +<br> + +<br> + +<br> +<br> +<center> +<p><img src="imgs/ciao-static-vs-dynamic.jpg" height="384" width="735"><br> +<b>Figure 5. CIAO Dynamic vs Static Configuration</b></p> +</center> +<h3> +<a name="status"></a><b>4. Status of CIAO Static Configuration</b></h3> +The initial version of the CIAO static configurator is available under +$CIAO_ROOT/tools/static_configurator. +<p>To run the static configurator, +</p> +<p><b><tt>Static_Assembly_Parser -a <.cad file></tt></b> +</p> +<p>This will generate three files - +</p> +<p><b><tt>Static_CCM_App.cpp</tt></b> - this file contains the main +program +which instantiates the component server and invokes the static +configuration +engine to create containers, homes, etc. +</p> +<p><b><tt>Static_CCM_App.mpc</tt></b> - this file contains the +necessary +files for building the static application. You have to manually change +this file so as to include files that are not known to the static +configurator. +</p> +<p><b><tt>Static_Assembly_Config.h</tt></b> - this file contains the +C++ +intermediate representation of all the information in the .cad, .csd +and +.ssd XML files. +</p> +<p><a name="Example"></a><b>Example</b> - An <a + href="static_config_example.html">example</a> +run is shown using the <a href="../examples/OEP/BasicSP">BasicSP</a> +scenario. +</p> +<h3><a name="futurework"></a><b>5. Future work</b></h3> +<p>The current implementation does not have support for multiple +component +servers running on multiple processors. Multiprocessor scenario +involves +coordination and synchronization among the component servers running on +different processors. There has to be some kind of a mediator which +determines +that all components are instantiated before connections can be made +among +them.<br> +<br> + +</p> +</body> +</html> diff --git a/modules/CIAO/docs/static_ciao_index.html b/modules/CIAO/docs/static_ciao_index.html new file mode 100755 index 00000000000..627e07c65ca --- /dev/null +++ b/modules/CIAO/docs/static_ciao_index.html @@ -0,0 +1,23 @@ +<html> + +<head> +<meta name="GENERATOR" content="Microsoft FrontPage 5.0"> +<meta name="ProgId" content="FrontPage.Editor.Document"> +<title>New Page 1</title> +<!-- $Id$ --> + +</head> + +<frameset cols="294,*"> + <frame name="contents" target="main" src="static_ciao_toc.html"> + <frame name="main" src="static_ciao_contents.html" target="main"> + <noframes> + <body> + + <p>This page uses frames, but your browser doesn't support them.</p> + + </body> + </noframes> +</frameset> + +</html> diff --git a/modules/CIAO/docs/static_ciao_toc.html b/modules/CIAO/docs/static_ciao_toc.html new file mode 100755 index 00000000000..35adb51ec1c --- /dev/null +++ b/modules/CIAO/docs/static_ciao_toc.html @@ -0,0 +1,26 @@ +<!doctype html public "-//w3c//dtd html 4.0 transitional//en"> +<html> +<head> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> + <meta name="Author" content="Venkita Subramonian"> + <meta name="GENERATOR" content="Microsoft FrontPage 5.0"> + <title>CIAO Static Configuration</title> + <base target="contents"> +<!-- $Id$ --> +</head> +<body> +<h3 align="center">CIAO Static Configuration Documentation </h3> + +<ol> + +<li><a target="main" href="static_ciao_contents.html#intro">Introduction</a></li> +<li><a target="main" href="static_ciao_contents.html#currentarch">Current CIAO Configuration +Architecture</a></li> +<li><a target="main" href="static_ciao_contents.html#staticapproach">Static Configuration +Approach</a></li> +<li><a target="main" href="static_ciao_contents.html#status">Status of CIAO Static Configuration</a><br> +<a target="main" href="static_ciao_contents.html#Example">Example</a></li> +<li><a target="main" href="static_ciao_contents.html#futurework">Future work</a></li> +</ol> +</body> +</html> diff --git a/modules/CIAO/docs/static_config_example.html b/modules/CIAO/docs/static_config_example.html new file mode 100644 index 00000000000..5e8c806e2cd --- /dev/null +++ b/modules/CIAO/docs/static_config_example.html @@ -0,0 +1,1353 @@ +<!DOCTYPE html PUBLIC "-//w3c//dtd html 4.0 transitional//en"> +<html> +<head> + <meta http-equiv="Content-Type" + content="text/html; charset=iso-8859-1"> + <meta name="Author" content="Venkita Subramonian"> + <meta name="GENERATOR" + content="Mozilla/4.76 [en] (Windows NT 5.0; U) [Netscape]"> + <title>BasicSP example using CIAO Static Configurator</title> +<!-- $Id$ --> +</head> +<body> +This example illustrates +how to use the CIAO static configurator for building applications +statically. +For an example using RTCORBA policies, see <a + href="static_config_rtexample.html">BasicSP with RTCORBA extensions</a>. +From the <a href="../examples/OEP/BasicSP">BasicSP</a> directory do +the +following. +<p><b><tt>> cd descriptors</tt></b> +<br> +<b><tt>> $CIAO_ROOT/tools/static_configurator/Static_Assembly_Parser +-a BasicSP.cad</tt></b> +</p> +<p>The following files are generated - +</p> +<p><a href="#Static_Assembly_Config.h">Static_Assembly_Config.h</a> +<br> +<a href="#Static_CCM_App.cpp">Static_CCM_App.cpp</a> +<br> +<a href="#Static_CCM_App.mpc">Static_CCM_App.mpc</a> +</p> +<p><a href="#Static_Assembly_Config.h">Static_Assembly_Config.h</a> +contains +the intermediate representation of all the parsed component and +assembly +information obtained from the XML files. <a href="#Static_CCM_App.cpp">Static_CCM_App.cpp</a> +contains the main driver application. Here a runtime <a + href="#static%20config%20engine">static +configuration engine</a> is used to create containers, homes, +components, +etc and then establish necessary connections between the components. In +the BasicSP example, an external controller (see <tt><a + href="../examples/OEP/BasicSP/README">$CIAO_ROOT/examples/OEP/BasicSP/README</a></tt>) +is used to start or stop a pulser. The generated main driver +application +(Static_CCM_App.cpp) is <a href="#Modified%20Static_CCM_App.cpp">modified</a> +to add code to trigger the pulser object on. The generated .mpc file is +<a href="#Modified%20Static_CCM_App.mpc">modified</a> +to add all other necessary files so that the application can be built +statically. +Note that the static configurator only generates only certain file +names +in the .mpc file. These filenames are obtained from the XML descriptor +files. All other necessary files have to be added manually as +indicated. +</p> +<p>Now the static build files can be generated by running the mpc +utility. +</p> +<p><b><tt>> cd ..</tt></b> +<br> +<b><tt>> $ACE_ROOT/bin/mpc -static Static_CCM_App.mpc</tt></b> +</p> +<p><a name="Static_Assembly_Config.h"></a><b><u>Static_Assembly_Config.h</u></b> +<br> +<tt><font color="#3333ff">#include "Static_Assembly.h"</font></tt> +</p> +<p><tt><font color="#3333ff">#include "CCM_ContainerC.h"</font></tt> +<br> +<tt><font color="#3333ff">#include "Container_Base.h"</font></tt> +</p> +<p><tt><font color="#3333ff">//Containers</font></tt> +<br> +<tt><font color="#3333ff">CIAO::Static_Config::ContainerAttributes +containers_table_[]=</font></tt> +<br> +<tt><font color="#3333ff">{</font></tt> +<br> +<tt><font color="#3333ff"> {"", 0}</font></tt> +<br> +<tt><font color="#3333ff">};</font></tt> +<br> + +</p> +<p><tt><font color="#3333ff">extern "C" +::Components::HomeExecutorBase_ptr +createECHome_Impl (void);</font></tt> +<br> +<tt><font color="#3333ff">extern "C" ::PortableServer::Servant +createECHome_Servant</font></tt> +<br> +<tt><font color="#3333ff"> (::Components::HomeExecutorBase_ptr +p,</font></tt> +<br> +<tt><font color="#3333ff"> ::CIAO::Session_Container *c</font></tt> +<br> +<tt><font color="#3333ff"> ACE_ENV_ARG_DECL_WITH_DEFAULTS);</font></tt> +<br> +<tt><font color="#3333ff">extern "C" ::Components::HomeExecutorBase_ptr +createBMDeviceHome_Impl (void);</font></tt> +<br> +<tt><font color="#3333ff">extern "C" ::PortableServer::Servant +createBMDeviceHome_Servant</font></tt> +<br> +<tt><font color="#3333ff"> (::Components::HomeExecutorBase_ptr +p,</font></tt> +<br> +<tt><font color="#3333ff"> ::CIAO::Session_Container *c</font></tt> +<br> +<tt><font color="#3333ff"> ACE_ENV_ARG_DECL_WITH_DEFAULTS);</font></tt> +<br> +<tt><font color="#3333ff">extern "C" ::Components::HomeExecutorBase_ptr +createBMClosedEDHome_Impl (void);</font></tt> +<br> +<tt><font color="#3333ff">extern "C" ::PortableServer::Servant +createBMClosedEDHome_Servant</font></tt> +<br> +<tt><font color="#3333ff"> (::Components::HomeExecutorBase_ptr +p,</font></tt> +<br> +<tt><font color="#3333ff"> ::CIAO::Session_Container *c</font></tt> +<br> +<tt><font color="#3333ff"> ACE_ENV_ARG_DECL_WITH_DEFAULTS);</font></tt> +<br> +<tt><font color="#3333ff">extern "C" ::Components::HomeExecutorBase_ptr +createBMDisplayHome_Impl (void);</font></tt> +<br> +<tt><font color="#3333ff">extern "C" ::PortableServer::Servant +createBMDisplayHome_Servant</font></tt> +<br> +<tt><font color="#3333ff"> (::Components::HomeExecutorBase_ptr +p,</font></tt> +<br> +<tt><font color="#3333ff"> ::CIAO::Session_Container *c</font></tt> +<br> +<tt><font color="#3333ff"> ACE_ENV_ARG_DECL_WITH_DEFAULTS);</font></tt> +<br> +<tt><font color="#3333ff">//Homes</font></tt> +<br> +<tt><font color="#3333ff">CIAO::Static_Config::HomeAttributes +homes_table_[]=</font></tt> +<br> +<tt><font color="#3333ff">{</font></tt> +<br> +<tt><font color="#3333ff"> {"a_ECHome", +"DCE:3148F760-F2ED-4204-A775-6B972C10E8CB", +"createECHome_Impl", createECHome_Impl, +"DCE:75309233-0E0A-4cfb-B186-3E99F69B1D40", +"createECHome_Servant", createECHome_Servant, 0, 0 },</font></tt> +<br> +<tt><font color="#3333ff"> {"a_BMDeviceHome", +"DCE:82C2B032-37F0-4315-A59F-7020D3264E4D", +"createBMDeviceHome_Impl", createBMDeviceHome_Impl, +"DCE:93D254CF-9538-44e8-BB98-AABCD134ADD3", +"createBMDeviceHome_Servant", createBMDeviceHome_Servant, 0, 0 },</font></tt> +<br> +<tt><font color="#3333ff"> {"a_BMClosedEDHome", +"DCE:8E6C468D-A39F-46b4-962B-265F1AA8D538", +"createBMClosedEDHome_Impl", createBMClosedEDHome_Impl, +"DCE:CDC06FCA-50FC-43ca-8ECC-BEFBD33FEE78", +"createBMClosedEDHome_Servant", createBMClosedEDHome_Servant, 0, 0 },</font></tt> +<br> +<tt><font color="#3333ff"> {"a_BMDisplayHome", +"DCE:8E92655E-CA07-46C8-B127-0F0872A8CC29", +"createBMDisplayHome_Impl", createBMDisplayHome_Impl, +"DCE:D7984625-8561-431d-9927-4E498B317C02", +"createBMDisplayHome_Servant", createBMDisplayHome_Servant, 0, 0 }</font></tt> +<br> +<tt><font color="#3333ff">};</font></tt> +<br> + +</p> +<p><tt><font color="#3333ff">//Components</font></tt> +<br> +<tt><font color="#3333ff">CIAO::Static_Config::ComponentAttributes +components_table_[]=</font></tt> +<br> +<tt><font color="#3333ff">{</font></tt> +<br> +<tt><font color="#3333ff"> {"a_EC", 0, 0, 0 },</font></tt> +<br> +<tt><font color="#3333ff"> {"a_BMDevice", -1, -1, 1 },</font></tt> +<br> +<tt><font color="#3333ff"> {"a_BMClosedED", -1, -1, 2 },</font></tt> +<br> +<tt><font color="#3333ff"> {"a_BMDisplay", -1, -1, 3 }</font></tt> +<br> +<tt><font color="#3333ff">};</font></tt> +<br> + +</p> +<p><tt><font color="#3333ff">//Component Registrations</font></tt> +<br> +<tt><font color="#3333ff">CIAO::Assembly_Placement::componentinstantiation::Register_Info +component_registrations_table_[]=</font></tt> +<br> +<tt><font color="#3333ff">{</font></tt> +<br> +<tt><font color="#3333ff"> {CIAO::Assembly_Placement::componentinstantiation::COMPONENT, +CIAO::Assembly_Placement::componentinstantiation::IORFILE, "", "ec.ior" +}</font></tt> +<br> +<tt><font color="#3333ff">};</font></tt> +<br> + +</p> +<p><tt><font color="#3333ff">//Connections</font></tt> +<br> +<tt><font color="#3333ff">CIAO::Static_Config::ConnectionAttributes +connections_table_[]=</font></tt> +<br> +<tt><font color="#3333ff">{</font></tt> +<br> +<tt><font color="#3333ff"> {CIAO::Assembly_Connection::PUBLISHER_CONSUMER, +"", "timeout", 0, 1, 0, 0 },</font></tt> +<br> +<tt><font color="#3333ff"> {CIAO::Assembly_Connection::PUBLISHER_CONSUMER, +"", "data_available", 3, 4, 0, 0 },</font></tt> +<br> +<tt><font color="#3333ff"> {CIAO::Assembly_Connection::PUBLISHER_CONSUMER, +"", "out_avail", 6, 7, 0, 0 },</font></tt> +<br> +<tt><font color="#3333ff"> {CIAO::Assembly_Connection::INTERFACE, +"", "datain", 9, 10, 0, 0 },</font></tt> +<br> +<tt><font color="#3333ff"> {CIAO::Assembly_Connection::INTERFACE, +"", "comp_data", 12, 13, 0, 0 }</font></tt> +<br> +<tt><font color="#3333ff">};</font></tt> +<br> + +</p> +<p><tt><font color="#3333ff">//Resolver Infos</font></tt> +<br> +<tt><font color="#3333ff">CIAO::Static_Config::ResolveInfoAttributes +resolvers_table_[]=</font></tt> +<br> +<tt><font color="#3333ff">{</font></tt> +<br> +<tt><font color="#3333ff"> {CIAO::Assembly_Connection::COMP_IDREF, +"a_EC", -1, 0 },</font></tt> +<br> +<tt><font color="#3333ff"> {CIAO::Assembly_Connection::CONSUMER, +"timeout", 2, 0 },</font></tt> +<br> +<tt><font color="#3333ff"> {CIAO::Assembly_Connection::COMP_IDREF, +"a_BMDevice", -1, 0 },</font></tt> +<br> +<tt><font color="#3333ff"> {CIAO::Assembly_Connection::COMP_IDREF, +"a_BMDevice", -1, 0 },</font></tt> +<br> +<tt><font color="#3333ff"> {CIAO::Assembly_Connection::CONSUMER, +"in_avail", 5, 0 },</font></tt> +<br> +<tt><font color="#3333ff"> {CIAO::Assembly_Connection::COMP_IDREF, +"a_BMClosedED", -1, 0 },</font></tt> +<br> +<tt><font color="#3333ff"> {CIAO::Assembly_Connection::COMP_IDREF, +"a_BMClosedED", -1, 0 },</font></tt> +<br> +<tt><font color="#3333ff"> {CIAO::Assembly_Connection::CONSUMER, +"data_ready", 8, 0 },</font></tt> +<br> +<tt><font color="#3333ff"> {CIAO::Assembly_Connection::COMP_IDREF, +"a_BMDisplay", -1, 0 },</font></tt> +<br> +<tt><font color="#3333ff"> {CIAO::Assembly_Connection::COMP_IDREF, +"a_BMClosedED", -1, 0 },</font></tt> +<br> +<tt><font color="#3333ff"> {CIAO::Assembly_Connection::PROVIDER, +"data_read", 11, 0 },</font></tt> +<br> +<tt><font color="#3333ff"> {CIAO::Assembly_Connection::COMP_IDREF, +"a_BMDevice", -1, 0 },</font></tt> +<br> +<tt><font color="#3333ff"> {CIAO::Assembly_Connection::COMP_IDREF, +"a_BMDisplay", -1, 0 },</font></tt> +<br> +<tt><font color="#3333ff"> {CIAO::Assembly_Connection::PROVIDER, +"dataout", 14, 0 },</font></tt> +<br> +<tt><font color="#3333ff"> {CIAO::Assembly_Connection::COMP_IDREF, +"a_BMClosedED", -1, 0 }</font></tt> +<br> +<tt><font color="#3333ff">};</font></tt> +</p> +<p><a name="Static_CCM_App.cpp"></a><b><u>Static_CCM_App.cpp</u></b> +<br> +<tt><font color="#3333ff">#include "ComponentServer_Impl.h"</font></tt> +<br> +<tt><font color="#3333ff">#include "CIAO_ServersC.h"</font></tt> +<br> +<tt><font color="#3333ff">#include "Server_init.h"</font></tt> +<br> +<tt><font color="#3333ff">#include "Static_Configurator.h"</font></tt> +<br> +<tt><font color="#3333ff">#include "ace/SString.h"</font></tt> +<br> +<tt><font color="#3333ff">#include "ace/Get_Opt.h"</font></tt> +</p> +<p><tt><font color="#3333ff">#include "Static_Assembly_Config.h"</font></tt> +</p> +<p><tt><font color="#3333ff">char *ior_file_name_ = "comp_serv.ior";</font></tt> +</p> +<p><tt><font color="#3333ff">int</font></tt> +<br> +<tt><font color="#3333ff">parse_args (int argc, char *argv[])</font></tt> +<br> +<tt><font color="#3333ff">{</font></tt> +<br> +<tt><font color="#3333ff"> ACE_Get_Opt get_opts (argc, argv, +"k:o:");</font></tt> +<br> +<tt><font color="#3333ff"> int c;</font></tt> +</p> +<p><tt><font color="#3333ff"> while ((c = get_opts ()) != -1)</font></tt> +<br> +<tt><font color="#3333ff"> switch (c)</font></tt> +<br> +<tt><font color="#3333ff"> {</font></tt> +<br> +<tt><font color="#3333ff"> case +'o': +// get the file name to write to</font></tt> +<br> +<tt><font color="#3333ff"> +ior_file_name_ += get_opts.opt_arg ();</font></tt> +<br> +<tt><font color="#3333ff"> break;</font></tt> +</p> +<p><tt><font color="#3333ff"> case +'?': +// display help for use of the server.</font></tt> +<br> +<tt><font color="#3333ff"> default:</font></tt> +<br> +<tt><font color="#3333ff"> +ACE_ERROR_RETURN ((LM_ERROR,</font></tt> +<br> +<tt><font color="#3333ff"> +"usage: %s\n"</font></tt> +<br> +<tt><font color="#3333ff"> +"-o <ior_output_file>\n"</font></tt> +<br> +<tt><font color="#3333ff"> +"\n",</font></tt> +<br> +<tt><font color="#3333ff"> +argv [0]),</font></tt> +<br> +<tt><font color="#3333ff"> +-1);</font></tt> +<br> +<tt><font color="#3333ff"> }</font></tt> +</p> +<p><tt><font color="#3333ff"> return 0;</font></tt> +<br> +<tt><font color="#3333ff">}</font></tt> +<br> + +</p> +<p><tt><font color="#3333ff">int</font></tt> +<br> +<tt><font color="#3333ff">main (int argc, char *argv[])</font></tt> +<br> +<tt><font color="#3333ff">{</font></tt> +<br> +<tt><font color="#3333ff"> ACE_TRY_NEW_ENV</font></tt> +<br> +<tt><font color="#3333ff"> {</font></tt> +<br> +<tt><font color="#3333ff"> // Initialize +orb</font></tt> +<br> +<tt><font color="#3333ff"> CORBA::ORB_var +orb = CORBA::ORB_init (argc,</font></tt> +<br> +<tt><font color="#3333ff"> +argv,</font></tt> +<br> +<tt><font color="#3333ff"> +0</font></tt> +<br> +<tt><font color="#3333ff"> +ACE_ENV_ARG_PARAMETER);</font></tt> +<br> +<tt><font color="#3333ff"> ACE_TRY_CHECK;</font></tt> +</p> +<p><tt><font color="#3333ff"> +CIAO::Server_init +(orb.in ());</font></tt> +</p> +<p><tt><font color="#3333ff"> if +(parse_args +(argc, argv) != 0)</font></tt> +<br> +<tt><font color="#3333ff"> +return -1;</font></tt> +</p> +<p><tt><font color="#3333ff"> // Get +reference +to Root POA.</font></tt> +<br> +<tt><font color="#3333ff"> +CORBA::Object_var +obj</font></tt> +<br> +<tt><font color="#3333ff"> += orb->resolve_initial_references ("RootPOA"</font></tt> +<br> +<tt><font color="#3333ff"> +ACE_ENV_ARG_PARAMETER);</font></tt> +<br> +<tt><font color="#3333ff"> ACE_TRY_CHECK;</font></tt> +</p> +<p><tt><font color="#3333ff"> +PortableServer::POA_var +poa</font></tt> +<br> +<tt><font color="#3333ff"> += PortableServer::POA::_narrow (obj.in ()</font></tt> +<br> +<tt><font color="#3333ff"> +ACE_ENV_ARG_PARAMETER);</font></tt> +<br> +<tt><font color="#3333ff"> ACE_TRY_CHECK;</font></tt> +</p> +<p><tt><font color="#3333ff"> // Activate +POA manager</font></tt> +<br> +<tt><font color="#3333ff"> +PortableServer::POAManager_var +mgr</font></tt> +<br> +<tt><font color="#3333ff"> += poa->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);</font></tt> +<br> +<tt><font color="#3333ff"> ACE_TRY_CHECK;</font></tt> +</p> +<p><tt><font color="#3333ff"> +mgr->activate +(ACE_ENV_SINGLE_ARG_PARAMETER);</font></tt> +<br> +<tt><font color="#3333ff"> ACE_TRY_CHECK;</font></tt> +</p> +<p><tt><font color="#3333ff"> +CIAO::ComponentServer_Impl +*comserv_servant;</font></tt> +</p> +<p><tt><font color="#3333ff"> +CIAO::Static_Configurator +configurator;</font></tt> +<br> +<tt><font color="#3333ff"> int +containers_table_size +=</font></tt> +<br> +<tt><font color="#3333ff"> +sizeof +(containers_table_)/sizeof(CIAO::Static_Config::ContainerAttributes);</font></tt> +<br> +<tt><font color="#3333ff"> int +homes_table_size +=</font></tt> +<br> +<tt><font color="#3333ff"> +sizeof (homes_table_)/sizeof(CIAO::Static_Config::HomeAttributes);</font></tt> +<br> +<tt><font color="#3333ff"> int +components_table_size +=</font></tt> +<br> +<tt><font color="#3333ff"> +sizeof +(components_table_)/sizeof(CIAO::Static_Config::ComponentAttributes);</font></tt> +<br> +<tt><font color="#3333ff"> int +component_registrations_table_size +=</font></tt> +<br> +<tt><font color="#3333ff"> +sizeof +(component_registrations_table_)/sizeof(CIAO::Assembly_Placement::componentinstantiation::Register_Info);</font></tt> +<br> +<tt><font color="#3333ff"> int +connections_table_size +=</font></tt> +<br> +<tt><font color="#3333ff"> +sizeof +(connections_table_)/sizeof(CIAO::Static_Config::ConnectionAttributes);</font></tt> +<br> +<tt><font color="#3333ff"> int +resolvers_table_size +=</font></tt> +<br> +<tt><font color="#3333ff"> +sizeof +(resolvers_table_)/sizeof(CIAO::Static_Config::ResolveInfoAttributes);</font></tt> +</p> +<p><tt><font color="#3333ff"> +CIAO::HOMECREATOR_FUNCPTR_MAP +home_creator_fptr_map;</font></tt> +<br> +<tt><font color="#3333ff"> +CIAO::HOMESERVANTCREATOR_FUNCPTR_MAP +homesvnt_creator_fptr_map;</font></tt> +<br> +<tt><font color="#3333ff"> +CIAO::Static_Config_EntryPoints_Maps +maps;</font></tt> +<br> +<tt><font color="#3333ff"> +maps.home_creator_funcptr_map_ += &home_creator_fptr_map;</font></tt> +<br> +<tt><font color="#3333ff"> +maps.home_servant_creator_funcptr_map_ += &homesvnt_creator_fptr_map;</font></tt> +</p> +<p><tt><font color="#3333ff"> int i=0;</font></tt> +<br> +<tt><font color="#3333ff"> for (i=0; +i<homes_table_size; ++i)</font></tt> +<br> +<tt><font color="#3333ff"> +{</font></tt> +<br> +<tt><font color="#3333ff"> +home_creator_fptr_map.bind (homes_table_[i].executor_entrypt_,</font></tt> +<br> +<tt><font color="#3333ff"> +homes_table_[i].executor_fptr_);</font></tt> +</p> +<p><tt><font color="#3333ff"> +homesvnt_creator_fptr_map.bind (homes_table_[i].servant_entrypt_,</font></tt> +<br> +<tt><font color="#3333ff"> +homes_table_[i].servant_fptr_);</font></tt> +<br> +<tt><font color="#3333ff"> +}</font></tt> +</p> +<p><tt><font color="#3333ff"> +ACE_NEW_RETURN +(comserv_servant,</font></tt> +<br> +<tt><font color="#3333ff"> +CIAO::ComponentServer_Impl (orb.in (),</font></tt> +<br> +<tt><font color="#3333ff"> +poa.in (),</font></tt> +<br> +<tt><font color="#3333ff"> +1,</font></tt> +<br> +<tt><font color="#3333ff"> +&maps),</font></tt> +<br> +<tt><font color="#3333ff"> +-1);</font></tt> +</p> +<p><tt><font color="#3333ff"> +PortableServer::ServantBase_var +safe_servant (comserv_servant);</font></tt> +</p> +<p><tt><font color="#3333ff"> +Components::ConfigValues +configs;</font></tt> +</p> +<p><tt><font color="#3333ff"> +comserv_servant->init +(configs</font></tt> +<br> +<tt><font color="#3333ff"> +ACE_ENV_ARG_PARAMETER);</font></tt> +<br> +<tt><font color="#3333ff"> ACE_TRY_CHECK;</font></tt> +</p> +<p><tt><font color="#3333ff"> // +Configuring +ComponentServer.</font></tt> +<br> +<tt><font color="#3333ff"> +PortableServer::ObjectId_var +cs_oid</font></tt> +<br> +<tt><font color="#3333ff"> += poa->activate_object (comserv_servant</font></tt> +<br> +<tt><font color="#3333ff"> +ACE_ENV_ARG_PARAMETER);</font></tt> +<br> +<tt><font color="#3333ff"> ACE_TRY_CHECK;</font></tt> +</p> +<p><tt><font color="#3333ff"> obj = +poa->id_to_reference +(cs_oid.in ()</font></tt> +<br> +<tt><font color="#3333ff"> +ACE_ENV_ARG_PARAMETER);</font></tt> +<br> +<tt><font color="#3333ff"> ACE_TRY_CHECK;</font></tt> +</p> +<p><tt><font color="#3333ff"> +Components::Deployment::ComponentServer_var +comserv_obj =</font></tt> +<br> +<tt><font color="#3333ff"> +Components::Deployment::ComponentServer::_narrow (obj.in ()</font></tt> +<br> +<tt><font color="#3333ff"> +ACE_ENV_ARG_PARAMETER);</font></tt> +<br> +<tt><font color="#3333ff"> ACE_TRY_CHECK;</font></tt> +</p> +<p><tt><font color="#3333ff"> if +(CORBA::is_nil +(comserv_obj.in ()))</font></tt> +<br> +<tt><font color="#3333ff"> +ACE_ERROR_RETURN ((LM_ERROR, "Unable to activate ComponentServer +object\n"), +-1);</font></tt> +<br> + +</p> +<p><tt><font color="#3333ff"> +Components::Deployment::ServerActivator_var +activator;</font></tt> +<br> +<tt><font color="#3333ff"> +Components::ConfigValues_var +config = new Components::ConfigValues;</font></tt> +</p> +<p><tt><font color="#3333ff"> +comserv_servant->set_objref +(activator.in (),</font></tt> +<br> +<tt><font color="#3333ff"> +config,</font></tt> +<br> +<tt><font color="#3333ff"> +comserv_obj.in ()</font></tt> +<br> +<tt><font color="#3333ff"> +ACE_ENV_ARG_PARAMETER);</font></tt> +<br> +<tt><font color="#3333ff"> ACE_TRY_CHECK;</font></tt> +</p> +<p><a name="static config engine"></a><tt><font color="#ff0000">configurator.configure +(orb.in (),</font></tt> +<br> +<tt><font color="#ff0000"> +comserv_obj.in (),</font></tt> +<br> +<tt><font color="#ff0000"> +containers_table_,</font></tt> +<br> +<tt><font color="#ff0000"> +containers_table_size,</font></tt> +<br> +<tt><font color="#ff0000"> +homes_table_,</font></tt> +<br> +<tt><font color="#ff0000"> +homes_table_size,</font></tt> +<br> +<tt><font color="#ff0000"> +components_table_,</font></tt> +<br> +<tt><font color="#ff0000"> +components_table_size,</font></tt> +<br> +<tt><font color="#ff0000"> +component_registrations_table_,</font></tt> +<br> +<tt><font color="#ff0000"> +component_registrations_table_size,</font></tt> +<br> +<tt><font color="#ff0000"> +connections_table_,</font></tt> +<br> +<tt><font color="#ff0000"> +connections_table_size,</font></tt> +<br> +<tt><font color="#ff0000"> +resolvers_table_,</font></tt> +<br> +<tt><font color="#ff0000"> +resolvers_table_size);</font></tt> +</p> +<p><tt><font color="#3333ff"> +CORBA::String_var +str = orb->object_to_string (comserv_obj.in ()</font></tt> +<br> +<tt><font color="#3333ff"> +ACE_ENV_ARG_PARAMETER);</font></tt> +</p> +<p><tt><font color="#3333ff"> +CIAO::Utility::write_IOR +(ior_file_name_, str.in ());</font></tt> +<br> +<tt><font color="#3333ff"> ACE_DEBUG +((LM_INFO, "ComponentServer IOR: %s\n", str.in ()));</font></tt> +</p> +<p><tt><font color="#3333ff"> ACE_DEBUG +((LM_DEBUG,</font></tt> +<br> +<tt><font color="#3333ff"> +"Running ComponentServer...\n"));</font></tt> +</p> +<p><tt><font color="#3333ff"> // Run the +main event loop for the ORB.</font></tt> +<br> +<tt><font color="#3333ff"> orb->run +(ACE_ENV_SINGLE_ARG_PARAMETER);</font></tt> +<br> +<tt><font color="#3333ff"> ACE_TRY_CHECK</font></tt> +<br> +<tt><font color="#3333ff"> }</font></tt> +<br> +<tt><font color="#3333ff"> ACE_CATCHANY</font></tt> +<br> +<tt><font color="#3333ff"> {</font></tt> +<br> +<tt><font color="#3333ff"> +ACE_PRINT_EXCEPTION +(ACE_ANY_EXCEPTION,</font></tt> +<br> +<tt><font color="#3333ff"> +"server::main \n");</font></tt> +<br> +<tt><font color="#3333ff"> return 1;</font></tt> +<br> +<tt><font color="#3333ff"> }</font></tt> +<br> +<tt><font color="#3333ff"> ACE_ENDTRY;</font></tt> +</p> +<p><tt><font color="#3333ff"> return 0;</font></tt> +<br> +<tt><font color="#3333ff">}</font></tt> +</p> +<p><a name="Static_CCM_App.mpc"></a><b><u>Static_CCM_App.mpc</u></b> +<br> +<tt><font color="#3333ff">project(Static_CCM_App) : ciao_server, +ciao_client, +rtcorba, rtportableserver, iortable, acexml {</font></tt> +<br> +<tt><font color="#3333ff">includes += +$(ACE_ROOT)/TAO/CIAO/tools/Assembly_Deployer</font></tt> +<br> +<tt><font color="#3333ff">includes += +$(ACE_ROOT)/TAO/CIAO/tools/static_configurator</font></tt> +<br> +<tt><font color="#3333ff">libs += CIAO_XML_Helpers Static_Configurator</font></tt> +<br> +<tt><font color="#3333ff">after += CIAO_XML_Helpers Static_Configurator</font></tt> +<br> + +</p> +<p><tt><font color="#3333ff">libs += EC_exec</font></tt> +<br> +<tt><font color="#3333ff">after += EC_exec</font></tt> +<br> +<tt><font color="#3333ff">libs += EC_svnt</font></tt> +<br> +<tt><font color="#3333ff">after += EC_svnt</font></tt> +<br> +<tt><font color="#3333ff">libs += BMDevice_exec</font></tt> +<br> +<tt><font color="#3333ff">after += BMDevice_exec</font></tt> +<br> +<tt><font color="#3333ff">libs += BMDevice_svnt</font></tt> +<br> +<tt><font color="#3333ff">after += BMDevice_svnt</font></tt> +<br> +<tt><font color="#3333ff">libs += BMClosedED_exec</font></tt> +<br> +<tt><font color="#3333ff">after += BMClosedED_exec</font></tt> +<br> +<tt><font color="#3333ff">libs += BMClosedED_svnt</font></tt> +<br> +<tt><font color="#3333ff">after += BMClosedED_svnt</font></tt> +<br> +<tt><font color="#3333ff">libs += BMDisplay_exec</font></tt> +<br> +<tt><font color="#3333ff">after += BMDisplay_exec</font></tt> +<br> +<tt><font color="#3333ff">libs += BMDisplay_svnt</font></tt> +<br> +<tt><font color="#3333ff">after += BMDisplay_svnt</font></tt> +<br> +<tt><font color="#3333ff"> Source_Files {</font></tt> +<br> +<tt><font color="#3333ff"> +Static_CCM_App.cpp</font></tt> +<br> +<tt><font color="#3333ff"> }</font></tt> +</p> +<p><tt><font color="#3333ff"> IDL_Files {</font></tt> +<br> +<tt><font color="#3333ff"> }</font></tt> +<br> +<tt><font color="#3333ff">}</font></tt> +</p> +<p><a name="Modified Static_CCM_App.cpp"></a><b><u>Modified +Static_CCM_App.cpp</u></b> <br> +</p> +<p><small><span style="font-weight: bold;">(Highlighted text is +manually added to the +generated .cpp file)<br> +<br> +</span></small><tt>#include "ComponentServer_Impl.h"</tt> +<br> +<tt>#include "CIAO_ServersC.h"</tt> +<br> +<tt>#include "Server_init.h"</tt> +<br> +<tt>#include "Static_Configurator.h"</tt> +<br> +<tt>#include "ace/SString.h"</tt> +<br> +<tt>#include "ace/Get_Opt.h"</tt> +</p> +<p><tt>#include "Static_Assembly_Config.h"</tt> +</p> +<p><tt>char *ior_file_name_ = "comp_serv.ior";</tt> +<br> +<b><tt><font color="#990000">int rate = 2;</font></tt></b> +</p> +<p><tt>int</tt> +<br> +<tt>parse_args (int argc, char *argv[])</tt> +<br> +<tt>{</tt> +<br> +<tt> ACE_Get_Opt get_opts (argc, argv, "k:o:");</tt> +<br> +<tt> int c;</tt> +</p> +<p><tt> while ((c = get_opts ()) != -1)</tt> +<br> +<tt> switch (c)</tt> +<br> +<tt> {</tt> +<br> +<tt> case 'o': // get the file +name to write to</tt> +<br> +<tt> ior_file_name_ = +get_opts.opt_arg +();</tt> +<br> +<tt> break;</tt> +</p> +<p><tt> case '?': // display help +for +use of the server.</tt> +<br> +<tt> default:</tt> +<br> +<tt> ACE_ERROR_RETURN +((LM_ERROR,</tt> +<br> +<tt> +"usage: %s\n"</tt> +<br> +<tt> +"-o <ior_output_file>\n"</tt> +<br> +<tt> +"\n",</tt> +<br> +<tt> +argv [0]),</tt> +<br> +<tt> +-1);</tt> +<br> +<tt> }</tt> +</p> +<p><tt> return 0;</tt> +<br> +<tt>}</tt> +<br> + +</p> +<p><tt>int</tt> +<br> +<tt>main (int argc, char *argv[])</tt> +<br> +<tt>{</tt> +<br> +<tt> ACE_TRY_NEW_ENV</tt> +<br> +<tt> {</tt> +<br> +<tt> // Initialize orb</tt> +<br> +<tt> CORBA::ORB_var orb = CORBA::ORB_init +(argc,</tt> +<br> +<tt> +argv,</tt> +<br> +<tt> +0</tt> +<br> +<tt> +ACE_ENV_ARG_PARAMETER);</tt> +<br> +<tt> ACE_TRY_CHECK;</tt> +</p> +<p><tt> CIAO::Server_init (orb.in ());</tt> +</p> +<p><tt> if (parse_args (argc, argv) != 0)</tt> +<br> +<tt> return -1;</tt> +</p> +<p><tt> // Get reference to Root POA.</tt> +<br> +<tt> CORBA::Object_var obj</tt> +<br> +<tt> = +orb->resolve_initial_references +("RootPOA"</tt> +<br> +<tt> +ACE_ENV_ARG_PARAMETER);</tt> +<br> +<tt> ACE_TRY_CHECK;</tt> +</p> +<p><tt> PortableServer::POA_var poa</tt> +<br> +<tt> = +PortableServer::POA::_narrow +(obj.in ()</tt> +<br> +<tt> +ACE_ENV_ARG_PARAMETER);</tt> +<br> +<tt> ACE_TRY_CHECK;</tt> +</p> +<p><tt> // Activate POA manager</tt> +<br> +<tt> PortableServer::POAManager_var mgr</tt> +<br> +<tt> = poa->the_POAManager +(ACE_ENV_SINGLE_ARG_PARAMETER);</tt> +<br> +<tt> ACE_TRY_CHECK;</tt> +</p> +<p><tt> mgr->activate +(ACE_ENV_SINGLE_ARG_PARAMETER);</tt> +<br> +<tt> ACE_TRY_CHECK;</tt> +</p> +<p><tt> CIAO::ComponentServer_Impl +*comserv_servant;</tt> +</p> +<p><tt> CIAO::Static_Configurator +configurator;</tt> +<br> +<tt> int containers_table_size =</tt> +<br> +<tt> sizeof +(containers_table_)/sizeof(CIAO::Static_Config::ContainerAttributes);</tt> +<br> +<tt> int homes_table_size =</tt> +<br> +<tt> sizeof +(homes_table_)/sizeof(CIAO::Static_Config::HomeAttributes);</tt> +<br> +<tt> int components_table_size =</tt> +<br> +<tt> sizeof +(components_table_)/sizeof(CIAO::Static_Config::ComponentAttributes);</tt> +<br> +<tt> int +component_registrations_table_size +=</tt> +<br> +<tt> sizeof +(component_registrations_table_)/sizeof(CIAO::Assembly_Placement::componentinstantiation::Register_Info);</tt> +<br> +<tt> int connections_table_size =</tt> +<br> +<tt> sizeof +(connections_table_)/sizeof(CIAO::Static_Config::ConnectionAttributes);</tt> +<br> +<tt> int resolvers_table_size =</tt> +<br> +<tt> sizeof +(resolvers_table_)/sizeof(CIAO::Static_Config::ResolveInfoAttributes);</tt> +</p> +<p><tt> CIAO::HOMECREATOR_FUNCPTR_MAP +home_creator_fptr_map;</tt> +<br> +<tt> CIAO::HOMESERVANTCREATOR_FUNCPTR_MAP +homesvnt_creator_fptr_map;</tt> +<br> +<tt> CIAO::Static_Config_EntryPoints_Maps +maps;</tt> +<br> +<tt> maps.home_creator_funcptr_map_ = +&home_creator_fptr_map;</tt> +<br> +<tt> +maps.home_servant_creator_funcptr_map_ += &homesvnt_creator_fptr_map;</tt> +</p> +<p><tt> int i=0;</tt> +<br> +<tt> for (i=0; i<homes_table_size; +++i)</tt> +<br> +<tt> {</tt> +<br> +<tt> +home_creator_fptr_map.bind +(homes_table_[i].executor_entrypt_,</tt> +<br> +<tt> +homes_table_[i].executor_fptr_);</tt> +</p> +<p><tt> +homesvnt_creator_fptr_map.bind +(homes_table_[i].servant_entrypt_,</tt> +<br> +<tt> +homes_table_[i].servant_fptr_);</tt> +<br> +<tt> }</tt> +</p> +<p><tt> ACE_NEW_RETURN (comserv_servant,</tt> +<br> +<tt> +CIAO::ComponentServer_Impl (orb.in (),</tt> +<br> +<tt> +poa.in (),</tt> +<br> +<tt> +1,</tt> +<br> +<tt> +&maps),</tt> +<br> +<tt> +-1);</tt> +</p> +<p><tt> PortableServer::ServantBase_var +safe_servant +(comserv_servant);</tt> +</p> +<p><tt> Components::ConfigValues configs;</tt> +</p> +<p><tt> comserv_servant->init (configs</tt> +<br> +<tt> +ACE_ENV_ARG_PARAMETER);</tt> +<br> +<tt> ACE_TRY_CHECK;</tt> +</p> +<p><tt> // Configuring ComponentServer.</tt> +<br> +<tt> PortableServer::ObjectId_var cs_oid</tt> +<br> +<tt> = +poa->activate_object +(comserv_servant</tt> +<br> +<tt> +ACE_ENV_ARG_PARAMETER);</tt> +<br> +<tt> ACE_TRY_CHECK;</tt> +</p> +<p><tt> obj = poa->id_to_reference +(cs_oid.in +()</tt> +<br> +<tt> +ACE_ENV_ARG_PARAMETER);</tt> +<br> +<tt> ACE_TRY_CHECK;</tt> +</p> +<p><tt> +Components::Deployment::ComponentServer_var +comserv_obj =</tt> +<br> +<tt> +Components::Deployment::ComponentServer::_narrow +(obj.in ()</tt> +<br> +<tt> +ACE_ENV_ARG_PARAMETER);</tt> +<br> +<tt> ACE_TRY_CHECK;</tt> +</p> +<p><tt> if (CORBA::is_nil (comserv_obj.in +()))</tt> +<br> +<tt> ACE_ERROR_RETURN +((LM_ERROR, +"Unable to activate ComponentServer object\n"), -1);</tt> +<br> + +</p> +<p><tt> +Components::Deployment::ServerActivator_var +activator;</tt> +<br> +<tt> Components::ConfigValues_var config += new Components::ConfigValues;</tt> +</p> +<p><tt> comserv_servant->set_objref +(activator.in +(),</tt> +<br> +<tt> +config,</tt> +<br> +<tt> +comserv_obj.in ()</tt> +<br> +<tt> +ACE_ENV_ARG_PARAMETER);</tt> +<br> +<tt> ACE_TRY_CHECK;</tt> +</p> +<p><tt> configurator.configure (orb.in (),</tt> +<br> +<tt> +comserv_obj.in (),</tt> +<br> +<tt> +containers_table_,</tt> +<br> +<tt> +containers_table_size,</tt> +<br> +<tt> +homes_table_,</tt> +<br> +<tt> +homes_table_size,</tt> +<br> +<tt> +components_table_,</tt> +<br> +<tt> +components_table_size,</tt> +<br> +<tt> +component_registrations_table_,</tt> +<br> +<tt> +component_registrations_table_size,</tt> +<br> +<tt> +connections_table_,</tt> +<br> +<tt> +connections_table_size,</tt> +<br> +<tt> +resolvers_table_,</tt> +<br> +<tt> +resolvers_table_size);</tt> +</p> +<p><tt> CORBA::String_var str = +orb->object_to_string +(comserv_obj.in ()</tt> +<br> +<tt> +ACE_ENV_ARG_PARAMETER);</tt> +</p> +<p><tt> CIAO::Utility::write_IOR +(ior_file_name_, +str.in ());</tt> +<br> +<tt> ACE_DEBUG ((LM_INFO, +"ComponentServer +IOR: %s\n", str.in ()));</tt> +</p> +<p><tt> ACE_DEBUG ((LM_DEBUG,</tt> +<br> +<tt> +"Running ComponentServer...\n"));</tt> +</p> +<p><b><tt><font color="#990000"> +CORBA::Object_var +pulser_obj</font></tt></b> +<br> +<b><tt><font color="#990000"> += orb->string_to_object ("file://ec.ior"</font></tt></b> +<br> +<b><tt><font color="#990000"> +ACE_ENV_ARG_PARAMETER);</font></tt></b> +<br> +<b><tt><font color="#990000"> +ACE_TRY_CHECK;</font></tt></b> +</p> +<p><b><tt><font color="#990000"> +BasicSP::EC_var +pulser</font></tt></b> +<br> +<b><tt><font color="#990000"> += BasicSP::EC::_narrow (pulser_obj.in ()</font></tt></b> +<br> +<b><tt><font color="#990000"> +ACE_ENV_ARG_PARAMETER);</font></tt></b> +<br> +<b><tt><font color="#990000"> +ACE_TRY_CHECK;</font></tt></b> +</p> +<p><b><tt><font color="#990000"> if +(CORBA::is_nil +(pulser.in ()))</font></tt></b> +<br> +<b><tt><font color="#990000"> +ACE_ERROR_RETURN ((LM_ERROR, "Unable to acquire 'EC' objref\n"), -1);</font></tt></b> +</p> +<p><b><tt><font color="#990000"> +pulser->hertz +(rate</font></tt></b> +<br> +<b><tt><font color="#990000"> +ACE_ENV_ARG_PARAMETER);</font></tt></b> +<br> +<b><tt><font color="#990000"> +ACE_TRY_CHECK;</font></tt></b> +</p> +<p><b><tt><font color="#990000"> +ACE_DEBUG +((LM_DEBUG, "Start up the Event services\n"));</font></tt></b> +</p> +<p><b><tt><font color="#990000"> +pulser->start +(ACE_ENV_SINGLE_ARG_PARAMETER);</font></tt></b> +<br> +<b><tt><font color="#990000"> +ACE_TRY_CHECK;</font></tt></b> +</p> +<p><tt> // Run the main event loop for +the +ORB.</tt> +<br> +<tt> orb->run +(ACE_ENV_SINGLE_ARG_PARAMETER);</tt> +<br> +<tt> ACE_TRY_CHECK</tt> +<br> +<tt> }</tt> +<br> +<tt> ACE_CATCHANY</tt> +<br> +<tt> {</tt> +<br> +<tt> ACE_PRINT_EXCEPTION +(ACE_ANY_EXCEPTION,</tt> +<br> +<tt> +"server::main \n");</tt> +<br> +<tt> return 1;</tt> +<br> +<tt> }</tt> +<br> +<tt> ACE_ENDTRY;</tt> +</p> +<p><tt> return 0;</tt> +<br> +<tt>}</tt> +</p> +<p><a name="Modified Static_CCM_App.mpc"></a><b><u>Modified +Static_CCM_App.mpc</u></b> <br> +</p> +<p><small><span style="font-weight: bold;">(Highlighted text is +manually added to the +generated .cpp file)<br> +<br> +</span></small><tt>project(Static_CCM_App) : ciao_server, ciao_client, +rtcorba, +rtportableserver, +iortable, acexml {</tt> +<br> +<tt>includes += $(ACE_ROOT)/TAO/CIAO/tools/Assembly_Deployer</tt> +<br> +<tt>includes += $(ACE_ROOT)/TAO/CIAO/tools/static_configurator</tt> +<br> +<tt>libs += CIAO_XML_Helpers Static_Configurator</tt> +<br> +<tt>after += CIAO_XML_Helpers Static_Configurator</tt> +</p> +<p><b><tt><font color="#990000">libs += BasicSP_stub BasicSP_svnt</font></tt></b> +<br> +<b><tt><font color="#990000">after += BasicSP_stub BasicSP_svnt</font></tt></b> +<br> +<tt>libs += EC_exec</tt> +<br> +<tt>after += EC_exec</tt> +<br> +<tt>libs += EC_svnt <b><font color="#990000">EC_stub</font></b></tt> +<br> +<tt>after += EC_svnt <b><font color="#990000">EC_stub</font></b></tt> +<br> +<tt>libs += BMDevice_exec</tt> +<br> +<tt>after += BMDevice_exec</tt> +<br> +<tt>libs += BMDevice_svnt <b><font color="#990000">BMDevice_stub</font></b></tt> +<br> +<tt>after += BMDevice_svnt <b><font color="#990000">BMDevice_stub</font></b></tt> +<br> +<tt>libs += BMClosedED_exec</tt> +<br> +<tt>after += BMClosedED_exec</tt> +<br> +<tt>libs += BMClosedED_svnt <b><font color="#990000">BMClosedED_stub</font></b></tt> +<br> +<tt>after += BMClosedED_svnt <b><font color="#990000">BMClosedED_stub</font></b></tt> +<br> +<tt>libs += BMDisplay_exec</tt> +<br> +<tt>after += BMDisplay_exec</tt> +<br> +<tt>libs += BMDisplay_svnt <b><font color="#990000">BMDisplay_stub</font></b></tt> +<br> +<tt>after += BMDisplay_svnt <b><font color="#990000">BMDisplay_stub</font></b></tt> +</p> +<p><tt> Source_Files {</tt> +<br> +<tt> Static_CCM_App.cpp</tt> +<br> +<tt> }</tt> +</p> +<p><tt> IDL_Files {</tt> +<br> +<tt> }</tt> +<br> +<tt>}</tt> +<br> + +</p> +</body> +</html> diff --git a/modules/CIAO/docs/static_config_rtexample.html b/modules/CIAO/docs/static_config_rtexample.html new file mode 100644 index 00000000000..2e87e5aabe1 --- /dev/null +++ b/modules/CIAO/docs/static_config_rtexample.html @@ -0,0 +1,1079 @@ +<!DOCTYPE html PUBLIC "-//w3c//dtd html 4.0 transitional//en"> +<html> +<head> + <meta http-equiv="Content-Type" + content="text/html; charset=iso-8859-1"> + <meta name="Author" content="Venkita Subramonian"> + <meta name="GENERATOR" + content="Mozilla/4.76 [en] (Windows NT 5.0; U) [Netscape]"> + <title>BasicSP example using CIAO Static Configurator</title> +<!-- $Id$ --> +</head> +<body> +This example illustrates +how to use the CIAO static configurator to build applications using +RTCORBA policies statically. +From the <a href="../examples/OEP/BasicSP">BasicSP</a> directory do +the +following. +<p><b><tt>> cd descriptors</tt></b> +<br> +<b><tt>> $CIAO_ROOT/tools/static_configurator/Static_Assembly_Parser +-a BasicSP-rt.cad</tt></b> +</p> +<p>The following files are generated - +</p> +<p><a href="#Static_Assembly_Config.h">Static_Assembly_Config.h</a> +<br> +<a href="#Modified%20Static_CCM_App.cpp">Static_CCM_App.cpp</a> +<br> +<a href="#Modified%20Static_CCM_App.mpc">Static_CCM_App.mpc</a> +</p> +<p><a href="#Static_Assembly_Config.h">Static_Assembly_Config.h</a> +contains +the intermediate representation of all the parsed component and +assembly +information obtained from the XML files. <a href="#Static_CCM_App.cpp">Static_CCM_App.cpp</a> +contains the main driver application. Here a runtime <a + href="#static_config_engine">static +configuration engine</a> is used to create containers, homes, +components, +etc and then establish necessary connections between the components. +The configuration engine is also used to <a href="#rtconfig">configure</a> +the containers and RTORB with the appropriate RTCORBA policies +specified declaratively in the .rtcad file. In +the BasicSP example, an external controller (see <tt><a + href="../examples/OEP/BasicSP/README">$CIAO_ROOT/examples/OEP/BasicSP/README</a></tt>) +is used to start or stop a pulser. The generated main driver +application +(Static_CCM_App.cpp) is <a href="#Modified%20Static_CCM_App.cpp">modified</a> +to add code to trigger the pulser object on. The generated .mpc file is +<a href="#Modified%20Static_CCM_App.mpc">modified</a> +to add all other necessary files so that the application can be built +statically. +Note that the static configurator only generates only certain file +names +in the .mpc file. These filenames are obtained from the XML descriptor +files. All other necessary files have to be added manually as +indicated. +</p> +<p>Now the static build files can be generated by running the mpc +utility. +</p> +<p><b><tt>> cd ..</tt></b> +<br> +<b><tt>> $ACE_ROOT/bin/mpc -static Static_CCM_App.mpc</tt></b> +</p> +<p><a name="Static_Assembly_Config.h"></a><b><u>Static_Assembly_Config.h</u></b> +<br> +<span style="font-family: monospace;">#include "Static_Assembly.h"</span><br + style="font-family: monospace;"> +<br style="font-family: monospace;"> +<span style="font-family: monospace;">#include "CCM_ContainerC.h"</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;">#include "Container_Base.h"</span><br + style="font-family: monospace;"> +<br style="font-family: monospace;"> +<span style="font-family: monospace;">//Containers</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;">CIAO::Static_Config::ContainerAttributes +containers_table_[]= </span><br style="font-family: monospace;"> +<span style="font-family: monospace;">{</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> {"POLICY_1", +0},</span><br style="font-family: monospace;"> +<span style="font-family: monospace;"> {"", 0}</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;">};</span><br + style="font-family: monospace;"> +<br style="font-family: monospace;"> +<br style="font-family: monospace;"> +<span style="font-family: monospace;">extern "C" +::Components::HomeExecutorBase_ptr createECHome_Impl (void);</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;">extern "C" +::PortableServer::Servant createECHome_Servant </span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> + (::Components::HomeExecutorBase_ptr p,</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> + ::CIAO::Session_Container *c</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> + ACE_ENV_ARG_DECL_WITH_DEFAULTS);</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;">extern "C" +::Components::HomeExecutorBase_ptr createBMDeviceHome_Impl (void);</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;">extern "C" +::PortableServer::Servant createBMDeviceHome_Servant </span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> + (::Components::HomeExecutorBase_ptr p,</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> + ::CIAO::Session_Container *c</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> + ACE_ENV_ARG_DECL_WITH_DEFAULTS);</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;">extern "C" +::Components::HomeExecutorBase_ptr createBMClosedEDHome_Impl (void);</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;">extern "C" +::PortableServer::Servant createBMClosedEDHome_Servant </span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> + (::Components::HomeExecutorBase_ptr p,</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> + ::CIAO::Session_Container *c</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> + ACE_ENV_ARG_DECL_WITH_DEFAULTS);</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;">extern "C" +::Components::HomeExecutorBase_ptr createBMDisplayHome_Impl (void);</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;">extern "C" +::PortableServer::Servant createBMDisplayHome_Servant </span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> + (::Components::HomeExecutorBase_ptr p,</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> + ::CIAO::Session_Container *c</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> + ACE_ENV_ARG_DECL_WITH_DEFAULTS);</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;">//Homes</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;">CIAO::Static_Config::HomeAttributes +homes_table_[]= </span><br style="font-family: monospace;"> +<span style="font-family: monospace;">{</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> {"a_ECHome", +"DCE:3148F760-F2ED-4204-A775-6B972C10E8CB", "createECHome_Impl", +createECHome_Impl, "DCE:75309233-0E0A-4cfb-B186-3E99F69B1D40", +"createECHome_Servant", createECHome_Servant, 0, 0 },</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> +{"a_BMDeviceHome", "DCE:82C2B032-37F0-4315-A59F-7020D3264E4D", +"createBMDeviceHome_Impl", createBMDeviceHome_Impl, +"DCE:93D254CF-9538-44e8-BB98-AABCD134ADD3", +"createBMDeviceHome_Servant", createBMDeviceHome_Servant, 0, 0 },</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> +{"a_BMClosedEDHome", "DCE:8E6C468D-A39F-46b4-962B-265F1AA8D538", +"createBMClosedEDHome_Impl", createBMClosedEDHome_Impl, +"DCE:CDC06FCA-50FC-43ca-8ECC-BEFBD33FEE78", +"createBMClosedEDHome_Servant", createBMClosedEDHome_Servant, 0, 0 },</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> +{"a_BMDisplayHome", "DCE:8E92655E-CA07-46C8-B127-0F0872A8CC29", +"createBMDisplayHome_Impl", createBMDisplayHome_Impl, +"DCE:D7984625-8561-431d-9927-4E498B317C02", +"createBMDisplayHome_Servant", createBMDisplayHome_Servant, 1, 0 }</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;">};</span><br + style="font-family: monospace;"> +<br style="font-family: monospace;"> +<br style="font-family: monospace;"> +<span style="font-family: monospace;">//Components</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;">CIAO::Static_Config::ComponentAttributes +components_table_[]= </span><br style="font-family: monospace;"> +<span style="font-family: monospace;">{</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> {"a_EC", 0, 0, +0 },</span><br style="font-family: monospace;"> +<span style="font-family: monospace;"> {"a_BMDevice", +-1, -1, 1 },</span><br style="font-family: monospace;"> +<span style="font-family: monospace;"> +{"a_BMClosedED", -1, -1, 2 },</span><br style="font-family: monospace;"> +<span style="font-family: monospace;"> +{"a_BMDisplay", -1, -1, 3 }</span><br style="font-family: monospace;"> +<span style="font-family: monospace;">};</span><br + style="font-family: monospace;"> +<br style="font-family: monospace;"> +<br style="font-family: monospace;"> +<span style="font-family: monospace;">//Component Registrations</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;">CIAO::Assembly_Placement::componentinstantiation::Register_Info +component_registrations_table_[]= </span><br + style="font-family: monospace;"> +<span style="font-family: monospace;">{</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> +{CIAO::Assembly_Placement::componentinstantiation::COMPONENT, +CIAO::Assembly_Placement::componentinstantiation::IORFILE, "", "ec.ior" +}</span><br style="font-family: monospace;"> +<span style="font-family: monospace;">};</span><br + style="font-family: monospace;"> +<br style="font-family: monospace;"> +<br style="font-family: monospace;"> +<span style="font-family: monospace;">//Connections</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;">CIAO::Static_Config::ConnectionAttributes +connections_table_[]= </span><br style="font-family: monospace;"> +<span style="font-family: monospace;">{</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> +{CIAO::Assembly_Connection::PUBLISHER_CONSUMER, "", "timeout", 0, 1, 0, +0 },</span><br style="font-family: monospace;"> +<span style="font-family: monospace;"> +{CIAO::Assembly_Connection::PUBLISHER_CONSUMER, "", "data_available", +3, 4, 0, 0 },</span><br style="font-family: monospace;"> +<span style="font-family: monospace;"> +{CIAO::Assembly_Connection::PUBLISHER_CONSUMER, "", "out_avail", 6, 7, +0, 0 },</span><br style="font-family: monospace;"> +<span style="font-family: monospace;"> +{CIAO::Assembly_Connection::INTERFACE, "", "datain", 9, 10, 0, 0 },</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> +{CIAO::Assembly_Connection::INTERFACE, "", "comp_data", 12, 13, 0, 0 }</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;">};</span><br + style="font-family: monospace;"> +<br style="font-family: monospace;"> +<br style="font-family: monospace;"> +<span style="font-family: monospace;">//Resolver Infos</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;">CIAO::Static_Config::ResolveInfoAttributes +resolvers_table_[]= </span><br style="font-family: monospace;"> +<span style="font-family: monospace;">{</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> +{CIAO::Assembly_Connection::COMP_IDREF, "a_EC", -1, 0 },</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> +{CIAO::Assembly_Connection::CONSUMER, "timeout", 2, 0 },</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> +{CIAO::Assembly_Connection::COMP_IDREF, "a_BMDevice", -1, 0 },</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> +{CIAO::Assembly_Connection::COMP_IDREF, "a_BMDevice", -1, 0 },</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> +{CIAO::Assembly_Connection::CONSUMER, "in_avail", 5, 0 },</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> +{CIAO::Assembly_Connection::COMP_IDREF, "a_BMClosedED", -1, 0 },</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> +{CIAO::Assembly_Connection::COMP_IDREF, "a_BMClosedED", -1, 0 },</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> +{CIAO::Assembly_Connection::CONSUMER, "data_ready", 8, 0 },</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> +{CIAO::Assembly_Connection::COMP_IDREF, "a_BMDisplay", -1, 0 },</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> +{CIAO::Assembly_Connection::COMP_IDREF, "a_BMClosedED", -1, 0 },</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> +{CIAO::Assembly_Connection::PROVIDER, "data_read", 11, 0 },</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> +{CIAO::Assembly_Connection::COMP_IDREF, "a_BMDevice", -1, 0 },</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> +{CIAO::Assembly_Connection::COMP_IDREF, "a_BMDisplay", -1, 0 },</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> +{CIAO::Assembly_Connection::PROVIDER, "dataout", 14, 0 },</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> +{CIAO::Assembly_Connection::COMP_IDREF, "a_BMClosedED", -1, 0 }</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;">};</span><br + style="font-family: monospace;"> +<br style="font-family: monospace;"> +<br style="font-family: monospace;"> +<span style="font-family: monospace;">//Thread Pool</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;">CIAO::Static_Config::ThreadPoolAttributes +thread_pool_table_[]= </span><br style="font-family: monospace;"> +<span style="font-family: monospace;">{</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> +{"common_pool", 0, 10, 20, 1, 0, 0, 0},</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> +{"high_prio_pool", 0, 2, 2, 3, 0, 0, 0}</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;">};</span><br + style="font-family: monospace;"> +<br style="font-family: monospace;"> +<br style="font-family: monospace;"> +<span style="font-family: monospace;">//Lanes</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;">CIAO::Static_Config::LaneAttributes +lane_table_[]= </span><br style="font-family: monospace;"> +<span style="font-family: monospace;">{</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> {1, 100, 300},</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> {2, 2, 2},</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> {3, 1, 2},</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> {1, 10, 30},</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> {2, 3, 3},</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> {3, 1, 2}</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;">};</span><br + style="font-family: monospace;"> +<br style="font-family: monospace;"> +<br style="font-family: monospace;"> +<span style="font-family: monospace;">//ThreadPoolLanes</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;">CIAO::Static_Config::ThreadPoolLanesAttributes +thread_pool_lanes_table_[]= </span><br style="font-family: monospace;"> +<span style="font-family: monospace;">{</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> +{"shared_pool", 0, 0, 2, 0, 0, 0, 0},</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> {"laned_pool", +0, 3, 5, 0, 0, 0, 0}</span><br style="font-family: monospace;"> +<span style="font-family: monospace;">};</span><br + style="font-family: monospace;"> +<br style="font-family: monospace;"> +<br style="font-family: monospace;"> +<span style="font-family: monospace;">//Bands</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;">CIAO::Static_Config::BandAttributes +band_table_[]= </span><br style="font-family: monospace;"> +<span style="font-family: monospace;">{</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> {1, 1},</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> {2, 2},</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> {3, 3000}</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;">};</span><br + style="font-family: monospace;"> +<br style="font-family: monospace;"> +<br style="font-family: monospace;"> +<span style="font-family: monospace;">//PriorityBands</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;">CIAO::Static_Config::PriorityBandsAttributes +priority_band_table_[]= </span><br style="font-family: monospace;"> +<span style="font-family: monospace;">{</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> +{"common_conn", 0, 2}</span><br style="font-family: monospace;"> +<span style="font-family: monospace;">};</span><br + style="font-family: monospace;"> +<br style="font-family: monospace;"> +<br style="font-family: monospace;"> +<span style="font-family: monospace;">//Policy Configs</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;">CIAO::Static_Config::PolicyConfigAttributes +policy_config_table_[]= </span><br style="font-family: monospace;"> +<span style="font-family: monospace;">{</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> +{RTCORBA::PRIORITY_MODEL_POLICY_TYPE, "", RTCORBA::SERVER_DECLARED, 2},</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> +{RTCORBA::THREADPOOL_POLICY_TYPE, "shared_pool", /*dummy variable*/ +RTCORBA::CLIENT_PROPAGATED, 0},</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> +{RTCORBA::PRIORITY_BANDED_CONNECTION_POLICY_TYPE, "common_conn", +/*dummy variable*/ RTCORBA::CLIENT_PROPAGATED, 0},</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> +{RTCORBA::THREADPOOL_POLICY_TYPE, "common_pool", /*dummy variable*/ +RTCORBA::CLIENT_PROPAGATED, 0},</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> +{RTCORBA::PRIORITY_MODEL_POLICY_TYPE, "", RTCORBA::CLIENT_PROPAGATED, 2}</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;">};</span><br + style="font-family: monospace;"> +<br style="font-family: monospace;"> +<br style="font-family: monospace;"> +<span style="font-family: monospace;">//Policy Set</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;">CIAO::Static_Config::PolicySetAttributes +policy_set_table_[]= </span><br style="font-family: monospace;"> +<span style="font-family: monospace;">{</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> {"POLICY_1", +0, 2},</span><br style="font-family: monospace;"> +<span style="font-family: monospace;"> {"POLICY_2", +3, 4}</span><br style="font-family: monospace;"> +<span style="font-family: monospace;">};</span><br> +<br> +<tt><font color="#3333ff"></font></tt></p> +<tt><font color="#3333ff"></font></tt><a + name="Modified Static_CCM_App.cpp"></a><b><u>Modified +Static_CCM_App.cpp</u></b> <br> +<p><span style="font-family: monospace;"></span><small><span + style="font-weight: bold;">(Highlighted text is manually added to the +generated .cpp file)</span></small></p> +<p><span style="font-family: monospace;">#include "RTServer_Impl.h"</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;">#include "CIAO_ServersC.h"</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;">#include "Server_init.h"</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;">#include "Static_Configurator.h"</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;">#include "ace/SString.h"</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;">#include "ace/Get_Opt.h"</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;">#include +"Static_Assembly_Config.h"</span><br style="font-family: monospace;"> +<span style="font-family: monospace;">#include +"tao/RTPortableServer/RTPortableServer.h"</span><br + style="font-family: monospace;"> +<span + style="font-family: monospace; color: rgb(153, 0, 0); font-weight: bold;">#include +"EC/ECC.h"</span><br + style="font-family: monospace; color: rgb(153, 0, 0); font-weight: bold;"> +<br style="font-family: monospace;"> +<span style="font-family: monospace;">char *ior_file_name_ = +"comp_serv.ior"; </span><br style="font-family: monospace;"> +<span + style="font-family: monospace; color: rgb(153, 0, 0); font-weight: bold;">int +rate = 2;</span><br style="font-family: monospace;"> +<span style="font-family: monospace;">int</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;">parse_args (int argc, char +*argv[])</span><br style="font-family: monospace;"> +<span style="font-family: monospace;">{</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> ACE_Get_Opt get_opts +(argc, argv, "k:o:");</span><br style="font-family: monospace;"> +<span style="font-family: monospace;"> int c;</span><br + style="font-family: monospace;"> +<br style="font-family: monospace;"> +<span style="font-family: monospace;"> while ((c = get_opts ()) +!= -1)</span><br style="font-family: monospace;"> +<span style="font-family: monospace;"> switch (c)</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> {</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> case +'o': // get the file name to write to</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> +ior_file_name_ = get_opts.opt_arg ();</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> break;</span><br + style="font-family: monospace;"> +<br style="font-family: monospace;"> +<span style="font-family: monospace;"> case +'?': // display help for use of the server.</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> default:</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> +ACE_ERROR_RETURN ((LM_ERROR,</span><br style="font-family: monospace;"> +<span style="font-family: monospace;"> +"usage: %s\n"</span><br style="font-family: monospace;"> +<span style="font-family: monospace;"> +"-o <ior_output_file>\n"</span><br style="font-family: monospace;"> +<span style="font-family: monospace;"> +"\n",</span><br style="font-family: monospace;"> +<span style="font-family: monospace;"> +argv [0]),</span><br style="font-family: monospace;"> +<span style="font-family: monospace;"> +-1);</span><br style="font-family: monospace;"> +<span style="font-family: monospace;"> }</span><br + style="font-family: monospace;"> +<br style="font-family: monospace;"> +<span style="font-family: monospace;"> return 0;</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;">}</span><br + style="font-family: monospace;"> +<br style="font-family: monospace;"> +<span style="font-family: monospace;">int</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;">main (int argc, char *argv[])</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;">{</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> ACE_TRY_NEW_ENV</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> {</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> // +Initialize orb</span><br style="font-family: monospace;"> +<span style="font-family: monospace;"> +CORBA::ORB_var orb = CORBA::ORB_init (argc,</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> +argv</span><br style="font-family: monospace;"> +<span style="font-family: monospace;"> +ACE_ENV_ARG_PARAMETER);</span><br style="font-family: monospace;"> +<br style="font-family: monospace;"> +<span style="font-family: monospace;"> +ACE_TRY_CHECK;</span><br style="font-family: monospace;"> +<br style="font-family: monospace;"> +<span style="font-family: monospace;"> +CIAO::Server_init (orb.in ());</span><br style="font-family: monospace;"> +<br style="font-family: monospace;"> +<span style="font-family: monospace;"> if +(parse_args (argc, argv) != 0)</span><br style="font-family: monospace;"> +<span style="font-family: monospace;"> +return -1;</span><br style="font-family: monospace;"> +<br style="font-family: monospace;"> +<span style="font-family: monospace;"> // +Get reference to Root POA.</span><br style="font-family: monospace;"> +<span style="font-family: monospace;"> +CORBA::Object_var object =</span><br style="font-family: monospace;"> +<span style="font-family: monospace;"> +orb->resolve_initial_references ("RootPOA"</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> +ACE_ENV_ARG_PARAMETER);</span><br style="font-family: monospace;"> +<span style="font-family: monospace;"> +ACE_TRY_CHECK;</span><br style="font-family: monospace;"> +<span style="font-family: monospace;"> +PortableServer::POA_var root_poa =</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> +PortableServer::POA::_narrow (object.in ()</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> + + ACE_ENV_ARG_PARAMETER);</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> // Get +reference to RTORB.</span><br style="font-family: monospace;"> +<span style="font-family: monospace;"> +object =</span><br style="font-family: monospace;"> +<span style="font-family: monospace;"> +orb->resolve_initial_references ("RTORB"</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> +ACE_ENV_ARG_PARAMETER);</span><br style="font-family: monospace;"> +<span style="font-family: monospace;"> +ACE_TRY_CHECK;</span><br style="font-family: monospace;"> +<br style="font-family: monospace;"> +<span style="font-family: monospace;"> +RTCORBA::RTORB_var rt_orb =</span><br style="font-family: monospace;"> +<span style="font-family: monospace;"> +RTCORBA::RTORB::_narrow (object.in ()</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> +ACE_ENV_ARG_PARAMETER);</span><br style="font-family: monospace;"> +<span style="font-family: monospace;"> +ACE_TRY_CHECK;</span><br style="font-family: monospace;"> +<br style="font-family: monospace;"> +<span style="font-family: monospace;"> // +Activate POA manager</span><br style="font-family: monospace;"> +<span style="font-family: monospace;"> +PortableServer::POAManager_var poa_manager =</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> +root_poa->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> +ACE_TRY_CHECK;</span><small><span style="font-weight: bold;">(Highlighted +files are manually added to the generated mpc file)</span></small><br + style="font-family: monospace;"> +<br style="font-family: monospace;"> +<span style="font-family: monospace;"> +poa_manager->activate (ACE_ENV_SINGLE_ARG_PARAMETER);</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> +ACE_TRY_CHECK;</span><br style="font-family: monospace;"> +<br style="font-family: monospace;"> +<span style="font-family: monospace;"> +CIAO::RTServer::RTComponentServer_Impl *comserv_servant;</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> +CIAO::Static_Configurator configurator;</span><br + style="font-family: monospace;"> +<br style="font-family: monospace;"> +<span style="font-family: monospace;"> +int containers_table_size =</span><br style="font-family: monospace;"> +<span style="font-family: monospace;"> +sizeof +(containers_table_)/sizeof(CIAO::Static_Config::ContainerAttributes);</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> +int homes_table_size =</span><br style="font-family: monospace;"> +<span style="font-family: monospace;"> +sizeof (homes_table_)/sizeof(CIAO::Static_Config::HomeAttributes);</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> +int components_table_size =</span><br style="font-family: monospace;"> +<span style="font-family: monospace;"> +sizeof +(components_table_)/sizeof(CIAO::Static_Config::ComponentAttributes);</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> +int component_registrations_table_size =</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> +sizeof +(component_registrations_table_)/sizeof(CIAO::Assembly_Placement::componentinstantiation::Register_Info);</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> +int connections_table_size =</span><br style="font-family: monospace;"> +<span style="font-family: monospace;"> +sizeof +(connections_table_)/sizeof(CIAO::Static_Config::ConnectionAttributes);</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> +int resolvers_table_size =</span><br style="font-family: monospace;"> +<span style="font-family: monospace;"> +sizeof +(resolvers_table_)/sizeof(CIAO::Static_Config::ResolveInfoAttributes);</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> +int thread_pool_table_size=</span><br style="font-family: monospace;"> +<span style="font-family: monospace;"> +sizeof(thread_pool_table_)/sizeof(CIAO::Static_Config::ThreadPoolAttributes);</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> +int thread_pool_lanes_table_size=</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> +sizeof(thread_pool_lanes_table_)/sizeof(CIAO::Static_Config::ThreadPoolLanesAttributes);</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> +int priority_band_table_size=</span><br style="font-family: monospace;"> +<span style="font-family: monospace;"> +sizeof(priority_band_table_)/sizeof(CIAO::Static_Config::PriorityBandsAttributes);</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> +int policy_set_table_size=</span><br style="font-family: monospace;"> +<span style="font-family: monospace;"> +sizeof(policy_set_table_)/sizeof(CIAO::Static_Config::PolicySetAttributes);</span><br + style="font-family: monospace;"> +<br style="font-family: monospace;"> +<span style="font-family: monospace;"> +CIAO::HOMECREATOR_FUNCPTR_MAP home_creator_fptr_map;</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> +CIAO::HOMESERVANTCREATOR_FUNCPTR_MAP homesvnt_creator_fptr_map;</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> +CIAO::Static_Config_EntryPoints_Maps maps;</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> +maps.home_creator_funcptr_map_ = &home_creator_fptr_map;</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> +maps.home_servant_creator_funcptr_map_ = &homesvnt_creator_fptr_map;</span><br + style="font-family: monospace;"> +<br style="font-family: monospace;"> +<span style="font-family: monospace;"> +int i=0;</span><br style="font-family: monospace;"> +<span style="font-family: monospace;"> +for (i=0; i<homes_table_size; ++i)</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> +{</span><br style="font-family: monospace;"> +<span style="font-family: monospace;"> +home_creator_fptr_map.bind (homes_table_[i].executor_entrypt_,</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> +homes_table_[i].executor_fptr_);</span><br + style="font-family: monospace;"> +<br style="font-family: monospace;"> +<span style="font-family: monospace;"> +homesvnt_creator_fptr_map.bind (homes_table_[i].servant_entrypt_,</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> +homes_table_[i].servant_fptr_);</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> +}</span><br style="font-family: monospace;"> +<br style="font-family: monospace;"> +<span style="font-family: monospace;"> +ACE_NEW_RETURN (comserv_servant,</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> +CIAO::RTServer::RTComponentServer_Impl (orb.in (),</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> +rt_orb.in (),</span><br style="font-family: monospace;"> +<span style="font-family: monospace;"> +root_poa.in (),</span><br style="font-family: monospace;"> +<span style="font-family: monospace;"> +1, </span><br style="font-family: monospace;"> +<span style="font-family: monospace;"> +&maps), </span><br style="font-family: monospace;"> +<span style="font-family: monospace;"> +-1);</span><br style="font-family: monospace;"> +<br style="font-family: monospace;"> +<span style="font-family: monospace;"> +PortableServer::ServantBase_var safe_servant +(comserv_servant); </span><br + style="font-family: monospace;"> +<br style="font-family: monospace;"> +<span style="font-family: monospace;"> +Components::ConfigValues configs;</span><br + style="font-family: monospace;"> +<br style="font-family: monospace;"> +<span style="font-family: monospace;"> +<span style="color: rgb(255, 0, 0);"><a name="rtconfig"></a>configurator.config_rt_info(configs, +</span></span><br style="font-family: monospace; color: rgb(255, 0, 0);"> +<span style="font-family: monospace; color: rgb(255, 0, 0);"> +thread_pool_table_, </span><br + style="font-family: monospace; color: rgb(255, 0, 0);"> +<span style="font-family: monospace; color: rgb(255, 0, 0);"> +thread_pool_table_size,</span><br + style="font-family: monospace; color: rgb(255, 0, 0);"> +<span style="font-family: monospace; color: rgb(255, 0, 0);"> +lane_table_,</span><br + style="font-family: monospace; color: rgb(255, 0, 0);"> +<span style="font-family: monospace; color: rgb(255, 0, 0);"> +thread_pool_lanes_table_,</span><br + style="font-family: monospace; color: rgb(255, 0, 0);"> +<span style="font-family: monospace; color: rgb(255, 0, 0);"> +thread_pool_lanes_table_size,</span><br + style="font-family: monospace; color: rgb(255, 0, 0);"> +<span style="font-family: monospace; color: rgb(255, 0, 0);"> +band_table_,</span><br + style="font-family: monospace; color: rgb(255, 0, 0);"> +<span style="font-family: monospace; color: rgb(255, 0, 0);"> +priority_band_table_,</span><br + style="font-family: monospace; color: rgb(255, 0, 0);"> +<span style="font-family: monospace; color: rgb(255, 0, 0);"> +priority_band_table_size,</span><br + style="font-family: monospace; color: rgb(255, 0, 0);"> +<span style="font-family: monospace; color: rgb(255, 0, 0);"> +policy_config_table_,</span><br + style="font-family: monospace; color: rgb(255, 0, 0);"> +<span style="font-family: monospace; color: rgb(255, 0, 0);"> +policy_set_table_,</span><br + style="font-family: monospace; color: rgb(255, 0, 0);"> +<span style="font-family: monospace; color: rgb(255, 0, 0);"> +policy_set_table_size);</span><br + style="font-family: monospace; color: rgb(255, 0, 0);"> +<br style="font-family: monospace;"> +<span style="font-family: monospace;"> +comserv_servant->init (configs</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> +ACE_ENV_ARG_PARAMETER);</span><br style="font-family: monospace;"> +<span style="font-family: monospace;"> +ACE_TRY_CHECK;</span><br style="font-family: monospace;"> +<span style="font-family: monospace;"> // +Configuring ComponentServer.</span><br style="font-family: monospace;"> +<span style="font-family: monospace;"> +PortableServer::ObjectId_var cs_oid</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> += root_poa->activate_object (comserv_servant</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> +ACE_ENV_ARG_PARAMETER);</span><br style="font-family: monospace;"> +<span style="font-family: monospace;"> +ACE_TRY_CHECK; </span><br style="font-family: monospace;"> +<br style="font-family: monospace;"> +<span style="font-family: monospace;"> object = +root_poa->id_to_reference (cs_oid.in ()</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> +ACE_ENV_ARG_PARAMETER);</span><br style="font-family: monospace;"> +<span style="font-family: monospace;"> +ACE_TRY_CHECK;</span><br style="font-family: monospace;"> +<br style="font-family: monospace;"> +<span style="font-family: monospace;"> +Components::Deployment::ComponentServer_var comserv_obj =</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> +Components::Deployment::ComponentServer::_narrow (object.in ()</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> +ACE_ENV_ARG_PARAMETER);</span><br style="font-family: monospace;"> +<span style="font-family: monospace;"> +ACE_TRY_CHECK;</span><br style="font-family: monospace;"> +<br style="font-family: monospace;"> +<span style="font-family: monospace;"> if +(CORBA::is_nil (comserv_obj.in ()))</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> +ACE_ERROR_RETURN ((LM_ERROR,</span><br style="font-family: monospace;"> +<span style="font-family: monospace;"> +"Unable to activate RTComponentServer object\n"),</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> +-1);</span><br style="font-family: monospace;"> +<br style="font-family: monospace;"> +<span style="font-family: monospace;"> +Components::Deployment::ServerActivator_var activator;</span><br + style="font-family: monospace;"> +<br style="font-family: monospace;"> +<span style="font-family: monospace;"> // +We are just storing the original configuration here.</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> // +Currently, we don't really use this ConfigValues direclty.</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> +Components::ConfigValues_var more_config = new Components::ConfigValues;</span><br + style="font-family: monospace;"> +<br style="font-family: monospace;"> +<span style="font-family: monospace;"> +comserv_servant->set_objref (activator.in (),</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> +more_config.in (),</span><br style="font-family: monospace;"> +<span style="font-family: monospace;"> +comserv_obj.in ()</span><br style="font-family: monospace;"> +<span style="font-family: monospace;"> +ACE_ENV_ARG_PARAMETER);</span><br style="font-family: monospace;"> +<br style="font-family: monospace;"> +<span style="font-family: monospace;"> +ACE_TRY_CHECK;</span><br style="font-family: monospace;"> +<br style="font-family: monospace;"> +<span style="font-family: monospace;"> +<a name="static_config_engine"></a><span style="color: rgb(255, 0, 0);">configurator.configure +(orb.in (),</span></span><br + style="font-family: monospace; color: rgb(255, 0, 0);"> +<span style="font-family: monospace; color: rgb(255, 0, 0);"> +comserv_obj.in (),</span><br + style="font-family: monospace; color: rgb(255, 0, 0);"> +<span style="font-family: monospace; color: rgb(255, 0, 0);"> +containers_table_,</span><br + style="font-family: monospace; color: rgb(255, 0, 0);"> +<span style="font-family: monospace; color: rgb(255, 0, 0);"> +containers_table_size,</span><br + style="font-family: monospace; color: rgb(255, 0, 0);"> +<span style="font-family: monospace; color: rgb(255, 0, 0);"> +homes_table_,</span><br + style="font-family: monospace; color: rgb(255, 0, 0);"> +<span style="font-family: monospace; color: rgb(255, 0, 0);"> +homes_table_size,</span><br + style="font-family: monospace; color: rgb(255, 0, 0);"> +<span style="font-family: monospace; color: rgb(255, 0, 0);"> +components_table_,</span><br + style="font-family: monospace; color: rgb(255, 0, 0);"> +<span style="font-family: monospace; color: rgb(255, 0, 0);"> +components_table_size,</span><br + style="font-family: monospace; color: rgb(255, 0, 0);"> +<span style="font-family: monospace; color: rgb(255, 0, 0);"> +component_registrations_table_,</span><br + style="font-family: monospace; color: rgb(255, 0, 0);"> +<span style="font-family: monospace; color: rgb(255, 0, 0);"> +component_registrations_table_size,</span><br + style="font-family: monospace; color: rgb(255, 0, 0);"> +<span style="font-family: monospace; color: rgb(255, 0, 0);"> +connections_table_,</span><br + style="font-family: monospace; color: rgb(255, 0, 0);"> +<span style="font-family: monospace; color: rgb(255, 0, 0);"> +connections_table_size,</span><br + style="font-family: monospace; color: rgb(255, 0, 0);"> +<span style="font-family: monospace; color: rgb(255, 0, 0);"> +resolvers_table_,</span><br + style="font-family: monospace; color: rgb(255, 0, 0);"> +<span style="font-family: monospace; color: rgb(255, 0, 0);"> +resolvers_table_size);</span><br style="font-family: monospace;"> +<br style="font-family: monospace;"> +<span style="font-family: monospace;"> +CORBA::String_var str = orb->object_to_string (comserv_obj.in ()</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> +ACE_ENV_ARG_PARAMETER);</span><br style="font-family: monospace;"> +<br style="font-family: monospace;"> +<span style="font-family: monospace;"> +CIAO::Utility::write_IOR (ior_file_name_, str.in ());</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> +ACE_DEBUG ((LM_INFO, "RTComponentServer IOR: %s\n", str.in ()));</span><br + style="font-family: monospace;"> +<br style="font-family: monospace;"> +<span style="font-family: monospace;"> +ACE_DEBUG ((LM_DEBUG,</span><br style="font-family: monospace;"> +<span style="font-family: monospace;"> +"Running RTComponentServer...\n"));</span><br + style="font-family: monospace;"> +</p> +<p><b><tt><font color="#990000"> +CORBA::Object_var +pulser_obj</font></tt></b> +<br> +<b><tt><font color="#990000"> += orb->string_to_object ("file://ec.ior"</font></tt></b> +<br> +<b><tt><font color="#990000"> +ACE_ENV_ARG_PARAMETER);</font></tt></b> +<br> +<b><tt><font color="#990000"> +ACE_TRY_CHECK;</font></tt></b> +</p> +<p><b><tt><font color="#990000"> +BasicSP::EC_var +pulser</font></tt></b> +<br> +<b><tt><font color="#990000"> += BasicSP::EC::_narrow (pulser_obj.in ()</font></tt></b> +<br> +<b><tt><font color="#990000"> +ACE_ENV_ARG_PARAMETER);</font></tt></b> +<br> +<b><tt><font color="#990000"> +ACE_TRY_CHECK;</font></tt></b> +</p> +<p><b><tt><font color="#990000"> if +(CORBA::is_nil +(pulser.in ()))</font></tt></b> +<br> +<b><tt><font color="#990000"> +ACE_ERROR_RETURN ((LM_ERROR, "Unable to acquire 'EC' objref\n"), -1);</font></tt></b> +</p> +<p><b><tt><font color="#990000"> +pulser->hertz +(rate</font></tt></b> +<br> +<b><tt><font color="#990000"> +ACE_ENV_ARG_PARAMETER);</font></tt></b> +<br> +<b><tt><font color="#990000"> +ACE_TRY_CHECK;</font></tt></b> +</p> +<p><b><tt><font color="#990000"> +ACE_DEBUG +((LM_DEBUG, "Start up the Event services\n"));</font></tt></b> +</p> +<p><b><tt><font color="#990000"> +pulser->start +(ACE_ENV_SINGLE_ARG_PARAMETER);</font></tt></b> +<br> +<b><tt><font color="#990000"> +ACE_TRY_CHECK;</font></tt></b> +</p> +<p><br style="font-family: monospace;"> +<span style="font-family: monospace;"> // +Run the main event loop for the ORB.</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> +orb->run (ACE_ENV_SINGLE_ARG_PARAMETER);</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> +ACE_TRY_CHECK</span><br style="font-family: monospace;"> +<span style="font-family: monospace;"> }</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> ACE_CATCHANY</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> {</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> +ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> +"server::main \n");</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> +return 1;</span><br style="font-family: monospace;"> +<span style="font-family: monospace;"> }</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> ACE_ENDTRY;</span><br + style="font-family: monospace;"> +<br style="font-family: monospace;"> +<span style="font-family: monospace;"> return 0;</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;">}</span><br> +<tt></tt></p> +<a name="Modified Static_CCM_App.mpc"></a><b><u>Modified +Static_CCM_App.mpc</u></b> +<br> +<small><span style="font-weight: bold;"><br> +(Highlighted files are manually added to the generated mpc file)</span></small><br> +<tt></tt><span style="font-family: monospace;"><br> +project(Static_CCM_App) : ciao_server, ciao_client, rtcorba, +rtportableserver, iortable, acexml{</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;">includes += +$(ACE_ROOT)/TAO/CIAO/tools/Assembly_Deployer</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;">includes += +$(ACE_ROOT)/TAO/CIAO/tools/static_configurator</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;">includes += +$(ACE_ROOT)/TAO/CIAO/tools/RTComponentServer</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;">libs += RTComponent_Server +CIAO_XML_Helpers Static_Configurator</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;">after += RTComponent_Server +CIAO_XML_Helpers Static_Configurator</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> </span><br + style="font-family: monospace;"> +<span + style="font-family: monospace; color: rgb(153, 0, 0); font-weight: bold;">libs ++= BasicSP_stub BasicSP_svnt</span><br + style="font-family: monospace; color: rgb(153, 0, 0); font-weight: bold;"> +<span + style="font-family: monospace; color: rgb(153, 0, 0); font-weight: bold;">after ++= BasicSP_stub BasicSP_svnt</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;">libs += EC_exec</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;">after += EC_exec</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;">libs += EC_svnt <span + style="font-weight: bold; color: rgb(153, 0, 0);">EC_stub</span></span><br + style="font-family: monospace; font-weight: bold; color: rgb(153, 0, 0);"> +<span style="font-family: monospace;">after += EC_svnt<span + style="font-weight: bold; color: rgb(153, 0, 0);"> EC_stub</span></span><br + style="font-family: monospace;"> +<span style="font-family: monospace;">libs += BMDevice_exec</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;">after += BMDevice_exec</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;">libs += BMDevice_svnt <span + style="font-weight: bold; color: rgb(153, 0, 0);">BMDevice_stub</span></span><br + style="font-family: monospace;"> +<span style="font-family: monospace;">after += BMDevice_svnt <span + style="font-weight: bold; color: rgb(153, 0, 0);">BMDevice_stub</span></span><br + style="font-family: monospace;"> +<span style="font-family: monospace;">libs += BMClosedED_exec</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;">after += BMClosedED_exec</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;">libs += BMClosedED_svnt <span + style="font-weight: bold; color: rgb(153, 0, 0);">BMClosedED_stub</span></span><br + style="font-family: monospace;"> +<span style="font-family: monospace;">after += BMClosedED_svnt <span + style="font-weight: bold; color: rgb(153, 0, 0);">BMClosedED_stub</span></span><br + style="font-family: monospace;"> +<span style="font-family: monospace;">libs += BMDisplay_exec</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;">after += BMDisplay_exec</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;">libs += BMDisplay_svnt <span + style="font-weight: bold; color: rgb(153, 0, 0);">BMDisplay_stub</span></span><br + style="font-family: monospace;"> +<span style="font-family: monospace;">after += BMDisplay_svnt <span + style="font-weight: bold; color: rgb(153, 0, 0);">BMDisplay_stub</span></span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> </span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> Source_Files {</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> +Static_CCM_App.cpp</span><br style="font-family: monospace;"> +<span style="font-family: monospace;"> }</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> </span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> IDL_Files {</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> }</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;">}</span><br> +<br> +</body> +</html> diff --git a/modules/CIAO/docs/static_dance.html b/modules/CIAO/docs/static_dance.html new file mode 100644 index 00000000000..3bd6433e133 --- /dev/null +++ b/modules/CIAO/docs/static_dance.html @@ -0,0 +1,214 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> +<html> +<head> + <meta http-equiv="CONTENT-TYPE" content="text/html; charset=utf-8"> + <title></title> +<!-- $Id$ --> + <meta name="GENERATOR" content="OpenOffice.org 1.1.2 (Linux)"> + <meta name="CREATED" content="20041128;11452700"> + <meta name="CHANGED" content="20041210;11524200"> + <style> + <!-- + @page { size: 8.5in 11in; margin-left: 1.25in; margin-right: 1.25in; margin-top: 1in; margin-bottom: 1in } + P { margin-bottom: 0.08in } + H2.western { font-family: "Times New Roman", serif } + H2.cjk { font-family: "Arial Unicode MS" } + H2.ctl { font-family: "Tahoma" } + H3.western { font-family: "Times New Roman", serif } + H3.cjk { font-family: "Arial Unicode MS" } + H3.ctl { font-family: "Tahoma" } + --> + </style> +</head> +<body dir="ltr" lang="en-US"> +<h2 class="western" align="center">CIAO Static Configuration Support +with DanCE for Real-Time Platforms </h2> +<h3 class="western">1. Introduction</h3> +<p>The dynamic packaging, assembly, and deployment mechanisms +currently available in CIAO are useful for application domains where +component metadata is less likely to be known a priori, where +implementation upgrades may need to be performed on-line, and where +platform features like loading and unloading dynamic libraries are +both available and useful. We have already incorporated <a + href="http://www.cs.wustl.edu/%7Eschmidt/ACE_wrappers/TAO/CIAO/docs/static_ciao_index.html">static +configuration support</a> for component configuration in CIAO on +platforms like VxWorks, as a set of optional strategies and +optimizations to the existing CIAO configuration capabilities (). In +this white paper, we discuss implementation details for extending the +static configuration capabilities as part of the new DanCE (D&C +support available with CIAO) framework.</p> +<p>The fundamental intuition in understanding our approach is that in +DRE systems the stages of the overall system lifecycle are similar to +those in more dynamic conventional component-oriented client-server +applications.However, in DRE systems several phases of the system +lifecycle are compressed into the compile-time and +system-initialization phases, so that (1) for testing and +verification purposes the set of components in an application can be +identified and analyzed before run-time, and (2) overheads for +run-time operation following initialization are reduced and made more +predictable. Furthermore, due to the nuances of the platforms +traditionally used for deploying DRE systems, not all features of +conventional platforms are available. Our approach therefore avoids +certain mechanisms that are either unavailable or too costly in terms +of performance. We follow these intuitions in our approach, taking +the existing configuration phases in CIAO and pushing several of them +earlier in the configuration lifecycle.</p> +<h3 class="western">2. Current D&C in CIAO with DanCE</h3> +<p><img src="imgs/dance_arch.jpg" name="Graphic2" + style="border: 0px solid ; width: 600px; height: 400px;" alt="" + align="left"><br> +</p> +<p><br> +</p> +<p><br> +</p> +<p><br> +</p> +<p><br> +</p> +<p><br> +</p> +<p><br> +</p> +<p><br> +</p> +<p><br> +</p> +<p><br> +</p> +<p><br> +</p> +<p><br><b>Figure 1.</b> <b>Current D&C process using DAnCE</b></p> +One of the key concerns while supporting the static configuration +within the DAnCE framework is to reuse the existing components in the +DAnCE framework as much as possible. Figure 1 shows the current D&C +process using the DAnCE framework. This is the standard D&C +process as specified in the CCM D&C specification.As seen from +the figure, there are multiple processes (Executor, ExecutionManager, +NodeManagers and NodeApplications) that are involved. +<h3 class="western">3. Static Configuration with DanCE</h3> +<p><img src="imgs/static_dance_arch.jpg" name="Graphic3" + style="border: 0px solid ; width: 800px; height: 800px;" alt="" + align="left"><br> +</p> +<p><br> +</p> +<p><br> +</p> +<p><br> +</p> +<p><br> +</p> +<p><br> +</p> +<p><br> +</p> +<p><br> +</p> +<p><br> +</p> +<p><br> +</p> +<p><br> +</p> +<p><br> +</p> +<p><br> +</p> +<p><br> +</p> +<p><br> +</p> +<p><br> +</p> +<p><br> +</p> +<p><br> +</p> +</p> +<p><br> +</p> +<p><br> +</p> +<p><br> +</p> +<p><br> +</p> +<p><br> +</p> +<p><br><b>Figure 2.</b> <b>Static D&C in DAnCE</b></p> +<p>Figure 2 shows the static configuration approach in DAnCE. Here, +the flattened deployment plan (.cdp) is parsed offline by an offline +parser ($CIAO_ROOT/StaticConfigurator/StaticDAnCEParser) using the +same XML parser classes that the dynamic configuration uses. The +output of the parser is a C++ plan.h file, which contains the function +entry points for home and home servant creation. The assumption here +is that all the necessary (component implementations and other) +libraries are statically linked to the driver application (see a +template in +$CIAO_ROOT/DAnCE/StaticConfigurator/StaticDAnCEApp.cpp.tmpl). </p> +<p>The driver application is essentially a NodeManager which can be +used to do deployment just the same as in DAnCE. To achieve maximum +reusability of the existing classes in the DAnCE framework, we use +the class hierarchy shown in Figure 3. </p> +<br> +<b></b> +<p style="page-break-before: always;" align="left"><img + src="imgs/static_dance_impl.jpg" name="Graphic1" + style="border: 0px solid ; width: 700px; height: 700px;" alt="" + align="left"><br clear="left"> +<b>Figure 3. New class hierarchy to accommodate static configuration +within DAnCE<br> +</b></p> +<h3 class="western">3.Example</h3> +<p>To run the static version of Hello example, do the following,<br> +</p> +<ol> + <li>Build ACE+TAO+CIAO statically</li> + <li>Build $CIAO_ROOT/examples/Hello </li> + <li>Generate the static function entrypoints (plan.h)<br> + <span style="font-family: monospace;">> cd +$CIAO_ROOT/examples/Hello/descriptors</span><span + style="font-family: monospace;"><br> +> <span style="font-family: "times new roman",serif;"><span + style="font-weight: bold;"></span></span>$CIAO_ROOT/DAnCE/StaticConfigurator/StaticDAnCEParser +-p flattened_deploymentplan_without_ns.cdp</span><br> + <span style="font-family: monospace;">> cp plan.h <span + style="font-weight: bold;"></span>$CIAO_ROOT/DAnCE/StaticConfigurator/</span><br> + </li> + <li>Build the static NodeManager for Hello example<span + style="font-family: monospace;"><br> +> cd $CIAO_ROOT/DAnCE/StaticConfigurator</span><br + style="font-family: monospace;"> + <span style="font-family: monospace;"></span><span + style="font-family: monospace;">> cp StaticDAnCEApp.cpp.tmpl +StaticDAnCEApp.cpp</span><br style="font-family: monospace;"> + <span style="font-family: monospace;">> cp +StaticDAnCEApp.mpc.tmpl StaticDAnCEApp.mpc<br> +> $ACE_ROOT/bin/mwc.pl<br> +> make<br> + </span></li> + <li>Run the static node managers. Note that the <span + style="font-family: monospace;">ORBEndpoint</span> values should +correspond to the ones in <span style="font-family: monospace;"> +$CIAO_ROOT/examples/Hello/descriptors/TestNodeManagerMap.dat </span><br> +> <span style="font-family: monospace;">cd +$CIAO_ROOT/DAnCE/StaticConfigurator<br> +> ./StaticDAnCEApp -ORBEndpoint iiop://localhost:60001 &<br> + </span><span style="font-family: monospace;">> ./StaticDAnCEApp +-ORBEndpoint iiop://localhost:60002 &</span><br> + </li> + <li>Do the deployment. This is just the same as the non-static +version of DAnCE except that we have the NodeManagers already running +and need not spawn node managers. To accomplish this, change <span + style="font-family: monospace;">$CIAO_ROOT/examples/Hello/descriptors/run_test_without_ns.pl +to <span style="font-weight: bold;">*not*</span> run the node manager +daemons.<br> + </span><span style="font-family: monospace;">> cd +$CIAO_ROOT/examples/Hello/descriptors<br> +> ./</span><span style="font-family: monospace;">run_test_without_ns.pl</span></li> +</ol> +<br> +<p></p> +</body> +</html> diff --git a/modules/CIAO/docs/tutorials/Quoter/Simple/01.html b/modules/CIAO/docs/tutorials/Quoter/Simple/01.html new file mode 100644 index 00000000000..379d2653444 --- /dev/null +++ b/modules/CIAO/docs/tutorials/Quoter/Simple/01.html @@ -0,0 +1,375 @@ +<!-- $Id$ --> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> + <title>Getting Started</title> + <meta http-equiv="Content-Type" content= + "text/html; charset=us-ascii" /> + <style type="text/css"> +/*<![CDATA[*/ + <!-- + @font-face { + font-family:Tahoma; + panose-1:2 11 6 4 3 5 4 4 2 4; + } + h3 { + font-size:13.5pt; + font-family:"Times New Roman"; + font-weight:bold; + } + a:link, span.MsoHyperlink { + color:#000FFF; + text-decoration:underline; + text-underline:single; + } + a:visited, span.MsoHyperlinkFollowed { + color:#FF0F0F; + text-decoration:underline; + text-underline:single; + } + p { + font-size:12.0pt; + font-family:"Times New Roman"; + } + address { + font-size:12.0pt; + font-family:"Times New Roman"; + font-style:italic; + } + code { + font-family:"Courier New"; + } + p.MsoAcetate, li.MsoAcetate, div.MsoAcetate { + font-size:8.0pt; + font-family:Tahoma; + } + div.Section1 { + page:Section1 + } + --> + /*]]>*/ + </style><!-- 01.html,v 1.3 2006/02/10 14:34:35 mxiong Exp --> + + <style type="text/css"> +/*<![CDATA[*/ + body { + background-color: #FFFFFF; + } + :link { color: #000FFF } + :visited { color: #FF0F0F } + address.c50 {LINE-HEIGHT: 150%} + address.c49 {LINE-HEIGHT:150%} + div.c48 {LINE-HEIGHT: 150%; TEXT-ALIGN: center; text-align: center} + hr.c47 {text-align: center} + p.c46 {LINE-HEIGHT: 150%; TEXT-ALIGN: center; text-align: center} + p.c45 {LINE-HEIGHT:150%} + p.c44 {MARGIN-LEFT:1.75in;TEXT-INDENT:-0.75in;LINE-HEIGHT:150%;} + p.c43 {MARGIN-LEFT:0.5in;TEXT-INDENT:1.25in;LINE-HEIGHT:150%} + span.c42 {COLOR:black; FONT-FAMILY:'Courier New'} + span.c41 {LINE-HEIGHT:150%;FONT-FAMILY:'Times New Roman';} + p.c40 {LINE-HEIGHT: 150%; TEXT-INDENT: 0.5in; font-weight: bold} + p.c39 {MARGIN-LEFT: 1.25in; TEXT-INDENT: -0.25in; LINE-HEIGHT: 150%;} + span.c38 {COLOR: black; FONT-FAMILY: 'Courier New';} + span.c37 {FONT-SIZE: 10pt; COLOR: black; LINE-HEIGHT: 150%} + span.c36 {COLOR: black; FONT-FAMILY: Symbol;} + span.c35 {FONT: 7pt 'Times New Roman'} + p.c34 {MARGIN-LEFT:1.5in;LINE-HEIGHT:150%} + p.c33 {MARGIN-LEFT: 1.25in; LINE-HEIGHT: 150%} + span.c32 {COLOR: black;} + p.c31 {MARGIN-LEFT:1.25in;LINE-HEIGHT:150%} + span.c30 {font-family: Times New Roman} + span.c29 {font-family: Courier; font-size: 80%} + p.c28 {MARGIN-LEFT: 0.5in; TEXT-INDENT: 1.25in; LINE-HEIGHT: 150%} + span.c27 {COLOR: black; FONT-FAMILY: 'Courier New'} + p.c26 {MARGIN-LEFT:1.25in;TEXT-INDENT:-0.25in;LINE-HEIGHT:150%;} + span.c25 {FONT-SIZE: 10pt;COLOR: black;LINE-HEIGHT: 150%} + span.c24 {COLOR:black;LINE-HEIGHT:150%;FONT-FAMILY:'Times New Roman';} + span.c23 {FONT-SIZE:10pt; COLOR:black; LINE-HEIGHT:150%} + p.c22 {TEXT-INDENT:0.5in;LINE-HEIGHT:150%} + p.c21 {MARGIN-LEFT:0.75in;LINE-HEIGHT:150%} + span.c20 {COLOR:black;} + p.c19 {MARGIN-LEFT:0.5in;TEXT-INDENT:0.5in;LINE-HEIGHT:150%} + span.c18 {COLOR:black; FONT-FAMILY:'Courier New';} + p.c17 {MARGIN-LEFT:0.75in;TEXT-INDENT:-0.25in;LINE-HEIGHT:150%;} + span.c16 {FONT-SIZE:10pt;COLOR:black;LINE-HEIGHT:150%} + span.c15 {COLOR:black;FONT-FAMILY:Symbol;} + p.c14 {LINE-HEIGHT: 150%; font-weight: bold} + h3.c13 {MARGIN:0in 0in 0pt 1.5in; TEXT-INDENT:-0.25in; LINE-HEIGHT:150%;} + span.c12 {FONT-WEIGHT:normal; FONT-SIZE:12pt; COLOR:black; LINE-HEIGHT:150%;} + h3.c11 {MARGIN:0in 0in 0pt 0.75in; TEXT-INDENT:-0.25in; LINE-HEIGHT:150%;} + span.c10 {FONT-WEIGHT:normal; FONT-SIZE:12pt; COLOR:black; LINE-HEIGHT:150%; FONT-FAMILY:Symbol;} + h3.c9 {MARGIN:0in 0in 0pt; TEXT-INDENT:0.5in; LINE-HEIGHT:150%} + span.c8 {FONT-SIZE:12pt;COLOR:black;LINE-HEIGHT:150%} + p.c7 {MARGIN:0in 0in 0pt 0.75in; TEXT-INDENT:-0.25in; LINE-HEIGHT:150%;} + span.c6 {FONT-FAMILY:Symbol;} + span.c5 {FONT:7pt 'Times New Roman'} + span.c4 {FONT-WEIGHT:normal;FONT-SIZE:12pt;COLOR:black;LINE-HEIGHT:150%;} + h3.c3 {MARGIN:0in 0in 0pt; LINE-HEIGHT:150%} + h3.c2 {LINE-HEIGHT: 150%; MARGIN: 0in 0in 0pt; TEXT-ALIGN: center; text-align: center} + span.c1 {COLOR:black} + /*]]>*/ + </style> +</head> + +<body lang="EN-US" xml:lang="EN-US"> + <h3 class="Section1 c2"><span class='c1'>Step 1: Define your + interfaces and component types</span></h3> + + <h3 class="Section1 c2"><span class='c1'><img width="447" height= + "350" id="_x0000_i1025" src="images/step1.jpg" name= + "_x0000_i1025" /></span></h3> + + <h3 class="Section1 c3"><span class='c1'> </span></h3> + + <h3 class="Section1 c3"><span class='c4'>Please make sure to read + the following article to under the Stock Quoter system + architecture before delving further into the + tutorial:</span></h3> + + <p class="Section1 c7"><span class='c6'>·<span class= + "c5"> </span></span> <a href= + "http://www.cuj.com/documents/s=9152/cujexp0404vinoski/">The + CORBA Component Model, Part 2: Defining Components with the IDL + 3.x Types</a></p> + + <h3 class="Section1 c3"><span class='c4'> </span></h3> + + <h3 class="Section1 c3"><span class='c8'>Directory + Structure:</span></h3> + + <h3 class="Section1 c3"><span class='c4'>The tutorial relies on + the following directory structure. Create Quoter and all its + subdirectories as shown below. We will describe the purpose of + these directories later in the tutorial.</span></h3> + + <h3 class="Section1 c9"><span class='c4'>Quoter</span></h3> + + <h3 class="Section1 c3"><span class= + 'c4'> + |---- descriptors</span></h3> + + <h3 class="Section1 c3"><span class= + 'c4'> + |---- Stock_Base</span></h3> + + <h3 class="Section1 c3"><span class= + 'c4'> + |---- Distributor</span></h3> + + <h3 class="Section1 c3"><span class= + 'c4'> + |---- Broker</span></h3> + + <h3 class="Section1 c3"><span class='c4'> </span></h3> + + <h3 class="Section1 c3"><span class= + 'c8'>Preliminaries:</span></h3> + + <h3 class="Section1 c11"><span class='c10'>·<span class= + "c5"> </span></span> + <span class='c4'>We use the Make Project Creator (MPC) throughout + this tutorial. Understanding MPC will aid you in understanding + this tutorial. For more information on MPC please look at the + following:</span></h3> + + <h3 class="Section1 c13"><span class='c12'>1.<span class= + "c5"> </span></span> <span class='c4'>MPC + <a href= + "../../../../../../MPC/docs/MakeProjectCreator.pdf">Chapter</a>.</span></h3> + + <h3 class="Section1 c13"><span class='c12'>2.<span class= + "c5"> </span></span> <span class= + 'c4'>$ACE_ROOT/MPC/README</span></h3> + + <p class='c14'><span class='c1'>Interface Design:</span></p> + + <p class='c17'><span class='c15'>·<span class= + "c5"> </span></span> + <span class='c1'>In the <i>Quoter/Stock_Base</i> sub-directory, + place an idl file</span> <code><i><span class= + 'c16'>Stock_Base.idl</span></i></code> <span class='c1'>that you + could copy from <a href="Stock_Base/Stock_Base.idl">here</a> . + This file defines the interfaces and events that will be used by + both StockDistributor and StockBroker components. We put together + the common interface definitions so the base library can be + shared by both components, reducing the footprint of "real" + components.</span></p> + + <p class='c17'><span class='c15'>·<span class= + "c5"> </span></span> + <span class='c1'>Next, we need to create a Make Project Creator + (MPC) file to generate the make files for us. From the + <i>Quoter/Stock_Base</i> subdirectory, type the following + command:</span></p> + + <p class='c19'><span class="c18">generate_component_mpc.pl + –n Stock_Base</span></p> + + <p class='c21'><span class='c20'>The command above will generate + a <i>Stock_Base.mpc</i> file that contains two projects + <i>Stock_Base_stub</i> and <i>Stock_Base_skel</i> for the Stub + and Servant code respectively. The MPC file should look like + <a href="Stock_Base/Stock_Base.mpc">this</a>.<br/> + Mind that "libout" and "libpaths" are added. This is done to make + the compilation of this example easier and at runtime, all deliveralbes + are in one directory. Beware that you need to add this + directory to your system path when running the executables (see page 4). + </span></p> + + <p class='c14'><span class='c1'>Component Design:</span></p> + + <p class='c22'><b><span class= + 'c1'>Distributor:</span></b><span class= + 'c1'> </span></p> + + <p class='c26'><span class='c15'>·<span class= + "c5"> </span></span> + <span class='c1'>In the</span> <code><i><span class= + 'c23'>Quoter/Distributor</span></i></code> <code><span class= + "c24">sub-directory</span></code><span class='c1'>, place an idl + file</span> <code><i><span class= + 'c25'>StockDistributor.idl</span></i></code> <span class= + 'c1'>that looks like <a href= + "Distributor/StockDistributor.idl">this</a>. This file defines + the StockDistributor component interfaces.</span></p> + + <p class='c26'><span class='c15'>·<span class= + "c5"> </span></span> + <span class='c1'>Next, we need to create a Make Project Creator + (MPC) file to generate the make files for us. From the + <i>Quoter/Distributor</i> <span> </span>sub-directory, type + the following command</span></p> + + <p class="c28"><span class="c27">generate_component_mpc.pl -p + Stock_Base -c StockDistributorDriver StockDistributor</span></p> + + <p class='c31'><span class='c20'>The command above takes a few + optional parameters. The -p option indicates that the <span class= + "c29">StockDistributor</span> component has a dependency on + <span class="c29">Stock_Base</span>, the -c option + causes the script to generate MPC files for a simple driver + program. In this tutorial, we use a simple driver program to + demonstrate how a non-CCM applications can interact with + component applications.</span></span></p> + + <p class="c33"><span class="c32">The command above will generate + a <i>StockDistributor.mpc</i> file that contains several + projects that will build the Stub, Servant, and Executor code + respectively. + <p class="c39">· + <span class="c32">Next we write a simple driver program + (<code><i><span class= + "c37">StockDistributorDriver.cpp)</span></i></code> that will + control the <span class="c29">StockDistributor</span> component. + The simple driver program controls when the <span class= + "c29">StockDistributor</span> component publishes stock quotes, + the rates of publication, and when publication of stock quotes + stops. The simple driver program should look + like </span><span class="c32"><a href= + "Distributor/StockDistributorDriver.cpp">this</a>.</span></span></p> + + <p class='c26'><span class='c15'>·<span class= + "c5"> </span></span> + <span class='c20'>The generated</span> <span class='c20'>MPC file + should look like <a href= + "Distributor/StockDistributor.mpc">this</a>. Both "libout" and "libpaths" + are added again. + </span></p> + + <p class='c40'><span class='c1'>Broker:</span></p> + + <p class='c26'><span class='c15'>·<span class= + "c5"> </span></span> + <span class='c1'>In the</span> <code><i><span class= + 'c23'>Quoter/Broker</span></i></code> <span class= + 'c1'><code><span class="c41">sub-directory,</span></code> place + an idl file</span> <code><i><span class= + 'c16'>StockBroker.id</span></i></code><code><span class= + 'c23'>l</span></code> <span class='c1'>that looks like <a href= + "Broker/StockBroker.idl">this</a>. This file defines the + StockBroker component interface.</span></p> + + <p class='c26'><span class='c15'>·<span class= + "c5"> </span></span> + <span class='c1'>Next, we need to create a Make Project Creator + (MPC) file to generate the make files for us. From the + <i>Quoter/Broker</i> sub-directory, type the following + command:</span></p> + + <p class='c43'><span class="c42"><span class= + "c27">generate_component_mpc.pl -p Stock_Base -c + StockBrokerDriver StockBroker</span></span></p> + + <p class='c31'><span class='c20'><span class="c32">The command + above takes a few optional parameter. The -p option states that + the <span class="c29">StockBroker</span> component has a + dependency on <span class="c29">Stock_Base<span class="c30">, the + -c option causes the script to generates make files for a simple + driver program. In this tutorial, we use a simple driver program + to demonstrate how a non-CCM applications can interact with + Components.</span></span></span></span></p> + + <p class="c33"><span class="c32"><span class="c32">The command + above will generate a <i>StockBroker.mpc</i> file that + contains several projects that will build the Stub, Servant, + and Executor code respectively. + + <p class="c39"><span class="c36">·<span class= + "c35"> </span></span> + <span class="c32">Next we write a simple driver program + (<code><i><span class= + "c37">StockBrokerDriver.cpp)</span></i></code> that would control + the <span class="c29">StockBroker</span> component. The simple + driver program controls what stocks the <span class= + "c29">StockBroker</span> component subscribes to. The simple + driver program should look like </span><span class= + "c32"><a href="Broker/StockBrokerDriver.cpp">this</a>.</span></p> + + <p class='c44'><span class='c15'>·<span class= + "c5"> </span></span> + <span class='c20'><span class="c32">The generated</span> + <span class="c32">MPC file should look like</span> <a href= + "Broker/StockBroker.mpc">this</a>. Both "libout" and "libpaths" + are added again.</span></p> + + <p class='c45'><span class='c1'><br /> + <b>Note:</b></span></p> + + <p class='c45'><span class='c1'>To understand the meaning of + different parameters passed to</span> <span class= + "c42">generate_component_mpc.pl</span><span class='c20'>click + <a href="../../../generate_component_mpc.html">here</a> or type + the</span> <span class='c1'>following command:</span></p> + + <p class='c45'><span class="c42">generate_component_mpc.pl + -h</span><span class='c1'><br /> + <br /></span></p> + + <p class='c46'><span class='c1'><a href= + "index.html">Previous</a> + <a href="02.html">Next</a></span></p> + + <div class='c48'> + <hr class="c47" size="2" width="100%" /> + </div> + + <div class="Section1"> + <address class='c49'> + <span class='c1'><a href= + "mailto:ming.xiong@vanderbilt.edu">Ming + Xiong<br /></a></span> <a href= + "mailto:abdullah.sowayan@lmco.com">Abdullah Sowayan</a> + </address> + + <address class="c50"> + + </address> + + <address class="c50"> + $Id$ + </address> + </div> +</body> +</html> diff --git a/modules/CIAO/docs/tutorials/Quoter/Simple/02.html b/modules/CIAO/docs/tutorials/Quoter/Simple/02.html new file mode 100644 index 00000000000..071398d657e --- /dev/null +++ b/modules/CIAO/docs/tutorials/Quoter/Simple/02.html @@ -0,0 +1,198 @@ +<!-- $Id$ --> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> + <meta name="generator" content= + "HTML Tidy for Mac OS X (vers 31 October 2006 - Apple Inc. build 13), see www.w3.org" /> + + <title>Getting Started</title> + <meta http-equiv="Content-Type" content= + "text/html; charset=us-ascii" /> + <style type="text/css"> +/*<![CDATA[*/ + <!-- + h3 { + font-size:13.5pt; + font-family:"Times New Roman"; + } + a:link, span.MsoHyperlink { + color:#000FFF; + text-decoration:underline; + text-underline:single; + } + a:visited, span.MsoHyperlinkFollowed { + color:#FF0F0F; + text-decoration:underline; + text-underline:single; + } + address { + font-size:12.0pt; + font-family:"Times New Roman"; + } + code { + font-family:"Courier New"; + } + div.Section1 { + page:Section1 + } + --> + /*]]>*/ + </style><!-- 01.html,v 1.3 2006/02/10 14:34:35 mxiong Exp --> + + <style type="text/css"> +/*<![CDATA[*/ + body { + background-color: #FFFFFF; + } + :link { color: #000FFF } + :visited { color: #FF0F0F } + div.c18 {TEXT-ALIGN: center; text-align: center} + hr.c17 {text-align: center} + p.c16 {TEXT-ALIGN: center; text-align: center} + p.c15 {MARGIN-BOTTOM:12pt} + span.c14 {COLOR: black} + p.c13 {LINE-HEIGHT:150%} + p.c12 {MARGIN:0in 0in 12pt 1.25in} + p.c11 {MARGIN:0in 0in 12pt 1.5in} + span.c10 {COLOR:black; FONT-FAMILY:'Courier New';} + p.c9 {MARGIN:0in 0in 12pt 1.25in;TEXT-INDENT:-0.25in;} + span.c8 {COLOR:black;} + span.c7 {COLOR:black;FONT-FAMILY:Symbol;} + span.c6 {FONT:7pt 'Times New Roman'} + p.c5 {MARGIN: 0in 0in 12pt 0.5in; font-weight: bold} + p.c4 {MARGIN-BOTTOM: 12pt; font-weight: bold} + h3.c3 {TEXT-ALIGN: center; text-align: center} + h3.c2 {LINE-HEIGHT: 150%; MARGIN: 0in 0in 0pt; TEXT-ALIGN: center; text-align: center} + span.c1 {COLOR:black} + /*]]>*/ + </style> +</head> + +<body lang="EN-US" xml:lang="EN-US"> + <div class="Section1"> + <h3 class='c2'><span class='c1'>Step 2: Implement your + components</span></h3> + + <h3 class='c3'><span class='c1'><img width="634" height="376" + id="_x0000_i1025" src="images/step2.jpg" name= + "_x0000_i1025" /></span></h3> + + <p class='c4'><span class='c1'>Generating the executor files:</span></p> + + <p class='c5'><span class='c1'>Distributor:</span></p> + + <p class='c9'><span class='c7'>·<span class= + "c6"> </span></span> + <span class='c8'>The MPC files we generated earlier + automatically invoke the TAO IDL compiler to generate the + servant and Component Implementation Framework (CIF) for us. To reduce the amount + of work and typing we need to do, we will next instruct the + TAO IDL compiler to generate an empty StockDistributor Executor + implementation (Object implementation in the figure above). In + the <i>Quoter/Distributor</i> sub-directory, type the + following:</span></p> + + <p class='c11'><span class="c10">tao_idl -I%TAO_ROOT% + -I%TAO_ROOT%/tao -I%CIAO_ROOT% -I%CIAO_ROOT%/ccm -I%CIAO_ROOT%/ciao + -Gex StockDistributor.idl</span></p> + + <p class='c12'><span class='c1'>The above command will generate + a <i>StockDistributor_exec.h</i> and + <i>StockDistributor_exec.cpp</i> files. These generated files + greatly reduced the amount of work we do. We’ll edit + those files later in the tutorial to insert our business logic + in the Distributor component.</span></p> + + <p class='c5'><span class='c1'>Broker:</span></p> + + <p class='c9'><span class='c7'>·<span class= + "c6"> </span></span> + <span class='c8'>The MPC files we generated earlier + automatically invoked the TAO IDL compiler to generate the + servants, and the CIF for us. To reduce the amount + of work and typing we need to do, we will next instruct the + TAO IDL compiler to generate an empty StockBroker Executor + implementation (Object implementation in the figure above). In + the <i>Quoter/Broker</i> sub-directory, type the + following:</span></p> + + <p class='c11'><span class="c10">tao_idl -I%TAO_ROOT% + -I%TAO_ROOT%/tao -I%CIAO_ROOT% -I%CIAO_ROOT%/ccm -I%CIAO_ROOT%/ciao + -Gex StockBroker.idl</span></p> + + <p class='c12'><span class='c1'>The above command will generate + a <i>StockBroker_exec.h</i> and <i>StockBroker_exec.cpp</i> + files. These generated files greatly reduced the amount of work + we do. We’ll edit those files later in the tutorial to + insert our business logic in the Broker component.</span></p> + + <p class='c13'><span class='c1'><br /> + <b>Note:</b></span></p> + + <p class='c13'><span class='c1'>To understand the meaning of + different parameters passed to the TAO IDL compiler, type the following + command:</span></p> + + <p class='c15'><span class="c10">tao_idl -?</span><span class= + 'c14'><br /> + <br /> + <br /></span></p> + + <p class='c4'><span class='c1'>Implement the + Components:</span></p> + + <p class='c5'><span class='c1'>Distributor:</span></p> + + <p class='c9'><span class='c7'>·<span class= + "c6"> </span></span> + <span class='c8'>The TAO IDL compiler generated an empty</span> + <i><span class='c1'>StockDistributor_exec.h</span></i> + <span class='c1'>and <i>StockDistributor_exec.cpp</i> files for + us. You should now add your business logic to the executors. + Look into <i><a href= + "Distributor/StockDistributor_exec.h">StockDistributor_exec.h</a></i> + and <i><a href= + "Distributor/StockDistributor_exec.cpp">StockDistributor_exec.cpp</a></i> + to see how we implemented this.</span></p> + + <p class='c5'><span class='c1'>Broker:</span></p> + + <p class='c9'><span class='c7'>·<span class= + "c6"> </span></span> + <span class='c8'>The TAO IDL compiler generated an empty</span> + <i><span class='c1'>StockBroker_exec.h</span></i> <span class= + 'c1'>and <i>StockBroker_exec.cpp</i> files for us. You should + now add your business logic to the executors. Look into + <i><a href= + "Broker/StockBroker_exec.h">StockBroker_exec.h</a></i> and + <i><a href= + "Broker/StockBroker_exec.cpp">StockBroker_exec.cpp</a></i> to + see how we implemented this.</span></p> + + <p class='c16'><span class='c1'><a href= + "01.html">Previous</a> + <a href="03.html">Next</a></span></p> + + <div class='c18'> + <hr class="c17" size="2" width="100%" /> + </div> + + <address> + <span class='c1'><a href= + "mailto:ming.xiong@vanderbilt.edu">Ming + Xiong<br /></a></span> <a href= + "mailto:abdullah.sowayan@lmco.com">Abdullah Sowayan</a> + </address> + + <address> + + </address> + + <address> + $Id$ + </address> + </div> +</body> +</html> diff --git a/modules/CIAO/docs/tutorials/Quoter/Simple/03.html b/modules/CIAO/docs/tutorials/Quoter/Simple/03.html new file mode 100644 index 00000000000..d8795ab2533 --- /dev/null +++ b/modules/CIAO/docs/tutorials/Quoter/Simple/03.html @@ -0,0 +1,543 @@ +<!-- $Id$ --> +<html xmlns="http://www.w3.org/TR/REC-html40"> +<head> +<title>Getting Started</title> +<meta http-equiv="Content-Type" content="text/html; charset=us-ascii"> +<style> +<!-- +h3 { + font-size:13.5pt; + font-family:"Times New Roman"; + font-weight:bold; +} +a:link, span.MsoHyperlink { + color:#000FFF; + text-decoration:underline; + text-underline:single; +} +a:visited, span.MsoHyperlinkFollowed { + color:#FF0F0F; + text-decoration:underline; + text-underline:single; +} +p { + font-size:12.0pt; + font-family:"Times New Roman"; +} +address { + font-size:12.0pt; + font-family:"Times New Roman"; + font-style:italic; +} +code { + font-family:"Courier New"; +} +kbd { + font-family:"Courier New"; +} +pre { + tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt; + font-size:10.0pt; + font-family:"Courier New"; +} +div.Section1 { + page:Section1 +} +--> +</style> +<!-- $Id$ --> +</head> +<body bgcolor="#FFFFFF" lang="EN-US" link="#000fff" vlink="#ff0f0f"> +<div class="Section1"> + <h3 align="center" style='TEXT-ALIGN:center'><span style='COLOR:black'>Step 3: + Package your components</span></h3> + <h3 align="center" style='TEXT-ALIGN:center'><span style='COLOR:black'><img width="572" height="358" id="_x0000_i1025" src="images/step3.jpg"> </span></h3> + <p><b>Brief Introduction to CosMIC:</b></p> + <p>The Component Synthesis + using Model Integrated Computing (CoSMIC) project is a MDA toolset being + developed by the Institute for Software Integrated Systems (ISIS) at + <st1:place w:st="on"> + <st1:PlaceName w:st="on"> + Vanderbilt + <st1:PlaceType w:st="on"> + University + + to:</p> + <p style='MARGIN-LEFT:39pt;TEXT-INDENT:-0.25in;'>1.<span style="FONT:7pt 'Times New Roman'"> </span><i>Model and</i> <i>analyze </i>distributed real-time and embedded + application functionality and QoS requirements.</p> + <p style='MARGIN-LEFT:39pt;TEXT-INDENT:-0.25in;'>2.<span style="FONT:7pt 'Times New Roman'"> </span><i>Synthesize</i> CCM-specific deployment metadata required to deliver + end-to-end QoS to DRE applications.</p> + <p>The CoSMIC toolsuite + provides modeling of DRE systems, their QoS requirements, and QoS adaptation + policies used for DRE application QoS management. The component behavior, their + interactions, and QoS requirements are modeled using a domain specific modeling + language that adheres to <span style='COLOR:black'>the <a href="http://www.omg.org/cgi-bin/doc?ptc/2003-07-08">OMG + Deployment & Configuration (D&C) specification (ptc/2003-07-08)</a></span>. + CoSMIC enables modeling the standards-based CCM components. </p> + <p>Hand-writing the required + XML descriptors to configure our components is tedious and error prone. We + therefore utilize CosMIC (we specifically use a subset of CosMIC called PICML, + which stands for Platform-Independent Component Modeling Language) to generate + the bulk of descriptors for us.</p> + <p>For more information on + CosMIC, please refer to the following article:</p> + <p><a href="http://www.cs.wustl.edu/~schmidt/PDF/mamad2003.pdf">CoSMIC: + An MDA Generative Tool for Distributed Real-time and Embedded Applications</a>.</p> + <div align="center" style='TEXT-ALIGN:center'><span style='COLOR:black'> + <hr size="2" width="100%" align="center"> + </span></div> + <p><b><span style='COLOR:black'>Importing IDL to PICML</span></b><span style='COLOR:black'><br> + <br> + To quick start our Stock Quoter modeling process in GME, CoSMIC + introduces <em>idl_to_picml</em> , which is an executable program that imports + the IDL files you just created into PICML.</span></p> + <ol start="1" type="1"> + <li style='COLOR:black;'> Make sure <code> <span style='FONT-SIZE:10pt'>%COSMIC_ROOT%\bin</span></code> is included in + the PATH variable, e.g., c:\Program Files\ISIS\CoSMIC\bin. + <li style='COLOR:black;'> Open a command prompt, run VCVARS32.BAT from the MSVC .NET folder if you + haven't done so. It will set the environment for using Microsoft Visual Studio + .NET tools so that <i>idl_to_picml</i> works properly.<br> + in my machine, VCVARS32.bat is in C:\Program Files\Microsoft Visual Studio .NET + 2003\Vc7\bin + <li style='COLOR:black;'> In the same command prompt, change directory to <code> <span style='FONT-SIZE:10pt'>Quoter\Simple</span></code>, and type the + following command:<br> + > <kbd> <span style='FONT-SIZE:10pt'> idl_to_picml -I%CIAO_ROOT% -x Quoter -r . </span></kbd><br> + <em>idl_to_picml</em> will parse your IDL files and generated a <code> <span style='FONT-SIZE:10pt'>Quoter.xme</span></code> file in the <code> + <span style='FONT-SIZE:10pt'>Quoter</span></code> directory. Note that if + -x option is not used, the default xme file name will be <code> <span style='FONT-SIZE:10pt'>PICML_default_xme_file.xme.</span></code><br> + <span style='COLOR:black;'>When this command is run a second time, be sure to delete all E.idl files first!</span><br> + <br> + <LI style="COLOR: black; "> Start GME, select <strong>File->Import xml..</strong>, and choose the xme + file just generated. You should be able to see an imported PICML model similar + to the one shown in Figure 2. </LI> + </ol> + <p align="center" style='TEXT-ALIGN:center'><span style='COLOR:black'><img border="0" id="_x0000_i1027" src="images/fig2.jpg"><br> + <br> + Figure 2</span></p> + <p><span style='COLOR:black'> In the Browser of the generated model, the <em>PredefinedTypes</em> folder contains a bunch of atomic datatype elements that will be referenced by + other modeling parts later. You don't have to worry about them for now. The + models in <em>InterfaceDefinitions</em> folder are the PICML representations + of the IDL files you just imported. Double-click to open <em>StockBroker</em>, it + will show you a white, document-like entity which represents a + <<FileRef>> instance and a yellow box-shaped entity representing a + <<Package>> instance. Their equivalent representations in IDL files + are "#include" and "module" respectively. Figure 3 gives + you a clear view of GME representation of all the 3 idl files created. We will + cover the other folders in the next section.</span></p> + <p align="center" style='MARGIN-BOTTOM:12pt;TEXT-ALIGN:center'><span style='COLOR:black'><img border="1" id="_x0000_i1028" src="images/fig3.jpg"><br> + <br> + Figure 3</span></p> + <p style='MARGIN-BOTTOM:12pt'><span style='COLOR:black'>Now + we are ready to model the rest of the Stock Quoter systems.<br> + <br> + <br> + </span></p> + <div align="center" style='TEXT-ALIGN:center'><span style='COLOR:black'> + <hr size="2" width="100%" align="center"> + </span></div> + <h3>Building Stock Quoter system in PICML<span style='COLOR:black'> </span></h3> + <p><span style='COLOR:black'>This section describes modeling the Quoter + application using PICML. If you have trouble producing a functioning model from + this tutorial, please see the, <a href="Model/Quoter.xme">pre-built Quoter model</a> which is provided for your reference. This model contains all + elements created as part of this tutorial.</span></p> + <p><strong><span style='COLOR:black'>Note:</span></strong><span style='COLOR:black'> To import an XML file in GME, select <em>File->Import + XML..</em> from GME and choose your XML model</span></p> + <p><span style='COLOR:black'>The PICML paradigm is designed for the <a href="http://www.omg.org/cgi-bin/doc?ptc/2003-07-08">OMG + Deployment & Configuration (D&C) specification (ptc/2003-07-08)</a>, so the modeling process + is straightforward if you are familiar with the specification. Please see the <a href="../../../releasenotes/dance.html">DAnCE + project</a> for more + information. For those who hate specification (including me, :-)), an <a href="http://www.cs.wustl.edu/%7Eschmidt/PDF/DAnCE.pdf">overview + of D&C</a> and as well as a <a href="http://www.cs.wustl.edu/%7Eschmidt/OMG-CCM-Tutorial.ppt">tutorial of D&C + and CCM</a> can help to reduce the learning curve. In addition, it is + also helpful to read through documentation which originally came from the TAO's Developer's Guide 1.4a (CIAO + and CCM) which thoroughly describes the various descriptors required for a + component (*.iad, *.ccd, *.cid, etc). This chapter is available <a href="../../../CIAO.pdf">here.</a></span></p> + <h3><span style='COLOR:black'>Table of Contents</span></h3> + <ul type="disc"> + <li style='COLOR:black;'> <a href="#1">ImplementationArtifacts</a> + <li style='COLOR:black;'> <a href="#2">ComponentImplementations</a> + <li style='COLOR:black;'> <a href="#3">ComponentPackages</a> + <li style='COLOR:black;'> <a href="#4">PackageConfiguration</a> + <li style='COLOR:black;'> <a href="#5">TopLevelPackage</a> + <li style='COLOR:black;'> <a href="#6">Targets</a> + <li style='COLOR:black;'> <a href="#7">DeploymentPlan</a></li> + </ul> + <div align="center" style='TEXT-ALIGN:center'><span style='COLOR:black'> + <hr size="2" width="100%" align="center"> + </span></div> + <p><span style='COLOR:black'>The complete PICML Quoter model consists of + modeling elements distributed across various folders. If you used <em>idl_to_picml</em> to generate the initial model, you will see that it has created all these + folders and some of the tedious boilerplate modeling for us. The rest of the + section will explain the purpose of each folder as well as the modeling + entities contained in these folders. We will also show how to model some of the + folders that have to be done by hand.</span></p> + <p><b><span style='BACKGROUND:silver;COLOR:red;FONT-VARIANT:small-caps;'>Important:</span></b><span style='BACKGROUND:silver;COLOR:black;'> The interpreters that generate deployment + artifacts expect very strict constraints in the model. When you finish your + model, and any time you wish to generate anything, it is a good idea to check + constraints by clicking on <em>File->Check->Check All</em> in GME. This + will help you find many logic errors in your model.</span><span style='COLOR:black'> </span></p> + <h3><span style='COLOR:black'>ImplementationArtifacts</span></h3> + <p><span style='COLOR:black'>This folder contains implementation artifacts + associated with components. <em>idl_to_picml</em> has created these artifacts + for us, with their dependency relationships correctly captured. In order to match the current DAnCE specification, both execPoints + should be removed. Figure 4 shows the Implementation Artifacts for <em>StockBroker</em>.</span> + </p> + + <p align="center" style='MARGIN-BOTTOM:12pt;TEXT-ALIGN:center'><span style='COLOR:black'><img border="0" id="_x0000_i1031" src="images/fig4.jpg"><br> + Figure 4.</span></p> + <div align="center" style='TEXT-ALIGN:center'><a name="1"></a><span style='COLOR:black'> + <hr size="2" width="100%" align="center"> + </span></div> + <h3><span style='COLOR:black'>ComponentImplementation<a name="2"></a></span></h3> + <p><span style='COLOR:black'>This folder contains models that describe the implementations + of component interfaces. In the Quoter example, we will have two monolithic + component implementations - named <em>StockDistributorImplementation</em> and <em>StockBrokerImplementation</em> - and an assembly component implementation named <em>StockQuoter</em>, which is + an assembly of <em>StockDistributorImplementation</em> and <em>StockBrokerImplementaion</em>. <em>idl_to_picml</em> has created the monolithic component implementations for + us, as shown in figure 5 for example, but we have to change this model in order to meet the DAnCE specification.</span></p> + <p align="center" style='TEXT-ALIGN:center'><span style='COLOR:black'><img border="0" id="_x0000_i1033" src="images/fig5.jpg"><br> + Figure 5</span> + </p> + + <p><span style='COLOR:black'>First thing we need to do is delete the following attributes. + <ul> + <li>StockBroker_stubRef</li> + <li>StockBroker_svntRef</li> + <li>StockBroker_execRef</li> + <li>ComponentIOR</li> + </ul> + After that we need to create a reference to the artifacts. + <ol> + <li>Drag a <<ComponentImplementationArtifact>> and a + <<ComponentServantArtifact>> from the Part browser to the modeling window. + </li> + <li>These two parts need to be linked to the StockBroker_exec and StockBroker_svnt artifacts in + <code><span style='FONT-SIZE:10pt'>Quoter/ImplementationArtifacts/StockBrokerArtifacts</span></code>. + This can be established by expanding the tree view and drag StockBroker_exec to the + <<ComponentImplementationArtifact>> and StockBroker_svnt to + <<ComponentServantArtifact>> on the window. On succes, + the <<ComponentImplementationArtifact>> icon should change into a + <<ImplementationArtifactReference>> icon. + </li> + <li>Now we should define which entry point is used. Since this tutorial is about unhomed components and the + in the IDL we used homed component, we should create an entry point in code in order to support unhomed component. + This can be done by: + <ol> + <li>Opening StockBroker_exec.h and add an entry point in the extern "C" section. This function should return + a <code>::Components::EnterpriseComponent_ptr</code> instead of a <code>::Components::HomeExecutorBase_ptr</code>. See + <a href="Broker/StockBroker_exec.h">StockBroker_exec.h</a> for more details. + </li> + <li>Opening StockBroker_exec.cpp and implement the extern "C" function. See + <a href="Broker/StockBroker_exec.cpp">StockBroker_exec.cpp</a> for more details. + </li> + <li>Now we should turn back to the model to configure this entry point. This should be done + by selecting the <em>ComponentImplemtationArtifact</em> and specify this new extern "C" function + (<code>create_Stock_StockBrokerComp_Impl</code>) in the attribute window.<br> + </li> + </ol> + The same has to be done for the <em>ComponentServantArtifact</em>. Mind that the entry point in code should be + implemented in the right namespace (<code>CIAO_Stock_StockBroker_Impl</code>). In this case the function is called + "create_Stock_StockBroker_Servant". See <a href="Broker/StockBroker_svnt.h">StockBroker_exec.h</a> and + <a href="Broker/StockBroker_svnt.cpp">StockBroker_exec.cpp</a> for more details. + </li> + <li>Connect <em>ComponentServantArtifact</em> and <em>ComponentImplementationArtifact</em> to + <em>StockBrokerMonolithicImpl</em>. To connect two items, one should switch to connect mode by clicking + <img border="0" width="16" height="16" id="_x0000_i1035" src="Icons/AddConnMode.gif" />. First click + <em>StockBrokerMonolithicImpl</em> and then <em>ComponentServantArtifact</em>. + </li> + </ol> + Don't forget to perform the previous steps for StockDistributor!<br/> + The result of these actions is shown in figure 5a.</span> + </p> + <p align="center" style='TEXT-ALIGN:center'><span style='COLOR:black'><img border="0" id="_x0000_i1033" src="images/fig5a.jpg"><br> + <br/> + Figure 5a</span> + </p> + + + We also need to specify the connections between a <em>StockDistributorImplementation</em> and a <em>StockBrokerImplementaion</em> in + order to construct a Quoter system. Therefore we need to create the mentioned + StockQuoter component assemby</span></p> + + <p><span style='COLOR:black'>Assembly components provide a boundary for the composition + of monolithic components and even other assemblies. Assembly components do not + provide actual implementations for their interface, it is a virtual component + that delegates its ports and attributes to one or more of the entities it + contains. There are slight differences between modeling an assembly and + modeling a monolithic component. Since the assembly is a virtual component, it + is not necessary to model a </span><code><span style='FONT-SIZE:10pt; + COLOR:black'>MonolithicImplementation</span></code><span style='COLOR:black'>. + Instead, <em>instances</em> of other components are placed within the assembly + and connected. Let's try to assemble the <em>StockQuoter</em>.</span></p> + <ol start="1" type="1"> + <li style='COLOR:black;'> Right click the <em>ComponentImplementations</em> folder, choose <strong>Insert + Model->ComponentImplementationContainer</strong>, rename it as + "StockQuoterImplementation" in the Attribute Panel. Double click to open it. + </li> + <li style='COLOR:black;'> From the Part Browser, drag a <<ComponentAssembly>> to the modeling + window, name it "StockQuoter". Double click to open it. + </li> + <li style='COLOR:black;'> Now we will create two instances for interfaces <em>StockBroker</em> and <em>StockDistributor</em>. + To do that, expand the folder <em> <span style="FONT-SIZE:10pt; + FONT-FAMILY:'Courier New'">InterfaceDefinitions</span></em>, then expand the + <em><span style="FONT-SIZE:10pt;FONT-FAMILY:'Courier New'">InterfaceDefinitions/StockBroker</span></em>, then + <em><span style="FONT-SIZE:10pt;FONT-FAMILY:'Courier New'">InterfaceDefinitions/StockBroker/Stock</span></em> until the interface definition of <em>StockBroker</em> shows. + While expanding the tree, always keep the "StockQuoter" <<ComponentAssembly>> window open. + Then press the ALT key and drag <code> <span style='FONT-SIZE:10pt'>Quoter/InterfaceDefinitions/Broker/Stock/StockBroker</span></code> + in the browser to the "StockQuoter" <<ComponentAssembly>> window' + Repeat the same steps for <code> <span style='FONT-SIZE:10pt'>Quoter/InterfaceDefinitions/Distributor/Stock/StockDistributor</span></code>, + and you will see two instances of component interfaces have been created as + shown in Figure 6 (the black line in the figure only indicates .mapping) + </li> + </ol> + <p align="center" style='TEXT-ALIGN:center'><span style='COLOR:black'><img border="0" id="_x0000_i1034" src="images/fig6.jpg"><br> + <br> + Figure 6</span></p> + <ol start="4" type="1"> + <li style='COLOR:black;'> Create an <<PublishConnector>> by dragging it from the "Part browser" onto the "StockQuoter" window. + </li> + <li style='COLOR:black;'> Now assemble the components together according to <a href="images/fig1.jpg">Figure + 1</a> (make sure you change to connect mode <img border="0" width="16" height="16" id="_x0000_i1035" src="Icons/AddConnMode.gif" />) + and the resulting assembly model should look like Figure 7. Note that to create connections between StockDistributor.notify_out and StockBroker.notify_in, + you will need the intermediate connector <<PublishConnector>>. + </li> + <li style='COLOR:black;'>In one of the previous steps we've removed ComponentIOR. With ComponentIOR one could + configure the name of the IOR file. This is still needed. In this step we need to create them again. This can + be done by dragging two <<Property>> items from the part browser onto the window; + one for StockBroker and one for StockDistributor. The following steps should be taken in order + to configure both properties correct: + <ol> + <li>Double click on one of them. An empty window appears and the part browser only has one part, called "DataType". Drag this part onto the empty window. + </li> + <li>In the tree window, browse to <code> <span style='FONT-SIZE:10pt'>Quoter/PredefinedTypes</span></code> + </li> + <li>Drag tree item "String" onto the "DataType" item. + </li> + <li>Go back to the previous window and repeat these steps for the other <<Property>>. + </li> + </ol> + Now it's time to configure the name and value of both <<Property>> items. + <ul> + <li>The name of each <<Property>> should be "edu.vanderbilt.dre.DAnCE.InstanceIOR" + </li> + <li>One of the values should be "StockBroker.ior"; the other one should be "StockDistributor.ior" + </li> + </ul> + </li> + </ol> + <p align="center" style='TEXT-ALIGN:center'><span style='COLOR:black'> + <img border="0" id="_x0000_i1036" src="images/fig7.jpg" /> + <br><br> + Figure 7</span></p> + + <div align="center" style='TEXT-ALIGN:center'><span style='COLOR:black'> + <hr size="2" width="100%" align="center"> + </span></div> + <h3><a name="3"></a><span style='COLOR:black'>ComponentPackage</span></h3> + <p><span style='COLOR:black'>This folder contains deployable component packages. Every instance in an assembly should have a corresponding + monolithic implementation and packaged in a ComponentPackage. To create a package for <em>StockBroker</em>.instance</span></p> + <ol start="1" type="1"> + <li style='COLOR:black;'> Right click folder <em>ComponentPackage</em>s , insert a + <<PackageContainer>>, name it "Broker". Double click to open it. + <li style='COLOR:black;'> From the PartBrowser, add the following: + <ul type="circle"> + <li style='COLOR:black;'> a <<ComponentPackage>> named "Broker"; + <li style='COLOR:black;'> a <<ComponentImplementationReference>> named "ComponentImplBrokerRef"; + <li style='COLOR:black;'> a <<ComponentRef>> named "ComponentBrokerRef";</li> + </ul> + <li style='COLOR:black;'>Now we need to create references for "ComponentImplBrokerRef" and "ComponentBrokerRef". + To create a reference in GME, simply drag the tree node in the Browser "into" the reference model.<br/> + We need to refer <<ComponentImplementationReference>> "ComponentImplBrokerRef" to + <code><span style='FONT-SIZE:10pt'>Quoter/ComponentImplementations/StockBrokerImplementation/StockBrokerMonolithicImpl</span></code> + and <<ComponentRef>> "ComponentBrokerRef" to <code><span style='FONT-SIZE:10pt'>Quoter/InterfaceDefinitions/StockBroker/Stock/StockBroker</span></code>.<br/> + For example, you should drag the tree node <code><span style='FONT-SIZE:10pt'>Quoter/ComponentImplementations/StockBroker</span></code>Implementation/StockBrokerMonolithicImpl + into <<ComponentImplementationReference>> "ComponentImplBrokerRef".<br/> Check GME manual(tutorials) for more information. + <li style='COLOR:black;'> Switch to Connect Mode and create two connections according to the following relationship. + <ul type="circle"> + <li style='COLOR:black;'> <<ComponentImplementationReference>> "ComponentImplBrokerRef" implements + <<ComponentPackage>> "Broker" + </li> + <li style='COLOR:black;'> <<ComponentPackage>> "Broker" realizes + <<ComponentRef>> "ComponentBrokerRef". + </li> + </ul> + <br/> + <br/> + The model you built should resemble Figure 8. + <br /> + <br /> + <p align="center" style='MARGIN-BOTTOM:12pt;MARGIN-LEFT:0.5in;TEXT-ALIGN:center;'><span style='COLOR:black'><img border="0" id="_x0000_i1038" src="images/fig8.jpg"> + <br><br> + Figure 8</span> + </p> + <p>Now create a StockDistributor following the same steps.</p> + </li> + + <li style='LIST-STYLE-POSITION:outside;COLOR:black;'> + We will also need to create a component package for the assembly component StockQuoter. Remember assembly component is a virtual component, it does not "realize" a + certain interface, so different from the Broker and Distributor packages, the StockQuoter does not need a <<ComponentRef>>. To create this model:<br/> + + <ol> + <li>Insert a <<ComponentPackage>> named "StockQuoter" + </li> + <li>Add a <<ComponentImplementationReference>> named "ComponentImplStockQuoterRef", refer it to + <code><span style='FONT-SIZE:10pt'>Quoter/ComponentImplementations/StockQuoterImplementation/StockQuoter</span></code> + </li> + <li>Switch to connect mode and connect <<ComponentImplementationReference>> "ComponentImplStockQuoterRef" with + <<ComponentPackage>> "StockQuoter", as in Figure 9. + <p align="center" style='MARGIN-BOTTOM:12pt;TEXT-ALIGN:center'><span style='COLOR:black'><img border="0" id="_x0000_i1039" src="images/fig9.jpg"> + <br><br> + Figure 9</span> + </p> + </li> + </ol> + </ol> + <div align="center" style='TEXT-ALIGN:center'><span style='COLOR:black'> + <hr size="2" width="100%" align="center"> + </span></div> + <h3><a name="4"></a><span style='COLOR:black'>InterfaceDefinitions</span></h3> + <p><span style='COLOR:black'> + <ol> + <li>Nagivate to <code><span style='FONT-SIZE:10pt'> + Quoter/InterfaceDefinitions/StockBroker/Stock</span></code> and double click it. + </li> + <li>Switch to connect mode and connect <em>StockBrokerHome</em> and + <em>StockBroker</em> with each other. + </li> + </ol></span> + Do the same for Distributor. + </p> + + <div align="center" style='TEXT-ALIGN:center'><span style='COLOR:black'> + <hr size="2" width="100%" align="center"> + </span></div> + <h3><a name="4"></a><span style='COLOR:black'>PackageConfiguration</span></h3> + <p><span style='COLOR:black'>This folder contains just one + model capturing specific configuration of Component packages.</span></p> + <ol start="1" type="1"> + <li style='COLOR:black;'> In the folder <em>PackageConfiguratio</em>n, and create a + <<PackageConfigurationContainer>>, name it "Default", double click to open + it. + <li style='COLOR:black;'> Add a <<PackageConfiguration>> named "default" and a + <<ComponentPackageReference>>, name it "StockQuoter", connect + "Default" to "StockQuoter" + <li style='COLOR:black;'> Refer <<ComponentPackageReference>> StockQuoter to + <<ComponentPackage>> <code> <span style='FONT-SIZE:10pt'>Quoter/ComponentPackage/StockQuoter/StockQuoter</span></code><span style="FONT-SIZE:10pt;FONT-FAMILY:'Courier New'"><br> + <code>(Not <<ComponentImplementationReference>></code></span> <code> <span style='FONT-SIZE:10pt'>Quoter/ComponentPackage/StockQuoter/ComponentImplStockQuoterRef!) </span></code></li> + </ol> + <div align="center" style='TEXT-ALIGN:center'><span style='COLOR:black'> + <hr size="2" width="100%" align="center"> + </span></div> + <h3><a name="5"></a><span style='COLOR:black'>ToplevelPackage</span></h3> + <p><span style='COLOR:black'>This folder contains one model + capturing information about the top-level element that will be fed to the + application.</span></p> + <ol start="1" type="1"> + <li style='COLOR:black;'> In the folder <em>ToplevelPackages</em>, create a + <<ToplevelPackageContainer>> and name it "Default". Double click to + open it. + <li style='COLOR:black;'> Add a <<ToplevelPackage>> named "ToplevelPackage" and a + <<PackageConfigurationReference>>, name it "Default", connect + "ToplevelPackage" to "Default" + <li style='COLOR:black;'> Refer "Default" to <code><span style='FONT-SIZE:10pt'>Quoter/PackageConfiguration/Default/Default</span></code></li> + </ol> + <div align="center" style='TEXT-ALIGN:center'><span style='COLOR:black'> + <hr size="2" width="100%" align="center"> + </span></div> + <h3><a name="6"></a><span style='COLOR:black'>Targets</span></h3> + <p><span style='COLOR:black'>This folder contains + domain-specific models capturing information about the target environment in + which component-based application will be deployed. In this Quoter example, we + can either deploy the two components into ONE host, or into TWO different host. + We will deploy the Quoter into two different host.</span></p> + <ol start="1" type="1"> + <li style='COLOR:black;'> In the folder <i>Targets</i>, insert a new <<Domain>> named + "Domain"; double click to open it. + <li style='COLOR:black;'> From the Part Browser, add two <<Node>>s, named "Broker" and + "Distributor" respectively.</li> + </ol> + <p><span style='COLOR:black'><br> + Now we are ready to deploy our Components to the actual physical environment.</span></p> + <div align="center" style='TEXT-ALIGN:center'><span style='COLOR:black'> + <hr size="2" width="100%" align="center"> + </span></div> + <h3><a name="7"></a><span style='COLOR:black'>DeploymentPlan</span></h3> + <p><span style='COLOR:black'>This folder contains a plan model + that captures information about the assignment of component to nodes.</span></p> + <ol start="1" type="1"> + <li style='COLOR:black;'> In the folder <em>DeploymentPlan</em>, insert a model + <<DeploymentPlan>>; name it "Plan". Double click to open it. + <li style='COLOR:black;'> From the PartBrowser, add the following: + <ul type="circle"> + <li style='COLOR:black;'> Two <<NodeReference>> named "Node_Broker" and "Node_Distributor" + respectively, refering to <code> <span style='FONT-SIZE:10pt'>Quoter/Targets/Domain/Broker</span></code> and + <code><span style='FONT-SIZE:10pt'>Quoter/Targets/Domain/Distributor</span></code> respectively.<br/> + A <<CollationGroup>>, named "DefaultGroup", is added automatically when adding a <<NodeReference>>. + </li> + <li style='COLOR:black;'> Two <<ComponentRef>> named "StockBroker" and "StockDistributor" + respectively, refering to <code> <span style='FONT-SIZE:10pt'>Quoter/ComponentImplementations/StockQuoterImplementation/StockQuoter/StockBroker</span></code> + and <code><span style='FONT-SIZE:10pt'>Quoter/ComponentImplementations/StockQuoterImplementation/StockQuoter/StockDistributor</span></code> respectively.<br/> + Note that the <<ComponentRef>> in DeploymentPlan is not referring to the interface, but rather the actual instance of the implementation. + </li> + </ul> + <p>The model should look like this:</p> + </ol> + <p align="center" style='MARGIN-BOTTOM:12pt;MARGIN-LEFT:0.5in;TEXT-ALIGN:center;'><span style='COLOR:black'><img border="0" id="_x0000_i1044" src="images/fig10.jpg"><br> + <br> + Figure 10.</span></p> + <ol start="4" type="1"> + <li style='MARGIN-BOTTOM:12pt;COLOR:black;'> Now we need to associate <<ComponentRef>> StockBroker to the + <<CollocationGroup>> running on the <<NodeReference>> Node_Broker, and <<ComponentRef>> StockDistributor to the + <<CollocationGroup>> running on the <<NodeReference>> Node_Distributor. To do that, switch the Edit Mode Bar to Set Mode + (<img border="0" width="16" height="16" id="_x0000_i1045" src="Icons/SetMode.gif">), and move the cursor to the <<CollocationGroup>> running on + <<NodeReference>> Node_Distributor, right-click on it. You will find the cursor is changed to set mode cursor, and only the <<CollocationGroup>> + you clicked in is highlighted, as shown in Figure 11. + </li> + </ol> + <p align="center" style='MARGIN-BOTTOM:12pt;TEXT-ALIGN:center'><span style='COLOR:black'><img border="0" id="_x0000_i1046" src="images/fig11.jpg"> + <!-- 01.html,v 1.3 2006/02/10 14:34:35 mxiong Exp --> + <br><br> + Figure 11</span> + </p> + <p><span style='COLOR:black'>Now move your cursor to <<ComponentRef>> StockDistributor, and left-click it, so that + it looks like Figure 12.</span> + </p> + <p align="center" style='MARGIN-BOTTOM:12pt;TEXT-ALIGN:center'><span style='COLOR:black'><img border="0" id="_x0000_i1047" src="images/fig12.jpg"> <br> + <br> + Figure 12</span> + </p> + <p style='MARGIN-BOTTOM:12pt'><span style='COLOR:black'>This operation associates <em>StockDistributor</em> component to the + <<CollocationGroup>> running on <em>Distributor</em> node. To do the same with Broker, just right-click on the associate + <<CollocationGroup>>, and left-click on StockBroker <<CollocationGroup>> which is then highlighted.</span> + </p> + <div align="center" style='TEXT-ALIGN:center'><span style='COLOR:black'> + <hr size="2" width="100%" align="center"> + </span></div> + <p><a name="8"></a><span style='COLOR:black'>Up to this point, we are basically + done with the modeling part. Before we generate anything from this model + though, please <b>DO</b> remember to check the constraints of the model as we + mentioned earlier.</span></p> + <p><span style='COLOR:black'>After we are done with the modeling, the + Deploymentplan interpreter that comes along with PICML will help us + to generate a Plan.cdp file. Please make sure you generate + this file to Quoter/descriptors. Note that to get the example working</span><span style="COLOR:black; FONT-FAMILY:'Courier New'">,</span><span style='COLOR:black'>a + Node Map file (NodeMap.dat) in Quoter/descriptors should be created to map logical nodes to NodeManager object + references,e.g:</span></p> + <pre wrap=""><span style='COLOR:black'>DistributorNode corbaloc:iiop:localhost:30000/NodeManager</span></pre> + <pre><span +style='COLOR:black'>BrokerNode corbaloc:iiop:localhost:40000/NodeManager</span></pre> + <pre><span +style='COLOR:black'> </span></pre> + <pre><span style='COLOR:black'> </span></pre> + <p align="center" style='TEXT-ALIGN:center;'><span style='COLOR:black'><a href="02.html">Previous</a> <a href="04.html">Next</a> </span></p> + <div align="center" style='TEXT-ALIGN:center;'><span style='COLOR:black'> + <hr size="2" width="100%" align="center"> + </span></div> + <address> + <span style='COLOR:black'><a href="mailto:ming.xiong@vanderbilt.edu">Ming + Xiong<br> + </a> </span><a href="mailto:abdullah.sowayan@lmco.com">Abdullah Sowayan</a> + </address> + <P><SPAN style="COLOR: black"> $Id$ </SPAN> </P> +</div> +</body> +</html> diff --git a/modules/CIAO/docs/tutorials/Quoter/Simple/04.html b/modules/CIAO/docs/tutorials/Quoter/Simple/04.html new file mode 100644 index 00000000000..345b6649d89 --- /dev/null +++ b/modules/CIAO/docs/tutorials/Quoter/Simple/04.html @@ -0,0 +1,162 @@ +<!-- $Id$ --> +<html xmlns="http://www.w3.org/TR/REC-html40"> +<head> +<title>Building a Stock Quoter with TAO - A Tutorial</title> +<meta http-equiv="Content-Type" content="text/html; charset=us-ascii"> +<style> +<!-- +@font-face { +font-family:Wingdings; +panose-1:5 0 0 0 0 0 0 0 0 0; +} +h3 { + font-size:13.5pt; + font-family:"Times New Roman"; + font-weight:bold; +} +a:link, span.MsoHyperlink { + color:#000FFF; + text-decoration:underline; + text-underline:single; +} +a:visited, span.MsoHyperlinkFollowed { + color:#FF0F0F; + text-decoration:underline; + text-underline:single; +} +p { + font-size:12.0pt; + font-family:"Times New Roman"; +} +address { + font-size:12.0pt; + font-family:"Times New Roman"; + font-style:italic; +} +code { + font-family:"Courier New"; +} +div.Section1 { + page:Section1 +} +--> +</style> +<!-- $Id$ --> +</head> +<body bgcolor="#FFFFFF" lang="EN-US" link="#000fff" vlink="#ff0f0f"> +<h3 align="center" style='TEXT-ALIGN:center' class="Section1"><span style='COLOR:black'>Step 6: + System Deployment</span></h3> +<h3 align="center" style='TEXT-ALIGN:center' class="Section1"><span style='COLOR:black'><img width="432" height="223" id="_x0000_i1025" src="images/step6.jpg"> </span></h3> +<p><span style='COLOR:black'>Now that we have all the + components and driver programs successfully built, along with the Deploymentplan + generated by PICML, we will be able to run our application. Remember to add this tutorials library path to your system path in order to run the executable without + problems (see page 1 of this tutorial).<br> + <br> + From different command prompts in </span><code><span style='FONT-SIZE:10pt; +COLOR:black'>%CIAO_ROOT%/docs/tutorials/Quoter/Simple/descriptors</span></code><span style='COLOR:black'> directory: </span></p> +<DIV class="Section1"> + <UL type="disc"> + <li style='COLOR:black;'> Start NodeManagers (NodeDameon) by running:</li> + </UL> +</DIV> +<P style="COLOR: black; "> <FONT face="Courier New" size="2"> + %DANCE_ROOT%/bin/dance_node_manager -ORBListenendpoints iiop://localhost:30000 -s + %CIAO_ROOT%/bin/ciao_componentserver -n Distributor=StockDistributor.ior</FONT></P> +<P style="COLOR: black; "><FONT face="Courier New" size="2"> %DANCE_ROOT%/bin/dance_node_manager + -ORBListenendpoints iiop://localhost:40000 -s %CIAO_ROOT%/bin/ciao_componentserver -n Broker=StockBroker.ior</FONT></P> +<UL type="disc"> + <li style='COLOR:black;'> Start the execution manager:</li> +</UL> +<P style="COLOR: black; "> + <code> <span style='FONT-SIZE:10pt'> + %DANCE_ROOT%/bin/dance_execution_manager -eEM.ior --node-map NodeMap.dat</span></code> </P> +<p><span style='COLOR:black'>The </span><code><span style='FONT-SIZE:10pt; +COLOR:black'>NodeMap.dat</span></code><span style='COLOR:black'> file describes + the deployment daemons CIAO's Execution_Manager will contact to instantiate + ComponentServer's, home's, and component instances. Each line specify the name + of a installation "destination" and the corresponding IOR for the + CIAO_Daemon.</span></p> +<ul type="square"> + <li style='COLOR:black;'> <em>NOTE</em>: As one can see, we use the "NodeMap.dat" file to instruct the + Execution Manager how to find the endpoint of each individual NodeManager + (i.e., Node Daemon) where component(s) will be deployed, so this is + non-standard. We plan to use Naming Service to do this in the future.</li> +</ul> +<ul type="disc"> + <li style='COLOR:black;'> Start the DaNCE Repository Manager by running <code> <span style='FONT-SIZE:10pt'> + %DANCE_ROOT%/bin/dance_plan_launcher -x Plan.cdp -k file://EM.ior</span></code> + <li style='COLOR:black;'> By now the components should be successfully deployed. You may run the driver + program to start the application. e.g. you can try the following + : + <UL> + <LI style="COLOR: black; "> Instruct the StockDistributor component to start publishing stock quotes:</LI> + </UL> + </li> +</ul> +<P style="MARGIN-BOTTOM: 12pt"><span style='COLOR:black'> </span> + <code><span style='FONT-SIZE:10pt;COLOR:black'>%CIAO_ROOT%/docs/tutorials/Quoter/Simple/Distributor/StockDistributorDriver.exe -o</span> + </code> +</P> +<UL dir="ltr" style="MARGIN-RIGHT: 0px"> + <UL dir="ltr" style="MARGIN-RIGHT: 0px"> + <LI> <span style='COLOR:black'>Instruct the StockBroker + to subscribe to MSFT stock + publications: </span></LI> + </UL> +</UL> +<P><SPAN style="COLOR: black"> </SPAN><code><span style='FONT-SIZE: +10pt;COLOR: +black'>%CIAO_ROOT%/docs/tutorials/Quoter/Simple/Broker/StockBrokerDriver.exe + -s MSFT</span></code></P> +<UL dir="ltr" style="MARGIN-RIGHT: 0px"> + <UL dir="ltr" style="MARGIN-RIGHT: 0px"> + <LI> <CODE> <SPAN style="FONT-SIZE: 10pt; COLOR: black"> <SPAN style="COLOR: black"> <FONT face="Times New Roman"><FONT size="3">Instruct the StockBroker to subscribe + to IBM stock publications</FONT>:</FONT></SPAN> </SPAN></CODE></LI> + </UL> +</UL> +<P><span style='COLOR:black'> </span><code><span style='FONT-SIZE: +10pt;COLOR: +black'>%CIAO_ROOT%/docs/tutorials/Quoter/Simple/Broker/StockBrokerDriver.exe -s IBM</span></code></P> +<UL dir="ltr" style="MARGIN-RIGHT: 0px"> + <UL dir="ltr" style="MARGIN-RIGHT: 0px"> + <LI> <CODE> </CODE><span style='COLOR:black'><SPAN style="COLOR: black">Instruct the StockBroker to unsubscribe to MSFT stock + publications:</SPAN> </span></LI> + </UL> +</UL> +<SPAN style="COLOR: black"> +<P> </SPAN><code><span style='FONT-SIZE: +10pt;COLOR: +black'>%CIAO_ROOT%/docs/tutorials/Quoter/Simple/Broker/StockBrokerDriver.exe + -u MSFT</span></code><span style='COLOR:black'></P> +<UL> + <UL> + <LI> <SPAN style="COLOR: black"> <SPAN style="COLOR: black">Instruct the + StockDistributor component to stop publishing stock + quotes:</SPAN></LI> + </UL> +</UL> +</span> +<P> </SPAN><code><span style='FONT-SIZE: +10pt;COLOR: +black'>%CIAO_ROOT%/docs/tutorials/Quoter/Simple/Distributor/StockDistributorDriver.exe + –f</span></code><code><span style='FONT-SIZE:10pt'> </span></code></P> +<UL> + <DIV style="MARGIN-BOTTOM: 12pt"> + <LI style="COLOR: black; "> <FONT color="#ff0000"><EM>NOTE</EM>: Windows uses %VARIABLE% to fetch the values of + environment variables. Linux/Unix uses $VARIABLE to fetch the values of + environment variables. As such, if you're running this tutorial on Linux/Unix + operating system, change the above commands to use $VARIABLE instead of + %VARIABLE% when you run the programs.</FONT></SPAN></CODE></LI> + </DIV> +</UL> +<p align="center" style='TEXT-ALIGN:center'><span style='COLOR:black'><a href="03.html">Previous</a> </span></p> +<div align="center" style='TEXT-ALIGN:center'><span style='COLOR:black'> + <hr size="2" width="100%" align="center"> + </span></div> +<address> +<span style='COLOR:black'><a href="mailto:ming.xiong@vanderbilt.edu">Ming Xiong<br> +</a> </span><a href="mailto:abdullah.sowayan@lmco.com">Abdullah Sowayan</a> +</address> +<P><SPAN style="COLOR: black">$Id$</SPAN></P> +</body> +</html> diff --git a/modules/CIAO/docs/tutorials/Quoter/Simple/Broker/StockBroker.idl b/modules/CIAO/docs/tutorials/Quoter/Simple/Broker/StockBroker.idl new file mode 100644 index 00000000000..24b23230d84 --- /dev/null +++ b/modules/CIAO/docs/tutorials/Quoter/Simple/Broker/StockBroker.idl @@ -0,0 +1,40 @@ +//$Id$ + +#ifndef STOCKBROKER_IDL +#define STOCKBROKER_IDL + +#include "../Stock_Base/Stock_Base.idl" + +module Stock +{ + interface StockSubscriber { + /// subscribe to an interested stock + void stock_subscribe (in string stock_name) + raises (Invalid_Stock); + /// unsubscribe to an stock + void stock_unsubscribe (in string stock_name) + raises (Invalid_Stock); + }; + + /** + * @class StockBroker + * + * @brief component + */ + component StockBroker supports StockSubscriber + { + consumes StockName notify_in; + uses StockQuoter read_quoter; + }; + + /** + * @class StockBrokerHome + * + * @brief home for StockBroker component + */ + home StockBrokerHome manages StockBroker + { + }; +}; + +#endif /* STOCKBROKER_IDL */ diff --git a/modules/CIAO/docs/tutorials/Quoter/Simple/Broker/StockBroker.mpc b/modules/CIAO/docs/tutorials/Quoter/Simple/Broker/StockBroker.mpc new file mode 100644 index 00000000000..8fd485977da --- /dev/null +++ b/modules/CIAO/docs/tutorials/Quoter/Simple/Broker/StockBroker.mpc @@ -0,0 +1,153 @@ +// $Id$ +// This file is generated with "generate_component_mpc.pl -p Stock_Base -c StockBrokerDriver StockBroker -l ../lib -o ../lib" + +project(Stock_Base_StockBroker_idl_gen) : componentidldefaults { + custom_only = 1 + idlflags += -Wb,stub_export_macro=STOCKBROKER_STUB_Export \ + -Wb,stub_export_include=StockBroker_stub_export.h \ + -Wb,skel_export_macro=STOCKBROKER_SVNT_Export \ + -Wb,skel_export_include=StockBroker_svnt_export.h \ + -Wb,exec_export_macro=STOCKBROKER_EXEC_Export \ + -Wb,exec_export_include=StockBroker_exec_export.h + + IDL_Files { + StockBroker.idl + } +} + +project(Stock_Base_StockBroker_lem_gen) : ciaoidldefaults { + after += Stock_Base_StockBroker_idl_gen + custom_only = 1 + idlflags += -Wb,stub_export_macro=STOCKBROKER_LEM_STUB_Export \ + -Wb,stub_export_include=StockBroker_lem_stub_export.h \ + -SS -Gxhst + + IDL_Files { + StockBrokerE.idl + } +} + +project(Stock_Base_StockBroker_lem_stub) : ccm_svnt { + after += Stock_Base_StockBroker_lem_gen Stock_Base_StockBroker_stub Stock_Base_stub + libs += Stock_Base_stub StockBroker_stub + libpaths += ../lib + libout = ../lib + sharedname = StockBroker_lem_stub + dynamicflags = STOCKBROKER_LEM_STUB_BUILD_DLL + + IDL_Files { + } + + Source_Files { + StockBrokerEC.cpp + } + + Header_Files { + StockBrokerEC.h + StockBroker_lem_stub_export.h + } + + Inline_Files { + StockBrokerEC.inl + } +} + +project(Stock_Base_StockBroker_stub) : ccm_stub { + after += Stock_Base_StockBroker_idl_gen Stock_Base_stub + libs += Stock_Base_stub + libpaths += ../lib + libout = ../lib + sharedname = StockBroker_stub + dynamicflags = STOCKBROKER_STUB_BUILD_DLL + + IDL_Files { + } + + Source_Files { + StockBrokerC.cpp + } + + Header_Files { + StockBrokerC.h + StockBroker_stub_export.h + } + + Inline_Files { + StockBrokerC.inl + } +} + +project(Stock_Base_StockBroker_exec) : ciao_executor { + after += Stock_Base_StockBroker_lem_stub Stock_Base_StockBroker_stub + sharedname = StockBroker_exec + libs += StockBroker_stub StockBroker_lem_stub Stock_Base_stub + libpaths += ../lib + libout = ../lib + dynamicflags = STOCKBROKER_EXEC_BUILD_DLL + + IDL_Files { + } + + Source_Files { + StockBroker_exec.cpp + } + + Header_Files { + StockBroker_exec.h + StockBroker_exec_export.h + } + + Inline_Files { + } +} + + +project(Stock_Base_StockBroker_svnt) : ciao_servant { + after += Stock_Base_skel Stock_Base_StockBroker_lem_stub + sharedname = StockBroker_svnt + libs += StockBroker_stub StockBroker_lem_stub \ + Stock_Base_skel \ + Stock_Base_stub + libpaths += ../lib + libout = ../lib + dynamicflags = STOCKBROKER_SVNT_BUILD_DLL + + IDL_Files { + } + + Source_Files { + StockBrokerS.cpp + StockBroker_svnt.cpp + } + + Header_Files { + StockBrokerS.h + StockBroker_svnt.h + StockBroker_svnt_export.h + } + + Inline_Files { + StockBrokerS.inl + } +} + +project (Stock_Base_StockBrokerDriver) : ccm_stub, valuetype { + exename = StockBrokerDriver + after += Stock_Base_StockBroker_stub + libs += StockBroker_stub Stock_Base_stub + libpaths += ../lib + libout = ../lib + IDL_Files { + } + + Source_Files { + StockBrokerDriver.cpp + } + + Header_Files { + } + + Inline_Files { + } +} + diff --git a/modules/CIAO/docs/tutorials/Quoter/Simple/Broker/StockBrokerDriver.cpp b/modules/CIAO/docs/tutorials/Quoter/Simple/Broker/StockBrokerDriver.cpp new file mode 100644 index 00000000000..80fdee813d1 --- /dev/null +++ b/modules/CIAO/docs/tutorials/Quoter/Simple/Broker/StockBrokerDriver.cpp @@ -0,0 +1,110 @@ +//$Id$ +/* + * @file StockBrokerDriver.cpp + * + * @author Ming Xiong <mxiong@dre.vanderbilt.edu> + */ + +#include "StockBrokerC.h" +#include "ace/streams.h" +#include "ace/Get_Opt.h" + +const ACE_TCHAR *broker_ior = ACE_TEXT ("file://StockBroker.ior"); +const ACE_TCHAR *subscribe_name = 0; +const ACE_TCHAR *unsubscribe_name = 0; + + +int +parse_args (int argc, ACE_TCHAR *argv[]) +{ + ACE_Get_Opt get_opts (argc, argv, ACE_TEXT("k:s:u:")); + int c; + + while ((c = get_opts ()) != -1) + { + switch (c) + { + case 'k': + broker_ior = get_opts.opt_arg (); + break; + + case 's': + subscribe_name = get_opts.opt_arg (); + break; + + case 'u': + unsubscribe_name = get_opts.opt_arg (); + break; + + case '?': + default: + ACE_ERROR_RETURN ((LM_ERROR, + "usage: %s\n" + "-k <Broker IOR> (default is file://StockBroker.ior)\n" + "-s <stock name you wish to subscribe>\n" + "-u <stock name you wish to unsubscribe>\n" + "\n", + argv [0]), + -1); + } + } + + return 0; +} + +int ACE_TMAIN (int argc, ACE_TCHAR* argv[]) +{ + try + { + // initialize the ORB + CORBA::ORB_var orb = + CORBA::ORB_init (argc, argv); + + + if (parse_args (argc, argv) != 0) + return -1; + + // create the factory object reference of StockBrokerHome + CORBA::Object_var broker_obj = + orb->string_to_object (broker_ior); + + // downcast the object reference to the appropriate type + Stock::StockBroker_var broker = + Stock::StockBroker::_narrow (broker_obj.in ()); + + if (CORBA::is_nil (broker.in ())) + { + ACE_ERROR_RETURN ((LM_ERROR, + "Unable to acquire 'Broker' objref\n"), + -1); + } + + + if (subscribe_name != 0) + { + broker->stock_subscribe (ACE_TEXT_ALWAYS_CHAR (subscribe_name)); + + ACE_DEBUG ((LM_DEBUG, "Subscribe successful!\n")); + } + + if (unsubscribe_name != 0) + { + broker->stock_unsubscribe (ACE_TEXT_ALWAYS_CHAR (unsubscribe_name)); + + ACE_DEBUG ((LM_DEBUG, "Unsubscribe successful!\n")); + } + + // Finally destroy the ORB + orb->destroy (); + + } + catch (const CORBA::Exception& ex) + { + ex._tao_print_exception ("Who is the culprit\n"); + ACE_ERROR_RETURN ((LM_ERROR, + "Uncaught CORBA exception\n"), + 1); + } + + return 0; +} diff --git a/modules/CIAO/docs/tutorials/Quoter/Simple/Broker/StockBroker_exec.cpp b/modules/CIAO/docs/tutorials/Quoter/Simple/Broker/StockBroker_exec.cpp new file mode 100644 index 00000000000..1b557a7890e --- /dev/null +++ b/modules/CIAO/docs/tutorials/Quoter/Simple/Broker/StockBroker_exec.cpp @@ -0,0 +1,215 @@ +// $Id$ +// +// **** Code generated by the **** +// **** Component Integrated ACE ORB (CIAO) CIDL Compiler **** +// CIAO has been developed by: +// Center for Distributed Object Computing +// Washington University +// St. Louis, MO +// USA +// http://www.cs.wustl.edu/~schmidt/doc-center.html +// CIDL Compiler has been developed by: +// Institute for Software Integrated Systems +// Vanderbilt University +// Nashville, TN +// USA +// http://www.isis.vanderbilt.edu/ +// +// Information about CIAO is available at: +// http://www.dre.vanderbilt.edu/CIAO + +#include "StockBroker_exec.h" +#include "ciao/CIAO_common.h" + + +namespace CIAO_Stock_StockBroker_Impl +{ + //================================================================== + // Component Executor Implementation Class: StockBroker_exec_i + //================================================================== + + StockBroker_exec_i::StockBroker_exec_i (void) + { + } + + StockBroker_exec_i::~StockBroker_exec_i (void) + { + } + + + // Supported or inherited operations. + + void + StockBroker_exec_i::stock_subscribe ( + const char * stock_name) + { + if ((ACE_OS::strcmp (stock_name, "MSFT") == 0) || + (ACE_OS::strcmp (stock_name, "IBM") == 0)) + { + std::set<std::string>::iterator iter = + this->subscribed_stock_list_.find (stock_name); + + if (iter == this->subscribed_stock_list_.end ()) + { + this->subscribed_stock_list_.insert (stock_name); + } + } + else + { + throw Stock::Invalid_Stock (); + } + } + + void + StockBroker_exec_i::stock_unsubscribe ( + const char * stock_name) + { + if ((ACE_OS::strcmp (stock_name, "MSFT") == 0) || + (ACE_OS::strcmp (stock_name, "IBM") == 0)) + { + std::set<std::string>::iterator iter = + this->subscribed_stock_list_.find (stock_name); + if (iter != this->subscribed_stock_list_.end ()) + { + this->subscribed_stock_list_.erase (iter); + } + } + else + { + throw Stock::Invalid_Stock (); + } + + } + + + void + StockBroker_exec_i::push_notify_in ( + Stock::StockName *ev) + { + + ACE_DEBUG ((LM_INFO, + "Broker - Got message from Distributor\n")); + + CORBA::String_var stock_name = CORBA::string_dup (ev->name ()); + + // Retrieve stock information if the stock name is in the + // subscribed_stock_list + if (this->subscribed_stock_list_.find (stock_name.in ()) != + this->subscribed_stock_list_.end ()) + { + Stock::StockQuoter_var quoter_obj = + this->context_->get_connection_read_quoter (); + + if (CORBA::is_nil (quoter_obj.in ())) + { + throw CORBA::BAD_PARAM (); + } + + Stock::StockInfo_var info = + quoter_obj->get_stock_info (stock_name.in ()); + + ACE_DEBUG ((LM_DEBUG, "Quoter - Current value of %s is %d\n", + stock_name.in (), + info->last)); + } + } + + // Operations from Components::SessionComponent + + void + StockBroker_exec_i::set_session_context ( + ::Components::SessionContext_ptr ctx) + { + this->context_ = + ::Stock::CCM_StockBroker_Context::_narrow (ctx); + + if (CORBA::is_nil (this->context_.in ())) + { + throw ::CORBA::INTERNAL (); + } + } + + void + StockBroker_exec_i::configuration_complete () + { + } + + void + StockBroker_exec_i::ccm_activate () + { + } + + void + StockBroker_exec_i::ccm_passivate () + { + } + + void + StockBroker_exec_i::ccm_remove () + { + } + + //================================================================== + // Home Executor Implementation Class: StockBrokerHome_exec_i + //================================================================== + + StockBrokerHome_exec_i::StockBrokerHome_exec_i (void) + { + } + + StockBrokerHome_exec_i::~StockBrokerHome_exec_i (void) + { + } + + // Supported or inherited operations. + + // Home operations. + + // Factory and finder operations. + + // Attribute operations. + + // Implicit operations. + + ::Components::EnterpriseComponent_ptr + StockBrokerHome_exec_i::create () + { + ::Components::EnterpriseComponent_ptr retval = + ::Components::EnterpriseComponent::_nil (); + + ACE_NEW_THROW_EX ( + retval, + StockBroker_exec_i, + CORBA::NO_MEMORY ()); + + return retval; + } + + extern "C" STOCKBROKER_EXEC_Export ::Components::EnterpriseComponent_ptr + create_Stock_StockBrokerComp_Impl (void) + { + ::Components::EnterpriseComponent_ptr retval = + ::Components::EnterpriseComponent::_nil (); + + ACE_NEW_RETURN ( + retval, + StockBroker_exec_i, + ::Components::EnterpriseComponent::_nil ()); + + return retval; + } + + extern "C" STOCKBROKER_EXEC_Export ::Components::HomeExecutorBase_ptr + create_Stock_StockBrokerHome_Impl (void) + { + ::Components::HomeExecutorBase_ptr retval = + ::Components::HomeExecutorBase::_nil (); + + ACE_NEW_RETURN ( + retval, + StockBrokerHome_exec_i, + ::Components::HomeExecutorBase::_nil ()); + + return retval; + } +} diff --git a/modules/CIAO/docs/tutorials/Quoter/Simple/Broker/StockBroker_exec.h b/modules/CIAO/docs/tutorials/Quoter/Simple/Broker/StockBroker_exec.h new file mode 100644 index 00000000000..2ff9e2a03e3 --- /dev/null +++ b/modules/CIAO/docs/tutorials/Quoter/Simple/Broker/StockBroker_exec.h @@ -0,0 +1,131 @@ +// $Id$ +// +// **** Code generated by the **** +// **** Component Integrated ACE ORB (CIAO) CIDL Compiler **** +// CIAO has been developed by: +// Center for Distributed Object Computing +// Washington University +// St. Louis, MO +// USA +// http://www.cs.wustl.edu/~schmidt/doc-center.html +// CIDL Compiler has been developed by: +// Institute for Software Integrated Systems +// Vanderbilt University +// Nashville, TN +// USA +// http://www.isis.vanderbilt.edu/ +// +// Information about CIAO is available at: +// http://www.dre.vanderbilt.edu/CIAO + +#ifndef CIAO_STOCKBROKER_EXEC_H +#define CIAO_STOCKBROKER_EXEC_H + +#include /**/ "ace/pre.h" + +#include "StockBrokerEC.h" + +#include <set> +#include <string> + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + +#include "StockBroker_exec_export.h" +#include "tao/LocalObject.h" + +//namespace CIAO_Stock_StockDistributor_Impl +//namespace CIDL_StockDistributor_Impl +namespace CIAO_Stock_StockBroker_Impl +{ + + /** + * @class StockBroker_exec_i + * + * @brief Executor implementation + * + * This class implements Stock::StockBroker component + */ + class STOCKBROKER_EXEC_Export StockBroker_exec_i + : public virtual StockBroker_Exec, + public virtual ::CORBA::LocalObject + { + public: + StockBroker_exec_i (void); + virtual ~StockBroker_exec_i (void); + + + // Supported or inherited operations. + + virtual void + stock_subscribe (const char * stock_name); + + virtual void + stock_unsubscribe (const char * stock_name); + + // Attribute operations. + + // Port operations. + + virtual void + push_notify_in (::Stock::StockName *ev); + + // Operations from Components::SessionComponent + + virtual void + set_session_context (::Components::SessionContext_ptr ctx); + + virtual void configuration_complete (); + + virtual void ccm_activate (); + + virtual void ccm_passivate (); + + virtual void ccm_remove (); + + private: + ::Stock::CCM_StockBroker_Context_var context_; + std::set<std::string> subscribed_stock_list_; + }; + + + /** + * @class StockBrokerHome_exec_i + * + * @brief Executor implementation + * + * This class implements Stock::StockBrokerHome component + */ + class STOCKBROKER_EXEC_Export StockBrokerHome_exec_i + : public virtual StockBrokerHome_Exec, + public virtual ::CORBA::LocalObject + { + public: + StockBrokerHome_exec_i (void); + virtual ~StockBrokerHome_exec_i (void); + + // Supported or inherited operations. + + // Home operations. + + // Factory and finder operations. + + // Attribute operations. + + // Implicit operations. + + virtual ::Components::EnterpriseComponent_ptr + create (); + }; + + + extern "C" STOCKBROKER_EXEC_Export ::Components::EnterpriseComponent_ptr + create_Stock_StockBrokerComp_Impl (void); + extern "C" STOCKBROKER_EXEC_Export ::Components::HomeExecutorBase_ptr + create_Stock_StockBrokerHome_Impl (void); +} + +#include /**/ "ace/post.h" + +#endif /* CIAO_STOCKBROKER_EXEC_H */ diff --git a/modules/CIAO/docs/tutorials/Quoter/Simple/Distributor/StockDistributor.idl b/modules/CIAO/docs/tutorials/Quoter/Simple/Distributor/StockDistributor.idl new file mode 100644 index 00000000000..760493b3f50 --- /dev/null +++ b/modules/CIAO/docs/tutorials/Quoter/Simple/Distributor/StockDistributor.idl @@ -0,0 +1,46 @@ +//$Id$ + +#ifndef STOCKDISTRIBUTOR_IDL +#define STOCKDISTRIBUTOR_IDL + +#include "../Stock_Base/Stock_Base.idl" + +module Stock +{ + /** + * @class Trigger + * + * @brief supported interface + */ + interface Trigger { + /// Start the real-time monitoring service + void start (); + /// Stop the real-time monitoring service + void stop (); + }; + + + /** + * @class StockDistributor + * + * @brief component + */ + component StockDistributor supports Trigger + { + publishes StockName notify_out; + provides StockQuoter push_quoter; + attribute long rate; + }; + + + /** + * @class StockDistributorHome + * + * @brief home for StockDistributor component + */ + home StockDistributorHome manages StockDistributor + { + }; +}; + +#endif /* STOCKDISTRIBUTOR_IDL */ diff --git a/modules/CIAO/docs/tutorials/Quoter/Simple/Distributor/StockDistributor.mpc b/modules/CIAO/docs/tutorials/Quoter/Simple/Distributor/StockDistributor.mpc new file mode 100644 index 00000000000..b03dd02c6b5 --- /dev/null +++ b/modules/CIAO/docs/tutorials/Quoter/Simple/Distributor/StockDistributor.mpc @@ -0,0 +1,153 @@ +// $Id$ +// This file is generated with "generate_component_mpc.pl -p Stock_Base -c StockDistributorDriver StockDistributor -l ../lib -o ../lib" + +project(Stock_Base_StockDistributor_idl_gen) : componentidldefaults { + custom_only = 1 + idlflags += -Wb,stub_export_macro=STOCKDISTRIBUTOR_STUB_Export \ + -Wb,stub_export_include=StockDistributor_stub_export.h \ + -Wb,skel_export_macro=STOCKDISTRIBUTOR_SVNT_Export \ + -Wb,skel_export_include=StockDistributor_svnt_export.h \ + -Wb,exec_export_macro=STOCKDISTRIBUTOR_EXEC_Export \ + -Wb,exec_export_include=StockDistributor_exec_export.h + + IDL_Files { + StockDistributor.idl + } +} + +project(Stock_Base_StockDistributor_lem_gen) : ciaoidldefaults { + after += Stock_Base_StockDistributor_idl_gen + custom_only = 1 + idlflags += -Wb,stub_export_macro=STOCKDISTRIBUTOR_LEM_STUB_Export \ + -Wb,stub_export_include=StockDistributor_lem_stub_export.h \ + -SS -Gxhst + + IDL_Files { + StockDistributorE.idl + } +} + +project(Stock_Base_StockDistributor_lem_stub) : ccm_svnt { + after += Stock_Base_StockDistributor_lem_gen Stock_Base_StockDistributor_stub Stock_Base_stub + libs += Stock_Base_stub StockDistributor_stub + libpaths += ../lib + libout = ../lib + sharedname = StockDistributor_lem_stub + dynamicflags = STOCKDISTRIBUTOR_LEM_STUB_BUILD_DLL + + IDL_Files { + } + + Source_Files { + StockDistributorEC.cpp + } + + Header_Files { + StockDistributorEC.h + StockDistributor_lem_stub_export.h + } + + Inline_Files { + StockDistributorEC.inl + } +} + +project(Stock_Base_StockDistributor_stub) : ccm_stub { + after += Stock_Base_StockDistributor_idl_gen Stock_Base_stub + libs += Stock_Base_stub + libpaths += ../lib + libout = ../lib + sharedname = StockDistributor_stub + dynamicflags = STOCKDISTRIBUTOR_STUB_BUILD_DLL + + IDL_Files { + } + + Source_Files { + StockDistributorC.cpp + } + + Header_Files { + StockDistributorC.h + StockDistributor_stub_export.h + } + + Inline_Files { + StockDistributorC.inl + } +} + +project(Stock_Base_StockDistributor_exec) : ciao_executor { + after += Stock_Base_StockDistributor_lem_stub Stock_Base_StockDistributor_stub + sharedname = StockDistributor_exec + libs += StockDistributor_stub StockDistributor_lem_stub Stock_Base_stub + libpaths += ../lib + libout = ../lib + dynamicflags = STOCKDISTRIBUTOR_EXEC_BUILD_DLL + + IDL_Files { + } + + Source_Files { + StockDistributor_exec.cpp + } + + Header_Files { + StockDistributor_exec.h + StockDistributor_exec_export.h + } + + Inline_Files { + } +} + + +project(Stock_Base_StockDistributor_svnt) : ciao_servant { + after += Stock_Base_skel Stock_Base_StockDistributor_lem_stub + sharedname = StockDistributor_svnt + libs += StockDistributor_stub StockDistributor_lem_stub \ + Stock_Base_skel \ + Stock_Base_stub + libpaths += ../lib + libout = ../lib + dynamicflags = STOCKDISTRIBUTOR_SVNT_BUILD_DLL + + IDL_Files { + } + + Source_Files { + StockDistributorS.cpp + StockDistributor_svnt.cpp + } + + Header_Files { + StockDistributorS.h + StockDistributor_svnt.h + StockDistributor_svnt_export.h + } + + Inline_Files { + StockDistributorS.inl + } +} + +project (Stock_Base_StockDistributorDriver) : ccm_stub, valuetype { + exename = StockDistributorDriver + after += Stock_Base_StockDistributor_stub + libs += StockDistributor_stub Stock_Base_stub + libpaths += ../lib + libout = ../lib + IDL_Files { + } + + Source_Files { + StockDistributorDriver.cpp + } + + Header_Files { + } + + Inline_Files { + } +} + diff --git a/modules/CIAO/docs/tutorials/Quoter/Simple/Distributor/StockDistributorDriver.cpp b/modules/CIAO/docs/tutorials/Quoter/Simple/Distributor/StockDistributorDriver.cpp new file mode 100644 index 00000000000..98eb6362d38 --- /dev/null +++ b/modules/CIAO/docs/tutorials/Quoter/Simple/Distributor/StockDistributorDriver.cpp @@ -0,0 +1,115 @@ +//$Id$ +/* + * @file StockDistributorDriver.cpp + * + * @author Ming Xiong <mxiong@dre.vanderbilt.edu> + */ + + +#include "StockDistributorC.h" +#include "ace/streams.h" +#include "ace/Get_Opt.h" + +const ACE_TCHAR *distributor_ior = ACE_TEXT ("file://StockDistributor.ior"); +int rate = 2; +int turn_on = 1; + +int +parse_args (int argc, ACE_TCHAR *argv[]) +{ + ACE_Get_Opt get_opts (argc, argv, ACE_TEXT("k:r:of")); + int c; + + while ((c = get_opts ()) != -1) + { + switch (c) + { + case 'k': + distributor_ior = get_opts.opt_arg (); + break; + + case 'o': + turn_on = 1; + break; + + case 'f': + turn_on = 0; + break; + + case 'r': + rate = ACE_OS::atoi (get_opts.opt_arg ()); + break; + + case '?': + default: + ACE_ERROR_RETURN ((LM_ERROR, + "usage: %s\n" + "-o (Start the distribution service)\n" + "-f (Stop the distribution service)\n" + "-k <Distributor IOR> (default is file://StockDistributor.ior)\n" + "-r <broadcast frequency in Hertz> (default is 2)\n" + "\n", + argv [0]), + -1); + } + } + + return 0; +} + + +int ACE_TMAIN (int argc, ACE_TCHAR* argv[]) +{ + try + { + // initialize the ORB + CORBA::ORB_var orb = + CORBA::ORB_init (argc, argv); + + if (parse_args (argc, argv) != 0) + { + return -1; + } + + // create the factory object reference, + CORBA::Object_var distributor_obj = + orb->string_to_object (distributor_ior); + + // downcast the object reference to the appropriate type + Stock::StockDistributor_var distributor = + Stock::StockDistributor::_narrow (distributor_obj.in ()); + + if (CORBA::is_nil (distributor.in ())) + { + ACE_ERROR_RETURN ((LM_ERROR, + "Unable to acquire 'Distributor' objref\n"), + -1); + } + + if (turn_on) + { + distributor->rate (rate); + + ACE_DEBUG ((LM_DEBUG, "Start up the Distribution service\n")); + + distributor->start (); + } + else + { + ACE_DEBUG ((LM_DEBUG, "Stop the Distribution service\n")); + + distributor->stop (); + } + + orb->destroy (); + } + catch (const CORBA::Exception& ex) + { + ex._tao_print_exception ("Who is the culprit\n"); + ACE_ERROR_RETURN ((LM_ERROR, + "Uncaught CORBA exception\n"), + 1); + } + + return 0; +} diff --git a/modules/CIAO/docs/tutorials/Quoter/Simple/Distributor/StockDistributor_exec.cpp b/modules/CIAO/docs/tutorials/Quoter/Simple/Distributor/StockDistributor_exec.cpp new file mode 100644 index 00000000000..7c675d1d2f5 --- /dev/null +++ b/modules/CIAO/docs/tutorials/Quoter/Simple/Distributor/StockDistributor_exec.cpp @@ -0,0 +1,349 @@ +// $Id$ +// +// **** Code generated by the **** +// **** Component Integrated ACE ORB (CIAO) CIDL Compiler **** +// CIAO has been developed by: +// Center for Distributed Object Computing +// Washington University +// St. Louis, MO +// USA +// http://www.cs.wustl.edu/~schmidt/doc-center.html +// CIDL Compiler has been developed by: +// Institute for Software Integrated Systems +// Vanderbilt University +// Nashville, TN +// USA +// http://www.isis.vanderbilt.edu/ +// +// Information about CIAO is available at: +// http://www.dre.vanderbilt.edu/CIAO + +#include "StockDistributor_exec.h" +#include "ciao/CIAO_common.h" +#include "ace/Reactor.h" + + +namespace CIAO_Stock_StockDistributor_Impl +{ + + // initialze the stock values + CORBA::Long + StockDistributor_exec_i::ibm_ = 100; + + CORBA::Long + StockDistributor_exec_i::msft_ = 101; + + //================================================================== + // C L A S S: pulse_Generator + //================================================================== + + pulse_Generator::pulse_Generator (StockDistributor_exec_i *callback) + : active_ (0), + pulse_callback_ (callback) + { + // initialize the reactor + this->reactor (ACE_Reactor::instance ()); + } + + pulse_Generator::~pulse_Generator () + { + } + + int + pulse_Generator::open_h () + { + // convert the task into a active object that runs in separate thread + return this->activate (); + } + + int + pulse_Generator::close_h () + { + this->reactor ()->end_reactor_event_loop (); + + // wait for all threads in the task to exit before it returns + return this->wait (); + } + + int + pulse_Generator::start (CORBA::Long hertz) + { + // return if not valid + if (hertz == 0 || this->active_ != 0) + { + return -1; + } + + // calculate the interval time + long usec = 1000000 / hertz; + + if (this->reactor ()->schedule_timer (this, + 0, + ACE_Time_Value (0, usec), + ACE_Time_Value (0, usec)) == -1) + { + ACE_ERROR_RETURN ((LM_ERROR, + "Unable to setup Timer\n"), + -1); + + } + + this->active_ = 1; + return 0; + } + + int + pulse_Generator::stop (void) + { + // return if not valid. + if (this->active_ == 0) + { + return -1; + } + // cancle the timer + this->reactor ()->cancel_timer (this); + this->active_ = 0; + return 0; + } + + int + pulse_Generator::active (void) + { + return this->active_; + } + + int + pulse_Generator::handle_close (ACE_HANDLE handle, + ACE_Reactor_Mask close_mask) + { + ACE_DEBUG ((LM_DEBUG, + ACE_TEXT ("[%x] handle = %d, close_mask = %d\n"), + this, + handle, + close_mask)); + return 0; + } + + int + pulse_Generator::handle_timeout (const ACE_Time_Value &, + const void *) + { + // Notify the subscribers + this->pulse_callback_->push_notify_out (); + return 0; + } + + int + pulse_Generator::svc (void) + { + // define the owner of the reactor thread + this->reactor ()->owner (ACE_OS::thr_self ()); + + // run event loop to wait for event, and then dispatch them to corresponding handlers + this->reactor ()->run_reactor_event_loop (); + + return 0; + } + + + + //================================================================== + // Facet Executor Implementation Class: StockQuoter_exec_i + //================================================================== + + ::Stock::StockInfo * + StockQuoter_exec_i::get_stock_info (const char *stock_name) + { + if (ACE_OS::strcmp (stock_name, "MSFT") == 0) + { + Stock::StockInfo_var info = new Stock::StockInfo; + info->name = CORBA::string_dup ("MSFT"); + info->high = 10000; + info->low = 0; + info->last = this->distributor_.msft_; // retrieve the current stock value + return info._retn (); + } + else if (ACE_OS::strcmp (stock_name, "IBM") == 0) + { + Stock::StockInfo_var info = new Stock::StockInfo; + info->name = CORBA::string_dup ("IBM"); + info->high = 10000; + info->low = 0; + info->last = this->distributor_.ibm_; // retrieve the current stock value + return info._retn (); + } + else + { + throw Stock::Invalid_Stock (); + } + } + + //================================================================== + // Component Executor Implementation Class: StockDistributor_exec_i + //================================================================== + + StockDistributor_exec_i::StockDistributor_exec_i (void) + : rate_ (0), pulser_ (this) + { + } + + StockDistributor_exec_i::~StockDistributor_exec_i (void) + { + } + + // Supported or inherited operations. + + void + StockDistributor_exec_i::start () + { + if (this->rate_ == 0 || this->pulser_.active()) + { + throw CORBA::BAD_PARAM (); + } + + this->pulser_.start (this->rate_); + } + + void + StockDistributor_exec_i::stop () + { + if (! this->pulser_.active ()) + { + throw CORBA::BAD_INV_ORDER (); + } + + this->pulser_.stop (); + } + + // Attribute operations. + + ::CORBA::Long + StockDistributor_exec_i::rate () + { + return this->rate_; + } + + void + StockDistributor_exec_i::rate ( + ::CORBA::Long rate) + { + this->rate_ = rate; + } + + // Port operations. + + ::Stock::CCM_StockQuoter_ptr + StockDistributor_exec_i::get_push_quoter () + { + return new StockQuoter_exec_i (*this); + } + + void + StockDistributor_exec_i::push_notify_out () + { + ++this->msft_; + ++this->ibm_; + + Stock::StockName_var ev_msft = new OBV_Stock::StockName; + ev_msft->name (CORBA::string_dup ("MSFT")); + this->context_->push_notify_out (ev_msft.in ()); + + Stock::StockName_var ev_ibm = new OBV_Stock::StockName; + ev_ibm->name (CORBA::string_dup ("IBM")); + this->context_->push_notify_out (ev_ibm.in ()); + } + + // Operations from Components::SessionComponent + + void + StockDistributor_exec_i::set_session_context ( + ::Components::SessionContext_ptr ctx) + { + this->context_ = + ::Stock::CCM_StockDistributor_Context::_narrow (ctx); + + if (CORBA::is_nil (this->context_.in ())) + { + throw ::CORBA::INTERNAL (); + } + } + + void + StockDistributor_exec_i::configuration_complete () + { + } + + void + StockDistributor_exec_i::ccm_activate () + { + // Start the active object + this->pulser_.open_h (); + } + + void + StockDistributor_exec_i::ccm_passivate () + { + // Deactivate the active object + this->pulser_.close_h (); + } + + void + StockDistributor_exec_i::ccm_remove () + { + } + + //================================================================== + // Home Executor Implementation Class: StockDistributorHome_exec_i + //================================================================== + + StockDistributorHome_exec_i::StockDistributorHome_exec_i (void) + { + } + + StockDistributorHome_exec_i::~StockDistributorHome_exec_i (void) + { + } + + ::Components::EnterpriseComponent_ptr + StockDistributorHome_exec_i::create () + { + ::Components::EnterpriseComponent_ptr retval = + ::Components::EnterpriseComponent::_nil (); + + ACE_NEW_THROW_EX ( + retval, + StockDistributor_exec_i, + CORBA::NO_MEMORY ()); + + return retval; + } + + extern "C" STOCKDISTRIBUTOR_EXEC_Export ::Components::EnterpriseComponent_ptr + create_Stock_StockDistributorComp_Impl (void) + { + ::Components::EnterpriseComponent_ptr retval = + ::Components::EnterpriseComponent::_nil (); + + ACE_NEW_RETURN ( + retval, + StockDistributor_exec_i, + ::Components::EnterpriseComponent::_nil ()); + + return retval; + } + + extern "C" STOCKDISTRIBUTOR_EXEC_Export ::Components::HomeExecutorBase_ptr + create_Stock_StockDistributorHome_Impl (void) + { + ::Components::HomeExecutorBase_ptr retval = + ::Components::HomeExecutorBase::_nil (); + + ACE_NEW_RETURN ( + retval, + StockDistributorHome_exec_i, + ::Components::HomeExecutorBase::_nil ()); + + return retval; + } +} + diff --git a/modules/CIAO/docs/tutorials/Quoter/Simple/Distributor/StockDistributor_exec.h b/modules/CIAO/docs/tutorials/Quoter/Simple/Distributor/StockDistributor_exec.h new file mode 100644 index 00000000000..de159bca4eb --- /dev/null +++ b/modules/CIAO/docs/tutorials/Quoter/Simple/Distributor/StockDistributor_exec.h @@ -0,0 +1,242 @@ +// $Id$ +// +// **** Code generated by the **** +// **** Component Integrated ACE ORB (CIAO) CIDL Compiler **** +// CIAO has been developed by: +// Center for Distributed Object Computing +// Washington University +// St. Louis, MO +// USA +// http://www.cs.wustl.edu/~schmidt/doc-center.html +// CIDL Compiler has been developed by: +// Institute for Software Integrated Systems +// Vanderbilt University +// Nashville, TN +// USA +// http://www.isis.vanderbilt.edu/ +// +// Information about CIAO is available at: +// http://www.dre.vanderbilt.edu/CIAO + +#ifndef CIAO_STOCKDISTRIBUTOR_EXEC_H +#define CIAO_STOCKDISTRIBUTOR_EXEC_H + +#include /**/ "ace/pre.h" +#include "ace/Thread_Manager.h" +#include "ace/Task.h" + +#include "StockDistributorEC.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + +#include "StockDistributor_exec_export.h" +#include "tao/LocalObject.h" + +namespace CIAO_Stock_StockDistributor_Impl +//namespace CIDL_StockDistributor_Impl +{ + class StockDistributor_exec_i; + + /** + * @class StockQuoter_exec_i + * + * @brief Executor implementation + * + * This class implements Stock::StockQuoter interface. We use this interface + * to acquire the information of the stock + */ + class STOCKDISTRIBUTOR_EXEC_Export StockQuoter_exec_i + : public virtual ::Stock::CCM_StockQuoter, + public virtual ::CORBA::LocalObject + { + public: + StockQuoter_exec_i (StockDistributor_exec_i &distributor) + : distributor_ (distributor) + { + } + + // Operations from ::Stock::StockQuoter + + virtual ::Stock::StockInfo * + get_stock_info (const char * stock_name); + + /// User defined + + private: + /// Maintains a handle to the distributor so that the quoter can refer to it for latest quote + StockDistributor_exec_i &distributor_; + }; + + class StockDistributor_exec_i; + + /** + * @class pulse generator + * + * @brief an active object used by StockDistributor to perform periodical pulse generation + * + */ + class pulse_Generator : public ACE_Task_Base + { + public: + pulse_Generator (StockDistributor_exec_i *callback); + + ~pulse_Generator (); + + /// Hook method that performs application-defined initialization activities + int open_h (void); + + /// Hook method that performs application-defined destruction activites + int close_h (void); + + /// appliation-defined method for starting the pulse-generation service + int start (CORBA::Long hertz); + + /// application-defined method for stopping the pulse-generation service + int stop (void); + + /// Indicate whether the current object is active + int active (void); + + /// Handle the timeout. + virtual int handle_timeout (const ACE_Time_Value &tv, + const void *arg); + + /// Called when timer handler is removed. + virtual int handle_close (ACE_HANDLE handle, + ACE_Reactor_Mask close_mask); + + /// Hook methods implemnting the task's service processing, + /// invoked by all threads activated by activate () method + virtual int svc (void); + + private: + /// Tracking whether we are actively generating pulse or not. + int active_; + + /// Maintains a handle that actually process the event + StockDistributor_exec_i *pulse_callback_; + + }; + + + /** + * @class StockDistributor_exec_i + * + * @brief Executor implementation + * + * This class implements Stock::StockDistributor component + */ + class STOCKDISTRIBUTOR_EXEC_Export StockDistributor_exec_i + : public virtual StockDistributor_Exec, + public virtual ::CORBA::LocalObject + { + public: + StockDistributor_exec_i (void); + virtual ~StockDistributor_exec_i (void); + + // Supported or inherited operations. + + virtual void + start (); + + virtual void + stop (); + + // Attribute operations. + + virtual ::CORBA::Long + rate (); + + virtual void + rate (::CORBA::Long); + + // Port operations. + + virtual ::Stock::CCM_StockQuoter_ptr + get_push_quoter (); + + // Operations from Components::SessionComponent + + virtual void + set_session_context ( + ::Components::SessionContext_ptr ctx); + + virtual void + configuration_complete (); + + virtual void + ccm_activate (); + + virtual void + ccm_passivate (); + + virtual void + ccm_remove (); + + private: + ::Stock::CCM_StockDistributor_Context_var context_; + + /// User defined members + public: + + /// push event to all subscribers + void push_notify_out (); + + private: + /// pulse generation rate + CORBA::Long rate_; + + /// pulser object + pulse_Generator pulser_; + + /// "real-time" stock value + static CORBA::Long msft_; + + /// "real-tiime" stock value + static CORBA::Long ibm_; + + friend class StockQuoter_exec_i; + }; + + + /** + * @class StockDistributorHome_exec_i + * + * @brief Executor implementation + * + * This class implements Stock::StockDistributorHome + */ + class STOCKDISTRIBUTOR_EXEC_Export StockDistributorHome_exec_i + : public virtual StockDistributorHome_Exec, + public virtual ::CORBA::LocalObject + { + public: + StockDistributorHome_exec_i (void); + virtual ~StockDistributorHome_exec_i (void); + + // Supported or inherited operations. + + // Home operations. + + // Factory and finder operations. + + // Attribute operations. + + // Implicit operations. + + virtual ::Components::EnterpriseComponent_ptr + create (); + }; + + extern "C" STOCKDISTRIBUTOR_EXEC_Export ::Components::EnterpriseComponent_ptr + create_Stock_StockDistributorComp_Impl (void); + extern "C" STOCKDISTRIBUTOR_EXEC_Export ::Components::HomeExecutorBase_ptr + create_Stock_StockDistributorHome_Impl (void); +} + +#include /**/ "ace/post.h" + +#endif /* CIAO_STOCKDISTRIBUTOR_EXEC_H */ + diff --git a/modules/CIAO/docs/tutorials/Quoter/Simple/Icons/AddConnMode.gif b/modules/CIAO/docs/tutorials/Quoter/Simple/Icons/AddConnMode.gif Binary files differnew file mode 100644 index 00000000000..3604d32946d --- /dev/null +++ b/modules/CIAO/docs/tutorials/Quoter/Simple/Icons/AddConnMode.gif diff --git a/modules/CIAO/docs/tutorials/Quoter/Simple/Icons/SetMode.gif b/modules/CIAO/docs/tutorials/Quoter/Simple/Icons/SetMode.gif Binary files differnew file mode 100644 index 00000000000..6dcad861f07 --- /dev/null +++ b/modules/CIAO/docs/tutorials/Quoter/Simple/Icons/SetMode.gif diff --git a/modules/CIAO/docs/tutorials/Quoter/Simple/Model/Quoter.xme b/modules/CIAO/docs/tutorials/Quoter/Simple/Model/Quoter.xme new file mode 100644 index 00000000000..3ddd7a278bd --- /dev/null +++ b/modules/CIAO/docs/tutorials/Quoter/Simple/Model/Quoter.xme @@ -0,0 +1,1963 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE project SYSTEM "mga.dtd"> + +<project guid="{8A93AFDA-3549-4255-9EF6-A3867650B536}" cdate="Wed Jun 17 09:03:38 2009" mdate="Wed Jun 17 09:03:38 2009" version="" metaguid="{CDCDB657-AAD7-4917-941A-E63B013136B7}" metaversion="" metaname="PICML"> + <name>Quoter</name> + <comment></comment> + <author></author> + <folder id="id-006a-00000001" relid="0x1" childrelidcntr="0x2" kind="RootFolder" guid="{6BC78ED2-0419-439e-A10D-B60A1C8920AB}"> + <name>Quoter</name> + <folder id="id-006a-00000002" relid="0x2" childrelidcntr="0x3" kind="InterfaceDefinitions" guid="{8E5034A7-25B8-4ccc-B4AA-BB3CE62F2F5E}"> + <name>InterfaceDefinitions</name> + <model id="id-0065-00000001" kind="File" guid="{67245E9C-04DC-47b1-94C4-AFEA2A2A807B}" relid="0x1" childrelidcntr="0x2"> + <name>StockBroker</name> + <attribute kind="PrefixTag"> + <value></value> + </attribute> + <attribute kind="path"> + <value></value> + </attribute> + <model id="id-0065-00000002" kind="Package" role="Package" guid="{27EEA834-EC7C-48f6-A8C2-2ED4C68FE286}" relid="0x3" childrelidcntr="0x6"> + <name>Stock</name> + <regnode name="PartRegs" isopaque="yes"> + <value></value> + <regnode name="InterfaceDefinition" isopaque="yes"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>377,230</value> + </regnode> + </regnode> + </regnode> + <attribute kind="PrefixTag"> + <value></value> + </attribute> + <attribute kind="SpecifyIdTag"> + <value></value> + </attribute> + <attribute kind="VersionTag"> + <value></value> + </attribute> + <model id="id-0065-00000003" kind="Object" role="Object" guid="{DDF50EEE-BE13-4cfe-BCFB-1836C86B5867}" relid="0x1" childrelidcntr="0x2"> + <name>StockSubscriber</name> + <regnode name="PartRegs" isopaque="yes"> + <value></value> + <regnode name="InterfaceDefinition" isopaque="yes"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>62,27</value> + </regnode> + </regnode> + </regnode> + <attribute kind="PrefixTag"> + <value></value> + </attribute> + <attribute kind="SpecifyIdTag"> + <value></value> + </attribute> + <attribute kind="VersionTag"> + <value></value> + </attribute> + <attribute kind="abstract" status="meta"> + <value>false</value> + </attribute> + <attribute kind="local" status="meta"> + <value>false</value> + </attribute> + <model id="id-0065-00000004" kind="TwowayOperation" role="TwowayOperation" guid="{6FF62DFD-E7F5-4c94-93DA-1730500D00AD}" relid="0x1" childrelidcntr="0x2"> + <name>stock_subscribe</name> + <regnode name="PartRegs" isopaque="yes"> + <value></value> + <regnode name="InterfaceDefinition" isopaque="yes"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>334,201</value> + </regnode> + </regnode> + </regnode> + <attribute kind="SpecifyIdTag"> + <value></value> + </attribute> + <attribute kind="VersionTag"> + <value></value> + </attribute> + <reference id="id-0067-0000000f" kind="InParameter" role="InParameter" guid="{16C69DDD-E366-4e38-8CE1-C06866E259B8}" relid="0x1" referred="id-0066-00000003"> + <name>stock_name</name> + <regnode name="PartRegs" isopaque="yes"> + <value></value> + <regnode name="InterfaceDefinition" isopaque="yes"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>334,201</value> + </regnode> + </regnode> + </regnode> + </reference> + <reference id="id-0067-00000010" kind="ExceptionRef" role="ExceptionRef" guid="{DCB1A5F3-2875-4c48-B7BD-FF11685DF909}" relid="0x2" referred="id-0065-00000012"> + <name>ExceptionRef</name> + <regnode name="PartRegs" isopaque="yes"> + <value></value> + <regnode name="InterfaceDefinition" isopaque="yes"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>700,434</value> + </regnode> + </regnode> + </regnode> + </reference> + </model> + <model id="id-0065-00000005" kind="TwowayOperation" role="TwowayOperation" guid="{34BCF95A-57C2-47be-B806-934CA2E766E7}" relid="0x2" childrelidcntr="0x2"> + <name>stock_unsubscribe</name> + <regnode name="PartRegs" isopaque="yes"> + <value></value> + <regnode name="InterfaceDefinition" isopaque="yes"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>700,434</value> + </regnode> + </regnode> + </regnode> + <attribute kind="SpecifyIdTag"> + <value></value> + </attribute> + <attribute kind="VersionTag"> + <value></value> + </attribute> + <reference id="id-0067-00000011" kind="InParameter" role="InParameter" guid="{8C6C70F7-725E-4cc5-98E2-53ACD67DF44E}" relid="0x1" referred="id-0066-00000003"> + <name>stock_name</name> + <regnode name="PartRegs" isopaque="yes"> + <value></value> + <regnode name="InterfaceDefinition" isopaque="yes"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>334,201</value> + </regnode> + </regnode> + </regnode> + </reference> + <reference id="id-0067-00000012" kind="ExceptionRef" role="ExceptionRef" guid="{6E9CC803-1C0F-4900-8216-7FA0322FE397}" relid="0x2" referred="id-0065-00000012"> + <name>ExceptionRef</name> + <regnode name="PartRegs" isopaque="yes"> + <value></value> + <regnode name="InterfaceDefinition" isopaque="yes"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>700,434</value> + </regnode> + </regnode> + </regnode> + </reference> + </model> + </model> + <model id="id-0065-00000006" kind="Component" role="Component" guid="{93EF0D88-1CF5-476a-8826-0BE5AE1BA4B9}" relid="0x5" childrelidcntr="0x3"> + <name>StockBroker</name> + <regnode name="PartRegs" isopaque="yes"> + <value></value> + <regnode name="InterfaceDefinition" isopaque="yes"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>168,105</value> + </regnode> + </regnode> + <regnode name="Packaging" status="undefined"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>350,91</value> + </regnode> + </regnode> + </regnode> + <attribute kind="SpecifyIdTag"> + <value></value> + </attribute> + <attribute kind="UUID"> + <value>E103B6A4-3420-4A9E-B0E0-E8ED0EBD5B55</value> + </attribute> + <attribute kind="VersionTag"> + <value></value> + </attribute> + <attribute kind="label" status="meta"> + <value></value> + </attribute> + <reference id="id-0067-00000001" kind="Supports" role="Supports" guid="{FEDE19C3-AEE9-44a2-8F33-737564BBF340}" relid="0x1" referred="id-0065-00000003"> + <name>Supports</name> + <regnode name="PartRegs" isopaque="yes"> + <value></value> + <regnode name="InterfaceDefinition" isopaque="yes"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>243,143</value> + </regnode> + </regnode> + </regnode> + </reference> + <reference id="id-0067-00000013" kind="RequiredRequestPort" role="RequiredRequestPort" guid="{F077EDB5-3E3F-408b-A1B9-883A6919B75B}" relid="0x2" referred="id-0065-00000014"> + <name>read_quoter</name> + <regnode name="PartRegs" isopaque="yes"> + <value></value> + <regnode name="InterfaceDefinition" isopaque="yes"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>518,318</value> + </regnode> + </regnode> + </regnode> + <attribute kind="SpecifyIdTag"> + <value></value> + </attribute> + <attribute kind="VersionTag"> + <value></value> + </attribute> + <attribute kind="exclusiveProvider" status="meta"> + <value>false</value> + </attribute> + <attribute kind="exclusiveUser" status="meta"> + <value>false</value> + </attribute> + <attribute kind="multiple_connections"> + <value>false</value> + </attribute> + <attribute kind="optional" status="meta"> + <value>false</value> + </attribute> + </reference> + <reference id="id-0067-00000014" kind="InEventPort" role="InEventPort" guid="{684BF329-8B57-4c24-AFE5-68E4E92BD563}" relid="0x3" referred="id-0065-00000016"> + <name>notify_in</name> + <regnode name="PartRegs" isopaque="yes"> + <value></value> + <regnode name="InterfaceDefinition" isopaque="yes"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>793,493</value> + </regnode> + </regnode> + </regnode> + <attribute kind="SpecifyIdTag"> + <value></value> + </attribute> + <attribute kind="VersionTag"> + <value></value> + </attribute> + <attribute kind="exclusiveProvider" status="meta"> + <value>false</value> + </attribute> + <attribute kind="exclusiveUser" status="meta"> + <value>false</value> + </attribute> + <attribute kind="optional" status="meta"> + <value>false</value> + </attribute> + </reference> + </model> + <model id="id-0065-00000007" kind="ComponentFactory" role="ComponentFactory" guid="{64B12EF3-D83F-4efa-B10A-BA783E0550F1}" relid="0x3" childrelidcntr="0x1"> + <name>StockBrokerHome</name> + <regnode name="PartRegs" isopaque="yes"> + <value></value> + <regnode name="InterfaceDefinition" isopaque="yes"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>440,279</value> + </regnode> + </regnode> + </regnode> + <attribute kind="SpecifyIdTag"> + <value></value> + </attribute> + <attribute kind="VersionTag"> + <value></value> + </attribute> + </model> + <connection id="id-0068-0000002d" kind="ManagesComponent" role="ManagesComponent" guid="{51622E13-CD5D-461e-8E89-3509085CD31F}" relid="0x6"> + <name>ManagesComponent</name> + <connpoint role="dst" target="id-0065-00000006"/> + <connpoint role="src" target="id-0065-00000007"/> + </connection> + </model> + <reference id="id-0067-00000015" kind="FileRef" role="FileRef" guid="{2A6ADF8B-62C3-45ce-B2C2-9704C47604D4}" relid="0x1" referred="id-0065-00000010"> + <name>FileRef</name> + <regnode name="PartRegs" isopaque="yes"> + <value></value> + <regnode name="InterfaceDefinition" isopaque="yes"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>153,90</value> + </regnode> + </regnode> + </regnode> + </reference> + </model> + <model id="id-0065-00000008" kind="File" guid="{A36208EA-7458-4309-8CC3-A1764C9733C3}" relid="0x2" childrelidcntr="0x3"> + <name>StockDistributor</name> + <attribute kind="PrefixTag"> + <value></value> + </attribute> + <attribute kind="path"> + <value></value> + </attribute> + <model id="id-0065-00000009" kind="Package" role="Package" guid="{D0F34206-BB6F-422d-A7F5-6F51DF089C31}" relid="0x2" childrelidcntr="0x6"> + <name>Stock</name> + <regnode name="PartRegs" isopaque="yes"> + <value></value> + <regnode name="InterfaceDefinition" isopaque="yes"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>700,434</value> + </regnode> + </regnode> + </regnode> + <attribute kind="PrefixTag"> + <value></value> + </attribute> + <attribute kind="SpecifyIdTag"> + <value></value> + </attribute> + <attribute kind="VersionTag"> + <value></value> + </attribute> + <model id="id-0065-0000000a" kind="Object" role="Object" guid="{7B170229-1844-43ad-B95C-21EC7C1CDB07}" relid="0x1" childrelidcntr="0x2"> + <name>Trigger</name> + <regnode name="PartRegs" isopaque="yes"> + <value></value> + <regnode name="InterfaceDefinition" isopaque="yes"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>62,34</value> + </regnode> + </regnode> + </regnode> + <attribute kind="PrefixTag"> + <value></value> + </attribute> + <attribute kind="SpecifyIdTag"> + <value></value> + </attribute> + <attribute kind="VersionTag"> + <value></value> + </attribute> + <attribute kind="abstract" status="meta"> + <value>false</value> + </attribute> + <attribute kind="local" status="meta"> + <value>false</value> + </attribute> + <model id="id-0065-0000000b" kind="TwowayOperation" role="TwowayOperation" guid="{1D7A6E18-50C6-40b1-BDE5-370226BB1D03}" relid="0x1" childrelidcntr="0x0"> + <name>start</name> + <regnode name="PartRegs" isopaque="yes"> + <value></value> + <regnode name="InterfaceDefinition" isopaque="yes"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>334,201</value> + </regnode> + </regnode> + </regnode> + <attribute kind="SpecifyIdTag"> + <value></value> + </attribute> + <attribute kind="VersionTag"> + <value></value> + </attribute> + </model> + <model id="id-0065-0000000c" kind="TwowayOperation" role="TwowayOperation" guid="{C4367314-50F2-4aa6-BA62-C396D4915F96}" relid="0x2" childrelidcntr="0x0"> + <name>stop</name> + <regnode name="PartRegs" isopaque="yes"> + <value></value> + <regnode name="InterfaceDefinition" isopaque="yes"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>700,434</value> + </regnode> + </regnode> + </regnode> + <attribute kind="SpecifyIdTag"> + <value></value> + </attribute> + <attribute kind="VersionTag"> + <value></value> + </attribute> + </model> + </model> + <model id="id-0065-0000000d" kind="Component" role="Component" guid="{58335FFB-C9BD-40aa-83C6-A960ECFEF531}" relid="0x5" childrelidcntr="0x4"> + <name>StockDistributor</name> + <regnode name="PartRegs" isopaque="yes"> + <value></value> + <regnode name="InterfaceDefinition" isopaque="yes"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>168,147</value> + </regnode> + </regnode> + <regnode name="Packaging" status="undefined"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>112,91</value> + </regnode> + </regnode> + </regnode> + <attribute kind="SpecifyIdTag"> + <value></value> + </attribute> + <attribute kind="UUID"> + <value>5A918076-BA28-438E-8DC3-7BC56110C411</value> + </attribute> + <attribute kind="VersionTag"> + <value></value> + </attribute> + <attribute kind="label" status="meta"> + <value></value> + </attribute> + <model id="id-0065-0000000e" kind="Attribute" role="Attribute" guid="{4B700D25-867E-411b-A825-59629E4B881C}" relid="0x4" childrelidcntr="0x1"> + <name>rate</name> + <regnode name="PartRegs" isopaque="yes"> + <value></value> + <regnode name="InterfaceDefinition" isopaque="yes"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>848,528</value> + </regnode> + </regnode> + </regnode> + <attribute kind="SpecifyIdTag"> + <value></value> + </attribute> + <attribute kind="VersionTag"> + <value></value> + </attribute> + <reference id="id-0067-00000016" kind="AttributeMember" role="AttributeMember" guid="{BCD91514-3DDF-4e47-96C2-7BF061647753}" relid="0x1" referred="id-0066-00000007"> + <name>AttributeMember</name> + <regnode name="PartRegs" isopaque="yes"> + <value></value> + <regnode name="InterfaceDefinition" isopaque="yes"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>518,318</value> + </regnode> + </regnode> + </regnode> + </reference> + </model> + <reference id="id-0067-00000002" kind="Supports" role="Supports" guid="{798B2AFF-23F5-47af-B77F-50AF42C04F7A}" relid="0x1" referred="id-0065-0000000a"> + <name>Supports</name> + <regnode name="PartRegs" isopaque="yes"> + <value></value> + <regnode name="InterfaceDefinition" isopaque="yes"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>188,108</value> + </regnode> + </regnode> + </regnode> + </reference> + <reference id="id-0067-00000017" kind="ProvidedRequestPort" role="ProvidedRequestPort" guid="{BA2E4ACB-98C9-434c-AEBC-2B4C0C29863E}" relid="0x2" referred="id-0065-00000014"> + <name>push_quoter</name> + <regnode name="PartRegs" isopaque="yes"> + <value></value> + <regnode name="InterfaceDefinition" isopaque="yes"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>408,248</value> + </regnode> + </regnode> + </regnode> + <attribute kind="SpecifyIdTag"> + <value></value> + </attribute> + <attribute kind="VersionTag"> + <value></value> + </attribute> + <attribute kind="exclusiveProvider" status="meta"> + <value>false</value> + </attribute> + <attribute kind="exclusiveUser" status="meta"> + <value>false</value> + </attribute> + <attribute kind="optional" status="meta"> + <value>false</value> + </attribute> + </reference> + <reference id="id-0067-00000018" kind="OutEventPort" role="OutEventPort" guid="{1C51C321-CE5E-4931-97D8-5A4A21F3FC3D}" relid="0x3" referred="id-0065-00000016"> + <name>notify_out</name> + <regnode name="PartRegs" isopaque="yes"> + <value></value> + <regnode name="InterfaceDefinition" isopaque="yes"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>628,388</value> + </regnode> + </regnode> + </regnode> + <attribute kind="SpecifyIdTag"> + <value></value> + </attribute> + <attribute kind="VersionTag"> + <value></value> + </attribute> + <attribute kind="exclusiveProvider" status="meta"> + <value>false</value> + </attribute> + <attribute kind="exclusiveUser" status="meta"> + <value>false</value> + </attribute> + <attribute kind="optional" status="meta"> + <value>false</value> + </attribute> + <attribute kind="out_event_port_type" status="meta"> + <value>DirectConnect</value> + </attribute> + <attribute kind="single_destination"> + <value>false</value> + </attribute> + </reference> + </model> + <model id="id-0065-0000000f" kind="ComponentFactory" role="ComponentFactory" guid="{1F6E3301-215A-4bb2-87A5-3D7FA1DB439B}" relid="0x3" childrelidcntr="0x0"> + <name>StockDistributorHome</name> + <regnode name="PartRegs" isopaque="yes"> + <value></value> + <regnode name="InterfaceDefinition" isopaque="yes"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>440,321</value> + </regnode> + </regnode> + </regnode> + <attribute kind="SpecifyIdTag"> + <value></value> + </attribute> + <attribute kind="VersionTag"> + <value></value> + </attribute> + </model> + <connection id="id-0068-0000002e" kind="ManagesComponent" role="ManagesComponent" guid="{D25EB1FE-23EC-4c6d-9916-1E6988B0BBD6}" relid="0x6"> + <name>ManagesComponent</name> + <connpoint role="dst" target="id-0065-0000000d"/> + <connpoint role="src" target="id-0065-0000000f"/> + </connection> + </model> + <reference id="id-0067-00000019" kind="FileRef" role="FileRef" guid="{BEE82928-D7A0-47d5-BB74-69A8A0A40220}" relid="0x1" referred="id-0065-00000010"> + <name>FileRef</name> + <regnode name="PartRegs" isopaque="yes"> + <value></value> + <regnode name="InterfaceDefinition" isopaque="yes"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>334,201</value> + </regnode> + </regnode> + </regnode> + </reference> + </model> + <model id="id-0065-00000010" kind="File" guid="{520FE0C4-00B3-4fde-90EA-DFEE35CD6CBF}" relid="0x3" childrelidcntr="0x1"> + <name>Stock_Base</name> + <attribute kind="PrefixTag"> + <value></value> + </attribute> + <attribute kind="path"> + <value></value> + </attribute> + <model id="id-0065-00000011" kind="Package" role="Package" guid="{8B5C1B05-E097-4369-ABDC-25379FE12A65}" relid="0x1" childrelidcntr="0x5"> + <name>Stock</name> + <regnode name="PartRegs" isopaque="yes"> + <value></value> + <regnode name="InterfaceDefinition" isopaque="yes"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>518,318</value> + </regnode> + </regnode> + </regnode> + <attribute kind="PrefixTag"> + <value></value> + </attribute> + <attribute kind="SpecifyIdTag"> + <value></value> + </attribute> + <attribute kind="VersionTag"> + <value></value> + </attribute> + <model id="id-0065-00000012" kind="Exception" role="Exception" guid="{1ACD0C40-DF42-44f1-B474-8D34421E7BE4}" relid="0x1" childrelidcntr="0x0"> + <name>Invalid_Stock</name> + <regnode name="PartRegs" isopaque="yes"> + <value></value> + <regnode name="InterfaceDefinition" isopaque="yes"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>151,84</value> + </regnode> + </regnode> + </regnode> + <attribute kind="SpecifyIdTag"> + <value></value> + </attribute> + <attribute kind="VersionTag"> + <value></value> + </attribute> + </model> + <model id="id-0065-00000013" kind="Aggregate" role="Aggregate" guid="{A4C573E4-8C77-4c34-B737-6A36C0F0CDC7}" relid="0x3" childrelidcntr="0x4"> + <name>StockInfo</name> + <regnode name="PartRegs" isopaque="yes"> + <value></value> + <regnode name="InterfaceDefinition" isopaque="yes"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>517,316</value> + </regnode> + </regnode> + </regnode> + <attribute kind="SpecifyIdTag"> + <value></value> + </attribute> + <attribute kind="VersionTag"> + <value></value> + </attribute> + <reference id="id-0067-0000001b" kind="Member" role="Member" guid="{FB2DC97F-09F1-46ce-AA87-79861D8D6997}" relid="0x1" referred="id-0066-00000003"> + <name>name</name> + <regnode name="PartRegs" isopaque="yes"> + <value></value> + <regnode name="InterfaceDefinition" isopaque="yes"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>188,108</value> + </regnode> + </regnode> + </regnode> + </reference> + <reference id="id-0067-0000001c" kind="Member" role="Member" guid="{088590BA-352E-41aa-AFBC-7110E839D701}" relid="0x2" referred="id-0066-00000007"> + <name>high</name> + <regnode name="PartRegs" isopaque="yes"> + <value></value> + <regnode name="InterfaceDefinition" isopaque="yes"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>408,248</value> + </regnode> + </regnode> + </regnode> + </reference> + <reference id="id-0067-0000001d" kind="Member" role="Member" guid="{9927E2B8-0F00-4d99-BDD5-A5F1DA4C7F68}" relid="0x3" referred="id-0066-00000007"> + <name>low</name> + <regnode name="PartRegs" isopaque="yes"> + <value></value> + <regnode name="InterfaceDefinition" isopaque="yes"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>628,388</value> + </regnode> + </regnode> + </regnode> + </reference> + <reference id="id-0067-0000001e" kind="Member" role="Member" guid="{38FC2743-E085-4353-A4F9-3F8B74E0D990}" relid="0x4" referred="id-0066-00000007"> + <name>last</name> + <regnode name="PartRegs" isopaque="yes"> + <value></value> + <regnode name="InterfaceDefinition" isopaque="yes"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>848,528</value> + </regnode> + </regnode> + </regnode> + </reference> + </model> + <model id="id-0065-00000014" kind="Object" role="Object" guid="{7B88C1F2-8D4A-419d-82F0-C1569A9BBBEE}" relid="0x4" childrelidcntr="0x1"> + <name>StockQuoter</name> + <regnode name="PartRegs" isopaque="yes"> + <value></value> + <regnode name="InterfaceDefinition" isopaque="yes"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>700,432</value> + </regnode> + </regnode> + </regnode> + <attribute kind="PrefixTag"> + <value></value> + </attribute> + <attribute kind="SpecifyIdTag"> + <value></value> + </attribute> + <attribute kind="VersionTag"> + <value></value> + </attribute> + <attribute kind="abstract" status="meta"> + <value>false</value> + </attribute> + <attribute kind="local" status="meta"> + <value>false</value> + </attribute> + <model id="id-0065-00000015" kind="TwowayOperation" role="TwowayOperation" guid="{6ADA08CE-C9D6-4eb2-9E82-B5F29554A13F}" relid="0x1" childrelidcntr="0x3"> + <name>get_stock_info</name> + <regnode name="PartRegs" isopaque="yes"> + <value></value> + <regnode name="InterfaceDefinition" isopaque="yes"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>518,318</value> + </regnode> + </regnode> + </regnode> + <attribute kind="SpecifyIdTag"> + <value></value> + </attribute> + <attribute kind="VersionTag"> + <value></value> + </attribute> + <reference id="id-0067-00000003" kind="ReturnType" role="ReturnType" guid="{E422733F-FDCB-4a84-8BC2-649475077114}" relid="0x1" referred="id-0065-00000013"> + <name>ReturnType</name> + <regnode name="PartRegs" isopaque="yes"> + <value></value> + <regnode name="InterfaceDefinition" isopaque="yes"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>243,143</value> + </regnode> + </regnode> + </regnode> + </reference> + <reference id="id-0067-00000004" kind="ExceptionRef" role="ExceptionRef" guid="{530E04D0-8791-488c-90DF-9158D51E46D3}" relid="0x3" referred="id-0065-00000012"> + <name>ExceptionRef</name> + <regnode name="PartRegs" isopaque="yes"> + <value></value> + <regnode name="InterfaceDefinition" isopaque="yes"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>793,493</value> + </regnode> + </regnode> + </regnode> + </reference> + <reference id="id-0067-0000001f" kind="InParameter" role="InParameter" guid="{4FFFEADC-D975-4704-9310-707EFE538D4C}" relid="0x2" referred="id-0066-00000003"> + <name>stock_name</name> + <regnode name="PartRegs" isopaque="yes"> + <value></value> + <regnode name="InterfaceDefinition" isopaque="yes"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>518,318</value> + </regnode> + </regnode> + </regnode> + </reference> + </model> + </model> + <model id="id-0065-00000016" kind="Event" role="Event" guid="{EA5BAB52-2F49-4a65-A79D-874AA003C4AD}" relid="0x5" childrelidcntr="0x1"> + <name>StockName</name> + <regnode name="PartRegs" isopaque="yes"> + <value></value> + <regnode name="InterfaceDefinition" isopaque="yes"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>883,548</value> + </regnode> + </regnode> + </regnode> + <attribute kind="PrefixTag"> + <value></value> + </attribute> + <attribute kind="SpecifyIdTag"> + <value></value> + </attribute> + <attribute kind="VersionTag"> + <value></value> + </attribute> + <attribute kind="abstract" status="meta"> + <value>false</value> + </attribute> + <reference id="id-0067-00000020" kind="Member" role="Member" guid="{0A935DC6-B836-469c-B041-BB1362D03CC8}" relid="0x1" referred="id-0066-00000003"> + <name>name</name> + <regnode name="PartRegs" isopaque="yes"> + <value></value> + <regnode name="InterfaceDefinition" isopaque="yes"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>518,318</value> + </regnode> + </regnode> + </regnode> + </reference> + </model> + <reference id="id-0067-0000001a" kind="Collection" role="Collection" guid="{5961EC08-837F-41fc-A7A0-A0E88C993330}" relid="0x2" referred="id-0066-0000000b"> + <name>ImageBlob</name> + <regnode name="PartRegs" isopaque="yes"> + <value></value> + <regnode name="InterfaceDefinition" isopaque="yes"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>334,200</value> + </regnode> + </regnode> + </regnode> + <attribute kind="SpecifyIdTag"> + <value></value> + </attribute> + <attribute kind="VersionTag"> + <value></value> + </attribute> + <attribute kind="bound" status="meta"> + <value></value> + </attribute> + </reference> + </model> + </model> + </folder> + <folder id="id-006a-00000003" relid="0x1" childrelidcntr="0xb" kind="PredefinedTypes" guid="{87EC8BBD-A4E7-4fd4-8F65-4146FE3EC768}"> + <name>PredefinedTypes</name> + <atom id="id-0066-00000001" kind="TypeKind" guid="{297C2D4A-3433-46f3-8DB4-7CD880EBA320}" relid="0xb"> + <name>TypeKind</name> + </atom> + <atom id="id-0066-00000002" kind="TypeEncoding" guid="{89361487-74BB-42fa-8264-72A2CF795ACC}" relid="0xa"> + <name>TypeEncoding</name> + </atom> + <atom id="id-0066-00000003" kind="String" guid="{5FEE88E4-8A21-4f36-B2E8-F830C2010EF4}" relid="0x9"> + <name>String</name> + </atom> + <atom id="id-0066-00000004" kind="Boolean" guid="{156B95B2-2EB3-4924-BC0A-DC7167BED0C5}" relid="0x8"> + <name>Boolean</name> + </atom> + <atom id="id-0066-00000005" kind="ShortInteger" guid="{FC335F1C-F63F-4226-B2C1-13621387FFD5}" relid="0x7"> + <name>ShortInteger</name> + </atom> + <atom id="id-0066-00000006" kind="RealNumber" guid="{82079DC1-96A2-47a8-92BE-62A3497A2D32}" relid="0x6"> + <name>RealNumber</name> + </atom> + <atom id="id-0066-00000007" kind="LongInteger" guid="{BEC38288-EDD4-4720-9498-E9E29F2E4B8D}" relid="0x5"> + <name>LongInteger</name> + </atom> + <atom id="id-0066-00000008" kind="GenericValueObject" guid="{9FA202F6-53A8-479b-9690-F2A6E1032C96}" relid="0x4"> + <name>GenericValueObject</name> + </atom> + <atom id="id-0066-00000009" kind="GenericValue" guid="{DFDAF028-FFC7-4506-974D-8D24DED55A9E}" relid="0x3"> + <name>GenericValue</name> + </atom> + <atom id="id-0066-0000000a" kind="GenericObject" guid="{3A051B5B-038A-4b87-B730-41D3104B1E50}" relid="0x2"> + <name>GenericObject</name> + </atom> + <atom id="id-0066-0000000b" kind="Byte" guid="{3B9311B6-0C3A-4bb2-A595-97CFDD45C25A}" relid="0x1"> + <name>Byte</name> + </atom> + </folder> + <folder id="id-006a-00000004" relid="0x3" childrelidcntr="0x1" kind="ComponentImplementations" guid="{3BE8FBA4-A222-4271-B1CC-A4063186C3D2}"> + <name>ComponentImplementations</name> + <model id="id-0065-00000017" kind="ComponentImplementationContainer" guid="{5B96579C-F797-4ea2-82B3-5A30ED5AEE31}" relid="0x1" childrelidcntr="0x2d"> + <name>StockBrokerImplementation</name> + <atom id="id-0066-0000000c" kind="MonolithicImplementation" role="MonolithicImplementation" guid="{0D645EA4-7829-4037-A013-AA9D228C221B}" relid="0x1"> + <name>StockBrokerMonolithicImpl</name> + <regnode name="PartRegs" isopaque="yes"> + <value></value> + <regnode name="Packaging" isopaque="yes"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>258,132</value> + </regnode> + </regnode> + </regnode> + <attribute kind="UUID"> + <value>85DC22EC-BA18-4D47-8096-A5C6BB519AB5</value> + </attribute> + <attribute kind="defaultVersion" status="meta"> + <value>0.0.0.0</value> + </attribute> + <attribute kind="label" status="meta"> + <value></value> + </attribute> + </atom> + <reference id="id-0067-00000006" kind="ComponentRef" role="ComponentRef" guid="{D5518303-00DC-40bc-87BB-2ED57709AF7E}" relid="0x9" referred="id-0065-00000006"> + <name>StockBrokerRef</name> + <regnode name="PartRegs" isopaque="yes"> + <value></value> + <regnode name="Packaging" isopaque="yes"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>217,224</value> + </regnode> + </regnode> + </regnode> + </reference> + <reference id="id-0067-00000057" kind="ComponentServantArtifact" role="ComponentServantArtifact" guid="{6E0BD299-0612-42cc-B4E8-CCB14555EDC1}" relid="0x26" referred="id-0066-0000000f"> + <name>ComponentServantArtifact</name> + <regnode name="PartRegs" status="undefined"> + <value></value> + <regnode name="Packaging" status="undefined"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>340,32</value> + </regnode> + </regnode> + </regnode> + <attribute kind="EntryPoint"> + <value>create_Stock_StockBroker_Servant</value> + </attribute> + </reference> + <reference id="id-0067-00000058" kind="ComponentImplementationArtifact" role="ComponentImplementationArtifact" guid="{6D9B2B1D-4E38-427c-9584-27FF62705DEC}" relid="0x27" referred="id-0066-00000010"> + <name>ComponentImplementationArtifact</name> + <regnode name="PartRegs" status="undefined"> + <value></value> + <regnode name="Packaging" status="undefined"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>165,32</value> + </regnode> + </regnode> + </regnode> + <attribute kind="EntryPoint"> + <value>create_Stock_StockBrokerComp_Impl</value> + </attribute> + </reference> + <connection id="id-0068-00000007" kind="Implements" role="Implements" guid="{079474AF-755B-471d-9DA6-C8BAEBB35A8A}" relid="0xb"> + <name>Implements</name> + <connpoint role="src" target="id-0066-0000000c"/> + <connpoint role="dst" target="id-0067-00000006"/> + </connection> + <connection id="id-0068-0000003c" kind="MonolithprimaryArtifact" role="MonolithprimaryArtifact" guid="{8EC77E60-0285-4650-ACA7-B1A7A96BEF06}" relid="0x29"> + <name>MonolithprimaryArtifact</name> + <connpoint role="src" target="id-0066-0000000c"/> + <connpoint role="dst" target="id-0067-00000058"/> + </connection> + <connection id="id-0068-0000003e" kind="MonolithprimaryArtifact" role="MonolithprimaryArtifact" guid="{1F68123C-DA75-4c00-8E12-A594854EC9A0}" relid="0x2b"> + <name>MonolithprimaryArtifact</name> + <regnode name="autorouterPref" isopaque="yes"> + <value>s</value> + </regnode> + <connpoint role="src" target="id-0066-0000000c"/> + <connpoint role="dst" target="id-0067-00000057"/> + </connection> + </model> + <model id="id-0065-00000019" kind="ComponentImplementationContainer" guid="{A9B3E74A-19FA-4146-9889-822DED4DF951}" relid="0x2" childrelidcntr="0x2e"> + <name>StockDistributorImplementation</name> + <atom id="id-0066-0000000d" kind="MonolithicImplementation" role="MonolithicImplementation" guid="{E386A5A9-2397-4314-88D7-1BBD4D0F8867}" relid="0x1"> + <name>StockDistributorMonolithicImpl</name> + <regnode name="PartRegs" isopaque="yes"> + <value></value> + <regnode name="Packaging" isopaque="yes"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>461,153</value> + </regnode> + </regnode> + </regnode> + <attribute kind="UUID"> + <value>6FFDC88F-5ED1-4DDC-8B44-5D8310E59C68</value> + </attribute> + <attribute kind="defaultVersion" status="meta"> + <value>0.0.0.0</value> + </attribute> + <attribute kind="label" status="meta"> + <value></value> + </attribute> + </atom> + <reference id="id-0067-00000008" kind="ComponentRef" role="ComponentRef" guid="{E114B558-3DEF-4370-A7B2-ADA52EE5A41B}" relid="0x9" referred="id-0065-0000000d"> + <name>StockDistributorRef</name> + <regnode name="PartRegs" isopaque="yes"> + <value></value> + <regnode name="Packaging" isopaque="yes"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>420,287</value> + </regnode> + </regnode> + </regnode> + </reference> + <reference id="id-0067-00000059" kind="ComponentServantArtifact" role="ComponentServantArtifact" guid="{A904946F-26F9-4136-B97E-DB1F67ED816F}" relid="0x26" referred="id-0066-00000012"> + <name>ComponentServantArtifact</name> + <regnode name="PartRegs" status="undefined"> + <value></value> + <regnode name="Packaging" status="undefined"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>550,67</value> + </regnode> + </regnode> + </regnode> + <attribute kind="EntryPoint"> + <value>create_Stock_StockDistributor_Servant</value> + </attribute> + </reference> + <reference id="id-0067-0000005a" kind="ComponentImplementationArtifact" role="ComponentImplementationArtifact" guid="{2B59E908-0774-47ea-B7A2-6FD7039AA4C4}" relid="0x27" referred="id-0066-00000013"> + <name>ComponentImplementationArtifact</name> + <regnode name="PartRegs" status="undefined"> + <value></value> + <regnode name="Packaging" status="undefined"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>368,67</value> + </regnode> + </regnode> + </regnode> + <attribute kind="EntryPoint"> + <value>create_Stock_StockDistributorComp_Impl</value> + </attribute> + </reference> + <connection id="id-0068-0000000c" kind="Implements" role="Implements" guid="{EAB2DE4D-FDD5-41d6-91E8-5BB4588F1EF4}" relid="0xb"> + <name>Implements</name> + <connpoint role="src" target="id-0066-0000000d"/> + <connpoint role="dst" target="id-0067-00000008"/> + </connection> + <connection id="id-0068-00000042" kind="MonolithprimaryArtifact" role="MonolithprimaryArtifact" guid="{F107E562-4A62-4b92-BC67-B321886046E4}" relid="0x2b"> + <name>MonolithprimaryArtifact</name> + <regnode name="autorouterPref" isopaque="yes"> + <value>Ns</value> + </regnode> + <connpoint role="src" target="id-0066-0000000d"/> + <connpoint role="dst" target="id-0067-00000059"/> + </connection> + <connection id="id-0068-00000043" kind="MonolithprimaryArtifact" role="MonolithprimaryArtifact" guid="{82A41BE5-9DCF-47c4-ABB4-42639C64C103}" relid="0x2c"> + <name>MonolithprimaryArtifact</name> + <regnode name="autorouterPref" isopaque="yes"> + <value>Ns</value> + </regnode> + <connpoint role="src" target="id-0066-0000000d"/> + <connpoint role="dst" target="id-0067-0000005a"/> + </connection> + </model> + <model id="id-0065-00000023" kind="ComponentImplementationContainer" guid="{5377003E-9CD3-4c90-AE45-5CA4135E5820}" relid="0x1" childrelidcntr="0x1"> + <name>StockQuoterImplementation</name> + <model id="id-0065-00000024" kind="ComponentAssembly" role="ComponentAssembly" guid="{FA3FE2D1-D9D9-44f1-A6B3-EF89DB2444DC}" relid="0x1" childrelidcntr="0xc"> + <name>StockQuoter</name> + <regnode name="PartRegs" status="undefined"> + <value></value> + <regnode name="Packaging" status="undefined"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>205,72</value> + </regnode> + </regnode> + </regnode> + <attribute kind="UUID"> + <value>DB8977E3-FD57-458F-9AAE-BC0866B8AFFA</value> + </attribute> + <attribute kind="label" status="meta"> + <value></value> + </attribute> + <model id="id-0065-00000025" kind="Component" role="Component" guid="{40A2E128-D05D-464a-98D3-59DB5145C137}" derivedfrom="id-0065-0000000d" isinstance="yes" isprimary="yes" relid="0x3" childrelidcntr="0x0"> + <name>StockDistributor</name> + <regnode name="PartRegs"> + <value></value> + <regnode name="Packaging" status="undefined"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>84,49</value> + </regnode> + </regnode> + </regnode> + <attribute kind="SpecifyIdTag" status="inherited"> + <value></value> + </attribute> + <attribute kind="UUID"> + <value>C509158E-BAD6-4B89-A565-0F0DED710EEB</value> + </attribute> + <attribute kind="VersionTag" status="inherited"> + <value></value> + </attribute> + <attribute kind="label" status="meta"> + <value></value> + </attribute> + <model id="id-0065-00000026" kind="Attribute" role="Attribute" guid="{6C16BC17-1781-4bf3-A8B8-1A2FBCC651A1}" derivedfrom="id-0065-0000000e" isinstance="yes" isprimary="no" childrelidcntr="0x0"> + <name>rate</name> + <attribute kind="SpecifyIdTag" status="inherited"> + <value></value> + </attribute> + <attribute kind="VersionTag" status="inherited"> + <value></value> + </attribute> + <reference id="id-0067-00000027" kind="AttributeMember" role="AttributeMember" guid="{04752F42-A438-44b9-A701-5011096A8000}" derivedfrom="id-0067-00000016" isinstance="yes" isprimary="no" referred="id-0066-00000007" isbound="yes"> + <name>AttributeMember</name> + </reference> + </model> + <reference id="id-0067-00000028" kind="ProvidedRequestPort" role="ProvidedRequestPort" guid="{23958B2F-6BDC-46d7-BDC8-6038F6ABE2A5}" derivedfrom="id-0067-00000017" isinstance="yes" isprimary="no" referred="id-0065-00000014" isbound="yes"> + <name>push_quoter</name> + <attribute kind="SpecifyIdTag" status="inherited"> + <value></value> + </attribute> + <attribute kind="VersionTag" status="inherited"> + <value></value> + </attribute> + <attribute kind="exclusiveProvider" status="meta"> + <value>false</value> + </attribute> + <attribute kind="exclusiveUser" status="meta"> + <value>false</value> + </attribute> + <attribute kind="optional" status="meta"> + <value>false</value> + </attribute> + </reference> + <reference id="id-0067-00000029" kind="Supports" role="Supports" guid="{CC3E9E23-7D74-40ce-B5FA-758259B971D9}" derivedfrom="id-0067-00000002" isinstance="yes" isprimary="no" referred="id-0065-0000000a" isbound="yes"> + <name>Supports</name> + </reference> + <reference id="id-0067-0000002a" kind="OutEventPort" role="OutEventPort" guid="{2AB5A3ED-7FFA-4eba-8E25-C2CDC9996EBD}" derivedfrom="id-0067-00000018" isinstance="yes" isprimary="no" referred="id-0065-00000016" isbound="yes"> + <name>notify_out</name> + <attribute kind="SpecifyIdTag" status="inherited"> + <value></value> + </attribute> + <attribute kind="VersionTag" status="inherited"> + <value></value> + </attribute> + <attribute kind="exclusiveProvider" status="meta"> + <value>false</value> + </attribute> + <attribute kind="exclusiveUser" status="meta"> + <value>false</value> + </attribute> + <attribute kind="optional" status="meta"> + <value>false</value> + </attribute> + <attribute kind="out_event_port_type" status="meta"> + <value>DirectConnect</value> + </attribute> + <attribute kind="single_destination" status="inherited"> + <value>false</value> + </attribute> + </reference> + </model> + <model id="id-0065-00000027" kind="Component" role="Component" guid="{C929C132-65DF-40e5-AF72-A1A5A500E151}" derivedfrom="id-0065-00000006" isinstance="yes" isprimary="yes" relid="0x4" childrelidcntr="0x0"> + <name>StockBroker</name> + <regnode name="PartRegs"> + <value></value> + <regnode name="Packaging" status="undefined"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>364,49</value> + </regnode> + </regnode> + </regnode> + <attribute kind="SpecifyIdTag" status="inherited"> + <value></value> + </attribute> + <attribute kind="UUID"> + <value>F96FBCAA-4AD8-4C7D-BCEC-1392A63D08A5</value> + </attribute> + <attribute kind="VersionTag" status="inherited"> + <value></value> + </attribute> + <attribute kind="label" status="meta"> + <value></value> + </attribute> + <reference id="id-0067-0000002b" kind="Supports" role="Supports" guid="{A527AFA3-C6A9-46be-8845-B1D9A7BFD756}" derivedfrom="id-0067-00000001" isinstance="yes" isprimary="no" referred="id-0065-00000003" isbound="yes"> + <name>Supports</name> + </reference> + <reference id="id-0067-0000002c" kind="InEventPort" role="InEventPort" guid="{063AF958-661E-4942-8240-97D5ADBBEE96}" derivedfrom="id-0067-00000014" isinstance="yes" isprimary="no" referred="id-0065-00000016" isbound="yes"> + <name>notify_in</name> + <attribute kind="SpecifyIdTag" status="inherited"> + <value></value> + </attribute> + <attribute kind="VersionTag" status="inherited"> + <value></value> + </attribute> + <attribute kind="exclusiveProvider" status="meta"> + <value>false</value> + </attribute> + <attribute kind="exclusiveUser" status="meta"> + <value>false</value> + </attribute> + <attribute kind="optional" status="meta"> + <value>false</value> + </attribute> + </reference> + <reference id="id-0067-0000002d" kind="RequiredRequestPort" role="RequiredRequestPort" guid="{6502536F-6BF9-4d17-A18C-FD473D84E4C3}" derivedfrom="id-0067-00000013" isinstance="yes" isprimary="no" referred="id-0065-00000014" isbound="yes"> + <name>read_quoter</name> + <attribute kind="SpecifyIdTag" status="inherited"> + <value></value> + </attribute> + <attribute kind="VersionTag" status="inherited"> + <value></value> + </attribute> + <attribute kind="exclusiveProvider" status="meta"> + <value>false</value> + </attribute> + <attribute kind="exclusiveUser" status="meta"> + <value>false</value> + </attribute> + <attribute kind="multiple_connections" status="inherited"> + <value>false</value> + </attribute> + <attribute kind="optional" status="meta"> + <value>false</value> + </attribute> + </reference> + </model> + <model id="id-0065-00000033" kind="Property" role="Property" guid="{094E69FF-9AAC-4910-962E-DE911388DECD}" relid="0x9" childrelidcntr="0x1"> + <name>edu.vanderbilt.dre.DAnCE.InstanceIOR</name> + <regnode name="PartRegs" status="undefined"> + <value></value> + <regnode name="Packaging" status="undefined"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>125,244</value> + </regnode> + </regnode> + </regnode> + <attribute kind="DataValue"> + <value>StockDistributor.ior</value> + </attribute> + <reference id="id-0067-0000005b" kind="DataType" role="DataType" guid="{A19D26DA-6C7C-4a94-BFCE-0DDDD3C3502A}" relid="0x1" referred="id-0066-00000003"> + <name>DataType</name> + <regnode name="PartRegs" status="undefined"> + <value></value> + <regnode name="Packaging" status="undefined"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>303,219</value> + </regnode> + </regnode> + </regnode> + </reference> + </model> + <model id="id-0065-00000034" kind="Property" role="Property" guid="{D8DBED02-A5CE-437c-8722-775C0059CE0A}" relid="0xa" childrelidcntr="0x1"> + <name>edu.vanderbilt.dre.DAnCE.InstanceIOR</name> + <regnode name="PartRegs" status="undefined"> + <value></value> + <regnode name="Packaging" status="undefined"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>405,244</value> + </regnode> + </regnode> + </regnode> + <attribute kind="DataValue"> + <value>StockBroker.ior</value> + </attribute> + <reference id="id-0067-0000005c" kind="DataType" role="DataType" guid="{5AD1B6E1-ED63-40b6-88F9-C08797B21C2D}" relid="0x1" referred="id-0066-00000003"> + <name>DataType</name> + <regnode name="PartRegs" status="undefined"> + <value></value> + <regnode name="Packaging" status="undefined"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>429,142</value> + </regnode> + </regnode> + </regnode> + </reference> + </model> + <atom id="id-0066-00000014" kind="PublishConnector" role="PublishConnector" guid="{CC7C2401-9978-4a42-81F9-2CAA77AB51FF}" relid="0x5"> + <name>PublishConnector</name> + <regnode name="PartRegs" status="undefined"> + <value></value> + <regnode name="Packaging" status="undefined"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>301,133</value> + </regnode> + </regnode> + </regnode> + </atom> + <connection id="id-0068-00000017" kind="publish" role="publish" guid="{515A5E57-46A4-48c5-85EB-DD8F0E8432DC}" relid="0x6"> + <name>publish</name> + <connpoint role="dst" target="id-0066-00000014"/> + <connpoint role="src" target="id-0067-0000002a"/> + </connection> + <connection id="id-0068-00000018" kind="deliverTo" role="deliverTo" guid="{F7E7DBDB-CC28-48e7-8D70-C97C69CE385C}" relid="0x7"> + <name>deliverTo</name> + <connpoint role="src" target="id-0066-00000014"/> + <connpoint role="dst" target="id-0067-0000002c"/> + </connection> + <connection id="id-0068-00000019" kind="invoke" role="invoke" guid="{D5E54FC6-5280-4d77-B6BF-BCC47235F48A}" relid="0x8"> + <name>invoke</name> + <connpoint role="dst" target="id-0067-00000028"/> + <connpoint role="src" target="id-0067-0000002d"/> + </connection> + <connection id="id-0068-00000044" kind="AssemblyConfigProperty" role="AssemblyConfigProperty" guid="{F72D81B9-ABEA-458a-92F4-44F4A4C72886}" relid="0xb"> + <name>AssemblyConfigProperty</name> + <connpoint role="src" target="id-0065-00000027"/> + <connpoint role="dst" target="id-0065-00000034"/> + </connection> + <connection id="id-0068-00000045" kind="AssemblyConfigProperty" role="AssemblyConfigProperty" guid="{5B71259D-2E45-472d-95E9-DD5143973B27}" relid="0xc"> + <name>AssemblyConfigProperty</name> + <connpoint role="src" target="id-0065-00000025"/> + <connpoint role="dst" target="id-0065-00000033"/> + </connection> + </model> + </model> + </folder> + <folder id="id-006a-00000005" relid="0x4" childrelidcntr="0x0" kind="ImplementationArtifacts" guid="{FA1B6CAA-31B6-4f82-894C-6E2CA015A49D}"> + <name>ImplementationArtifacts</name> + <model id="id-0065-0000001b" kind="ArtifactContainer" guid="{C7280229-CE74-4e24-AED4-C133231A62D8}" relid="0x1" childrelidcntr="0xb"> + <name>StockBrokerArtifacts</name> + <atom id="id-0066-0000000e" kind="ImplementationArtifact" role="ImplementationArtifact" guid="{907F2C05-A9C3-48f3-9CAF-31D003A575D8}" relid="0x1"> + <name>StockBroker_stub</name> + <regnode name="PartRegs" isopaque="yes"> + <value></value> + <regnode name="Packaging" isopaque="yes"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>174,48</value> + </regnode> + </regnode> + </regnode> + <attribute kind="UUID"> + <value>CD1ED550-2120-4815-9F0C-A57B299F2C53</value> + </attribute> + <attribute kind="architecture" status="meta"> + <value></value> + </attribute> + <attribute kind="artifactVersion" status="meta"> + <value>0.0.0.0</value> + </attribute> + <attribute kind="configuration" status="meta"> + <value></value> + </attribute> + <attribute kind="label"> + <value></value> + </attribute> + <attribute kind="location"> + <value>StockBroker_stub</value> + </attribute> + <attribute kind="operatingSystem" status="meta"> + <value></value> + </attribute> + </atom> + <atom id="id-0066-0000000f" kind="ImplementationArtifact" role="ImplementationArtifact" guid="{40144B7B-3922-4390-B66A-443C21B6F51F}" relid="0x3"> + <name>StockBroker_svnt</name> + <regnode name="PartRegs" isopaque="yes"> + <value></value> + <regnode name="Packaging" isopaque="yes"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>363,146</value> + </regnode> + </regnode> + </regnode> + <attribute kind="UUID"> + <value>066D04A2-BB7B-40FB-BD67-50EE59CC20F8</value> + </attribute> + <attribute kind="architecture" status="meta"> + <value></value> + </attribute> + <attribute kind="artifactVersion" status="meta"> + <value>0.0.0.0</value> + </attribute> + <attribute kind="configuration" status="meta"> + <value></value> + </attribute> + <attribute kind="label"> + <value></value> + </attribute> + <attribute kind="location"> + <value>StockBroker_svnt</value> + </attribute> + <attribute kind="operatingSystem" status="meta"> + <value></value> + </attribute> + </atom> + <atom id="id-0066-00000010" kind="ImplementationArtifact" role="ImplementationArtifact" guid="{530D2B29-9F25-4e1c-9DB9-CC3AD2F40B58}" relid="0x5"> + <name>StockBroker_exec</name> + <regnode name="PartRegs" isopaque="yes"> + <value></value> + <regnode name="Packaging" isopaque="yes"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>538,258</value> + </regnode> + </regnode> + </regnode> + <attribute kind="UUID"> + <value>A07CBC4A-91E2-4FDF-A70A-8604ABA8954C</value> + </attribute> + <attribute kind="architecture" status="meta"> + <value></value> + </attribute> + <attribute kind="artifactVersion" status="meta"> + <value>0.0.0.0</value> + </attribute> + <attribute kind="configuration" status="meta"> + <value></value> + </attribute> + <attribute kind="label"> + <value></value> + </attribute> + <attribute kind="location"> + <value>StockBroker_exec</value> + </attribute> + <attribute kind="operatingSystem" status="meta"> + <value></value> + </attribute> + </atom> + <connection id="id-0068-0000000e" kind="ArtifactDependency" role="ArtifactDependency" guid="{4AE29519-E10B-4624-AE8A-B7210445116C}" relid="0x8"> + <name>ArtifactDependency</name> + <connpoint role="dst" target="id-0066-0000000e"/> + <connpoint role="src" target="id-0066-0000000f"/> + </connection> + <connection id="id-0068-00000010" kind="ArtifactDependency" role="ArtifactDependency" guid="{2C7DEC47-1B79-4674-BC1B-E388E945070C}" relid="0x9"> + <name>ArtifactDependency</name> + <connpoint role="dst" target="id-0066-0000000f"/> + <connpoint role="src" target="id-0066-00000010"/> + </connection> + <connection id="id-0068-00000011" kind="ArtifactDependency" role="ArtifactDependency" guid="{F3BF7E0B-FB5A-407c-82F8-0ACAAEE82F7E}" relid="0xa"> + <name>ArtifactDependency</name> + <connpoint role="dst" target="id-0066-0000000e"/> + <connpoint role="src" target="id-0066-00000010"/> + </connection> + </model> + <model id="id-0065-0000001e" kind="ArtifactContainer" guid="{89A72D9A-ED9B-43b3-BF6D-4BC04E59F4D8}" relid="0x2" childrelidcntr="0xa"> + <name>StockDistributorArtifacts</name> + <atom id="id-0066-00000011" kind="ImplementationArtifact" role="ImplementationArtifact" guid="{05CE8F3C-2E25-419f-BFC9-E290B25F3B3C}" relid="0x1"> + <name>StockDistributor_stub</name> + <regnode name="PartRegs" isopaque="yes"> + <value></value> + <regnode name="Packaging" isopaque="yes"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>151,84</value> + </regnode> + </regnode> + </regnode> + <attribute kind="UUID"> + <value>C2E2F668-5B72-43C5-AA3B-FBB907307748</value> + </attribute> + <attribute kind="architecture" status="meta"> + <value></value> + </attribute> + <attribute kind="artifactVersion" status="meta"> + <value>0.0.0.0</value> + </attribute> + <attribute kind="configuration" status="meta"> + <value></value> + </attribute> + <attribute kind="label"> + <value></value> + </attribute> + <attribute kind="location"> + <value>StockDistributor_stub</value> + </attribute> + <attribute kind="operatingSystem" status="meta"> + <value></value> + </attribute> + </atom> + <atom id="id-0066-00000012" kind="ImplementationArtifact" role="ImplementationArtifact" guid="{8493525C-3E7F-4593-A5F7-FF8AB4E8D19A}" relid="0x3"> + <name>StockDistributor_svnt</name> + <regnode name="PartRegs" isopaque="yes"> + <value></value> + <regnode name="Packaging" isopaque="yes"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>517,316</value> + </regnode> + </regnode> + </regnode> + <attribute kind="UUID"> + <value>AE2EC978-93A9-4C38-91EC-E59E68AB02FD</value> + </attribute> + <attribute kind="architecture" status="meta"> + <value></value> + </attribute> + <attribute kind="artifactVersion" status="meta"> + <value>0.0.0.0</value> + </attribute> + <attribute kind="configuration" status="meta"> + <value></value> + </attribute> + <attribute kind="label"> + <value></value> + </attribute> + <attribute kind="location"> + <value>StockDistributor_svnt</value> + </attribute> + <attribute kind="operatingSystem" status="meta"> + <value></value> + </attribute> + </atom> + <atom id="id-0066-00000013" kind="ImplementationArtifact" role="ImplementationArtifact" guid="{EA826EEA-5B5C-4fb0-B4D0-6679CD4FD22B}" relid="0x5"> + <name>StockDistributor_exec</name> + <regnode name="PartRegs" isopaque="yes"> + <value></value> + <regnode name="Packaging" isopaque="yes"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>883,548</value> + </regnode> + </regnode> + </regnode> + <attribute kind="UUID"> + <value>078C56CA-1D5C-4EDD-9638-49A7BCB19BC4</value> + </attribute> + <attribute kind="architecture" status="meta"> + <value></value> + </attribute> + <attribute kind="artifactVersion" status="meta"> + <value>0.0.0.0</value> + </attribute> + <attribute kind="configuration" status="meta"> + <value></value> + </attribute> + <attribute kind="label"> + <value></value> + </attribute> + <attribute kind="location"> + <value>StockDistributor_exec</value> + </attribute> + <attribute kind="operatingSystem" status="meta"> + <value></value> + </attribute> + </atom> + <connection id="id-0068-00000013" kind="ArtifactDependency" role="ArtifactDependency" guid="{93B114F0-7ACB-4d9d-876C-8F09F2D9950A}" relid="0x8"> + <name>ArtifactDependency</name> + <connpoint role="dst" target="id-0066-00000011"/> + <connpoint role="src" target="id-0066-00000012"/> + </connection> + <connection id="id-0068-00000015" kind="ArtifactDependency" role="ArtifactDependency" guid="{BCD89A0C-4C85-4ff5-8BF6-969E61039B10}" relid="0x9"> + <name>ArtifactDependency</name> + <connpoint role="dst" target="id-0066-00000012"/> + <connpoint role="src" target="id-0066-00000013"/> + </connection> + <connection id="id-0068-00000016" kind="ArtifactDependency" role="ArtifactDependency" guid="{AB7F8CF6-1DB6-4f01-BB64-B24A8112E249}" relid="0xa"> + <name>ArtifactDependency</name> + <connpoint role="dst" target="id-0066-00000011"/> + <connpoint role="src" target="id-0066-00000013"/> + </connection> + </model> + </folder> + <folder id="id-006a-00000006" relid="0x5" childrelidcntr="0x0" kind="ComponentTypes" guid="{B04658FD-5CEB-4a93-A846-E6121F559B64}"> + <name>ComponentTypes</name> + <model id="id-0065-00000021" kind="ComponentContainer" guid="{49BEF516-2A84-4ec4-8848-320742276DC1}" relid="0x1" childrelidcntr="0x1"> + <name>StockBrokerContainer</name> + <reference id="id-0067-0000000d" kind="ComponentRef" role="ComponentRef" guid="{F9EFCD7E-F191-4af9-BA66-8BE354E3BC4F}" relid="0x1" referred="id-0065-00000006"> + <name>StockBrokerRef</name> + <regnode name="PartRegs" isopaque="yes"> + <value></value> + <regnode name="Packaging" isopaque="yes"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>518,318</value> + </regnode> + </regnode> + </regnode> + </reference> + </model> + <model id="id-0065-00000022" kind="ComponentContainer" guid="{B5F88689-61C7-4b97-96C1-E12AF234E2E9}" relid="0x2" childrelidcntr="0x1"> + <name>StockDistributorContainer</name> + <reference id="id-0067-0000000e" kind="ComponentRef" role="ComponentRef" guid="{1B0E6F22-F407-40e1-9DFB-55DD56EC5B84}" relid="0x1" referred="id-0065-0000000d"> + <name>StockDistributorRef</name> + <regnode name="PartRegs" isopaque="yes"> + <value></value> + <regnode name="Packaging" isopaque="yes"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>518,318</value> + </regnode> + </regnode> + </regnode> + </reference> + </model> + </folder> + <folder id="id-006a-00000007" relid="0x6" childrelidcntr="0x1" kind="PackageConfigurations" guid="{CC714326-456A-4027-8A1A-9170E31799DB}"> + <name>PackageConfigurations</name> + <model id="id-0065-0000002d" kind="PackageConfigurationContainer" guid="{DE3F0704-D986-4769-B5BF-79C66B2F7AB6}" relid="0x1" childrelidcntr="0x3"> + <name>Default</name> + <atom id="id-0066-00000019" kind="PackageConfiguration" role="PackageConfiguration" guid="{F2D4E9FA-0B9B-466e-8156-BDA1CBE46EFD}" relid="0x1"> + <name>Default</name> + <regnode name="PartRegs" status="undefined"> + <value></value> + <regnode name="Packaging" status="undefined"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>90,62</value> + </regnode> + </regnode> + </regnode> + <attribute kind="UUID"> + <value>EC3C35BF-5F73-4D1B-BB46-E3D548D19A86</value> + </attribute> + <attribute kind="label" status="meta"> + <value></value> + </attribute> + </atom> + <reference id="id-0067-00000036" kind="ComponentPackageReference" role="ComponentPackageReference" guid="{195BA79D-256C-4fe6-AB40-D0C92CA1390E}" relid="0x2" referred="id-0066-00000018"> + <name>StockQuoter</name> + <regnode name="PartRegs" status="undefined"> + <value></value> + <regnode name="Packaging" status="undefined"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>237,62</value> + </regnode> + </regnode> + </regnode> + <attribute kind="requiredName" status="meta"> + <value></value> + </attribute> + <attribute kind="requiredType" status="meta"> + <value></value> + </attribute> + <attribute kind="requiredUUID" status="meta"> + <value></value> + </attribute> + </reference> + <connection id="id-0068-00000020" kind="PackageConfReference" role="PackageConfReference" guid="{58416BC0-B6FC-4463-AE93-519FC081C744}" relid="0x3"> + <name>PackageConfReference</name> + <regnode name="autorouterPref" isopaque="yes"> + <value>E</value> + </regnode> + <connpoint role="src" target="id-0066-00000019"/> + <connpoint role="dst" target="id-0067-00000036"/> + </connection> + </model> + </folder> + <folder id="id-006a-00000008" relid="0x7" childrelidcntr="0x5" kind="ComponentPackages" guid="{C6162A4F-E255-4ea3-81C5-F83F3BDF8735}"> + <name>ComponentPackages</name> + <model id="id-0065-00000028" kind="PackageContainer" guid="{75A50238-B0CC-4191-B68E-03D55CFDC141}" relid="0x1" childrelidcntr="0x7"> + <name>Broker</name> + <atom id="id-0066-00000015" kind="ComponentPackage" role="ComponentPackage" guid="{A047A9A8-38E7-49bb-B394-5DA922AD4045}" relid="0x1"> + <name>Broker</name> + <regnode name="PartRegs" status="undefined"> + <value></value> + <regnode name="Packaging" status="undefined"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>328,90</value> + </regnode> + </regnode> + </regnode> + <attribute kind="UUID"> + <value>E80D987B-C868-4200-A025-D6BDE84CB394</value> + </attribute> + <attribute kind="label" status="meta"> + <value></value> + </attribute> + </atom> + <reference id="id-0067-0000002e" kind="ComponentImplementationReference" role="ComponentImplementationReference" guid="{DF877580-792A-4942-9E28-8AE7BCC60B68}" relid="0x2" referred="id-0066-0000000c"> + <name>ComponentImplBrokerRef</name> + <regnode name="PartRegs" status="undefined"> + <value></value> + <regnode name="Packaging" status="undefined"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>72,72</value> + </regnode> + </regnode> + </regnode> + </reference> + <reference id="id-0067-0000002f" kind="ComponentRef" role="ComponentRef" guid="{CDD9D3B4-64AA-4cf5-B768-5C38FE7035D2}" relid="0x3" referred="id-0065-00000006"> + <name>ComponentBrokerRef</name> + <regnode name="PartRegs" status="undefined"> + <value></value> + <regnode name="Packaging" status="undefined"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>483,70</value> + </regnode> + </regnode> + </regnode> + <regnode name="porticon" isopaque="yes"> + <value></value> + </regnode> + </reference> + <connection id="id-0068-0000001a" kind="Implementation" role="Implementation" guid="{89225695-7F8A-42d5-9512-D47C8E18BF44}" relid="0x4"> + <name>Implementation</name> + <connpoint role="src" target="id-0066-00000015"/> + <connpoint role="dst" target="id-0067-0000002e"/> + </connection> + <connection id="id-0068-0000001c" kind="PackageInterface" role="PackageInterface" guid="{794A7078-6966-44c1-BD6C-507F0E4DE27C}" relid="0x6"> + <name>PackageInterface</name> + <regnode name="autorouterPref" isopaque="yes"> + <value>Ew</value> + </regnode> + <connpoint role="src" target="id-0066-00000015"/> + <connpoint role="dst" target="id-0067-0000002f"/> + </connection> + </model> + <model id="id-0065-0000002a" kind="PackageContainer" guid="{FEFF6BA5-81B6-4d23-B541-4E9E9EC28A5C}" relid="0x3" childrelidcntr="0x5"> + <name>Distributor</name> + <atom id="id-0066-00000016" kind="ComponentPackage" role="ComponentPackage" guid="{E39F7259-29EB-4075-BFB8-4F1EF88F1297}" relid="0x2"> + <name>Distributor</name> + <regnode name="PartRegs" status="undefined"> + <value></value> + <regnode name="Packaging" status="undefined"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>363,69</value> + </regnode> + </regnode> + </regnode> + <attribute kind="UUID"> + <value>7BA5A01F-734A-4D7F-BBD1-12E334E22B6E</value> + </attribute> + <attribute kind="label" status="meta"> + <value></value> + </attribute> + </atom> + <reference id="id-0067-00000031" kind="ComponentImplementationReference" role="ComponentImplementationReference" guid="{47D10719-E72A-4335-9297-62D56EDB6BA2}" relid="0x1" referred="id-0066-0000000d"> + <name>ComponentImplDistributorRef</name> + <regnode name="PartRegs" status="undefined"> + <value></value> + <regnode name="Packaging" status="undefined"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>47,47</value> + </regnode> + </regnode> + </regnode> + </reference> + <reference id="id-0067-00000032" kind="ComponentRef" role="ComponentRef" guid="{9933BD13-5927-4f89-A3EC-4D4605E9BDE4}" relid="0x3" referred="id-0065-0000000d"> + <name>ComponentDistributorRef</name> + <regnode name="PartRegs" status="undefined"> + <value></value> + <regnode name="Packaging" status="undefined"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>499,51</value> + </regnode> + </regnode> + </regnode> + </reference> + <connection id="id-0068-0000001d" kind="Implementation" role="Implementation" guid="{C7E5B6D7-6521-4664-A1EA-DDBC57AC7742}" relid="0x4"> + <name>Implementation</name> + <regnode name="autorouterPref" isopaque="yes"> + <value>We</value> + </regnode> + <connpoint role="src" target="id-0066-00000016"/> + <connpoint role="dst" target="id-0067-00000031"/> + </connection> + <connection id="id-0068-0000001e" kind="PackageInterface" role="PackageInterface" guid="{89D42DE4-F90C-4902-9828-EE869177B79A}" relid="0x5"> + <name>PackageInterface</name> + <regnode name="autorouterPref" isopaque="yes"> + <value>Ew</value> + </regnode> + <connpoint role="src" target="id-0066-00000016"/> + <connpoint role="dst" target="id-0067-00000032"/> + </connection> + </model> + <model id="id-0065-0000002c" kind="PackageContainer" guid="{38CB4E2F-519D-44f7-947E-CFF1B922C1C4}" relid="0x5" childrelidcntr="0x3"> + <name>StockQuoter</name> + <atom id="id-0066-00000018" kind="ComponentPackage" role="ComponentPackage" guid="{9E5E4F69-E5C6-400d-A4BC-A8418C6626CC}" relid="0x2"> + <name>StockQuoter</name> + <regnode name="PartRegs" status="undefined"> + <value></value> + <regnode name="Packaging" status="undefined"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>447,97</value> + </regnode> + </regnode> + </regnode> + <attribute kind="UUID"> + <value>940CEDE9-E370-48ED-BD5B-1DAC37C4A42F</value> + </attribute> + <attribute kind="label" status="meta"> + <value></value> + </attribute> + </atom> + <reference id="id-0067-00000035" kind="ComponentImplementationReference" role="ComponentImplementationReference" guid="{4BE862FA-A4EB-495e-8BDE-93E850480F66}" relid="0x1" referred="id-0065-00000024"> + <name>ComponentImplStockQuoterRef</name> + <regnode name="PartRegs" status="undefined"> + <value></value> + <regnode name="Packaging" status="undefined"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>138,75</value> + </regnode> + </regnode> + </regnode> + </reference> + <connection id="id-0068-0000001f" kind="Implementation" role="Implementation" guid="{635D33F7-8331-49ba-AEB8-696272612DE8}" relid="0x3"> + <name>Implementation</name> + <regnode name="autorouterPref" isopaque="yes"> + <value>We</value> + </regnode> + <connpoint role="src" target="id-0066-00000018"/> + <connpoint role="dst" target="id-0067-00000035"/> + </connection> + </model> + </folder> + <folder id="id-006a-00000009" relid="0x8" childrelidcntr="0x1" kind="DeploymentPlans" guid="{C42888D7-DFAA-4db6-8268-28FDB02CFB02}"> + <name>DeploymentPlans</name> + <model id="id-0065-00000032" kind="DeploymentPlan" guid="{045C633B-BC8C-44a5-8718-D2300F8D5F10}" relid="0x1" childrelidcntr="0xa"> + <name>Plan</name> + <attribute kind="UUID"> + <value>2F84C225-11DA-4863-B9C1-5FBAEEADFDA6</value> + </attribute> + <attribute kind="label" status="meta"> + <value></value> + </attribute> + <reference id="id-0067-00000038" kind="NodeReference" role="NodeReference" guid="{40E103B1-38C5-43b1-BC44-BBBA02D42DDF}" relid="0x3" referred="id-0065-00000030"> + <name>Node_Broker</name> + <regnode name="PartRegs" status="undefined"> + <value></value> + <regnode name="NodeMapping" status="undefined"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>74,60</value> + </regnode> + </regnode> + </regnode> + </reference> + <reference id="id-0067-00000039" kind="NodeReference" role="NodeReference" guid="{E37E5745-2D18-4ed6-81CD-728A63C4B30D}" relid="0x6" referred="id-0065-00000031"> + <name>Node_Distributor</name> + <regnode name="PartRegs" status="undefined"> + <value></value> + <regnode name="NodeMapping" status="undefined"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>207,60</value> + </regnode> + </regnode> + </regnode> + </reference> + <reference id="id-0067-0000003a" kind="ComponentRef" role="ComponentRef" guid="{5D7F93E8-D4AD-4e50-87B4-082BB4260A7C}" relid="0x9" referred="id-0065-00000027"> + <name>StockBroker</name> + <regnode name="PartRegs" status="undefined"> + <value></value> + <regnode name="NodeMapping" status="undefined"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>408,51</value> + </regnode> + </regnode> + </regnode> + </reference> + <reference id="id-0067-0000003b" kind="ComponentRef" role="ComponentRef" guid="{A701D8BC-FE21-4d6e-9F20-81C51AE8236F}" relid="0xa" referred="id-0065-00000025"> + <name>StockDistributor</name> + <regnode name="PartRegs" status="undefined"> + <value></value> + <regnode name="NodeMapping" status="undefined"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>406,168</value> + </regnode> + </regnode> + </regnode> + </reference> + <connection id="id-0068-00000022" kind="InstanceMapping" role="InstanceMapping" guid="{20E44A1F-D0EF-4c4e-877C-93E03D9CD3E3}" relid="0x5"> + <name></name> + <connpoint role="dst" target="id-0067-00000038"/> + <connpoint role="src" target="id-0069-00000003"/> + </connection> + <connection id="id-0068-00000023" kind="InstanceMapping" role="InstanceMapping" guid="{AADF2272-F485-432c-8AA4-D5C4C20CD3E3}" relid="0x8"> + <name></name> + <connpoint role="dst" target="id-0067-00000039"/> + <connpoint role="src" target="id-0069-00000004"/> + </connection> + <set id="id-0069-00000003" kind="CollocationGroup" role="CollocationGroup" guid="{51653652-5DED-40b1-9FCB-E87CD2E6F650}" relid="0x4" members="id-0067-0000003a"> + <name>DefaultGroup</name> + <regnode name="PartRegs" status="undefined"> + <value></value> + <regnode name="NodeMapping" status="undefined"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>76,195</value> + </regnode> + </regnode> + </regnode> + </set> + <set id="id-0069-00000004" kind="CollocationGroup" role="CollocationGroup" guid="{24473364-3F59-4261-B92C-4BA7CFD808A1}" relid="0x7" members="id-0067-0000003b"> + <name>DefaultGroup</name> + <regnode name="PartRegs" status="undefined"> + <value></value> + <regnode name="NodeMapping" status="undefined"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>209,195</value> + </regnode> + </regnode> + </regnode> + </set> + </model> + </folder> + <folder id="id-006a-0000000a" relid="0x9" childrelidcntr="0x1" kind="Targets" guid="{A912DB14-7140-44dc-8EE2-830566156765}"> + <name>Targets</name> + <model id="id-0065-0000002f" kind="Domain" guid="{55A73B03-6D86-4bfa-A2DC-36C79825D35E}" relid="0x1" childrelidcntr="0x2"> + <name>Domain</name> + <attribute kind="UUID"> + <value>62AD326C-7A22-44CD-95B9-31496DCFD9AE</value> + </attribute> + <attribute kind="label" status="meta"> + <value></value> + </attribute> + <model id="id-0065-00000030" kind="Node" role="Node" guid="{1CA29708-59C3-461d-BF52-196DEEBF8426}" relid="0x1" childrelidcntr="0x0"> + <name>Broker</name> + <regnode name="PartRegs" status="undefined"> + <value></value> + <regnode name="Target" status="undefined"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>125,69</value> + </regnode> + </regnode> + </regnode> + <attribute kind="architecture" status="meta"> + <value></value> + </attribute> + <attribute kind="label" status="meta"> + <value></value> + </attribute> + <attribute kind="operatingSystem" status="meta"> + <value></value> + </attribute> + </model> + <model id="id-0065-00000031" kind="Node" role="Node" guid="{E1EE7A13-20D6-4f1d-8EDA-8DB2C9F19945}" relid="0x2" childrelidcntr="0x0"> + <name>Distributor</name> + <regnode name="PartRegs" status="undefined"> + <value></value> + <regnode name="Target" status="undefined"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>128,149</value> + </regnode> + </regnode> + </regnode> + <attribute kind="architecture" status="meta"> + <value></value> + </attribute> + <attribute kind="label" status="meta"> + <value></value> + </attribute> + <attribute kind="operatingSystem" status="meta"> + <value></value> + </attribute> + </model> + </model> + </folder> + <folder id="id-006a-0000000b" relid="0xa" childrelidcntr="0x1" kind="TopLevelPackages" guid="{DF23DC42-FE08-4b1a-8C5E-B7A5F51F88BD}"> + <name>TopLevelPackages</name> + <model id="id-0065-0000002e" kind="TopLevelPackageContainer" guid="{3B3E38EC-E3F0-486b-AF82-6D09356CB9C7}" relid="0x1" childrelidcntr="0x3"> + <name>Default</name> + <atom id="id-0066-0000001a" kind="TopLevelPackage" role="TopLevelPackage" guid="{C39161DA-F093-41ca-808C-A2CCDF298DB0}" relid="0x1"> + <name>TopLevelPackage</name> + <regnode name="PartRegs" status="undefined"> + <value></value> + <regnode name="Packaging" status="undefined"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>100,114</value> + </regnode> + </regnode> + </regnode> + </atom> + <reference id="id-0067-00000037" kind="PackageConfigurationReference" role="PackageConfigurationReference" guid="{936DDDE7-BBDC-4451-BF2C-C72412E1A4ED}" relid="0x2" referred="id-0066-00000019"> + <name>Default</name> + <regnode name="PartRegs" status="undefined"> + <value></value> + <regnode name="Packaging" status="undefined"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>254,114</value> + </regnode> + </regnode> + </regnode> + </reference> + <connection id="id-0068-00000021" kind="package" role="package" guid="{D1573F3C-D8DF-424c-858C-7D0B1B6D2BA1}" relid="0x3"> + <name>package</name> + <connpoint role="src" target="id-0066-0000001a"/> + <connpoint role="dst" target="id-0067-00000037"/> + </connection> + </model> + </folder> + <folder id="id-006a-0000000c" relid="0xb" childrelidcntr="0x0" kind="ComponentBuild" guid="{BE775384-F24C-4599-A7AF-533D94EE78F2}"> + <name>ComponentBuild</name> + </folder> + <regnode name="ConstraintManagerSettings" status="undefined"> + <value></value> + <regnode name="ModelDepth" isopaque="yes"> + <value>0</value> + </regnode> + <regnode name="ShortCircuitIterators" isopaque="yes"> + <value>yes</value> + </regnode> + <regnode name="ShortCircuitLogicalOperators" isopaque="yes"> + <value>yes</value> + </regnode> + <regnode name="Tracking" isopaque="yes"> + <value>yes</value> + </regnode> + <regnode name="ViolationCount" isopaque="yes"> + <value>-2</value> + </regnode> + </regnode> + </folder> +</project> diff --git a/modules/CIAO/docs/tutorials/Quoter/Simple/README.html b/modules/CIAO/docs/tutorials/Quoter/Simple/README.html new file mode 100644 index 00000000000..85e38e81150 --- /dev/null +++ b/modules/CIAO/docs/tutorials/Quoter/Simple/README.html @@ -0,0 +1,172 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<html> +<head> +<!--//$Id$ --> +</head> +<body> +<b><font size="5">Quoter example README</font></b> +<p>To download the source codes of this example please refer to the SVN +repository at <code>$CIAO_ROOT\docs\tutorials\Quoter\Simple</code> +</p> +<hr> +<h2>Example Description</h2> +<div align="left"> +<font face="Times New Roman" size="3">The <b>StockDistributor</b> +component would be monitoring a real-time stock database. When the +values of particular stocks change, it pushes a CCM <b>eventtype</b> +that contains the stock's name via a CCM event source to the +corresponding CCM </font> +</div> +<div align="left"> +<font face="Times New Roman" size="3">event sink implemented by one or +more <b>StockBroker</b> components. If these components are interested +in the stock they can obtain more information about it by invoking a +request/response operation via their CCM receptacle on a CCM facet +exported by the <b>StockDistributor</b> component. The diagram of this +example is shown in fig 1.</font> +</div> +<p align="center"><img alt="" src="images/quoter.jpg" + style="width: 362px; height: 212px;"><br> +figure 1<br> +</p> +<h2 align="justify"><span style="font-weight: 400;"><font size="3"></font></span><span + style="font-weight: 400;"><font size="3">This example +is based on a series of </font> <a + href="http://www.cs.wustl.edu/%7Eschmidt/report-doc.html"><font + size="3">CORBA Component Model</font></a><font size="3"> columns +written by <a href="http://www.cs.wustl.edu/%7Eschmidt/">Douglas +Schmidt</a> and <a href="http://www.iona.com/hyplan/vinoski/">Steve +Vinoski</a>, and has been consistently used as a example for <a + href="http://www.cs.wustl.edu/%7Eschmidt/TAO.html">TAO</a>. Please +refer to <a + href="../../../../../docs/tutorials/Quoter/index.html">TAO +online tutorial</a> for details. <br> +</font></span></h2> +<h2>The files you will find</h2> +<li>The interfaces, data types and exceptions shared by the components +of +this +application are specified in the <a href="Stock_Base/Stock_Base.idl"><code>Stock_Base.idl</code></a>.<code></code>The +lib +generated +from Stock_Base.idl is linked to all the components of this example.</li> +<li> mpc files for each of the components are available in the +components +directories. We use the <a + href="http://downloads.ociweb.com/MPC/MakeProjectCreator.pdf">MPC</a> +to +generate makefiles and Visual C++ project/solutions files for all <a + href="http://www.cs.wustl.edu/%7Eschmidt/ACE.html">ACE</a>, <a + href="http://www.cs.wustl.edu/%7Eschmidt/TAO.html">TAO</a> and <a + href="http://www.cs.wustl.edu/%7Eschmidt/CIAO.html">CIAO</a> +libraries. </li> +<li> idl and cidl files for each component are placed in +components directory. +</li> +<li> The <code>_exec.h</code> and <code>_exec.cpp</code> files +are the actual +implementation of the components.</li> +<hr> +<h3><font size="5">Make</font></h3> +Navigate to the directory <code>$CIAO_ROOT/docs/tutorials/Quoter/Simple</code> +and do:<br> +<code>$ACE_ROOT/bin/mwc.pl -type gnuace</code> (use different -type option +if you are using a +compiler/IDE other than GNU make) <br> +For example, use <code>%ACE_ROOT%/bin/mwc.pl -type vc71</code> if you +are using +Visual C++ 7.1 IDE.<br> +<br> +Then build/make the generated project/make files. Correct errors in the +source codes if necessary.<br> +<hr> +<h3><font size="5">Assemble</font></h3> +<p>Now we can step forward to build the assembly. </p> +<li>In the descriptor subdirectory, you'll find a XML descriptor file +that +describes your <em>deployment plan</em>, the +flattened_deploymentplan.cdp. This file declaratively specifies how the +component assembly is +constructed. +Specifically, it defines the component types, component instances, +component +connections and implementation artifact descriptions. <br> +</li> +<dd> + <li>Please make sure that the Modified_Deployment.xsd and XMI.xsd +files +are in the Display/descriptors directory. The former file could be +found in $CIAO_ROOT/docs/schema +directory. <br> + <br> +Note: Creating the deployment plan descriptor is a tedious and +error-prone job, +you can download <a href="http://www.dre.vanderbilt.edu/cosmic">CoSMIC</a> +to +assist you in this step. Please refer to <a + href="http://www.dre.vanderbilt.edu/%7Emxiong/tutorial">this tutorial</a> +to see how you can use CoSMIC to automatically generate the descriptor +file. + <p></p> + <hr></li> +</dd> +<h2>Running the program </h2> +>From different shells in <code>$CIAO_ROOT/docs/tutorials/Quoter/Simple/</code><code>descriptors/</code> +directory: +<ul> + <li>Start NodeManagers (NodeDameon) by running runNodeDaemon.pl </li> + <li>Start the execution manager +$CIAO_ROOT/DAnCE/ExecutionManager/Execution_Manager -o ior -i +Stock.dat </li> +</ul> +<p>The Stock.dat file describes the deployment daemons CIAO's +Execution_Manager +will contact to instantiate ComponentServer's, home's, and component +instances. +Each line specify the name of a installation "destination" and the +corresponding corbaloc IOR for the CIAO_Daemon.</p> +<ul type="square"> + <li><em>NOTE</em>: As one can see, we use the "Stock.dat" file to +instruct the Execution_Manager how to find the endpoint of each +individual NodeManager (i.e., Node Daemon) where component(s) will be +deployed, so this is non-standard. We plan to use Naming Service to do +this in the future. </li> +</ul> +<ul> + <li> Start the plan_launcher by running +$CIAO_ROOT/DAnCE/Plan_Launcher/plan_launcher -p +flattened_deploymentplan.cdp -k file://ior</li> + <li>By now the components should be successfully deployed. You may +run the driver program to start the application. Open a new shell, keep +in the /Quoter/descriptors directory, and try the following +commands, see what happens in the component server<br> + </li> +</ul> + <br> + Start the distributor +service at a frequency of 3 hertz:<br> + <span style="color: rgb(51, 102, 255);">../Distributor/Distributor.exe +-o -r3</span><br> +<br> + Use the broker program to +subscribe to MSFT stock<br> + <span + style="color: rgb(51, 102, 255);">../Broker/Broker.exe -s MSFT</span><br> +<br> + Subscribe to IBM stock<br> + <span + style="color: rgb(51, 102, 255);">../Broker/Broker.exe -s IBM</span><br> +<br> + Unsubscribe to MSFT stock<br> + <span + style="color: rgb(51, 102, 255);">../Broker/Broker -u MSFT</span><br> +<br> + Turn off the distribution +service:<br> + <span + style="color: rgb(51, 102, 255);">../Distributor/Distributor -f </span><br> +<br> +Please contact mxiong@dre.vanderbilt.edu if you have any questions. + <br> +</body> +</html> diff --git a/modules/CIAO/docs/tutorials/Quoter/Simple/Stock_Base/Stock_Base.idl b/modules/CIAO/docs/tutorials/Quoter/Simple/Stock_Base/Stock_Base.idl new file mode 100644 index 00000000000..41277386efa --- /dev/null +++ b/modules/CIAO/docs/tutorials/Quoter/Simple/Stock_Base/Stock_Base.idl @@ -0,0 +1,46 @@ +//$Id$ + +#ifndef STOCK_BASE_IDL +#define STOCK_BASE_IDL + +#include <Components.idl> + +module Stock +{ + exception Invalid_Stock {}; + typedef sequence<octet> ImageBlob; + + /** + * @struct StockInfo + */ + struct StockInfo { + string name; + long high; + long low; + long last; + }; + + /** + * @interface: StockQuoter + * + * @brief: component facet + */ + interface StockQuoter { + /// Returns the current stock info + StockInfo get_stock_info (in string stock_name) + raises (Invalid_Stock); + }; + + + /** + * @event StockName + * + * @brief component event + */ + eventtype StockName { + // Name of the stock. + public string name; + }; +}; + +#endif /* STOCK_BASE_IDL */ diff --git a/modules/CIAO/docs/tutorials/Quoter/Simple/Stock_Base/Stock_Base.mpc b/modules/CIAO/docs/tutorials/Quoter/Simple/Stock_Base/Stock_Base.mpc new file mode 100644 index 00000000000..19392e50de3 --- /dev/null +++ b/modules/CIAO/docs/tutorials/Quoter/Simple/Stock_Base/Stock_Base.mpc @@ -0,0 +1,70 @@ +// $Id$ +// This file is generated with "generate_component_mpc.pl -n Stock_Base -l ../lib -o ../lib" + +project(Stock_Base_idl_gen) : componentidldefaults { + custom_only = 1 + idlflags += -Wb,stub_export_macro=STOCK_BASE_STUB_Export \ + -Wb,stub_export_include=Stock_Base_stub_export.h \ + -Wb,skel_export_macro=STOCK_BASE_SKEL_Export \ + -Wb,skel_export_include=Stock_Base_skel_export.h \ + -Wb,exec_export_macro=STOCK_BASE_EXEC_Export \ + -Wb,exec_export_include=Stock_Base_exec_export.h + + IDL_Files { + Stock_Base.idl + } +} + +project(Stock_Base_stub) : ccm_stub { + after += Stock_Base_idl_gen + libs += + libpaths += ../lib + libout = ../lib + sharedname = Stock_Base_stub + dynamicflags = STOCK_BASE_STUB_BUILD_DLL + + IDL_Files { + } + + Source_Files { + Stock_BaseC.cpp + } + + Header_Files { + Stock_BaseC.h + Stock_Base_stub_export.h + } + + Inline_Files { + Stock_BaseC.inl + } +} + + +project(Stock_Base_skel) : ciao_executor { + after += Stock_Base_stub Stock_Base_lem_stub + sharedname = Stock_Base_skel + libs += Stock_Base_stub + + libpaths += ../lib + libout = ../lib + dynamicflags = STOCK_BASE_SKEL_BUILD_DLL + + IDL_Files { + } + + Source_Files { + Stock_BaseS.cpp + } + + Header_Files { + Stock_BaseS.h + Stock_Base_skel_export.h + } + + Inline_Files { + Stock_BaseS.inl + } +} + + diff --git a/modules/CIAO/docs/tutorials/Quoter/Simple/descriptors/Broker.cpd b/modules/CIAO/docs/tutorials/Quoter/Simple/descriptors/Broker.cpd new file mode 100644 index 00000000000..e4ca7227682 --- /dev/null +++ b/modules/CIAO/docs/tutorials/Quoter/Simple/descriptors/Broker.cpd @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no" ?> +<Deployment:componentPackageDescription xmlns:Deployment="http://www.omg.org/Deployment" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.omg.org/Deployment Deployment.xsd"> + + <UUID>656C40ED-88A4-4F00-BBFA-FC7738658B16</UUID> + + <realizes href="StockBroker.ccd"/> + + <implementation> + <name>MyQuoter.ComponentImplementations.StockBrokerImplementation.StockBrokerMonolithicImpl</name> + <referencedImplementation href="StockBrokerMonolithicImpl.cid"/> + </implementation> + +</Deployment:componentPackageDescription> diff --git a/modules/CIAO/docs/tutorials/Quoter/Simple/descriptors/Default.pcd b/modules/CIAO/docs/tutorials/Quoter/Simple/descriptors/Default.pcd new file mode 100644 index 00000000000..9145f77bd4a --- /dev/null +++ b/modules/CIAO/docs/tutorials/Quoter/Simple/descriptors/Default.pcd @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no" ?> +<Deployment:packageConfiguration xmlns:Deployment="http://www.omg.org/Deployment" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.omg.org/Deployment Deployment.xsd"> + + <UUID>54077757-B4AF-443C-BA8D-9B5B68E1D1E0</UUID> + +</Deployment:packageConfiguration> diff --git a/modules/CIAO/docs/tutorials/Quoter/Simple/descriptors/Distributor.cpd b/modules/CIAO/docs/tutorials/Quoter/Simple/descriptors/Distributor.cpd new file mode 100644 index 00000000000..addceeb3627 --- /dev/null +++ b/modules/CIAO/docs/tutorials/Quoter/Simple/descriptors/Distributor.cpd @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no" ?> +<Deployment:componentPackageDescription xmlns:Deployment="http://www.omg.org/Deployment" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.omg.org/Deployment Deployment.xsd"> + + <UUID>4C5B7889-7AD7-425E-B565-D885746ECF0A</UUID> + + <realizes href="StockDistributor.ccd"/> + + <implementation> + <name>MyQuoter.ComponentImplementations.StockDistributorImplementation.StockDistributorMonolithicImpl</name> + <referencedImplementation href="StockDistributorMonolithicImpl.cid"/> + </implementation> + +</Deployment:componentPackageDescription> diff --git a/modules/CIAO/docs/tutorials/Quoter/Simple/descriptors/Domain.cdd b/modules/CIAO/docs/tutorials/Quoter/Simple/descriptors/Domain.cdd new file mode 100644 index 00000000000..a1942b2ebf2 --- /dev/null +++ b/modules/CIAO/docs/tutorials/Quoter/Simple/descriptors/Domain.cdd @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no" ?> +<Deployment:domain xmlns:Deployment="http://www.omg.org/Deployment" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.omg.org/Deployment Deployment.xsd"> + + <UUID>AD80D377-9AD2-488F-87CD-C490858EA393</UUID> + + <node> + <name>Broker</name> + </node> + + <node> + <name>Distributor</name> + </node> + +</Deployment:domain> diff --git a/modules/CIAO/docs/tutorials/Quoter/Simple/descriptors/NodeMap.dat b/modules/CIAO/docs/tutorials/Quoter/Simple/descriptors/NodeMap.dat new file mode 100644 index 00000000000..08439dad2f1 --- /dev/null +++ b/modules/CIAO/docs/tutorials/Quoter/Simple/descriptors/NodeMap.dat @@ -0,0 +1,3 @@ +Distributor corbaloc:iiop:localhost:30000/Distributor.NodeManager
+
+Broker corbaloc:iiop:localhost:40000/Broker.NodeManager
\ No newline at end of file diff --git a/modules/CIAO/docs/tutorials/Quoter/Simple/descriptors/Plan.cdp b/modules/CIAO/docs/tutorials/Quoter/Simple/descriptors/Plan.cdp new file mode 100644 index 00000000000..4a633c49601 --- /dev/null +++ b/modules/CIAO/docs/tutorials/Quoter/Simple/descriptors/Plan.cdp @@ -0,0 +1,248 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no" ?> +<Deployment:DeploymentPlan xmlns:Deployment="http://www.omg.org/Deployment" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.omg.org/Deployment Deployment.xsd"> + + <UUID>6D382DAE-9024-4C4D-B91B-A0F9176AFACF</UUID> + + <implementation xmi:id="_9A1A0A25-6C91-4BD3-971B-257A2614531C"> + <name>Quoter.ComponentImplementations.StockBrokerImplementation.StockBrokerMonolithicImpl</name> + <source/> + <artifact xmi:idref="_8314E4CE-EE5F-4EF1-8D7A-EDAA4C18E70C"/> + <artifact xmi:idref="_6C99E1A6-14DA-43DF-A0AD-7AC397F90899"/> + <execParameter> + <name>component factory</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_Stock_StockBrokerComp_Impl</string> + </value> + </value> + </execParameter> + <execParameter> + <name>edu.vanderbilt.dre.CIAO.ExecutorArtifact</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>Quoter.ImplementationArtifacts.StockBrokerArtifacts.StockBroker_exec</string> + </value> + </value> + </execParameter> + <execParameter> + <name>edu.vanderbilt.dre.CIAO.ServantEntrypoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_Stock_StockBroker_Servant</string> + </value> + </value> + </execParameter> + <execParameter> + <name>edu.vanderbilt.dre.CIAO.ServantArtifact</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>Quoter.ImplementationArtifacts.StockBrokerArtifacts.StockBroker_svnt</string> + </value> + </value> + </execParameter> + </implementation> + + <implementation xmi:id="_F436EF3D-3D93-4D47-9742-EAB68547A060"> + <name>Quoter.ComponentImplementations.StockDistributorImplementation.StockDistributorMonolithicImpl</name> + <source/> + <artifact xmi:idref="_F8E73326-0724-48CF-AD27-2271E9C57D09"/> + <artifact xmi:idref="_4583C8AD-7711-4C96-8FD5-CE2FAE6F89ED"/> + <execParameter> + <name>component factory</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_Stock_StockDistributorComp_Impl</string> + </value> + </value> + </execParameter> + <execParameter> + <name>edu.vanderbilt.dre.CIAO.ExecutorArtifact</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>Quoter.ImplementationArtifacts.StockDistributorArtifacts.StockDistributor_exec</string> + </value> + </value> + </execParameter> + <execParameter> + <name>edu.vanderbilt.dre.CIAO.ServantEntrypoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_Stock_StockDistributor_Servant</string> + </value> + </value> + </execParameter> + <execParameter> + <name>edu.vanderbilt.dre.CIAO.ServantArtifact</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>Quoter.ImplementationArtifacts.StockDistributorArtifacts.StockDistributor_svnt</string> + </value> + </value> + </execParameter> + </implementation> + + <instance xmi:id="Quoter.ComponentImplementations.StockQuoterImplementation.StockQuoter.StockBroker"> + <name>Quoter.ComponentImplementations.StockQuoterImplementation.StockQuoter.StockBroker</name> + <node>Broker</node> + <source/> + <implementation xmi:idref="_9A1A0A25-6C91-4BD3-971B-257A2614531C"/> + <configProperty> + <name>edu.vanderbilt.dre.DAnCE.InstanceIOR</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>StockBroker.ior</string> + </value> + </value> + </configProperty> + </instance> + + <instance xmi:id="Quoter.ComponentImplementations.StockQuoterImplementation.StockQuoter.StockDistributor"> + <name>Quoter.ComponentImplementations.StockQuoterImplementation.StockQuoter.StockDistributor</name> + <node>Distributor</node> + <source/> + <implementation xmi:idref="_F436EF3D-3D93-4D47-9742-EAB68547A060"/> + <configProperty> + <name>edu.vanderbilt.dre.DAnCE.InstanceIOR</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>StockDistributor.ior</string> + </value> + </value> + </configProperty> + </instance> + + <connection> + <name>Quoter.ComponentImplementations.StockQuoterImplementation.StockQuoter.StockBroker:read_quoter-Quoter.ComponentImplementations.StockQuoterImplementation.StockQuoter.StockDistributor:push_quoter</name> + <internalEndpoint> + <portName>read_quoter</portName> + <provider>false</provider> + <kind>SimplexReceptacle</kind> + <instance xmi:idref="Quoter.ComponentImplementations.StockQuoterImplementation.StockQuoter.StockBroker"/> + </internalEndpoint> + <internalEndpoint> + <portName>push_quoter</portName> + <provider>true</provider> + <kind>Facet</kind> + <instance xmi:idref="Quoter.ComponentImplementations.StockQuoterImplementation.StockQuoter.StockDistributor"/> + </internalEndpoint> + </connection> + + <connection> + <name>Quoter.ComponentImplementations.StockQuoterImplementation.StockQuoter.StockDistributor:notify_out-Quoter.ComponentImplementations.StockQuoterImplementation.StockQuoter.StockBroker:notify_in</name> + <internalEndpoint> + <portName>notify_out</portName> + <provider>false</provider> + <kind>EventPublisher</kind> + <instance xmi:idref="Quoter.ComponentImplementations.StockQuoterImplementation.StockQuoter.StockDistributor"/> + </internalEndpoint> + <internalEndpoint> + <portName>notify_in</portName> + <provider>true</provider> + <kind>EventConsumer</kind> + <instance xmi:idref="Quoter.ComponentImplementations.StockQuoterImplementation.StockQuoter.StockBroker"/> + </internalEndpoint> + </connection> + + <artifact xmi:id="_6C99E1A6-14DA-43DF-A0AD-7AC397F90899"> + <name>Quoter.ImplementationArtifacts.StockBrokerArtifacts.StockBroker_svnt</name> + <source/> + <node/> + <location>StockBroker_svnt</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_Stock_StockBrokerHome_Servant</string> + </value> + </value> + </execParameter> + </artifact> + + <artifact xmi:id="_8314E4CE-EE5F-4EF1-8D7A-EDAA4C18E70C"> + <name>Quoter.ImplementationArtifacts.StockBrokerArtifacts.StockBroker_exec</name> + <source/> + <node/> + <location>StockBroker_exec</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_Stock_StockBrokerHome_Impl</string> + </value> + </value> + </execParameter> + </artifact> + + <artifact xmi:id="_4583C8AD-7711-4C96-8FD5-CE2FAE6F89ED"> + <name>Quoter.ImplementationArtifacts.StockDistributorArtifacts.StockDistributor_svnt</name> + <source/> + <node/> + <location>StockDistributor_svnt</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_Stock_StockDistributorHome_Servant</string> + </value> + </value> + </execParameter> + </artifact> + + <artifact xmi:id="_F8E73326-0724-48CF-AD27-2271E9C57D09"> + <name>Quoter.ImplementationArtifacts.StockDistributorArtifacts.StockDistributor_exec</name> + <source/> + <node/> + <location>StockDistributor_exec</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_Stock_StockDistributorHome_Impl</string> + </value> + </value> + </execParameter> + </artifact> + +</Deployment:DeploymentPlan> diff --git a/modules/CIAO/docs/tutorials/Quoter/Simple/descriptors/StockBroker.ccd b/modules/CIAO/docs/tutorials/Quoter/Simple/descriptors/StockBroker.ccd new file mode 100644 index 00000000000..f4d1f099069 --- /dev/null +++ b/modules/CIAO/docs/tutorials/Quoter/Simple/descriptors/StockBroker.ccd @@ -0,0 +1,49 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no" ?> +<Deployment:componentInterfaceDescription xmlns:Deployment="http://www.omg.org/Deployment" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.omg.org/Deployment Deployment.xsd"> + + <UUID>58E736A4-F9F5-44CF-AA0F-83A280F907A6</UUID> + + <specificType>IDL:Stock/StockBroker:1.0</specificType> + + <supportedType>IDL:Stock/StockBroker:1.0</supportedType> + + <supportedType>IDL:Stock/StockSubscriber:1.0</supportedType> + + <supportedType>IDL:omg.org/Components/Navigation:1.0</supportedType> + + <supportedType>IDL:omg.org/Components/Receptacles:1.0</supportedType> + + <supportedType>IDL:omg.org/Components/Events:1.0</supportedType> + + <supportedType>IDL:omg.org/Components/CCMObject:1.0</supportedType> + + <supportedType>IDL:omg.org/CORBA/Object:1.0</supportedType> + + <idlFile>Broker.idl</idlFile> + + <port> + <name>notify_in</name> + <specificType>IDL:Stock/StockNameConsumer:1.0</specificType> + <supportedType>IDL:Stock/StockNameConsumer:1.0</supportedType> + <supportedType>IDL:omg.org/Components/EventConsumerBase:1.0</supportedType> + <supportedType>IDL:omg.org/CORBA/Object:1.0</supportedType> + <provider>false</provider> + <exclusiveProvider>false</exclusiveProvider> + <exclusiveUser>false</exclusiveUser> + <optional>false</optional> + <kind>EventConsumer</kind> + </port> + + <port> + <name>read_quoter</name> + <specificType>IDL:Stock/StockQuoter:1.0</specificType> + <supportedType>IDL:Stock/StockQuoter:1.0</supportedType> + <supportedType>IDL:omg.org/CORBA/Object:1.0</supportedType> + <provider>false</provider> + <exclusiveProvider>false</exclusiveProvider> + <exclusiveUser>false</exclusiveUser> + <optional>false</optional> + <kind>SimplexReceptacle</kind> + </port> + +</Deployment:componentInterfaceDescription> diff --git a/modules/CIAO/docs/tutorials/Quoter/Simple/descriptors/StockBrokerMonolithicImpl.cid b/modules/CIAO/docs/tutorials/Quoter/Simple/descriptors/StockBrokerMonolithicImpl.cid new file mode 100644 index 00000000000..08ca7d0f453 --- /dev/null +++ b/modules/CIAO/docs/tutorials/Quoter/Simple/descriptors/StockBrokerMonolithicImpl.cid @@ -0,0 +1,35 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no" ?> +<Deployment:componentImplementationDescription xmlns:Deployment="http://www.omg.org/Deployment" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.omg.org/Deployment Deployment.xsd"> + + <UUID>7205655C-4CBD-42BE-A0F1-870705A77D77</UUID> + + <implements href="StockBroker.ccd"/> + + <monolithicImpl> + <primaryArtifact> + <name>MyQuoter.ImplementationArtifacts.StockBrokerArtifacts.StockBroker_stub</name> + <referencedArtifact href="StockBroker_stub.iad"/> + </primaryArtifact> + <primaryArtifact> + <name>MyQuoter.ImplementationArtifacts.StockBrokerArtifacts.StockBroker_svnt</name> + <referencedArtifact href="StockBroker_svnt.iad"/> + </primaryArtifact> + <primaryArtifact> + <name>MyQuoter.ImplementationArtifacts.StockBrokerArtifacts.StockBroker_exec</name> + <referencedArtifact href="StockBroker_exec.iad"/> + </primaryArtifact> + </monolithicImpl> + + <configProperty> + <name>ComponentIOR</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>StockBroker.ior</string> + </value> + </value> + </configProperty> + +</Deployment:componentImplementationDescription> diff --git a/modules/CIAO/docs/tutorials/Quoter/Simple/descriptors/StockBroker_exec.iad b/modules/CIAO/docs/tutorials/Quoter/Simple/descriptors/StockBroker_exec.iad new file mode 100644 index 00000000000..790c9e9263a --- /dev/null +++ b/modules/CIAO/docs/tutorials/Quoter/Simple/descriptors/StockBroker_exec.iad @@ -0,0 +1,78 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no" ?> +<Deployment:implementationArtifactDescription xmlns:Deployment="http://www.omg.org/Deployment" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.omg.org/Deployment Deployment.xsd"> + + <UUID>32859990-B97C-4195-BA0E-60DA9930C5FB</UUID> + + <location>StockBroker_exec</location> + + <dependsOn> + <name>MyQuoter.ImplementationArtifacts.StockBrokerArtifacts.StockBroker_svnt</name> + <referencedArtifact href="StockBroker_svnt.iad"/> + </dependsOn> + + <dependsOn> + <name>MyQuoter.ImplementationArtifacts.StockBrokerArtifacts.StockBroker_stub</name> + <referencedArtifact href="StockBroker_stub.iad"/> + </dependsOn> + + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_Stock_StockBrokerHome_Impl</string> + </value> + </value> + </execParameter> + + <execParameter> + <name>architecture</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>x86</string> + </value> + </value> + </execParameter> + + <execParameter> + <name>artifactVersion</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>0.0.0.0</string> + </value> + </value> + </execParameter> + + <execParameter> + <name>configuration</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>Release</string> + </value> + </value> + </execParameter> + + <execParameter> + <name>operatingSystem</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>Linux</string> + </value> + </value> + </execParameter> + +</Deployment:implementationArtifactDescription> diff --git a/modules/CIAO/docs/tutorials/Quoter/Simple/descriptors/StockBroker_stub.iad b/modules/CIAO/docs/tutorials/Quoter/Simple/descriptors/StockBroker_stub.iad new file mode 100644 index 00000000000..e2eb6f48383 --- /dev/null +++ b/modules/CIAO/docs/tutorials/Quoter/Simple/descriptors/StockBroker_stub.iad @@ -0,0 +1,56 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no" ?> +<Deployment:implementationArtifactDescription xmlns:Deployment="http://www.omg.org/Deployment" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.omg.org/Deployment Deployment.xsd"> + + <UUID>C964CED0-3DFD-4D87-9AB2-0FB76C672D6E</UUID> + + <location>StockBroker_stub</location> + + <execParameter> + <name>architecture</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>x86</string> + </value> + </value> + </execParameter> + + <execParameter> + <name>artifactVersion</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>0.0.0.0</string> + </value> + </value> + </execParameter> + + <execParameter> + <name>configuration</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>Release</string> + </value> + </value> + </execParameter> + + <execParameter> + <name>operatingSystem</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>Linux</string> + </value> + </value> + </execParameter> + +</Deployment:implementationArtifactDescription> diff --git a/modules/CIAO/docs/tutorials/Quoter/Simple/descriptors/StockBroker_svnt.iad b/modules/CIAO/docs/tutorials/Quoter/Simple/descriptors/StockBroker_svnt.iad new file mode 100644 index 00000000000..dde70409dc0 --- /dev/null +++ b/modules/CIAO/docs/tutorials/Quoter/Simple/descriptors/StockBroker_svnt.iad @@ -0,0 +1,73 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no" ?> +<Deployment:implementationArtifactDescription xmlns:Deployment="http://www.omg.org/Deployment" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.omg.org/Deployment Deployment.xsd"> + + <UUID>28F23672-EB7E-41DD-8F12-77B9FC9175C2</UUID> + + <location>StockBroker_svnt</location> + + <dependsOn> + <name>MyQuoter.ImplementationArtifacts.StockBrokerArtifacts.StockBroker_stub</name> + <referencedArtifact href="StockBroker_stub.iad"/> + </dependsOn> + + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_Stock_StockBrokerHome_Servant</string> + </value> + </value> + </execParameter> + + <execParameter> + <name>architecture</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>x86</string> + </value> + </value> + </execParameter> + + <execParameter> + <name>artifactVersion</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>0.0.0.0</string> + </value> + </value> + </execParameter> + + <execParameter> + <name>configuration</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>Release</string> + </value> + </value> + </execParameter> + + <execParameter> + <name>operatingSystem</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>Linux</string> + </value> + </value> + </execParameter> + +</Deployment:implementationArtifactDescription> diff --git a/modules/CIAO/docs/tutorials/Quoter/Simple/descriptors/StockDistributor.ccd b/modules/CIAO/docs/tutorials/Quoter/Simple/descriptors/StockDistributor.ccd new file mode 100644 index 00000000000..ccb97ed3691 --- /dev/null +++ b/modules/CIAO/docs/tutorials/Quoter/Simple/descriptors/StockDistributor.ccd @@ -0,0 +1,49 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no" ?> +<Deployment:componentInterfaceDescription xmlns:Deployment="http://www.omg.org/Deployment" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.omg.org/Deployment Deployment.xsd"> + + <UUID>B124B4A8-F51C-4F63-9A08-35256C9A9259</UUID> + + <specificType>IDL:Stock/StockDistributor:1.0</specificType> + + <supportedType>IDL:Stock/StockDistributor:1.0</supportedType> + + <supportedType>IDL:Stock/Trigger:1.0</supportedType> + + <supportedType>IDL:omg.org/Components/Navigation:1.0</supportedType> + + <supportedType>IDL:omg.org/Components/Receptacles:1.0</supportedType> + + <supportedType>IDL:omg.org/Components/Events:1.0</supportedType> + + <supportedType>IDL:omg.org/Components/CCMObject:1.0</supportedType> + + <supportedType>IDL:omg.org/CORBA/Object:1.0</supportedType> + + <idlFile>Distributor.idl</idlFile> + + <port> + <name>notify_out</name> + <specificType>IDL:Stock/StockNameConsumer:1.0</specificType> + <supportedType>IDL:Stock/StockNameConsumer:1.0</supportedType> + <supportedType>IDL:omg.org/Components/EventConsumerBase:1.0</supportedType> + <supportedType>IDL:omg.org/CORBA/Object:1.0</supportedType> + <provider>true</provider> + <exclusiveProvider>false</exclusiveProvider> + <exclusiveUser>false</exclusiveUser> + <optional>false</optional> + <kind>EventPublisher</kind> + </port> + + <port> + <name>push_quoter</name> + <specificType>IDL:Stock/StockQuoter:1.0</specificType> + <supportedType>IDL:Stock/StockQuoter:1.0</supportedType> + <supportedType>IDL:omg.org/CORBA/Object:1.0</supportedType> + <provider>true</provider> + <exclusiveProvider>false</exclusiveProvider> + <exclusiveUser>false</exclusiveUser> + <optional>false</optional> + <kind>Facet</kind> + </port> + +</Deployment:componentInterfaceDescription> diff --git a/modules/CIAO/docs/tutorials/Quoter/Simple/descriptors/StockDistributorMonolithicImpl.cid b/modules/CIAO/docs/tutorials/Quoter/Simple/descriptors/StockDistributorMonolithicImpl.cid new file mode 100644 index 00000000000..d462449f1fc --- /dev/null +++ b/modules/CIAO/docs/tutorials/Quoter/Simple/descriptors/StockDistributorMonolithicImpl.cid @@ -0,0 +1,35 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no" ?> +<Deployment:componentImplementationDescription xmlns:Deployment="http://www.omg.org/Deployment" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.omg.org/Deployment Deployment.xsd"> + + <UUID>8F7FE6F8-1AF2-4490-90BE-EC41863033FC</UUID> + + <implements href="StockDistributor.ccd"/> + + <monolithicImpl> + <primaryArtifact> + <name>MyQuoter.ImplementationArtifacts.StockDistributorArtifacts.StockDistributor_stub</name> + <referencedArtifact href="StockDistributor_stub.iad"/> + </primaryArtifact> + <primaryArtifact> + <name>MyQuoter.ImplementationArtifacts.StockDistributorArtifacts.StockDistributor_svnt</name> + <referencedArtifact href="StockDistributor_svnt.iad"/> + </primaryArtifact> + <primaryArtifact> + <name>MyQuoter.ImplementationArtifacts.StockDistributorArtifacts.StockDistributor_exec</name> + <referencedArtifact href="StockDistributor_exec.iad"/> + </primaryArtifact> + </monolithicImpl> + + <configProperty> + <name>ComponentIOR</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>StockDistributor.ior</string> + </value> + </value> + </configProperty> + +</Deployment:componentImplementationDescription> diff --git a/modules/CIAO/docs/tutorials/Quoter/Simple/descriptors/StockDistributor_exec.iad b/modules/CIAO/docs/tutorials/Quoter/Simple/descriptors/StockDistributor_exec.iad new file mode 100644 index 00000000000..1cfcbbe62f7 --- /dev/null +++ b/modules/CIAO/docs/tutorials/Quoter/Simple/descriptors/StockDistributor_exec.iad @@ -0,0 +1,78 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no" ?> +<Deployment:implementationArtifactDescription xmlns:Deployment="http://www.omg.org/Deployment" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.omg.org/Deployment Deployment.xsd"> + + <UUID>00F15FA6-FA09-460E-9670-D878F508BA4D</UUID> + + <location>StockDistributor_exec</location> + + <dependsOn> + <name>MyQuoter.ImplementationArtifacts.StockDistributorArtifacts.StockDistributor_svnt</name> + <referencedArtifact href="StockDistributor_svnt.iad"/> + </dependsOn> + + <dependsOn> + <name>MyQuoter.ImplementationArtifacts.StockDistributorArtifacts.StockDistributor_stub</name> + <referencedArtifact href="StockDistributor_stub.iad"/> + </dependsOn> + + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_Stock_StockDistributorHome_Impl</string> + </value> + </value> + </execParameter> + + <execParameter> + <name>architecture</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>x86</string> + </value> + </value> + </execParameter> + + <execParameter> + <name>artifactVersion</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>0.0.0.0</string> + </value> + </value> + </execParameter> + + <execParameter> + <name>configuration</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>Release</string> + </value> + </value> + </execParameter> + + <execParameter> + <name>operatingSystem</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>Linux</string> + </value> + </value> + </execParameter> + +</Deployment:implementationArtifactDescription> diff --git a/modules/CIAO/docs/tutorials/Quoter/Simple/descriptors/StockDistributor_stub.iad b/modules/CIAO/docs/tutorials/Quoter/Simple/descriptors/StockDistributor_stub.iad new file mode 100644 index 00000000000..c359b2ca929 --- /dev/null +++ b/modules/CIAO/docs/tutorials/Quoter/Simple/descriptors/StockDistributor_stub.iad @@ -0,0 +1,56 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no" ?> +<Deployment:implementationArtifactDescription xmlns:Deployment="http://www.omg.org/Deployment" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.omg.org/Deployment Deployment.xsd"> + + <UUID>2DCEC213-F447-421C-A27A-D6222EFB9A38</UUID> + + <location>StockDistributor_stub</location> + + <execParameter> + <name>architecture</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>x86</string> + </value> + </value> + </execParameter> + + <execParameter> + <name>artifactVersion</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>0.0.0.0</string> + </value> + </value> + </execParameter> + + <execParameter> + <name>configuration</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>Release</string> + </value> + </value> + </execParameter> + + <execParameter> + <name>operatingSystem</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>Linux</string> + </value> + </value> + </execParameter> + +</Deployment:implementationArtifactDescription> diff --git a/modules/CIAO/docs/tutorials/Quoter/Simple/descriptors/StockDistributor_svnt.iad b/modules/CIAO/docs/tutorials/Quoter/Simple/descriptors/StockDistributor_svnt.iad new file mode 100644 index 00000000000..3952c4eb237 --- /dev/null +++ b/modules/CIAO/docs/tutorials/Quoter/Simple/descriptors/StockDistributor_svnt.iad @@ -0,0 +1,73 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no" ?> +<Deployment:implementationArtifactDescription xmlns:Deployment="http://www.omg.org/Deployment" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.omg.org/Deployment Deployment.xsd"> + + <UUID>5CDF934B-8D0F-4012-89A1-811D2E9C0D63</UUID> + + <location>StockDistributor_svnt</location> + + <dependsOn> + <name>MyQuoter.ImplementationArtifacts.StockDistributorArtifacts.StockDistributor_stub</name> + <referencedArtifact href="StockDistributor_stub.iad"/> + </dependsOn> + + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_Stock_StockDistributorHome_Servant</string> + </value> + </value> + </execParameter> + + <execParameter> + <name>architecture</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>x86</string> + </value> + </value> + </execParameter> + + <execParameter> + <name>artifactVersion</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>0.0.0.0</string> + </value> + </value> + </execParameter> + + <execParameter> + <name>configuration</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>Release</string> + </value> + </value> + </execParameter> + + <execParameter> + <name>operatingSystem</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>Linux</string> + </value> + </value> + </execParameter> + +</Deployment:implementationArtifactDescription> diff --git a/modules/CIAO/docs/tutorials/Quoter/Simple/descriptors/StockQuoter.cid b/modules/CIAO/docs/tutorials/Quoter/Simple/descriptors/StockQuoter.cid new file mode 100644 index 00000000000..f5cb6076255 --- /dev/null +++ b/modules/CIAO/docs/tutorials/Quoter/Simple/descriptors/StockQuoter.cid @@ -0,0 +1,39 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no" ?> +<Deployment:componentImplementationDescription xmlns:Deployment="http://www.omg.org/Deployment" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.omg.org/Deployment Deployment.xsd"> + + <UUID>EBE916A6-E4E5-469C-A8EE-EDDFCA4B9CE3</UUID> + + <assemblyImpl> + <instance id="_94A1586C-2E9A-4FFD-8D75-7FC5A54F6B71"> + <name>MyQuoter.ComponentImplementations.StockQuoterImplementation.StockQuoter.StockBroker</name> + <basePackage href="Broker.cpd"/> + </instance> + <instance id="_2DBE2452-FDE3-4399-9210-509CAC49139A"> + <name>MyQuoter.ComponentImplementations.StockQuoterImplementation.StockQuoter.StockDistributor</name> + <basePackage href="Distributor.cpd"/> + </instance> + <connection> + <name>read_quoter_push_quoter</name> + <internalEndpoint> + <portName>read_quoter</portName> + <instance>_94A1586C-2E9A-4FFD-8D75-7FC5A54F6B71</instance> + </internalEndpoint> + <internalEndpoint> + <portName>push_quoter</portName> + <instance>_2DBE2452-FDE3-4399-9210-509CAC49139A</instance> + </internalEndpoint> + </connection> + <connection> + <name>notify_out_notify_in</name> + <internalEndpoint> + <portName>notify_out</portName> + <instance>_2DBE2452-FDE3-4399-9210-509CAC49139A</instance> + </internalEndpoint> + <internalEndpoint> + <portName>notify_in</portName> + <instance>_94A1586C-2E9A-4FFD-8D75-7FC5A54F6B71</instance> + </internalEndpoint> + </connection> + </assemblyImpl> + +</Deployment:componentImplementationDescription> diff --git a/modules/CIAO/docs/tutorials/Quoter/Simple/descriptors/StockQuoter.cpd b/modules/CIAO/docs/tutorials/Quoter/Simple/descriptors/StockQuoter.cpd new file mode 100644 index 00000000000..f84439ad25b --- /dev/null +++ b/modules/CIAO/docs/tutorials/Quoter/Simple/descriptors/StockQuoter.cpd @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no" ?> +<Deployment:componentPackageDescription xmlns:Deployment="http://www.omg.org/Deployment" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.omg.org/Deployment Deployment.xsd"> + + <UUID>B6A364E4-7014-4B8F-8CB5-E6EDE243E2F7</UUID> + + <implementation> + <name>MyQuoter.ComponentImplementations.StockQuoterImplementation.StockQuoter</name> + <referencedImplementation href="StockQuoter.cid"/> + </implementation> + +</Deployment:componentPackageDescription> diff --git a/modules/CIAO/docs/tutorials/Quoter/Simple/descriptors/TopLevelPackage.tpd b/modules/CIAO/docs/tutorials/Quoter/Simple/descriptors/TopLevelPackage.tpd new file mode 100644 index 00000000000..ca9b5a6fc09 --- /dev/null +++ b/modules/CIAO/docs/tutorials/Quoter/Simple/descriptors/TopLevelPackage.tpd @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no" ?> +<Deployment:topLevelPackageDescription xmlns:Deployment="http://www.omg.org/Deployment" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.omg.org/Deployment Deployment.xsd"> + + <basePackage href="Default.pcd"/> + +</Deployment:topLevelPackageDescription> diff --git a/modules/CIAO/docs/tutorials/Quoter/Simple/descriptors/XMI.xsd b/modules/CIAO/docs/tutorials/Quoter/Simple/descriptors/XMI.xsd new file mode 100644 index 00000000000..f4adac91934 --- /dev/null +++ b/modules/CIAO/docs/tutorials/Quoter/Simple/descriptors/XMI.xsd @@ -0,0 +1,35 @@ +<?xml version="1.0" ?> +<xsd:schema targetNamespace="http://www.omg.org/XMI" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsd="http://www.w3.org/2001/XMLSchema" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation='http://www.w3.org/2001/XMLSchema XMLSchema.xsd'> + <xsd:attribute name="id" type="xsd:ID" /> + <xsd:attributeGroup name="IdentityAttribs"> + <xsd:attribute form="qualified" name="label" type="xsd:string" use="optional" /> + <xsd:attribute form="qualified" name="uuid" type="xsd:string" use="optional" /> + </xsd:attributeGroup> + <xsd:attributeGroup name="LinkAttribs"> + <xsd:attribute name="href" type="xsd:string" use="optional" /> + <xsd:attribute form="qualified" name="idref" type="xsd:IDREF" use="optional" /> + </xsd:attributeGroup> + <xsd:attributeGroup name="ObjectAttribs"> + <xsd:attributeGroup ref="xmi:IdentityAttribs" /> + <xsd:attributeGroup ref="xmi:LinkAttribs" /> + <xsd:attribute fixed="2.0" form="qualified" name="version" type="xsd:string" use="optional" /> + <xsd:attribute form="qualified" name="type" type="xsd:QName" use="optional" /> + </xsd:attributeGroup> + <xsd:complexType name="Extension"> + <xsd:choice maxOccurs="unbounded" minOccurs="0"> + <xsd:any processContents="lax" /> + </xsd:choice> + <xsd:attribute ref="xmi:id" /> + <xsd:attributeGroup ref="xmi:ObjectAttribs" /> + <xsd:attribute name="extender" type="xsd:string" use="optional" /> + <xsd:attribute name="extenderID" type="xsd:string" use="optional" /> + </xsd:complexType> + <xsd:element name="Extension" type="xmi:Extension" /> + <xsd:complexType name="Any"> + <xsd:choice maxOccurs="unbounded" minOccurs="0"> + <xsd:any processContents="skip" /> + </xsd:choice> + <xsd:anyAttribute processContents="skip" /> + </xsd:complexType> +</xsd:schema> diff --git a/modules/CIAO/docs/tutorials/Quoter/Simple/descriptors/runNodeDaemons.pl b/modules/CIAO/docs/tutorials/Quoter/Simple/descriptors/runNodeDaemons.pl new file mode 100755 index 00000000000..9c611330383 --- /dev/null +++ b/modules/CIAO/docs/tutorials/Quoter/Simple/descriptors/runNodeDaemons.pl @@ -0,0 +1,41 @@ +eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}' + & eval 'exec perl -S $0 $argv:q' + if 0; + +# $Id$ +# -*- perl -*- + +use lib "$ENV{ACE_ROOT}/bin"; +use PerlACE::Run_Test; + +$status = 0; +$iorfile1 = PerlACE::LocalFile ("NodeApp1.ior"); +$iorfile2 = PerlACE::LocalFile ("NodeApp2.ior"); + +#for ($iter = 0; $iter <= $#ARGV; $iter++) { +# if ($ARGV[$iter] eq "-h" || $ARGV[$iter] eq "-?") { +# print "Run_Test Perl script for NodeApplicationTest \n\n"; +# print "run_test \n"; +# print "\n"; +# print "-h -- prints this information\n"; +# exit 0; +# } +#} + + +unlink $iorfile1; +unlink $iorfile2; + +$CIAO_ROOT=$ENV{'CIAO_ROOT'}; +$DANCE_ROOT=$ENV{'DANCE_ROOT'}; + +$SV1 = new PerlACE::Process ("$DANCE_ROOT/bin/dance_node_manager", + "-ORBEndpoint iiop://localhost:30000 -s $CIAO_ROOT/DAnCE/NodeApplication/NodeApplication -d 1000"); + +$SV2 = new PerlACE::Process ("$DANCE_ROOT/bin/dance_node_manager", + "-ORBEndpoint iiop://localhost:40000 -s $CIAO_ROOT/DAnCE/NodeApplication/NodeApplication -d 1000"); + +$SV1->Spawn (); +$SV2->Spawn (); + +sleep (99999999999); diff --git a/modules/CIAO/docs/tutorials/Quoter/Simple/images/fig1.jpg b/modules/CIAO/docs/tutorials/Quoter/Simple/images/fig1.jpg Binary files differnew file mode 100644 index 00000000000..a8550fe1176 --- /dev/null +++ b/modules/CIAO/docs/tutorials/Quoter/Simple/images/fig1.jpg diff --git a/modules/CIAO/docs/tutorials/Quoter/Simple/images/fig10.jpg b/modules/CIAO/docs/tutorials/Quoter/Simple/images/fig10.jpg Binary files differnew file mode 100644 index 00000000000..b156af58db4 --- /dev/null +++ b/modules/CIAO/docs/tutorials/Quoter/Simple/images/fig10.jpg diff --git a/modules/CIAO/docs/tutorials/Quoter/Simple/images/fig11.jpg b/modules/CIAO/docs/tutorials/Quoter/Simple/images/fig11.jpg Binary files differnew file mode 100644 index 00000000000..148abd4830d --- /dev/null +++ b/modules/CIAO/docs/tutorials/Quoter/Simple/images/fig11.jpg diff --git a/modules/CIAO/docs/tutorials/Quoter/Simple/images/fig12.jpg b/modules/CIAO/docs/tutorials/Quoter/Simple/images/fig12.jpg Binary files differnew file mode 100644 index 00000000000..e1f58c525b6 --- /dev/null +++ b/modules/CIAO/docs/tutorials/Quoter/Simple/images/fig12.jpg diff --git a/modules/CIAO/docs/tutorials/Quoter/Simple/images/fig2.jpg b/modules/CIAO/docs/tutorials/Quoter/Simple/images/fig2.jpg Binary files differnew file mode 100644 index 00000000000..c971b69c29b --- /dev/null +++ b/modules/CIAO/docs/tutorials/Quoter/Simple/images/fig2.jpg diff --git a/modules/CIAO/docs/tutorials/Quoter/Simple/images/fig3.jpg b/modules/CIAO/docs/tutorials/Quoter/Simple/images/fig3.jpg Binary files differnew file mode 100644 index 00000000000..2d67b365a0b --- /dev/null +++ b/modules/CIAO/docs/tutorials/Quoter/Simple/images/fig3.jpg diff --git a/modules/CIAO/docs/tutorials/Quoter/Simple/images/fig4.jpg b/modules/CIAO/docs/tutorials/Quoter/Simple/images/fig4.jpg Binary files differnew file mode 100644 index 00000000000..bd07ff1f38e --- /dev/null +++ b/modules/CIAO/docs/tutorials/Quoter/Simple/images/fig4.jpg diff --git a/modules/CIAO/docs/tutorials/Quoter/Simple/images/fig5.jpg b/modules/CIAO/docs/tutorials/Quoter/Simple/images/fig5.jpg Binary files differnew file mode 100644 index 00000000000..6f9498be6f8 --- /dev/null +++ b/modules/CIAO/docs/tutorials/Quoter/Simple/images/fig5.jpg diff --git a/modules/CIAO/docs/tutorials/Quoter/Simple/images/fig5a.jpg b/modules/CIAO/docs/tutorials/Quoter/Simple/images/fig5a.jpg Binary files differnew file mode 100644 index 00000000000..d7f2e9c276c --- /dev/null +++ b/modules/CIAO/docs/tutorials/Quoter/Simple/images/fig5a.jpg diff --git a/modules/CIAO/docs/tutorials/Quoter/Simple/images/fig6.jpg b/modules/CIAO/docs/tutorials/Quoter/Simple/images/fig6.jpg Binary files differnew file mode 100644 index 00000000000..724c40c00f8 --- /dev/null +++ b/modules/CIAO/docs/tutorials/Quoter/Simple/images/fig6.jpg diff --git a/modules/CIAO/docs/tutorials/Quoter/Simple/images/fig7.jpg b/modules/CIAO/docs/tutorials/Quoter/Simple/images/fig7.jpg Binary files differnew file mode 100644 index 00000000000..44f1dfb009f --- /dev/null +++ b/modules/CIAO/docs/tutorials/Quoter/Simple/images/fig7.jpg diff --git a/modules/CIAO/docs/tutorials/Quoter/Simple/images/fig8.jpg b/modules/CIAO/docs/tutorials/Quoter/Simple/images/fig8.jpg Binary files differnew file mode 100644 index 00000000000..ffb3d89640d --- /dev/null +++ b/modules/CIAO/docs/tutorials/Quoter/Simple/images/fig8.jpg diff --git a/modules/CIAO/docs/tutorials/Quoter/Simple/images/fig9.jpg b/modules/CIAO/docs/tutorials/Quoter/Simple/images/fig9.jpg Binary files differnew file mode 100644 index 00000000000..594cc1c3eb7 --- /dev/null +++ b/modules/CIAO/docs/tutorials/Quoter/Simple/images/fig9.jpg diff --git a/modules/CIAO/docs/tutorials/Quoter/Simple/images/quoter.jpg b/modules/CIAO/docs/tutorials/Quoter/Simple/images/quoter.jpg Binary files differnew file mode 100644 index 00000000000..2f3edd11329 --- /dev/null +++ b/modules/CIAO/docs/tutorials/Quoter/Simple/images/quoter.jpg diff --git a/modules/CIAO/docs/tutorials/Quoter/Simple/images/step1.jpg b/modules/CIAO/docs/tutorials/Quoter/Simple/images/step1.jpg Binary files differnew file mode 100644 index 00000000000..b0346ee841b --- /dev/null +++ b/modules/CIAO/docs/tutorials/Quoter/Simple/images/step1.jpg diff --git a/modules/CIAO/docs/tutorials/Quoter/Simple/images/step2.jpg b/modules/CIAO/docs/tutorials/Quoter/Simple/images/step2.jpg Binary files differnew file mode 100644 index 00000000000..a4526901307 --- /dev/null +++ b/modules/CIAO/docs/tutorials/Quoter/Simple/images/step2.jpg diff --git a/modules/CIAO/docs/tutorials/Quoter/Simple/images/step3.jpg b/modules/CIAO/docs/tutorials/Quoter/Simple/images/step3.jpg Binary files differnew file mode 100644 index 00000000000..d7687394851 --- /dev/null +++ b/modules/CIAO/docs/tutorials/Quoter/Simple/images/step3.jpg diff --git a/modules/CIAO/docs/tutorials/Quoter/Simple/images/step6.jpg b/modules/CIAO/docs/tutorials/Quoter/Simple/images/step6.jpg Binary files differnew file mode 100644 index 00000000000..e1e3b28055d --- /dev/null +++ b/modules/CIAO/docs/tutorials/Quoter/Simple/images/step6.jpg diff --git a/modules/CIAO/docs/tutorials/Quoter/Simple/images/steps.jpg b/modules/CIAO/docs/tutorials/Quoter/Simple/images/steps.jpg Binary files differnew file mode 100644 index 00000000000..ddccdc2b373 --- /dev/null +++ b/modules/CIAO/docs/tutorials/Quoter/Simple/images/steps.jpg diff --git a/modules/CIAO/docs/tutorials/Quoter/Simple/index.html b/modules/CIAO/docs/tutorials/Quoter/Simple/index.html new file mode 100644 index 00000000000..ce61b3673ef --- /dev/null +++ b/modules/CIAO/docs/tutorials/Quoter/Simple/index.html @@ -0,0 +1,351 @@ +<!-- $Id$ --> +<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" + xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:p="urn:schemas-microsoft-com:office:powerpoint" + xmlns:oa="urn:schemas-microsoft-com:office:activation" xmlns="http://www.w3.org/TR/REC-html40"> + <head> + <title>Building a Stock Quoter with TAO - A Tutorial</title> + <meta http-equiv="Content-Type" content="text/html; charset=us-ascii"> + <meta name="ProgId" content="Word.Document"> + <meta name="Generator" content="Microsoft Word 11"> + <meta name="Originator" content="Microsoft Word 11"> + <link rel="File-List" href="index_files/filelist.xml"> + <link rel="Edit-Time-Data" href="index_files/editdata.mso"> <!--[if !mso]> +<STYLE> +v\:* {behavior:url(#default#VML);} +o\:* {behavior:url(#default#VML);} +w\:* {behavior:url(#default#VML);} +.shape {behavior:url(#default#VML);} +</STYLE> +<![endif]--> <!--[if gte mso 9]><xml> + <o:DocumentProperties> + <o:Author>Abdullah Sowayan</o:Author> + <o:LastAuthor>Abdullah Sowayan</o:LastAuthor> + <o:Revision>14</o:Revision> + <o:TotalTime>65</o:TotalTime> + <o:Created>2006-10-06T22:35:00Z</o:Created> + <o:LastSaved>2007-03-08T01:23:00Z</o:LastSaved> + <o:Pages>1</o:Pages> + <o:Words>849</o:Words> + <o:Characters>4845</o:Characters> + <o:Company>Maritime Systems & Sensors</o:Company> + <o:Lines>40</o:Lines> + <o:Paragraphs>11</o:Paragraphs> + <o:CharactersWithSpaces>5683</o:CharactersWithSpaces> + <o:Version>11.5606</o:Version> + </o:DocumentProperties> +</xml><![endif]--> <!--[if gte mso 9]><xml> + <w:WordDocument> + <w:ValidateAgainstSchemas/> + <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid> + <w:IgnoreMixedContent>false</w:IgnoreMixedContent> + <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText> + <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel> + </w:WordDocument> +</xml><![endif]--> <!--[if gte mso 9]><xml> + <w:LatentStyles DefLockedState="false" LatentStyleCount="156"> + </w:LatentStyles> +</xml><![endif]--> + <style> <!-- /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-parent:""; margin:0in; margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:12.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman";} + h3 {mso-margin-top-alt:auto; margin-right:0in; mso-margin-bottom-alt:auto; margin-left:0in; mso-pagination:widow-orphan; mso-outline-level:3; font-size:13.5pt; font-family:"Times New Roman"; font-weight:bold;} + a:link, span.MsoHyperlink {color:#000FFF; text-decoration:underline; text-underline:single;} + a:visited, span.MsoHyperlinkFollowed {color:#FF0F0F; text-decoration:underline; text-underline:single;} + p {mso-margin-top-alt:auto; margin-right:0in; mso-margin-bottom-alt:auto; margin-left:0in; mso-pagination:widow-orphan; font-size:12.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman";} + address {margin:0in; margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:12.0pt; font-family:"Times New Roman"; font-style:italic;} + code {font-family:"Courier New"; mso-ascii-font-family:"Courier New"; mso-fareast-font-family:"Times New Roman"; mso-hansi-font-family:"Courier New"; mso-bidi-font-family:"Courier New";} + span.intbody {mso-style-name:intbody;} + @page Section1 {size:8.5in 11.0in; margin:1.0in 1.25in 1.0in 1.25in; mso-header-margin:.5in; mso-footer-margin:.5in; mso-paper-source:0;} + div.Section1 {page:Section1;} + /* List Definitions */ @list l0 {mso-list-id:137387275; mso-list-type:hybrid; mso-list-template-ids:-1837205732 67698689 67698691 67698693 67698689 67698691 67698693 67698689 67698691 67698693;} + @list l0:level1 {mso-level-number-format:bullet; mso-level-text:\F0B7; mso-level-tab-stop:.75in; mso-level-number-position:left; margin-left:.75in; text-indent:-.25in; font-family:Symbol;} + @list l0:level2 {mso-level-tab-stop:1.0in; mso-level-number-position:left; text-indent:-.25in;} + @list l0:level3 {mso-level-tab-stop:1.5in; mso-level-number-position:left; text-indent:-.25in;} + @list l0:level4 {mso-level-tab-stop:2.0in; mso-level-number-position:left; text-indent:-.25in;} + @list l0:level5 {mso-level-tab-stop:2.5in; mso-level-number-position:left; text-indent:-.25in;} + @list l0:level6 {mso-level-tab-stop:3.0in; mso-level-number-position:left; text-indent:-.25in;} + @list l0:level7 {mso-level-tab-stop:3.5in; mso-level-number-position:left; text-indent:-.25in;} + @list l0:level8 {mso-level-tab-stop:4.0in; mso-level-number-position:left; text-indent:-.25in;} + @list l0:level9 {mso-level-tab-stop:4.5in; mso-level-number-position:left; text-indent:-.25in;} + @list l1 {mso-list-id:271979655; mso-list-template-ids:-2025148996;} + @list l1:level1 {mso-level-number-format:bullet; mso-level-text:\F0B7; mso-level-tab-stop:.75in; mso-level-number-position:left; margin-left:.75in; text-indent:-.25in; font-family:Symbol;} + @list l1:level2 {mso-level-tab-stop:1.0in; mso-level-number-position:left; text-indent:-.25in;} + @list l1:level3 {mso-level-tab-stop:1.5in; mso-level-number-position:left; text-indent:-.25in;} + @list l1:level4 {mso-level-tab-stop:2.0in; mso-level-number-position:left; text-indent:-.25in;} + @list l1:level5 {mso-level-tab-stop:2.5in; mso-level-number-position:left; text-indent:-.25in;} + @list l1:level6 {mso-level-tab-stop:3.0in; mso-level-number-position:left; text-indent:-.25in;} + @list l1:level7 {mso-level-tab-stop:3.5in; mso-level-number-position:left; text-indent:-.25in;} + @list l1:level8 {mso-level-tab-stop:4.0in; mso-level-number-position:left; text-indent:-.25in;} + @list l1:level9 {mso-level-tab-stop:4.5in; mso-level-number-position:left; text-indent:-.25in;} + @list l2 {mso-list-id:398870737; mso-list-type:hybrid; mso-list-template-ids:-1758177826 -1301365556 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;} + @list l2:level1 {mso-level-tab-stop:.5in; mso-level-number-position:left; text-indent:-.25in; mso-ansi-font-weight:bold;} + @list l2:level2 {mso-level-number-format:alpha-lower; mso-level-tab-stop:1.0in; mso-level-number-position:left; text-indent:-.25in;} + @list l2:level3 {mso-level-tab-stop:1.5in; mso-level-number-position:left; text-indent:-.25in;} + @list l2:level4 {mso-level-tab-stop:2.0in; mso-level-number-position:left; text-indent:-.25in;} + @list l2:level5 {mso-level-tab-stop:2.5in; mso-level-number-position:left; text-indent:-.25in;} + @list l2:level6 {mso-level-tab-stop:3.0in; mso-level-number-position:left; text-indent:-.25in;} + @list l2:level7 {mso-level-tab-stop:3.5in; mso-level-number-position:left; text-indent:-.25in;} + @list l2:level8 {mso-level-tab-stop:4.0in; mso-level-number-position:left; text-indent:-.25in;} + @list l2:level9 {mso-level-tab-stop:4.5in; mso-level-number-position:left; text-indent:-.25in;} + @list l3 {mso-list-id:1284144513; mso-list-type:hybrid; mso-list-template-ids:120510300 -1301365556 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;} + @list l3:level1 {mso-level-tab-stop:.5in; mso-level-number-position:left; text-indent:-.25in; mso-ansi-font-weight:bold;} + @list l3:level2 {mso-level-tab-stop:1.0in; mso-level-number-position:left; text-indent:-.25in;} + @list l3:level3 {mso-level-tab-stop:1.5in; mso-level-number-position:left; text-indent:-.25in;} + @list l3:level4 {mso-level-tab-stop:2.0in; mso-level-number-position:left; text-indent:-.25in;} + @list l3:level5 {mso-level-tab-stop:2.5in; mso-level-number-position:left; text-indent:-.25in;} + @list l3:level6 {mso-level-tab-stop:3.0in; mso-level-number-position:left; text-indent:-.25in;} + @list l3:level7 {mso-level-tab-stop:3.5in; mso-level-number-position:left; text-indent:-.25in;} + @list l3:level8 {mso-level-tab-stop:4.0in; mso-level-number-position:left; text-indent:-.25in;} + @list l3:level9 {mso-level-tab-stop:4.5in; mso-level-number-position:left; text-indent:-.25in;} + @list l4 {mso-list-id:1734621206; mso-list-type:hybrid; mso-list-template-ids:-1370594096 67698689 67698691 67698693 67698689 67698691 67698693 67698689 67698691 67698693;} + @list l4:level1 {mso-level-number-format:bullet; mso-level-text:\F0B7; mso-level-tab-stop:.75in; mso-level-number-position:left; margin-left:.75in; text-indent:-.25in; font-family:Symbol;} + @list l4:level2 {mso-level-tab-stop:1.0in; mso-level-number-position:left; text-indent:-.25in;} + @list l4:level3 {mso-level-tab-stop:1.5in; mso-level-number-position:left; text-indent:-.25in;} + @list l4:level4 {mso-level-tab-stop:2.0in; mso-level-number-position:left; text-indent:-.25in;} + @list l4:level5 {mso-level-tab-stop:2.5in; mso-level-number-position:left; text-indent:-.25in;} + @list l4:level6 {mso-level-tab-stop:3.0in; mso-level-number-position:left; text-indent:-.25in;} + @list l4:level7 {mso-level-tab-stop:3.5in; mso-level-number-position:left; text-indent:-.25in;} + @list l4:level8 {mso-level-tab-stop:4.0in; mso-level-number-position:left; text-indent:-.25in;} + @list l4:level9 {mso-level-tab-stop:4.5in; mso-level-number-position:left; text-indent:-.25in;} + ol {margin-bottom:0in;} + ul {margin-bottom:0in;} + --></style> + <!--[if gte mso 10]> +<style> + /* Style Definitions */ + table.MsoNormalTable + {mso-style-name:"Table Normal"; + mso-tstyle-rowband-size:0; + mso-tstyle-colband-size:0; + mso-style-noshow:yes; + mso-style-parent:""; + mso-padding-alt:0in 5.4pt 0in 5.4pt; + mso-para-margin:0in; + mso-para-margin-bottom:.0001pt; + mso-pagination:widow-orphan; + font-size:10.0pt; + font-family:"Times New Roman"; + mso-ansi-language:#0400; + mso-fareast-language:#0400; + mso-bidi-language:#0400;} +</style> +<![endif]--> <!-- index.html,v 1.3 2006/05/06 02:29:31 schmidt Exp --> <!--[if gte mso 9]><xml> + <o:shapedefaults v:ext="edit" spidmax="8194"/> +</xml><![endif]--> <!--[if gte mso 9]><xml> + <o:shapelayout v:ext="edit"> + <o:idmap v:ext="edit" data="1"/> + </o:shapelayout></xml><![endif]--> + </head> + <body bgcolor="white" lang="EN-US" link="#000fff" vlink="#ff0f0f" style='tab-interval: +.5in'> + <h3 align="center" style='MARGIN:0in 0in 0pt;LINE-HEIGHT:150%;TEXT-ALIGN:center' class="Section1"><span style='COLOR:black'>Building a Stock Quoter with CIAO, +CoSMIC, and DAnCE - A Tutorial<o:p></o:p></span></h3> + <h3 align="center" style='MARGIN:0in 0in 0pt;LINE-HEIGHT:150%;TEXT-ALIGN:center' class="Section1"><span style='COLOR:black'><o:p> </o:p> + </span></h3> + <p style='MARGIN:0in 0in 0pt;LINE-HEIGHT:150%' class="Section1"><span style='COLOR:black'>This tutorial provides a step-by-step lesson on developing +component-based distributed applications using <a href="http://www.dre.vanderbilt.edu/cosmic/">CoSMIC</a> modeling toolkit and the +<a href="http://www.cs.wustl.edu/%7Eschmidt/CIAO.html">CIAO DAnCE</a> +framework. The example application used in this tutorial is a Stock Quoter that +consists of two components; the <i>StockDistributor</i> and the <i>StockBroker</i>. +The <i>StockDistributor</i> notifies one or more stock brokers whenever a stock +price changes. Upon receiving the notification, the <i>StockBroker</i> fetches +information about a particular stock from the <i>StockDistributor</i>. The +figure bellow shows the application diagram. This Stock Quoter application is +based on a series of <a href="http://www.cs.wustl.edu/%7Eschmidt/report-doc.html">CORBA component + model</a> +columns written by <a href="http://www.cs.wustl.edu/%7Eschmidt/">Doug Schmidt</a> +and <a href="http://www.iona.com/hyplan/vinoski/">Steve Vinoski</a> for <a href="http://www.cuj.com">C/C++ + Users Journal</a> and has consistently been +used as an example for <a href="http://www.cs.wustl.edu/%7Eschmidt/TAO.html">TAO</a>.<o:p></o:p></span></p> + <p style='MARGIN:0in 0in 0pt;LINE-HEIGHT:150%' class="Section1"><span style='COLOR:black'><o:p> </o:p> + </span></p> + <p class="MsoNormal" align="center" style='LINE-HEIGHT:150%;TEXT-ALIGN:center'><span style='COLOR:black'><img border="0" width="434" height="232" id="_x0000_i1025" src="images/fig1.jpg"><br> +Stock Quoter application Diagram <o:p></o:p></span></p> + <p class="MsoNormal" style='LINE-HEIGHT:150%'><span style='COLOR:black'><o:p> </o:p> + </span></p> + <p style='MARGIN:0in 0in 0pt;LINE-HEIGHT:150%' class="Section1"><span style='COLOR:black'>This is a step-by-step tutorial that will walk you through +the development and deployment phases of a CCM application (Stock Quoter). This +tutorial assumes that you have read and understood the following articles that +describe the example:<o:p></o:p></span></p> + <p style='MARGIN:0in 0in 0pt 0.75in;TEXT-INDENT:-0.25in;LINE-HEIGHT:150%;mso-list:l0 level1 lfo1;tab-stops:list .75in' + class="Section1"><![if !supportLists]><span style='FONT-FAMILY:Symbol; +mso-fareast-font-family:Symbol; +mso-bidi-font-family:Symbol'><span style='mso-list:Ignore'>·<span style="FONT:7pt 'Times New Roman'"> +</span></span> + </span><![endif]><a href="http://www.cuj.com/documents/s=9039/cujexp0402vinoski/">The + CORBA Component Model, Part 1: Evolving Towards Component Middleware</a></p> + <p style='MARGIN:0in 0in 0pt 0.75in;TEXT-INDENT:-0.25in;LINE-HEIGHT:150%;mso-list:l0 level1 lfo1;tab-stops:list .75in' + class="Section1"><![if !supportLists]><span style='FONT-FAMILY:Symbol; +mso-fareast-font-family:Symbol; +mso-bidi-font-family:Symbol'><span style='mso-list:Ignore'>·<span style="FONT:7pt 'Times New Roman'"> +</span></span> + </span><![endif]><a href="http://www.cuj.com/documents/s=9152/cujexp0404vinoski/">The + CORBA Component Model, Part 2: Defining Components with the IDL 3.x Types</a></p> + <p style='MARGIN:0in 0in 0pt 0.75in;TEXT-INDENT:-0.25in;LINE-HEIGHT:150%;mso-list:l0 level1 lfo1;tab-stops:list .75in' + class="Section1"><![if !supportLists]><span style='FONT-FAMILY:Symbol; +mso-fareast-font-family:Symbol; +mso-bidi-font-family:Symbol'><span style='mso-list:Ignore'>·<span style="FONT:7pt 'Times New Roman'"> +</span></span> + </span><![endif]><a href="http://www.cuj.com/documents/s=9301/cujexp0409vinoski/">The + CORBA Component Model, Part 3: The CCM Container Architecture and Component + Implementation Framework</a></p> + <p style='MARGIN:0in 0in 0pt 0.75in;TEXT-INDENT:-0.25in;LINE-HEIGHT:150%;mso-list:l0 level1 lfo1;tab-stops:list .75in' + class="Section1"><![if !supportLists]><span style='FONT-FAMILY:Symbol; +mso-fareast-font-family:Symbol; +mso-bidi-font-family:Symbol'><span style='mso-list:Ignore'>·<span style="FONT:7pt 'Times New Roman'"> +</span></span> + </span><![endif]><a href="http://www.cuj.com/documents/s=9360/cujexp0410vinoski/">The + CORBA Component Model Part 4: The CORBA Component Model Part 4: Implementing + Components with CCM</a></p> + <p style='MARGIN:0in 0in 0pt;LINE-HEIGHT:150%' class="Section1"><span style='COLOR:black'><o:p> </o:p> + </span></p> + <p style='MARGIN:0in 0in 0pt;LINE-HEIGHT:150%' class="Section1"><span style='COLOR:black'><span style='mso-spacerun:yes'> </span>In addition to +the articles above, reading and understanding the resources below will greatly +help you follow through this tutorial:<o:p></o:p></span></p> + <p style='MARGIN:0in 0in 0pt 0.75in;TEXT-INDENT:-0.25in;LINE-HEIGHT:150%;mso-list:l4 level1 lfo2;tab-stops:list .75in' + class="Section1"><![if !supportLists]><span style='COLOR:black; +FONT-FAMILY:Symbol; +mso-fareast-font-family:Symbol; +mso-bidi-font-family:Symbol'><span style='mso-list:Ignore'>·<span style="FONT:7pt 'Times New Roman'"> +</span></span> + </span><![endif]><a href="http://www.cs.wustl.edu/~schmidt/PDF/DAnCE.pdf">DAnCE: A + QoS-enabled Component Deployment and Conguration Engine</a><span style='COLOR:black'><o:p></o:p> + </span></p> + <p style='MARGIN:0in 0in 0pt 0.75in;TEXT-INDENT:-0.25in;LINE-HEIGHT:150%;mso-list:l4 level1 lfo2;tab-stops:list .75in' + class="Section1"><![if !supportLists]><span style='FONT-FAMILY:Symbol; +mso-fareast-font-family:Symbol; +mso-bidi-font-family:Symbol'><span style='mso-list:Ignore'>·<span style="FONT:7pt 'Times New Roman'"> +</span></span> + </span><![endif]>TAO’s Developer’s Guide Version 1.4a. Chapter + 32 : CIAO and CCM.</p> + <p style='MARGIN:0in 0in 0pt;LINE-HEIGHT:150%' class="Section1"><span style='COLOR:black'><o:p> </o:p> + </span></p> + <p class="MsoNormal" style='LINE-HEIGHT:150%'><b><span style='FONT-SIZE:14pt; +COLOR:black; +LINE-HEIGHT:150%'>Prerequisites:</span></b><b><span style='FONT-SIZE:13.5pt;COLOR:black;LINE-HEIGHT:150%'><br> + </span></b><span style='COLOR:black'> Before you start, you need the +following: <o:p></o:p></span></p> + <p class="MsoNormal" style='MARGIN-LEFT:0.75in;TEXT-INDENT:-0.25in;LINE-HEIGHT:150%;mso-list:l1 level1 lfo3;tab-stops:list .75in'><![if + !supportLists]><span style='COLOR:black;FONT-FAMILY:Symbol;mso-fareast-font-family:Symbol;mso-bidi-font-family:Symbol'><span style='mso-list:Ignore'>·<span style="FONT:7pt 'Times New Roman'"> </span></span> + </span><![endif]><b><span style='COLOR:black'>ACE+TAO+CIAO (Component Integraated ACE ORB).</span></b><span style='COLOR:black'> ACE + TAO + CIAO provide the CCM infrastructure necessary +to enable the CCM-based distributed component interaction. You can click <a href="http://download.dre.vanderbilt.edu">here</a> to download the latest ACE + +TAO + CIAO and click <a href="http://www.cs.wustl.edu/%7Eschmidt/ACE_wrappers/TAO/CIAO/CIAO-INSTALL.html">here</a> +for information on how to build ACE+TAO+CIAO.<o:p></o:p></span></p> + <p class="MsoNormal" style='MARGIN-LEFT:0.75in;TEXT-INDENT:-0.25in;LINE-HEIGHT:150%;mso-list:l1 level1 lfo3;tab-stops:list .75in'><![if + !supportLists]><span style='COLOR:black;FONT-FAMILY:Symbol;mso-fareast-font-family:Symbol;mso-bidi-font-family:Symbol'><span style='mso-list:Ignore'>·<span style="FONT:7pt 'Times New Roman'"> </span></span> + </span><![endif]><b><span style='COLOR:black'>Generic Modeling Environment (GME).</span></b><span style='COLOR:black'> GME is a configurable toolkit for creating domain-specific +modeling and program synthesis environments. It provides the execution +environment for CoSMIC toolkits. Click <a href="http://www.isis.vanderbilt.edu/Projects/gme/download.html">here</a> to +download GME.<o:p></o:p></span></p> + <p class="MsoNormal" style='MARGIN-LEFT:0.75in;TEXT-INDENT:-0.25in;LINE-HEIGHT:150%;mso-list:l1 level1 lfo3;tab-stops:list .75in'><![if + !supportLists]><span style='COLOR:black;FONT-FAMILY:Symbol;mso-fareast-font-family:Symbol;mso-bidi-font-family:Symbol'><span style='mso-list:Ignore'>·<span style="FONT:7pt 'Times New Roman'"> </span></span> + </span><![endif]><b><span style='COLOR:black'>CoSMIC toolkit.</span></b><span style='COLOR:black'> Click <a href="http://www.dre.vanderbilt.edu/cosmic/">here</a> to download the latest +CoSMIC release.<o:p></o:p></span></p> + <blockquote style='MARGIN-TOP:5pt;MARGIN-BOTTOM:5pt' class="Section1"> + <div style='MARGIN-LEFT:-0.5in'> + <div class="MsoNormal" align="center" style='LINE-HEIGHT:150%;TEXT-ALIGN:center'><span style='COLOR:black'> + <hr size="2" width="100%" align="center"> + </span></div> + </div> + <p class="MsoNormal" style='MARGIN-LEFT:-0.5in;LINE-HEIGHT:150%'><strong><span style='COLOR:black'>Note:</span></strong><strong><span style='FONT-WEIGHT:normal'><o:p></o:p> + </span></strong></p> + <p class="MsoNormal" style='MARGIN-LEFT:0in;TEXT-INDENT:-0.25in;LINE-HEIGHT:150%;mso-list:l3 level1 lfo4;tab-stops:list 0in .5in'><![if + !supportLists]><b style='mso-bidi-font-weight:normal'><span style='mso-list:Ignore'>1.<span style="FONT:7pt 'Times New Roman'"> </span></span></b><![endif]><span style='COLOR:black'>Usually you should download the latest GME, but it is possible +that CoSMIC hasn't been updated yet to support the very latest GME..The +installation process of CoSMIC will tell you which version it is +expecting. So <span class="intbody">please make sure the GME version you +are using is the version required by CoSMIC. A different version of </span>GME +may result in undefined errors. </span></p> + <p class="MsoNormal" style='MARGIN-LEFT:0in;TEXT-INDENT:-0.25in;LINE-HEIGHT:150%;mso-list:l3 level1 lfo4;tab-stops:list 0in .5in'><![if + !supportLists]><b style='mso-bidi-font-weight:normal'><span style='COLOR:black'><span style='mso-list:Ignore'>2.<span style="FONT:7pt 'Times New Roman'"> +</span></span> + </span></b><![endif]><span style='COLOR:black'>Make sure you +install GME first before you start with CoSMIC toolkits.<o:p></o:p></span></p> + <div style='MARGIN-LEFT:-0.5in'> + <div class="MsoNormal" align="center" style='LINE-HEIGHT:150%;TEXT-ALIGN:center'><span style='COLOR:black'> + <hr size="2" width="100%" align="center"> + </span></div> + </div> + </blockquote> + <p class="MsoNormal" style='LINE-HEIGHT:150%'><span style='COLOR:black'><o:p> </o:p> + </span></p> + <p class="MsoNormal" style='LINE-HEIGHT:150%'><b style='mso-bidi-font-weight: +normal'><span style='FONT-SIZE:14pt;COLOR:black;LINE-HEIGHT:150%'>Steps for +Developing the Stock Quoter Application:<o:p></o:p></span></b></p> + <p class="MsoNormal" style='LINE-HEIGHT:150%'><b style='mso-bidi-font-weight: +normal'><span style='FONT-SIZE:14pt;COLOR:black;LINE-HEIGHT:150%'><o:p> </o:p> + </span></b></p> + <p class="MsoNormal" align="center" style='LINE-HEIGHT:150%;TEXT-ALIGN:center'><b style='mso-bidi-font-weight:normal'><span style='FONT-SIZE:14pt;COLOR:black;LINE-HEIGHT:150%'><img border="0" width="960" height="521" id="_x0000_i1028" src="images/steps.jpg"><o:p></o:p> + </span></b></p> + <p class="MsoNormal" align="center" style='LINE-HEIGHT:150%;TEXT-ALIGN:center'><span style='COLOR:black'>Steps for Developing Stock Quoter Application<o:p></o:p></span></p> + <p class="MsoNormal" style='LINE-HEIGHT:150%'><span style='COLOR:black'><o:p> </o:p> + </span></p> + <p class="MsoNormal" style='LINE-HEIGHT:150%'><span style='COLOR:black'>Listed +below are the steps for developing the Stock Quoter application. Each link is a +step-by-step tutorial of the specific step.</span><b style='mso-bidi-font-weight: +normal'><span style='FONT-SIZE:14pt;COLOR:black;LINE-HEIGHT:150%'><o:p></o:p> + </span></b></p> + <DIV class="Section1"> + <OL style="MARGIN-TOP: 0in" type="1" start="1"> + <li class="MsoNormal" style='COLOR:black;LINE-HEIGHT:150%;mso-list:l2 level1 lfo5;tab-stops:list .5in'> + <b><a href="01.html">Define your interfaces and component types</a>:</b><o:p></o:p> + <ol style='MARGIN-TOP:0in' start="1" type="a"> + <li class="MsoNormal" style='COLOR:black;LINE-HEIGHT:150%;mso-list:l2 level2 lfo5;tab-stops:list 1.0in'> + <b>Define your interfaces using IDL 2.x features</b>, e.g., use the familiar + CORBA types (such as + <span style='mso-bidi-font-weight: + bold'>struct</span>, + <span style='mso-bidi-font-weight:bold'>sequence</span>, + <span style='mso-bidi-font-weight:bold'>long</span>, + <span style='mso-bidi-font-weight:bold'>Object</span>, + <span style='mso-bidi-font-weight: + bold'>interface</span>, + <span style='mso-bidi-font-weight:bold'>raises</span>, etc.) to define your + interfaces & exceptions.<o:p></o:p> + <li class="MsoNormal" style='COLOR:black;LINE-HEIGHT:150%;mso-list:l2 level2 lfo5;tab-stops:list 1.0in'> + <b>Define your component types using IDL 3.x features</b>, e.g., use the new + CCM keywords (such as + <span style='mso-bidi-font-weight:bold'>component</span>, + <span style='mso-bidi-font-weight:bold'>provides</span>, + <span style='mso-bidi-font-weight:bold'>uses</span>, + <span style='mso-bidi-font-weight: + bold'>publishes</span>, + <span style='mso-bidi-font-weight:bold'>emits</span>, & + <span style='mso-bidi-font-weight:bold'>consumes</span>) to group the IDL 2.x + types together to form components.<b><o:p></o:p></b></li> + </ol> + <li class="MsoNormal" style='COLOR:black;LINE-HEIGHT:150%;mso-list:l2 level1 lfo5;tab-stops:list .5in'> + <b><a href="02.html">Implement your components</a></b>, e.g., using C++ or Java + & the Component Implementation Definition Language (CIDL), which generates + component servants, executor interfaces, associated metadata, & + compositions.<b><o:p></o:p></b> + <li class="MsoNormal" style='COLOR:black;LINE-HEIGHT:150%;mso-list:l2 level1 lfo5;tab-stops:list .5in'> + <b style='mso-bidi-font-weight:normal'><a href="03.html">Package your components</a></b>, + <span style='COLOR:red'> + <FONT color="#000000">Bundle component implementations with metadata giving their + default properties and their component descriptors into component packages. </FONT> + </span> + <LI class="MsoNormal" style="COLOR: black; LINE-HEIGHT: 150%; mso-list: l2 level1 lfo5; tab-stops: list .5in"> + <b><a href="03.html">Assemble your components</a></b>, e.g., group related + components together & characterize their metadata that describes the + components present in the assembly.<span style='mso-bidi-font-weight:bold'><o:p></o:p> + </span> + <LI class="MsoNormal" style="COLOR: black; LINE-HEIGHT: 150%; mso-list: l2 level1 lfo5; tab-stops: list .5in"> + <b style='mso-bidi-font-weight:normal'><a href="03.html">Plan your deployment</a></b>, + analyze the runtime resource requirements of assembly descriptors and prepare + and deploy required resources where component assemblies can be realized. + <LI class="MsoNormal" style="COLOR: black; LINE-HEIGHT: 150%; mso-list: l2 level1 lfo5; tab-stops: list .5in"> + <b><a href="04.html">Deploy your components & run your application</a></b>, + e.g., move the component assembly packages to the appropriate nodes in the + distributed system & invoke operations on components to perform the + application logic.<b style='mso-bidi-font-weight: + normal'><o:p></o:p></b> + </LI> + </OL></DIV> + <div class="MsoNormal" align="center" style='LINE-HEIGHT:150%;TEXT-ALIGN:center'><span style='COLOR:black'> + <hr size="2" width="100%" align="center"> + </span></div> + <address style='LINE-HEIGHT:150%'><a href="mailto:ming.xiong@vanderbilt.edu">Ming Xiong<br> + </a><a href="mailto:abdullah.sowayan@lmco.com">Abdullah Sowayan</a></address> + <ADDRESS style="LINE-HEIGHT: 150%"> </ADDRESS> + <ADDRESS style="LINE-HEIGHT: 150%">$Id$</ADDRESS> + </body> +</html> diff --git a/modules/CIAO/docs/value_factory_registration.html b/modules/CIAO/docs/value_factory_registration.html new file mode 100644 index 00000000000..df43175f9ca --- /dev/null +++ b/modules/CIAO/docs/value_factory_registration.html @@ -0,0 +1,49 @@ +<!DOCTYPE html PUBLIC "-//w3c//dtd html 4.0 transitional//en"> +<html> + <head> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> + <meta name="Author" content="Jeff Parsons"> + <meta name="GENERATOR" content="Mozilla/4.76 [en] (Windows NT 5.0; U) [Netscape]"> + <title>Registration of Valuetype Factories for Event Sinks</title> + <!-- $Id$ --> + </head> + <body> + <h3>Registration of Valuetype Factories for Event Sinks</h3> + <p>Components with one or more event sink (consumer) ports will need to have a + valuetype factory registered with the underlying ORB in order to correctly + demarshal the state of eventtypes it receives over the wire.</p> + <p>For the common case (eventtypes that contain only one or more state members), + the IDL compiler generates a concrete class with a name constructed from the + valuetype name and an '_init' suffix, and then generates a macro + in the servant constructor that registers this factory with the container's + ORB. However, an eventtype, like any valuetype, may also contain operation + and/or factory declarations. In these cases things are not so simple. For + example a factory declaration in an IDL valuetype or eventtype will generate a + pure virtual function of the same name in the associated _init class, meaning + that ORB factory registration for this type must be with a derived factory + class written by the application developer. The table below shows all possible + cases of IDL compiler factory generation.</p> + <TABLE BORDER="4" CELLSPACING="4" CELLPADDING="4" ID="Table1"> + <TR> + <TD></TD> + <TD><b>Has Operation</b></TD> + <TD><b>Has No Operation</b></TD> + </TR> + <tr> + <td><b>Has Factory</b></td> + <td>ABSTRACT FACTORY</td> + <td>ABSTRACT FACTORY</td> + </tr> + <tr> + <td><b>Has No Factory</b></td> + <td>NO FACTORY</td> + <td>CONCRETE FACTORY</td> + </tr> + </TABLE> + <p>The IDL compiler will generate a macro to register the factory with the + container's ORB only in the case where a concrete factory is generated by the + IDL compiler, and thus no subclassing is necessary. There is also a command + line option for the IDL compiler, <tt>-Sfr</tt>, + that turns off generation of the macro in all cases.</p> + </body> +</html> |