diff options
author | nilabjar <nilabjar@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2007-09-17 21:20:26 +0000 |
---|---|---|
committer | nilabjar <nilabjar@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2007-09-17 21:20:26 +0000 |
commit | ebc867bfe4458d1ffe3663e4f1feb1db5814b827 (patch) | |
tree | c16c3f8d0aa7af7dc1f887408c640dce1c3dc179 | |
parent | b18f993395a4857eb64d80ea73fbae89d45a5441 (diff) | |
download | ATCD-ebc867bfe4458d1ffe3663e4f1feb1db5814b827.tar.gz |
Mon Sep 17 21:08:46 UTC 2007 Nishanth Shankaran <nshankar@nospam.com>
155 files changed, 15454 insertions, 0 deletions
diff --git a/CIAO/ChangeLog b/CIAO/ChangeLog index 0c846c0d78b..2d7544f5036 100644 --- a/CIAO/ChangeLog +++ b/CIAO/ChangeLog @@ -1,3 +1,213 @@ +Mon Sep 17 21:08:46 UTC 2007 Nishanth Shankaran <nshankar@nospam.com> + + * examples/space: + + * examples/space/Analysis: + + * examples/space/Analysis/Analysis_Component.ccd: + * examples/space/Analysis/Analysis_Component.cidl: + * examples/space/Analysis/Analysis_Component.idl: + * examples/space/Analysis/Analysis_Component.mpc: + * examples/space/Analysis/Analysis_Component_exec.h: + * examples/space/Analysis/Analysis_Component_exec.cpp: + * examples/space/Analysis/Analysis_Component_exec_export.h: + * examples/space/Analysis/Analysis_Component_stub_export.h: + * examples/space/Analysis/Analysis_Component_svnt_export.h: + + * examples/space/Backup_Gizmo_High: + + * examples/space/Backup_Gizmo_High/Backup_Gizmo_High.cidl: + * examples/space/Backup_Gizmo_High/Backup_Gizmo_High.idl: + * examples/space/Backup_Gizmo_High/Backup_Gizmo_High.mpc: + * examples/space/Backup_Gizmo_High/Backup_Gizmo_High_exec.h: + * examples/space/Backup_Gizmo_High/Backup_Gizmo_High_exec.cpp: + * examples/space/Backup_Gizmo_High/Backup_Gizmo_High_exec_export.h: + * examples/space/Backup_Gizmo_High/Backup_Gizmo_High_stub_export.h: + * examples/space/Backup_Gizmo_High/Backup_Gizmo_High_svnt_export.h: + * examples/space/Backup_Gizmo_High/Backup_Gizmo_Low.ccd: + + * examples/space/Backup_Gizmo_Low: + + * examples/space/Backup_Gizmo_Low/Backup_Gizmo_Low.ccd: + * examples/space/Backup_Gizmo_Low/Backup_Gizmo_Low.cidl: + * examples/space/Backup_Gizmo_Low/Backup_Gizmo_Low.idl: + * examples/space/Backup_Gizmo_Low/Backup_Gizmo_Low.mpc: + * examples/space/Backup_Gizmo_Low/Backup_Gizmo_Low_exec.h: + * examples/space/Backup_Gizmo_Low/Backup_Gizmo_Low_exec.cpp: + * examples/space/Backup_Gizmo_Low/Backup_Gizmo_Low_exec_export.h: + * examples/space/Backup_Gizmo_Low/Backup_Gizmo_Low_stub_export.h: + * examples/space/Backup_Gizmo_Low/Backup_Gizmo_Low_svnt_export.h: + + * examples/space/Comm: + + * examples/space/Comm/Comm_Component.ccd: + * examples/space/Comm/Comm_Component.cidl: + * examples/space/Comm/Comm_Component.idl: + * examples/space/Comm/Comm_Component.mpc: + * examples/space/Comm/Comm_Component_exec.h: + * examples/space/Comm/Comm_Component_exec.cpp: + * examples/space/Comm/Comm_Component_exec_export.h: + * examples/space/Comm/Comm_Component_stub_export.h: + * examples/space/Comm/Comm_Component_svnt_export.h: + + * examples/space/Compression: + + * examples/space/Compression/Compression_Component.ccd: + * examples/space/Compression/Compression_Component.cidl: + * examples/space/Compression/Compression_Component.idl: + * examples/space/Compression/Compression_Component.mpc: + * examples/space/Compression/Compression_Component_exec.h: + * examples/space/Compression/Compression_Component_exec.cpp: + * examples/space/Compression/Compression_Component_exec_export.h: + * examples/space/Compression/Compression_Component_stub_export.h: + * examples/space/Compression/Compression_Component_svnt_export.h: + + * examples/space/Exec: + + * examples/space/Exec/Exec_Component.ccd: + * examples/space/Exec/Exec_Component.cidl: + * examples/space/Exec/Exec_Component.idl: + * examples/space/Exec/Exec_Component.mpc: + * examples/space/Exec/Exec_Component_exec.h: + * examples/space/Exec/Exec_Component_exec.cpp: + * examples/space/Exec/Exec_Component_exec_export.h: + * examples/space/Exec/Exec_Component_stub_export.h: + * examples/space/Exec/Exec_Component_svnt_export.h: + + * examples/space/Filter: + + * examples/space/Filter/Filter_Component.ccd: + * examples/space/Filter/Filter_Component.cidl: + * examples/space/Filter/Filter_Component.idl: + * examples/space/Filter/Filter_Component.mpc: + * examples/space/Filter/Filter_Component_exec.h: + * examples/space/Filter/Filter_Component_exec.cpp: + * examples/space/Filter/Filter_Component_exec_export.h: + * examples/space/Filter/Filter_Component_stub_export.h: + * examples/space/Filter/Filter_Component_svnt_export.h: + + * examples/space/Gizmo1_High: + + * examples/space/Gizmo1_High/Gizmo1_High.ccd: + * examples/space/Gizmo1_High/Gizmo1_High.cidl: + * examples/space/Gizmo1_High/Gizmo1_High.idl: + * examples/space/Gizmo1_High/Gizmo1_High.mpc: + * examples/space/Gizmo1_High/Gizmo1_High_exec.h: + * examples/space/Gizmo1_High/Gizmo1_High_exec.cpp: + * examples/space/Gizmo1_High/Gizmo1_High_exec_export.h: + * examples/space/Gizmo1_High/Gizmo1_High_stub_export.h: + * examples/space/Gizmo1_High/Gizmo1_High_svnt_export.h: + + * examples/space/Gizmo1_Low: + + * examples/space/Gizmo1_Low/Gizmo1_Low.ccd: + * examples/space/Gizmo1_Low/Gizmo1_Low.cidl: + * examples/space/Gizmo1_Low/Gizmo1_Low.idl: + * examples/space/Gizmo1_Low/Gizmo1_Low.mpc: + * examples/space/Gizmo1_Low/Gizmo1_Low_exec.h: + * examples/space/Gizmo1_Low/Gizmo1_Low_exec.cpp: + * examples/space/Gizmo1_Low/Gizmo1_Low_exec_export.h: + * examples/space/Gizmo1_Low/Gizmo1_Low_stub_export.h: + * examples/space/Gizmo1_Low/Gizmo1_Low_svnt_export.h: + + * examples/space/Gizmo1_Medium: + + * examples/space/Gizmo1_Medium/Gizmo1_Medium.ccd: + * examples/space/Gizmo1_Medium/Gizmo1_Medium.cidl: + * examples/space/Gizmo1_Medium/Gizmo1_Medium.idl: + * examples/space/Gizmo1_Medium/Gizmo1_Medium.mpc: + * examples/space/Gizmo1_Medium/Gizmo1_Medium_exec.h: + * examples/space/Gizmo1_Medium/Gizmo1_Medium_exec.cpp: + * examples/space/Gizmo1_Medium/Gizmo1_Medium_exec_export.h: + * examples/space/Gizmo1_Medium/Gizmo1_Medium_stub_export.h: + * examples/space/Gizmo1_Medium/Gizmo1_Medium_svnt_export.h: + + * examples/space/Gizmo2_High: + + * examples/space/Gizmo2_High/Gizmo2_High.ccd: + * examples/space/Gizmo2_High/Gizmo2_High.cidl: + * examples/space/Gizmo2_High/Gizmo2_High.idl: + * examples/space/Gizmo2_High/Gizmo2_High.mpc: + * examples/space/Gizmo2_High/Gizmo2_High_exec.h: + * examples/space/Gizmo2_High/Gizmo2_High_exec.cpp: + * examples/space/Gizmo2_High/Gizmo2_High_exec_export.h: + * examples/space/Gizmo2_High/Gizmo2_High_stub_export.h: + * examples/space/Gizmo2_High/Gizmo2_High_svnt_export.h: + + * examples/space/Gizmo2_Medium: + + * examples/space/Gizmo2_Medium/Gizmo2_Medium.ccd: + * examples/space/Gizmo2_Medium/Gizmo2_Medium.cidl: + * examples/space/Gizmo2_Medium/Gizmo2_Medium.idl: + * examples/space/Gizmo2_Medium/Gizmo2_Medium.mpc: + * examples/space/Gizmo2_Medium/Gizmo2_Medium_exec.h: + * examples/space/Gizmo2_Medium/Gizmo2_Medium_exec.cpp: + * examples/space/Gizmo2_Medium/Gizmo2_Medium_exec_export.h: + * examples/space/Gizmo2_Medium/Gizmo2_Medium_stub_export.h: + * examples/space/Gizmo2_Medium/Gizmo2_Medium_svnt_export.h: + + * examples/space/Ground: + + * examples/space/Ground/Ground_Component.ccd: + * examples/space/Ground/Ground_Component.cidl: + * examples/space/Ground/Ground_Component.idl: + * examples/space/Ground/Ground_Component.mpc: + * examples/space/Ground/Ground_Component_exec.h: + * examples/space/Ground/Ground_Component_exec.cpp: + * examples/space/Ground/Ground_Component_exec_export.h: + * examples/space/Ground/Ground_Component_stub_export.h: + * examples/space/Ground/Ground_Component_svnt_export.h: + + * examples/space/Primary_Gizmo: + + * examples/space/Primary_Gizmo/Primary_Gizmo.ccd: + * examples/space/Primary_Gizmo/Primary_Gizmo.cidl: + * examples/space/Primary_Gizmo/Primary_Gizmo.idl: + * examples/space/Primary_Gizmo/Primary_Gizmo.mpc: + * examples/space/Primary_Gizmo/Primary_Gizmo_exec.h: + * examples/space/Primary_Gizmo/Primary_Gizmo_exec.cpp: + * examples/space/Primary_Gizmo/Primary_Gizmo_exec_export.h: + * examples/space/Primary_Gizmo/Primary_Gizmo_stub_export.h: + * examples/space/Primary_Gizmo/Primary_Gizmo_svnt_export.h: + + * examples/space/common: + + * examples/space/common/Event_Types.idl: + * examples/space/common/Event_Types.mpc: + * examples/space/common/Event_Types_exec_export.h: + * examples/space/common/Event_Types_stub_export.h: + * examples/space/common/Event_Types_svnt_export.h: + + * examples/space/descriptors: + + * examples/space/descriptors/Domain.cdd: + * examples/space/descriptors/Domain_4.cdd: + * examples/space/descriptors/Domain_6.cdd: + * examples/space/descriptors/Domain_MT.cdd: + * examples/space/descriptors/Domain_single.cdd: + * examples/space/descriptors/Domain_two.cdd: + * examples/space/descriptors/NodeManagerMap.dat: + * examples/space/descriptors/NodeManagerMap_4.dat: + * examples/space/descriptors/NodeManagerMap_6.dat: + * examples/space/descriptors/NodeManagerMap_MT.dat: + * examples/space/descriptors/NodeManagerMap_two.dat: + * examples/space/descriptors/SPACE.cdp: + * examples/space/descriptors/SPACE_4.cdp: + * examples/space/descriptors/SPACE_4.cdp_bak: + * examples/space/descriptors/SPACE_4_no_Qos.cdp: + * examples/space/descriptors/SPACE_6.cdp: + * examples/space/descriptors/SPACE_6.cdp_bak: + * examples/space/descriptors/multi_SPACE.cdp: + * examples/space/descriptors/multi_SPACE_new.cdp: + * examples/space/descriptors/run_ExecutionManager.pl: + * examples/space/descriptors/run_NS.pl: + * examples/space/descriptors/run_NodeManager.pl: + * examples/space/descriptors/run_test.pl: + * examples/space/descriptors/run_test_multi.pl: + * examples/space/descriptors/svc_node_manager.conf: + + Adding space example that we use to test the monitoring framework. + Mon Sep 17 20:53:15 UTC 2007 Nishanth Shankaran <nshankar@nospam.com> * DAnCE/NodeManager/CIAO_Monitor.cpp: diff --git a/CIAO/examples/space/Analysis/Analysis_Component.ccd b/CIAO/examples/space/Analysis/Analysis_Component.ccd new file mode 100644 index 00000000000..32020149bf3 --- /dev/null +++ b/CIAO/examples/space/Analysis/Analysis_Component.ccd @@ -0,0 +1,38 @@ +<?xml version="1.0"?> +<!DOCTYPE corbacomponent SYSTEM "corbacomponent.dtd"> + +<corbacomponent> + <corbaversion>3.0</corbaversion> + <componentrepid repid="IDL:SPACE/Analysis_Component:1.0"/> + <homerepid repid="IDL:SPACE/Analysis_Component_Factory:1.0"/> + <componentkind> + <session> + <servant lifetime="container"/> + </session> + </componentkind> + <threading policy="multithread"/> + <configurationcomplete set="true"/> + + <homefeatures + name="Analysis_Component_Factory" + repid="IDL:SPACE/Analysis_Component_Factory:1.0"> + </homefeatures> + + <componentfeatures + name="Analysis_Component" + repid="IDL:SPACE/Analysis_Component:1.0"> + <ports> + <consumes + consumesname="recv_data" + eventtype="IDL:SPACE/Gizmo_Data:1.0"> + <eventpolicy policy="normal"/> + </consumes> + <emits + emitsname="send_data" + eventtype="IDL:SPACE/Gizmo_Data:1.0"> + <eventpolicy policy="normal"/> + </emits> + </ports> + </componentfeatures> + +</corbacomponent> diff --git a/CIAO/examples/space/Analysis/Analysis_Component.cidl b/CIAO/examples/space/Analysis/Analysis_Component.cidl new file mode 100644 index 00000000000..8b60ad8f75a --- /dev/null +++ b/CIAO/examples/space/Analysis/Analysis_Component.cidl @@ -0,0 +1,20 @@ +// -*- CIDL -*- + +// This file was generated by +// $Id$ + +#ifndef _ANALYSIS_COMPONENT_CIDL_ +#define _ANALYSIS_COMPONENT_CIDL_ + +#include "Analysis_Component.idl" + +composition session Analysis_Component +{ + home executor Analysis_Component_Factory_Exec + { + implements SPACE::Analysis_Component_Factory; + manages Analysis_Component_Exec; + }; +}; + +#endif // !defined _ANALYSIS_COMPONENT_CIDL_ diff --git a/CIAO/examples/space/Analysis/Analysis_Component.idl b/CIAO/examples/space/Analysis/Analysis_Component.idl new file mode 100644 index 00000000000..75950e98df2 --- /dev/null +++ b/CIAO/examples/space/Analysis/Analysis_Component.idl @@ -0,0 +1,23 @@ + +#ifndef ANALYSIS_COMPONENT_IDL +#define ANALYSIS_COMPONENT_IDL + +#include <Components.idl> +#include "Event_Types.idl" + +module SPACE +{ + component Analysis_Component + { + consumes Gizmo_Data recv_data; + + emits Gizmo_Data send_data; + }; + + home Analysis_Component_Factory + manages Analysis_Component + { + }; +}; + +#endif // ANALYSIS_COMPONENT_IDL diff --git a/CIAO/examples/space/Analysis/Analysis_Component.mpc b/CIAO/examples/space/Analysis/Analysis_Component.mpc new file mode 100644 index 00000000000..587194112d9 --- /dev/null +++ b/CIAO/examples/space/Analysis/Analysis_Component.mpc @@ -0,0 +1,77 @@ +// $Id$ +// This file is generated with "generate_component_mpc.pl Analysis_Component" + +project(Analysis_Component_stub): ciao_client_dnc { + + sharedname = Analysis_Component_stub + after += Event_Types_stub + includes += ../common + libs += Event_Types_stub + idlflags += -Wb,stub_export_macro=ANALYSIS_COMPONENT_STUB_Export \ + -Wb,stub_export_include=Analysis_Component_stub_export.h \ + -Wb,skel_export_macro=ANALYSIS_COMPONENT_SVNT_Export \ + -Wb,skel_export_include=Analysis_Component_svnt_export.h \ + -I ../common + dynamicflags = ANALYSIS_COMPONENT_STUB_BUILD_DLL + + IDL_Files { + Analysis_Component.idl + } + + Source_Files { + Analysis_ComponentC.cpp + } +} + +project(Analysis_Component_svnt) : ciao_servant_dnc { + after += Analysis_Component_stub + sharedname = Analysis_Component_svnt + includes += ../common + libs += Analysis_Component_stub Event_Types_stub Event_Types_svnt + + idlflags += -Wb,export_macro=ANALYSIS_COMPONENT_SVNT_Export \ + -Wb,export_include=Analysis_Component_svnt_export.h \ + -I ../common + dynamicflags = ANALYSIS_COMPONENT_SVNT_BUILD_DLL + + cidlflags -= -- + cidlflags += -I ../common -- + + CIDL_Files { + Analysis_Component.cidl + } + + IDL_Files { + Analysis_ComponentE.idl + } + + Source_Files { + Analysis_ComponentEC.cpp + Analysis_ComponentS.cpp + Analysis_Component_svnt.cpp + } +} + + +project(Analysis_Component_exec) : ciao_component_dnc { + after += Analysis_Component_svnt + includes += ../common + sharedname = Analysis_Component_exec + libs += Analysis_Component_stub \ + Analysis_Component_svnt \ + Event_Types_stub \ + Event_Types_svnt + + idlflags += -Wb,export_macro=ANALYSIS_COMPONENT_EXEC_Export \ + -Wb,export_include=Analysis_Component_exec_export.h + dynamicflags = ANALYSIS_COMPONENT_EXEC_BUILD_DLL + + IDL_Files { + + } + + Source_Files { + + Analysis_Component_exec.cpp + } +} diff --git a/CIAO/examples/space/Analysis/Analysis_Component_exec.cpp b/CIAO/examples/space/Analysis/Analysis_Component_exec.cpp new file mode 100644 index 00000000000..d2cb29f17be --- /dev/null +++ b/CIAO/examples/space/Analysis/Analysis_Component_exec.cpp @@ -0,0 +1,155 @@ +#include "Analysis_Component_exec.h" +#include "ciao/CIAO_common.h" + +namespace CIDL_Analysis_Component +{ + //================================================================== + // Component Executor Implementation Class: Analysis_Component_exec_i + //================================================================== + + Analysis_Component_exec_i::Analysis_Component_exec_i (void) + { + } + + Analysis_Component_exec_i::~Analysis_Component_exec_i (void) + { + } + + // Supported or inherited operations. + + // Attribute operations. + + // Port operations. + + void + Analysis_Component_exec_i::push_recv_data ( + ::SPACE::Gizmo_Data * ev) + ACE_THROW_SPEC (( ::CORBA::SystemException)) + { + + ACE_DEBUG ((LM_DEBUG, "(%P|%t) Analysis-Component: " + "Got science data from %s.\n", ev->sender ())); + this->context_->push_send_data (ev); + // Your code here. + } + + // Operations from Components::SessionComponent + + void + Analysis_Component_exec_i::set_session_context ( + ::Components::SessionContext_ptr ctx + ACE_ENV_ARG_DECL) + ACE_THROW_SPEC (( ::CORBA::SystemException, + ::Components::CCMException)) + { + this->context_ = + Analysis_Component_Context::_narrow ( + ctx + ACE_ENV_ARG_PARAMETER); + ACE_CHECK; + + if (this->context_ == 0) + { + ACE_THROW ( ::CORBA::INTERNAL ()); + } + } + + void + Analysis_Component_exec_i::ciao_preactivate ( + ACE_ENV_SINGLE_ARG_DECL_NOT_USED) + ACE_THROW_SPEC (( ::CORBA::SystemException, + ::Components::CCMException)) + { + // Your code here. + } + + void + Analysis_Component_exec_i::ciao_postactivate ( + ACE_ENV_SINGLE_ARG_DECL_NOT_USED) + ACE_THROW_SPEC (( ::CORBA::SystemException, + ::Components::CCMException)) + { + // Your code here. + } + + void + Analysis_Component_exec_i::ccm_activate ( + ACE_ENV_SINGLE_ARG_DECL_NOT_USED) + ACE_THROW_SPEC (( ::CORBA::SystemException, + ::Components::CCMException)) + { + // Your code here. + } + + void + Analysis_Component_exec_i::ccm_passivate ( + ACE_ENV_SINGLE_ARG_DECL_NOT_USED) + ACE_THROW_SPEC (( ::CORBA::SystemException, + ::Components::CCMException)) + { + // Your code here. + } + + void + Analysis_Component_exec_i::ccm_remove ( + ACE_ENV_SINGLE_ARG_DECL_NOT_USED) + ACE_THROW_SPEC (( ::CORBA::SystemException, + ::Components::CCMException)) + { + // Your code here. + } + + //================================================================== + // Home Executor Implementation Class: Analysis_Component_Factory_exec_i + //================================================================== + + Analysis_Component_Factory_exec_i::Analysis_Component_Factory_exec_i (void) + { + } + + Analysis_Component_Factory_exec_i::~Analysis_Component_Factory_exec_i (void) + { + } + + // Supported or inherited operations. + + // Home operations. + + // Factory and finder operations. + + // Attribute operations. + + // Implicit operations. + + ::Components::EnterpriseComponent_ptr + Analysis_Component_Factory_exec_i::create ( + ACE_ENV_SINGLE_ARG_DECL) + ACE_THROW_SPEC (( ::CORBA::SystemException, + ::Components::CCMException)) + { + ::Components::EnterpriseComponent_ptr retval = + ::Components::EnterpriseComponent::_nil (); + + ACE_NEW_THROW_EX ( + retval, + Analysis_Component_exec_i, + ::CORBA::NO_MEMORY ()); + ACE_CHECK_RETURN (::Components::EnterpriseComponent::_nil ()); + + return retval; + } + + extern "C" ANALYSIS_COMPONENT_EXEC_Export ::Components::HomeExecutorBase_ptr + create_SPACE_Analysis_Component_Factory_Impl (void) + { + ::Components::HomeExecutorBase_ptr retval = + ::Components::HomeExecutorBase::_nil (); + + ACE_NEW_RETURN ( + retval, + Analysis_Component_Factory_exec_i, + ::Components::HomeExecutorBase::_nil ()); + + return retval; + } +} diff --git a/CIAO/examples/space/Analysis/Analysis_Component_exec.h b/CIAO/examples/space/Analysis/Analysis_Component_exec.h new file mode 100644 index 00000000000..a7c12423c00 --- /dev/null +++ b/CIAO/examples/space/Analysis/Analysis_Component_exec.h @@ -0,0 +1,138 @@ +// $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_ANALYSIS_COMPONENT_EXEC_H +#define CIAO_ANALYSIS_COMPONENT_EXEC_H + +#include /**/ "ace/pre.h" + +#include "Analysis_Component_svnt.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + +#include "Analysis_Component_exec_export.h" +#include "tao/LocalObject.h" + +namespace CIDL_Analysis_Component +{ + class ANALYSIS_COMPONENT_EXEC_Export Analysis_Component_exec_i + : public virtual Analysis_Component_Exec, + public virtual TAO_Local_RefCounted_Object + { + public: + Analysis_Component_exec_i (void); + virtual ~Analysis_Component_exec_i (void); + + // Supported or inherited operations. + + // Attribute operations. + + // Port operations. + + virtual void + push_recv_data ( + ::SPACE::Gizmo_Data *ev + ACE_ENV_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC (( ::CORBA::SystemException)); + + // Operations from Components::SessionComponent + + virtual void + set_session_context ( + ::Components::SessionContext_ptr ctx + ACE_ENV_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC (( + ::CORBA::SystemException, + ::Components::CCMException)); + + virtual void + ciao_preactivate ( + ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC (( + ::CORBA::SystemException, + ::Components::CCMException)); + + virtual void + ciao_postactivate ( + ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC (( + ::CORBA::SystemException, + ::Components::CCMException)); + + virtual void + ccm_activate ( + ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC (( + ::CORBA::SystemException, + ::Components::CCMException)); + + virtual void + ccm_passivate ( + ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC (( + ::CORBA::SystemException, + ::Components::CCMException)); + + virtual void + ccm_remove ( + ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC (( + ::CORBA::SystemException, + ::Components::CCMException)); + + protected: + Analysis_Component_Context *context_; + }; + + class ANALYSIS_COMPONENT_EXEC_Export Analysis_Component_Factory_exec_i + : public virtual Analysis_Component_Factory_Exec, + public virtual TAO_Local_RefCounted_Object + { + public: + Analysis_Component_Factory_exec_i (void); + virtual ~Analysis_Component_Factory_exec_i (void); + + // Supported or inherited operations. + + // Home operations. + + // Factory and finder operations. + + // Attribute operations. + + // Implicit operations. + + virtual ::Components::EnterpriseComponent_ptr + create ( + ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC (( + ::CORBA::SystemException, + ::Components::CCMException)); + }; + + extern "C" ANALYSIS_COMPONENT_EXEC_Export ::Components::HomeExecutorBase_ptr + create_SPACE_Analysis_Component_Factory_Impl (void); +} + +#include /**/ "ace/post.h" + +#endif /* CIAO_ANALYSIS_COMPONENT_EXEC_H */ diff --git a/CIAO/examples/space/Analysis/Analysis_Component_exec_export.h b/CIAO/examples/space/Analysis/Analysis_Component_exec_export.h new file mode 100644 index 00000000000..d5fadce927e --- /dev/null +++ b/CIAO/examples/space/Analysis/Analysis_Component_exec_export.h @@ -0,0 +1,58 @@ + +// -*- C++ -*- +// $Id$ +// Definition for Win32 Export directives. +// This file is generated automatically by generate_export_file.pl ANALYSIS_COMPONENT_EXEC +// ------------------------------ +#ifndef ANALYSIS_COMPONENT_EXEC_EXPORT_H +#define ANALYSIS_COMPONENT_EXEC_EXPORT_H + +#include "ace/config-all.h" + +#if defined (ACE_AS_STATIC_LIBS) && !defined (ANALYSIS_COMPONENT_EXEC_HAS_DLL) +# define ANALYSIS_COMPONENT_EXEC_HAS_DLL 0 +#endif /* ACE_AS_STATIC_LIBS && ANALYSIS_COMPONENT_EXEC_HAS_DLL */ + +#if !defined (ANALYSIS_COMPONENT_EXEC_HAS_DLL) +# define ANALYSIS_COMPONENT_EXEC_HAS_DLL 1 +#endif /* ! ANALYSIS_COMPONENT_EXEC_HAS_DLL */ + +#if defined (ANALYSIS_COMPONENT_EXEC_HAS_DLL) && (ANALYSIS_COMPONENT_EXEC_HAS_DLL == 1) +# if defined (ANALYSIS_COMPONENT_EXEC_BUILD_DLL) +# define ANALYSIS_COMPONENT_EXEC_Export ACE_Proper_Export_Flag +# define ANALYSIS_COMPONENT_EXEC_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T) +# define ANALYSIS_COMPONENT_EXEC_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# else /* ANALYSIS_COMPONENT_EXEC_BUILD_DLL */ +# define ANALYSIS_COMPONENT_EXEC_Export ACE_Proper_Import_Flag +# define ANALYSIS_COMPONENT_EXEC_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T) +# define ANALYSIS_COMPONENT_EXEC_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# endif /* ANALYSIS_COMPONENT_EXEC_BUILD_DLL */ +#else /* ANALYSIS_COMPONENT_EXEC_HAS_DLL == 1 */ +# define ANALYSIS_COMPONENT_EXEC_Export +# define ANALYSIS_COMPONENT_EXEC_SINGLETON_DECLARATION(T) +# define ANALYSIS_COMPONENT_EXEC_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +#endif /* ANALYSIS_COMPONENT_EXEC_HAS_DLL == 1 */ + +// Set ANALYSIS_COMPONENT_EXEC_NTRACE = 0 to turn on library specific tracing even if +// tracing is turned off for ACE. +#if !defined (ANALYSIS_COMPONENT_EXEC_NTRACE) +# if (ACE_NTRACE == 1) +# define ANALYSIS_COMPONENT_EXEC_NTRACE 1 +# else /* (ACE_NTRACE == 1) */ +# define ANALYSIS_COMPONENT_EXEC_NTRACE 0 +# endif /* (ACE_NTRACE == 1) */ +#endif /* !ANALYSIS_COMPONENT_EXEC_NTRACE */ + +#if (ANALYSIS_COMPONENT_EXEC_NTRACE == 1) +# define ANALYSIS_COMPONENT_EXEC_TRACE(X) +#else /* (ANALYSIS_COMPONENT_EXEC_NTRACE == 1) */ +# if !defined (ACE_HAS_TRACE) +# define ACE_HAS_TRACE +# endif /* ACE_HAS_TRACE */ +# define ANALYSIS_COMPONENT_EXEC_TRACE(X) ACE_TRACE_IMPL(X) +# include "ace/Trace.h" +#endif /* (ANALYSIS_COMPONENT_EXEC_NTRACE == 1) */ + +#endif /* ANALYSIS_COMPONENT_EXEC_EXPORT_H */ + +// End of auto generated file. diff --git a/CIAO/examples/space/Analysis/Analysis_Component_stub_export.h b/CIAO/examples/space/Analysis/Analysis_Component_stub_export.h new file mode 100644 index 00000000000..8230e433f28 --- /dev/null +++ b/CIAO/examples/space/Analysis/Analysis_Component_stub_export.h @@ -0,0 +1,58 @@ + +// -*- C++ -*- +// $Id$ +// Definition for Win32 Export directives. +// This file is generated automatically by generate_export_file.pl ANALYSIS_COMPONENT_STUB +// ------------------------------ +#ifndef ANALYSIS_COMPONENT_STUB_EXPORT_H +#define ANALYSIS_COMPONENT_STUB_EXPORT_H + +#include "ace/config-all.h" + +#if defined (ACE_AS_STATIC_LIBS) && !defined (ANALYSIS_COMPONENT_STUB_HAS_DLL) +# define ANALYSIS_COMPONENT_STUB_HAS_DLL 0 +#endif /* ACE_AS_STATIC_LIBS && ANALYSIS_COMPONENT_STUB_HAS_DLL */ + +#if !defined (ANALYSIS_COMPONENT_STUB_HAS_DLL) +# define ANALYSIS_COMPONENT_STUB_HAS_DLL 1 +#endif /* ! ANALYSIS_COMPONENT_STUB_HAS_DLL */ + +#if defined (ANALYSIS_COMPONENT_STUB_HAS_DLL) && (ANALYSIS_COMPONENT_STUB_HAS_DLL == 1) +# if defined (ANALYSIS_COMPONENT_STUB_BUILD_DLL) +# define ANALYSIS_COMPONENT_STUB_Export ACE_Proper_Export_Flag +# define ANALYSIS_COMPONENT_STUB_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T) +# define ANALYSIS_COMPONENT_STUB_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# else /* ANALYSIS_COMPONENT_STUB_BUILD_DLL */ +# define ANALYSIS_COMPONENT_STUB_Export ACE_Proper_Import_Flag +# define ANALYSIS_COMPONENT_STUB_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T) +# define ANALYSIS_COMPONENT_STUB_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# endif /* ANALYSIS_COMPONENT_STUB_BUILD_DLL */ +#else /* ANALYSIS_COMPONENT_STUB_HAS_DLL == 1 */ +# define ANALYSIS_COMPONENT_STUB_Export +# define ANALYSIS_COMPONENT_STUB_SINGLETON_DECLARATION(T) +# define ANALYSIS_COMPONENT_STUB_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +#endif /* ANALYSIS_COMPONENT_STUB_HAS_DLL == 1 */ + +// Set ANALYSIS_COMPONENT_STUB_NTRACE = 0 to turn on library specific tracing even if +// tracing is turned off for ACE. +#if !defined (ANALYSIS_COMPONENT_STUB_NTRACE) +# if (ACE_NTRACE == 1) +# define ANALYSIS_COMPONENT_STUB_NTRACE 1 +# else /* (ACE_NTRACE == 1) */ +# define ANALYSIS_COMPONENT_STUB_NTRACE 0 +# endif /* (ACE_NTRACE == 1) */ +#endif /* !ANALYSIS_COMPONENT_STUB_NTRACE */ + +#if (ANALYSIS_COMPONENT_STUB_NTRACE == 1) +# define ANALYSIS_COMPONENT_STUB_TRACE(X) +#else /* (ANALYSIS_COMPONENT_STUB_NTRACE == 1) */ +# if !defined (ACE_HAS_TRACE) +# define ACE_HAS_TRACE +# endif /* ACE_HAS_TRACE */ +# define ANALYSIS_COMPONENT_STUB_TRACE(X) ACE_TRACE_IMPL(X) +# include "ace/Trace.h" +#endif /* (ANALYSIS_COMPONENT_STUB_NTRACE == 1) */ + +#endif /* ANALYSIS_COMPONENT_STUB_EXPORT_H */ + +// End of auto generated file. diff --git a/CIAO/examples/space/Analysis/Analysis_Component_svnt_export.h b/CIAO/examples/space/Analysis/Analysis_Component_svnt_export.h new file mode 100644 index 00000000000..2e50574c379 --- /dev/null +++ b/CIAO/examples/space/Analysis/Analysis_Component_svnt_export.h @@ -0,0 +1,58 @@ + +// -*- C++ -*- +// $Id$ +// Definition for Win32 Export directives. +// This file is generated automatically by generate_export_file.pl ANALYSIS_COMPONENT_SVNT +// ------------------------------ +#ifndef ANALYSIS_COMPONENT_SVNT_EXPORT_H +#define ANALYSIS_COMPONENT_SVNT_EXPORT_H + +#include "ace/config-all.h" + +#if defined (ACE_AS_STATIC_LIBS) && !defined (ANALYSIS_COMPONENT_SVNT_HAS_DLL) +# define ANALYSIS_COMPONENT_SVNT_HAS_DLL 0 +#endif /* ACE_AS_STATIC_LIBS && ANALYSIS_COMPONENT_SVNT_HAS_DLL */ + +#if !defined (ANALYSIS_COMPONENT_SVNT_HAS_DLL) +# define ANALYSIS_COMPONENT_SVNT_HAS_DLL 1 +#endif /* ! ANALYSIS_COMPONENT_SVNT_HAS_DLL */ + +#if defined (ANALYSIS_COMPONENT_SVNT_HAS_DLL) && (ANALYSIS_COMPONENT_SVNT_HAS_DLL == 1) +# if defined (ANALYSIS_COMPONENT_SVNT_BUILD_DLL) +# define ANALYSIS_COMPONENT_SVNT_Export ACE_Proper_Export_Flag +# define ANALYSIS_COMPONENT_SVNT_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T) +# define ANALYSIS_COMPONENT_SVNT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# else /* ANALYSIS_COMPONENT_SVNT_BUILD_DLL */ +# define ANALYSIS_COMPONENT_SVNT_Export ACE_Proper_Import_Flag +# define ANALYSIS_COMPONENT_SVNT_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T) +# define ANALYSIS_COMPONENT_SVNT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# endif /* ANALYSIS_COMPONENT_SVNT_BUILD_DLL */ +#else /* ANALYSIS_COMPONENT_SVNT_HAS_DLL == 1 */ +# define ANALYSIS_COMPONENT_SVNT_Export +# define ANALYSIS_COMPONENT_SVNT_SINGLETON_DECLARATION(T) +# define ANALYSIS_COMPONENT_SVNT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +#endif /* ANALYSIS_COMPONENT_SVNT_HAS_DLL == 1 */ + +// Set ANALYSIS_COMPONENT_SVNT_NTRACE = 0 to turn on library specific tracing even if +// tracing is turned off for ACE. +#if !defined (ANALYSIS_COMPONENT_SVNT_NTRACE) +# if (ACE_NTRACE == 1) +# define ANALYSIS_COMPONENT_SVNT_NTRACE 1 +# else /* (ACE_NTRACE == 1) */ +# define ANALYSIS_COMPONENT_SVNT_NTRACE 0 +# endif /* (ACE_NTRACE == 1) */ +#endif /* !ANALYSIS_COMPONENT_SVNT_NTRACE */ + +#if (ANALYSIS_COMPONENT_SVNT_NTRACE == 1) +# define ANALYSIS_COMPONENT_SVNT_TRACE(X) +#else /* (ANALYSIS_COMPONENT_SVNT_NTRACE == 1) */ +# if !defined (ACE_HAS_TRACE) +# define ACE_HAS_TRACE +# endif /* ACE_HAS_TRACE */ +# define ANALYSIS_COMPONENT_SVNT_TRACE(X) ACE_TRACE_IMPL(X) +# include "ace/Trace.h" +#endif /* (ANALYSIS_COMPONENT_SVNT_NTRACE == 1) */ + +#endif /* ANALYSIS_COMPONENT_SVNT_EXPORT_H */ + +// End of auto generated file. diff --git a/CIAO/examples/space/Backup_Gizmo_High/Backup_Gizmo_High.cidl b/CIAO/examples/space/Backup_Gizmo_High/Backup_Gizmo_High.cidl new file mode 100644 index 00000000000..87d82b5627b --- /dev/null +++ b/CIAO/examples/space/Backup_Gizmo_High/Backup_Gizmo_High.cidl @@ -0,0 +1,20 @@ +// -*- CIDL -*- + +// This file was generated by +// $Id$ + +#ifndef _BACKUP_GIZMO_HIGH_CIDL_ +#define _BACKUP_GIZMO_HIGH_CIDL_ + +#include "Backup_Gizmo_High.idl" + +composition session Backup_Gizmo_Low +{ + home executor Backup_Gizmo_High_Factory_Exec + { + implements SPACE::Backup_Gizmo_High_Factory; + manages Backup_Gizmo_High_Exec; + }; +}; + +#endif // !defined _BACKUP_GIZMO_HIGH_CIDL_ diff --git a/CIAO/examples/space/Backup_Gizmo_High/Backup_Gizmo_High.idl b/CIAO/examples/space/Backup_Gizmo_High/Backup_Gizmo_High.idl new file mode 100644 index 00000000000..626c6b03ddb --- /dev/null +++ b/CIAO/examples/space/Backup_Gizmo_High/Backup_Gizmo_High.idl @@ -0,0 +1,22 @@ + +#ifndef BACKUP_GIZMO_HIGH_IDL +#define BACKUP_GIZMO_HIGH_IDL + +#include <Components.idl> +#include "Event_Types.idl" + +module SPACE +{ + component Backup_Gizmo_High + { + emits Gizmo_Data observation_data; + }; + + home Backup_Gizmo_High_Factory + manages Backup_Gizmo_High + { + }; +}; + +#endif // BACKUP_GIZMO_HIGH_IDL + diff --git a/CIAO/examples/space/Backup_Gizmo_High/Backup_Gizmo_High.mpc b/CIAO/examples/space/Backup_Gizmo_High/Backup_Gizmo_High.mpc new file mode 100644 index 00000000000..a3f67608acb --- /dev/null +++ b/CIAO/examples/space/Backup_Gizmo_High/Backup_Gizmo_High.mpc @@ -0,0 +1,75 @@ +project(Backup_Gizmo_High_stub): ciao_client_dnc { + + sharedname = Backup_Gizmo_High_stub + libs += Event_Types_stub + after += Event_Types_stub + includes += ../common + idlflags += -Wb,stub_export_macro=BACKUP_GIZMO_HIGH_STUB_Export \ + -Wb,stub_export_include=Backup_Gizmo_High_stub_export.h \ + -Wb,skel_export_macro=BACKUP_GIZMO_HIGH_SVNT_Export \ + -Wb,skel_export_include=Backup_Gizmo_High_svnt_export.h \ + -I ../common + dynamicflags = BACKUP_GIZMO_HIGH_STUB_BUILD_DLL + + IDL_Files { + Backup_Gizmo_High.idl + } + + Source_Files { + Backup_Gizmo_HighC.cpp + } +} + +project(Backup_Gizmo_High_svnt) : ciao_servant_dnc { + after += Backup_Gizmo_High_stub + includes += ../common + sharedname = Backup_Gizmo_High_svnt + libs += Backup_Gizmo_High_stub Event_Types_stub Event_Types_svnt + + idlflags += -Wb,export_macro=BACKUP_GIZMO_HIGH_SVNT_Export \ + -Wb,export_include=Backup_Gizmo_High_svnt_export.h \ + -I ../common + + dynamicflags = BACKUP_GIZMO_HIGH_SVNT_BUILD_DLL + + cidlflags -= -- + cidlflags += -I ../common -- + + CIDL_Files { + Backup_Gizmo_High.cidl + } + + IDL_Files { + Backup_Gizmo_HighE.idl + } + + Source_Files { + Backup_Gizmo_HighEC.cpp + Backup_Gizmo_HighS.cpp + Backup_Gizmo_High_svnt.cpp + } +} + + +project(Backup_Gizmo_High_exec) : ciao_component_dnc { + after += Backup_Gizmo_High_svnt + includes += ../common + sharedname = Backup_Gizmo_High_exec + libs += Backup_Gizmo_High_stub \ + Backup_Gizmo_High_svnt \ + Event_Types_stub \ + Event_Types_svnt + + idlflags += -Wb,export_macro=BACKUP_GIZMO_HIGH_EXEC_Export \ + -Wb,export_include=Backup_Gizmo_High_exec_export.h + dynamicflags = BACKUP_GIZMO_HIGH_EXEC_BUILD_DLL + + IDL_Files { + + } + + Source_Files { + + Backup_Gizmo_High_exec.cpp + } +} diff --git a/CIAO/examples/space/Backup_Gizmo_High/Backup_Gizmo_High_exec.cpp b/CIAO/examples/space/Backup_Gizmo_High/Backup_Gizmo_High_exec.cpp new file mode 100644 index 00000000000..1ea894df050 --- /dev/null +++ b/CIAO/examples/space/Backup_Gizmo_High/Backup_Gizmo_High_exec.cpp @@ -0,0 +1,159 @@ +#include "Backup_Gizmo_High_exec.h" +#include "ciao/CIAO_common.h" +#include "tao/ORB_Core.h" +#include "ace/Reactor.h" +#include "ace/Time_Value.h" +#include "ace/Thread.h" + +namespace CIDL_Backup_Gizmo_Low +{ + //================================================================== + // Component Executor Implementation Class: Backup_Gizmo_High_exec_i + //================================================================== + + Backup_Gizmo_High_exec_i::Backup_Gizmo_High_exec_i (void) + { + } + + Backup_Gizmo_High_exec_i::~Backup_Gizmo_High_exec_i (void) + { + } + + int + Backup_Gizmo_High_exec_i::handle_timeout (const ACE_Time_Value &, + const void *) + { + + ::SPACE::Gizmo_Data_var ev = new OBV_SPACE::Gizmo_Data; + ev->sender ("Secondary-Gizmo-High"); + this->context_->push_observation_data (ev); + return 0; + + } + void + Backup_Gizmo_High_exec_i::set_session_context ( + ::Components::SessionContext_ptr ctx + ACE_ENV_ARG_DECL) + ACE_THROW_SPEC (( ::CORBA::SystemException, + ::Components::CCMException)) + { + this->context_ = + Backup_Gizmo_High_Context::_narrow ( + ctx + ACE_ENV_ARG_PARAMETER); + ACE_CHECK; + + if (this->context_ == 0) + { + ACE_THROW ( ::CORBA::INTERNAL ()); + } + } + + void + Backup_Gizmo_High_exec_i::ciao_preactivate ( + ACE_ENV_SINGLE_ARG_DECL_NOT_USED) + ACE_THROW_SPEC (( ::CORBA::SystemException, + ::Components::CCMException)) + { + // Your code here. + } + + void + Backup_Gizmo_High_exec_i::ciao_postactivate ( + ACE_ENV_SINGLE_ARG_DECL_NOT_USED) + ACE_THROW_SPEC (( ::CORBA::SystemException, + ::Components::CCMException)) + { + ACE_Reactor *reactor = + this->context_->_ciao_the_Container ()->the_ORB ()->orb_core ()->reactor (); + ACE_Time_Value interval (5); + + reactor->owner (ACE_Thread::self ()); + if (reactor->schedule_timer (this, this, interval, interval) < 0) + { + ACE_ERROR ((LM_ERROR, "Exec-Agent: Error will registering " + "periodic task!\n")); + } + } + + void + Backup_Gizmo_High_exec_i::ccm_activate ( + ACE_ENV_SINGLE_ARG_DECL_NOT_USED) + ACE_THROW_SPEC (( ::CORBA::SystemException, + ::Components::CCMException)) + { + // Your code here. + } + + void + Backup_Gizmo_High_exec_i::ccm_passivate ( + ACE_ENV_SINGLE_ARG_DECL_NOT_USED) + ACE_THROW_SPEC (( ::CORBA::SystemException, + ::Components::CCMException)) + { + // Your code here. + } + + void + Backup_Gizmo_High_exec_i::ccm_remove ( + ACE_ENV_SINGLE_ARG_DECL_NOT_USED) + ACE_THROW_SPEC (( ::CORBA::SystemException, + ::Components::CCMException)) + { + // Your code here. + } + + //================================================================== + // Home Executor Implementation Class: Backup_Gizmo_High_Factory_exec_i + //================================================================== + + Backup_Gizmo_High_Factory_exec_i::Backup_Gizmo_High_Factory_exec_i (void) + { + } + + Backup_Gizmo_High_Factory_exec_i::~Backup_Gizmo_High_Factory_exec_i (void) + { + } + + // Supported or inherited operations. + + // Home operations. + + // Factory and finder operations. + + // Attribute operations. + + // Implicit operations. + + ::Components::EnterpriseComponent_ptr + Backup_Gizmo_High_Factory_exec_i::create ( + ACE_ENV_SINGLE_ARG_DECL) + ACE_THROW_SPEC (( ::CORBA::SystemException, + ::Components::CCMException)) + { + ::Components::EnterpriseComponent_ptr retval = + ::Components::EnterpriseComponent::_nil (); + + ACE_NEW_THROW_EX ( + retval, + Backup_Gizmo_High_exec_i, + ::CORBA::NO_MEMORY ()); + ACE_CHECK_RETURN (::Components::EnterpriseComponent::_nil ()); + + return retval; + } + + extern "C" BACKUP_GIZMO_HIGH_EXEC_Export ::Components::HomeExecutorBase_ptr + create_SPACE_Backup_Gizmo_High_Factory_Impl (void) + { + ::Components::HomeExecutorBase_ptr retval = + ::Components::HomeExecutorBase::_nil (); + + ACE_NEW_RETURN ( + retval, + Backup_Gizmo_High_Factory_exec_i, + ::Components::HomeExecutorBase::_nil ()); + + return retval; + } +} diff --git a/CIAO/examples/space/Backup_Gizmo_High/Backup_Gizmo_High_exec.h b/CIAO/examples/space/Backup_Gizmo_High/Backup_Gizmo_High_exec.h new file mode 100644 index 00000000000..e2e9d06367e --- /dev/null +++ b/CIAO/examples/space/Backup_Gizmo_High/Backup_Gizmo_High_exec.h @@ -0,0 +1,111 @@ +#ifndef CIAO_BACKUP_GIZMO_HIGH_EXEC_H +#define CIAO_BACKUP_GIZMO_HIGH_EXEC_H + +#include /**/ "ace/pre.h" + +#include "Backup_Gizmo_High_svnt.h" +#include "ace/Event_Handler.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + +#include "Backup_Gizmo_High_exec_export.h" +#include "tao/LocalObject.h" + +namespace CIDL_Backup_Gizmo_Low +{ + class BACKUP_GIZMO_HIGH_EXEC_Export Backup_Gizmo_High_exec_i + : public virtual Backup_Gizmo_High_Exec, + public virtual TAO_Local_RefCounted_Object, + public virtual ACE_Event_Handler + { + public: + Backup_Gizmo_High_exec_i (void); + + virtual ~Backup_Gizmo_High_exec_i (void); + + virtual int handle_timeout (const ACE_Time_Value &, + const void *ref); + + + virtual void + set_session_context ( + ::Components::SessionContext_ptr ctx + ACE_ENV_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC (( + ::CORBA::SystemException, + ::Components::CCMException)); + + virtual void + ciao_preactivate ( + ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC (( + ::CORBA::SystemException, + ::Components::CCMException)); + + virtual void + ciao_postactivate ( + ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC (( + ::CORBA::SystemException, + ::Components::CCMException)); + + virtual void + ccm_activate ( + ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC (( + ::CORBA::SystemException, + ::Components::CCMException)); + + virtual void + ccm_passivate ( + ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC (( + ::CORBA::SystemException, + ::Components::CCMException)); + + virtual void + ccm_remove ( + ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC (( + ::CORBA::SystemException, + ::Components::CCMException)); + + protected: + Backup_Gizmo_High_Context *context_; + }; + + class BACKUP_GIZMO_HIGH_EXEC_Export Backup_Gizmo_High_Factory_exec_i + : public virtual Backup_Gizmo_High_Factory_Exec, + public virtual TAO_Local_RefCounted_Object + { + public: + Backup_Gizmo_High_Factory_exec_i (void); + virtual ~Backup_Gizmo_High_Factory_exec_i (void); + + // Supported or inherited operations. + + // Home operations. + + // Factory and finder operations. + + // Attribute operations. + + // Implicit operations. + + virtual ::Components::EnterpriseComponent_ptr + create ( + ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC (( + ::CORBA::SystemException, + ::Components::CCMException)); + }; + + extern "C" BACKUP_GIZMO_HIGH_EXEC_Export ::Components::HomeExecutorBase_ptr + create_SPACE_Backup_Gizmo_High_Factory_Impl (void); +} + +#include /**/ "ace/post.h" + +#endif /* CIAO_BACKUP_GIZMO_HIGH_EXEC_H */ diff --git a/CIAO/examples/space/Backup_Gizmo_High/Backup_Gizmo_High_exec_export.h b/CIAO/examples/space/Backup_Gizmo_High/Backup_Gizmo_High_exec_export.h new file mode 100644 index 00000000000..1a574377ba1 --- /dev/null +++ b/CIAO/examples/space/Backup_Gizmo_High/Backup_Gizmo_High_exec_export.h @@ -0,0 +1,58 @@ + +// -*- C++ -*- +// $Id$ +// Definition for Win32 Export directives. +// This file is generated automatically by generate_export_file.pl BACKUP_GIZMO_HIGH_EXEC +// ------------------------------ +#ifndef BACKUP_GIZMO_HIGH_EXEC_EXPORT_H +#define BACKUP_GIZMO_HIGH_EXEC_EXPORT_H + +#include "ace/config-all.h" + +#if defined (ACE_AS_STATIC_LIBS) && !defined (BACKUP_GIZMO_HIGH_EXEC_HAS_DLL) +# define BACKUP_GIZMO_HIGH_EXEC_HAS_DLL 0 +#endif /* ACE_AS_STATIC_LIBS && BACKUP_GIZMO_HIGH_EXEC_HAS_DLL */ + +#if !defined (BACKUP_GIZMO_HIGH_EXEC_HAS_DLL) +# define BACKUP_GIZMO_HIGH_EXEC_HAS_DLL 1 +#endif /* ! BACKUP_GIZMO_HIGH_EXEC_HAS_DLL */ + +#if defined (BACKUP_GIZMO_HIGH_EXEC_HAS_DLL) && (BACKUP_GIZMO_HIGH_EXEC_HAS_DLL == 1) +# if defined (BACKUP_GIZMO_HIGH_EXEC_BUILD_DLL) +# define BACKUP_GIZMO_HIGH_EXEC_Export ACE_Proper_Export_Flag +# define BACKUP_GIZMO_HIGH_EXEC_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T) +# define BACKUP_GIZMO_HIGH_EXEC_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# else /* BACKUP_GIZMO_HIGH_EXEC_BUILD_DLL */ +# define BACKUP_GIZMO_HIGH_EXEC_Export ACE_Proper_Import_Flag +# define BACKUP_GIZMO_HIGH_EXEC_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T) +# define BACKUP_GIZMO_HIGH_EXEC_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# endif /* BACKUP_GIZMO_HIGH_EXEC_BUILD_DLL */ +#else /* BACKUP_GIZMO_HIGH_EXEC_HAS_DLL == 1 */ +# define BACKUP_GIZMO_HIGH_EXEC_Export +# define BACKUP_GIZMO_HIGH_EXEC_SINGLETON_DECLARATION(T) +# define BACKUP_GIZMO_HIGH_EXEC_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +#endif /* BACKUP_GIZMO_HIGH_EXEC_HAS_DLL == 1 */ + +// Set BACKUP_GIZMO_HIGH_EXEC_NTRACE = 0 to turn on library specific tracing even if +// tracing is turned off for ACE. +#if !defined (BACKUP_GIZMO_HIGH_EXEC_NTRACE) +# if (ACE_NTRACE == 1) +# define BACKUP_GIZMO_HIGH_EXEC_NTRACE 1 +# else /* (ACE_NTRACE == 1) */ +# define BACKUP_GIZMO_HIGH_EXEC_NTRACE 0 +# endif /* (ACE_NTRACE == 1) */ +#endif /* !BACKUP_GIZMO_HIGH_EXEC_NTRACE */ + +#if (BACKUP_GIZMO_HIGH_EXEC_NTRACE == 1) +# define BACKUP_GIZMO_HIGH_EXEC_TRACE(X) +#else /* (BACKUP_GIZMO_HIGH_EXEC_NTRACE == 1) */ +# if !defined (ACE_HAS_TRACE) +# define ACE_HAS_TRACE +# endif /* ACE_HAS_TRACE */ +# define BACKUP_GIZMO_HIGH_EXEC_TRACE(X) ACE_TRACE_IMPL(X) +# include "ace/Trace.h" +#endif /* (BACKUP_GIZMO_HIGH_EXEC_NTRACE == 1) */ + +#endif /* BACKUP_GIZMO_HIGH_EXEC_EXPORT_H */ + +// End of auto generated file. diff --git a/CIAO/examples/space/Backup_Gizmo_High/Backup_Gizmo_High_stub_export.h b/CIAO/examples/space/Backup_Gizmo_High/Backup_Gizmo_High_stub_export.h new file mode 100644 index 00000000000..41d7ba9803c --- /dev/null +++ b/CIAO/examples/space/Backup_Gizmo_High/Backup_Gizmo_High_stub_export.h @@ -0,0 +1,58 @@ + +// -*- C++ -*- +// $Id$ +// Definition for Win32 Export directives. +// This file is generated automatically by generate_export_file.pl BACKUP_GIZMO_HIGH_STUB +// ------------------------------ +#ifndef BACKUP_GIZMO_HIGH_STUB_EXPORT_H +#define BACKUP_GIZMO_HIGH_STUB_EXPORT_H + +#include "ace/config-all.h" + +#if defined (ACE_AS_STATIC_LIBS) && !defined (BACKUP_GIZMO_HIGH_STUB_HAS_DLL) +# define BACKUP_GIZMO_HIGH_STUB_HAS_DLL 0 +#endif /* ACE_AS_STATIC_LIBS && BACKUP_GIZMO_HIGH_STUB_HAS_DLL */ + +#if !defined (BACKUP_GIZMO_HIGH_STUB_HAS_DLL) +# define BACKUP_GIZMO_HIGH_STUB_HAS_DLL 1 +#endif /* ! BACKUP_GIZMO_HIGH_STUB_HAS_DLL */ + +#if defined (BACKUP_GIZMO_HIGH_STUB_HAS_DLL) && (BACKUP_GIZMO_HIGH_STUB_HAS_DLL == 1) +# if defined (BACKUP_GIZMO_HIGH_STUB_BUILD_DLL) +# define BACKUP_GIZMO_HIGH_STUB_Export ACE_Proper_Export_Flag +# define BACKUP_GIZMO_HIGH_STUB_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T) +# define BACKUP_GIZMO_HIGH_STUB_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# else /* BACKUP_GIZMO_HIGH_STUB_BUILD_DLL */ +# define BACKUP_GIZMO_HIGH_STUB_Export ACE_Proper_Import_Flag +# define BACKUP_GIZMO_HIGH_STUB_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T) +# define BACKUP_GIZMO_HIGH_STUB_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# endif /* BACKUP_GIZMO_HIGH_STUB_BUILD_DLL */ +#else /* BACKUP_GIZMO_HIGH_STUB_HAS_DLL == 1 */ +# define BACKUP_GIZMO_HIGH_STUB_Export +# define BACKUP_GIZMO_HIGH_STUB_SINGLETON_DECLARATION(T) +# define BACKUP_GIZMO_HIGH_STUB_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +#endif /* BACKUP_GIZMO_HIGH_STUB_HAS_DLL == 1 */ + +// Set BACKUP_GIZMO_HIGH_STUB_NTRACE = 0 to turn on library specific tracing even if +// tracing is turned off for ACE. +#if !defined (BACKUP_GIZMO_HIGH_STUB_NTRACE) +# if (ACE_NTRACE == 1) +# define BACKUP_GIZMO_HIGH_STUB_NTRACE 1 +# else /* (ACE_NTRACE == 1) */ +# define BACKUP_GIZMO_HIGH_STUB_NTRACE 0 +# endif /* (ACE_NTRACE == 1) */ +#endif /* !BACKUP_GIZMO_HIGH_STUB_NTRACE */ + +#if (BACKUP_GIZMO_HIGH_STUB_NTRACE == 1) +# define BACKUP_GIZMO_HIGH_STUB_TRACE(X) +#else /* (BACKUP_GIZMO_HIGH_STUB_NTRACE == 1) */ +# if !defined (ACE_HAS_TRACE) +# define ACE_HAS_TRACE +# endif /* ACE_HAS_TRACE */ +# define BACKUP_GIZMO_HIGH_STUB_TRACE(X) ACE_TRACE_IMPL(X) +# include "ace/Trace.h" +#endif /* (BACKUP_GIZMO_HIGH_STUB_NTRACE == 1) */ + +#endif /* BACKUP_GIZMO_HIGH_STUB_EXPORT_H */ + +// End of auto generated file. diff --git a/CIAO/examples/space/Backup_Gizmo_High/Backup_Gizmo_High_svnt_export.h b/CIAO/examples/space/Backup_Gizmo_High/Backup_Gizmo_High_svnt_export.h new file mode 100644 index 00000000000..674f6538b64 --- /dev/null +++ b/CIAO/examples/space/Backup_Gizmo_High/Backup_Gizmo_High_svnt_export.h @@ -0,0 +1,58 @@ + +// -*- C++ -*- +// $Id$ +// Definition for Win32 Export directives. +// This file is generated automatically by generate_export_file.pl BACKUP_GIZMO_HIGH_SVNT +// ------------------------------ +#ifndef BACKUP_GIZMO_HIGH_SVNT_EXPORT_H +#define BACKUP_GIZMO_HIGH_SVNT_EXPORT_H + +#include "ace/config-all.h" + +#if defined (ACE_AS_STATIC_LIBS) && !defined (BACKUP_GIZMO_HIGH_SVNT_HAS_DLL) +# define BACKUP_GIZMO_HIGH_SVNT_HAS_DLL 0 +#endif /* ACE_AS_STATIC_LIBS && BACKUP_GIZMO_HIGH_SVNT_HAS_DLL */ + +#if !defined (BACKUP_GIZMO_HIGH_SVNT_HAS_DLL) +# define BACKUP_GIZMO_HIGH_SVNT_HAS_DLL 1 +#endif /* ! BACKUP_GIZMO_HIGH_SVNT_HAS_DLL */ + +#if defined (BACKUP_GIZMO_HIGH_SVNT_HAS_DLL) && (BACKUP_GIZMO_HIGH_SVNT_HAS_DLL == 1) +# if defined (BACKUP_GIZMO_HIGH_SVNT_BUILD_DLL) +# define BACKUP_GIZMO_HIGH_SVNT_Export ACE_Proper_Export_Flag +# define BACKUP_GIZMO_HIGH_SVNT_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T) +# define BACKUP_GIZMO_HIGH_SVNT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# else /* BACKUP_GIZMO_HIGH_SVNT_BUILD_DLL */ +# define BACKUP_GIZMO_HIGH_SVNT_Export ACE_Proper_Import_Flag +# define BACKUP_GIZMO_HIGH_SVNT_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T) +# define BACKUP_GIZMO_HIGH_SVNT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# endif /* BACKUP_GIZMO_HIGH_SVNT_BUILD_DLL */ +#else /* BACKUP_GIZMO_HIGH_SVNT_HAS_DLL == 1 */ +# define BACKUP_GIZMO_HIGH_SVNT_Export +# define BACKUP_GIZMO_HIGH_SVNT_SINGLETON_DECLARATION(T) +# define BACKUP_GIZMO_HIGH_SVNT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +#endif /* BACKUP_GIZMO_HIGH_SVNT_HAS_DLL == 1 */ + +// Set BACKUP_GIZMO_HIGH_SVNT_NTRACE = 0 to turn on library specific tracing even if +// tracing is turned off for ACE. +#if !defined (BACKUP_GIZMO_HIGH_SVNT_NTRACE) +# if (ACE_NTRACE == 1) +# define BACKUP_GIZMO_HIGH_SVNT_NTRACE 1 +# else /* (ACE_NTRACE == 1) */ +# define BACKUP_GIZMO_HIGH_SVNT_NTRACE 0 +# endif /* (ACE_NTRACE == 1) */ +#endif /* !BACKUP_GIZMO_HIGH_SVNT_NTRACE */ + +#if (BACKUP_GIZMO_HIGH_SVNT_NTRACE == 1) +# define BACKUP_GIZMO_HIGH_SVNT_TRACE(X) +#else /* (BACKUP_GIZMO_HIGH_SVNT_NTRACE == 1) */ +# if !defined (ACE_HAS_TRACE) +# define ACE_HAS_TRACE +# endif /* ACE_HAS_TRACE */ +# define BACKUP_GIZMO_HIGH_SVNT_TRACE(X) ACE_TRACE_IMPL(X) +# include "ace/Trace.h" +#endif /* (BACKUP_GIZMO_HIGH_SVNT_NTRACE == 1) */ + +#endif /* BACKUP_GIZMO_HIGH_SVNT_EXPORT_H */ + +// End of auto generated file. diff --git a/CIAO/examples/space/Backup_Gizmo_High/Backup_Gizmo_Low.ccd b/CIAO/examples/space/Backup_Gizmo_High/Backup_Gizmo_Low.ccd new file mode 100644 index 00000000000..43399837062 --- /dev/null +++ b/CIAO/examples/space/Backup_Gizmo_High/Backup_Gizmo_Low.ccd @@ -0,0 +1,33 @@ +<?xml version="1.0"?> +<!DOCTYPE corbacomponent SYSTEM "corbacomponent.dtd"> + +<corbacomponent> + <corbaversion>3.0</corbaversion> + <componentrepid repid="IDL:SPACE/Backup_Gizmo_High:1.0"/> + <homerepid repid="IDL:SPACE/Backup_Gizmo_High_Factory:1.0"/> + <componentkind> + <session> + <servant lifetime="container"/> + </session> + </componentkind> + <threading policy="multithread"/> + <configurationcomplete set="true"/> + + <homefeatures + name="Backup_Gizmo_High_Factory" + repid="IDL:SPACE/Backup_Gizmo_High_Factory:1.0"> + </homefeatures> + + <componentfeatures + name="Backup_Gizmo_High" + repid="IDL:SPACE/Backup_Gizmo_High:1.0"> + <ports> + <emits + emitsname="observation_data" + eventtype="IDL:SPACE/Gizmo_Data:1.0"> + <eventpolicy policy="normal"/> + </emits> + </ports> + </componentfeatures> + +</corbacomponent> diff --git a/CIAO/examples/space/Backup_Gizmo_Low/Backup_Gizmo_Low.ccd b/CIAO/examples/space/Backup_Gizmo_Low/Backup_Gizmo_Low.ccd new file mode 100644 index 00000000000..24cee524c78 --- /dev/null +++ b/CIAO/examples/space/Backup_Gizmo_Low/Backup_Gizmo_Low.ccd @@ -0,0 +1,33 @@ +<?xml version="1.0"?> +<!DOCTYPE corbacomponent SYSTEM "corbacomponent.dtd"> + +<corbacomponent> + <corbaversion>3.0</corbaversion> + <componentrepid repid="IDL:SPACE/Backup_Gizmo_Low:1.0"/> + <homerepid repid="IDL:SPACE/Backup_Gizmo_Low_Factory:1.0"/> + <componentkind> + <session> + <servant lifetime="container"/> + </session> + </componentkind> + <threading policy="multithread"/> + <configurationcomplete set="true"/> + + <homefeatures + name="Backup_Gizmo_Low_Factory" + repid="IDL:SPACE/Backup_Gizmo_Low_Factory:1.0"> + </homefeatures> + + <componentfeatures + name="Backup_Gizmo_Low" + repid="IDL:SPACE/Backup_Gizmo_Low:1.0"> + <ports> + <emits + emitsname="observation_data" + eventtype="IDL:SPACE/Gizmo_Data:1.0"> + <eventpolicy policy="normal"/> + </emits> + </ports> + </componentfeatures> + +</corbacomponent> diff --git a/CIAO/examples/space/Backup_Gizmo_Low/Backup_Gizmo_Low.cidl b/CIAO/examples/space/Backup_Gizmo_Low/Backup_Gizmo_Low.cidl new file mode 100644 index 00000000000..6e646899c96 --- /dev/null +++ b/CIAO/examples/space/Backup_Gizmo_Low/Backup_Gizmo_Low.cidl @@ -0,0 +1,20 @@ +// -*- CIDL -*- + +// This file was generated by +// $Id$ + +#ifndef _BACKUP_GIZMO_LOW_CIDL_ +#define _BACKUP_GIZMO_LOW_CIDL_ + +#include "Backup_Gizmo_Low.idl" + +composition session Backup_Gizmo_Low +{ + home executor Backup_Gizmo_Low_Factory_Exec + { + implements SPACE::Backup_Gizmo_Low_Factory; + manages Backup_Gizmo_Low_Exec; + }; +}; + +#endif // !defined _BACKUP_GIZMO_LOW_CIDL_ diff --git a/CIAO/examples/space/Backup_Gizmo_Low/Backup_Gizmo_Low.idl b/CIAO/examples/space/Backup_Gizmo_Low/Backup_Gizmo_Low.idl new file mode 100644 index 00000000000..ccbea029a46 --- /dev/null +++ b/CIAO/examples/space/Backup_Gizmo_Low/Backup_Gizmo_Low.idl @@ -0,0 +1,22 @@ + +#ifndef BACKUP_GIZMO_LOW_IDL +#define BACKUP_GIZMO_LOW_IDL + +#include <Components.idl> +#include "Event_Types.idl" + +module SPACE +{ + component Backup_Gizmo_Low + { + emits Gizmo_Data observation_data; + }; + + home Backup_Gizmo_Low_Factory + manages Backup_Gizmo_Low + { + }; +}; + +#endif // BACKUP_GIZMO_LOW_IDL + diff --git a/CIAO/examples/space/Backup_Gizmo_Low/Backup_Gizmo_Low.mpc b/CIAO/examples/space/Backup_Gizmo_Low/Backup_Gizmo_Low.mpc new file mode 100644 index 00000000000..1306ffac5d3 --- /dev/null +++ b/CIAO/examples/space/Backup_Gizmo_Low/Backup_Gizmo_Low.mpc @@ -0,0 +1,76 @@ +// $Id$ +// This file is generated with "generate_component_mpc.pl Backup_Gizmo_Low" + +project(Backup_Gizmo_Low_stub): ciao_client_dnc { + after += Event_Types_stub + sharedname = Backup_Gizmo_Low_stub + libs += Event_Types_stub + includes += ../common + idlflags += -Wb,stub_export_macro=BACKUP_GIZMO_LOW_STUB_Export \ + -Wb,stub_export_include=Backup_Gizmo_Low_stub_export.h \ + -Wb,skel_export_macro=BACKUP_GIZMO_LOW_SVNT_Export \ + -Wb,skel_export_include=Backup_Gizmo_Low_svnt_export.h \ + -I ../common + dynamicflags = BACKUP_GIZMO_LOW_STUB_BUILD_DLL + + IDL_Files { + Backup_Gizmo_Low.idl + } + + Source_Files { + Backup_Gizmo_LowC.cpp + } +} + +project(Backup_Gizmo_Low_svnt) : ciao_servant_dnc { + after += Backup_Gizmo_Low_stub + includes += ../common + sharedname = Backup_Gizmo_Low_svnt + libs += Backup_Gizmo_Low_stub Event_Types_stub Event_Types_svnt + + idlflags += -Wb,export_macro=BACKUP_GIZMO_LOW_SVNT_Export \ + -Wb,export_include=Backup_Gizmo_Low_svnt_export.h \ + -I ../common + dynamicflags = BACKUP_GIZMO_LOW_SVNT_BUILD_DLL + + cidlflags -= -- + cidlflags += -I ../common -- + + CIDL_Files { + Backup_Gizmo_Low.cidl + } + + IDL_Files { + Backup_Gizmo_LowE.idl + } + + Source_Files { + Backup_Gizmo_LowEC.cpp + Backup_Gizmo_LowS.cpp + Backup_Gizmo_Low_svnt.cpp + } +} + + +project(Backup_Gizmo_Low_exec) : ciao_component_dnc { + after += Backup_Gizmo_Low_svnt + includes += ../common + sharedname = Backup_Gizmo_Low_exec + libs += Backup_Gizmo_Low_stub \ + Backup_Gizmo_Low_svnt \ + Event_Types_stub \ + Event_Types_svnt + + idlflags += -Wb,export_macro=BACKUP_GIZMO_LOW_EXEC_Export \ + -Wb,export_include=Backup_Gizmo_Low_exec_export.h + dynamicflags = BACKUP_GIZMO_LOW_EXEC_BUILD_DLL + + IDL_Files { + + } + + Source_Files { + + Backup_Gizmo_Low_exec.cpp + } +} diff --git a/CIAO/examples/space/Backup_Gizmo_Low/Backup_Gizmo_Low_exec.cpp b/CIAO/examples/space/Backup_Gizmo_Low/Backup_Gizmo_Low_exec.cpp new file mode 100644 index 00000000000..5c687483b72 --- /dev/null +++ b/CIAO/examples/space/Backup_Gizmo_Low/Backup_Gizmo_Low_exec.cpp @@ -0,0 +1,160 @@ +#include "Backup_Gizmo_Low_exec.h" +#include "ciao/CIAO_common.h" +#include "tao/ORB_Core.h" +#include "ace/Reactor.h" +#include "ace/Time_Value.h" +#include "ace/Thread.h" + +namespace CIDL_Backup_Gizmo_Low +{ + //================================================================== + // Component Executor Implementation Class: Backup_Gizmo_Low_exec_i + //================================================================== + + Backup_Gizmo_Low_exec_i::Backup_Gizmo_Low_exec_i (void) + { + } + + Backup_Gizmo_Low_exec_i::~Backup_Gizmo_Low_exec_i (void) + { + } + + int + Backup_Gizmo_Low_exec_i::handle_timeout (const ACE_Time_Value &, + const void *) + { + + ::SPACE::Gizmo_Data_var ev = new OBV_SPACE::Gizmo_Data; + ev->sender ("Secondary-Gizmo-Low"); + this->context_->push_observation_data (ev); + return 0; + + } + + void + Backup_Gizmo_Low_exec_i::set_session_context ( + ::Components::SessionContext_ptr ctx + ACE_ENV_ARG_DECL) + ACE_THROW_SPEC (( ::CORBA::SystemException, + ::Components::CCMException)) + { + this->context_ = + Backup_Gizmo_Low_Context::_narrow ( + ctx + ACE_ENV_ARG_PARAMETER); + ACE_CHECK; + + if (this->context_ == 0) + { + ACE_THROW ( ::CORBA::INTERNAL ()); + } + } + + void + Backup_Gizmo_Low_exec_i::ciao_preactivate ( + ACE_ENV_SINGLE_ARG_DECL_NOT_USED) + ACE_THROW_SPEC (( ::CORBA::SystemException, + ::Components::CCMException)) + { + // Your code here. + } + + void + Backup_Gizmo_Low_exec_i::ciao_postactivate ( + ACE_ENV_SINGLE_ARG_DECL_NOT_USED) + ACE_THROW_SPEC (( ::CORBA::SystemException, + ::Components::CCMException)) + { + ACE_Reactor *reactor = + this->context_->_ciao_the_Container ()->the_ORB ()->orb_core ()->reactor (); + ACE_Time_Value interval (5); + + reactor->owner (ACE_Thread::self ()); + if (reactor->schedule_timer (this, this, interval, interval) < 0) + { + ACE_ERROR ((LM_ERROR, "Exec-Agent: Error will registering " + "periodic task!\n")); + } + } + + void + Backup_Gizmo_Low_exec_i::ccm_activate ( + ACE_ENV_SINGLE_ARG_DECL_NOT_USED) + ACE_THROW_SPEC (( ::CORBA::SystemException, + ::Components::CCMException)) + { + // Your code here. + } + + void + Backup_Gizmo_Low_exec_i::ccm_passivate ( + ACE_ENV_SINGLE_ARG_DECL_NOT_USED) + ACE_THROW_SPEC (( ::CORBA::SystemException, + ::Components::CCMException)) + { + // Your code here. + } + + void + Backup_Gizmo_Low_exec_i::ccm_remove ( + ACE_ENV_SINGLE_ARG_DECL_NOT_USED) + ACE_THROW_SPEC (( ::CORBA::SystemException, + ::Components::CCMException)) + { + // Your code here. + } + + //================================================================== + // Home Executor Implementation Class: Backup_Gizmo_Low_Factory_exec_i + //================================================================== + + Backup_Gizmo_Low_Factory_exec_i::Backup_Gizmo_Low_Factory_exec_i (void) + { + } + + Backup_Gizmo_Low_Factory_exec_i::~Backup_Gizmo_Low_Factory_exec_i (void) + { + } + + // Supported or inherited operations. + + // Home operations. + + // Factory and finder operations. + + // Attribute operations. + + // Implicit operations. + + ::Components::EnterpriseComponent_ptr + Backup_Gizmo_Low_Factory_exec_i::create ( + ACE_ENV_SINGLE_ARG_DECL) + ACE_THROW_SPEC (( ::CORBA::SystemException, + ::Components::CCMException)) + { + ::Components::EnterpriseComponent_ptr retval = + ::Components::EnterpriseComponent::_nil (); + + ACE_NEW_THROW_EX ( + retval, + Backup_Gizmo_Low_exec_i, + ::CORBA::NO_MEMORY ()); + ACE_CHECK_RETURN (::Components::EnterpriseComponent::_nil ()); + + return retval; + } + + extern "C" BACKUP_GIZMO_LOW_EXEC_Export ::Components::HomeExecutorBase_ptr + create_SPACE_Backup_Gizmo_Low_Factory_Impl (void) + { + ::Components::HomeExecutorBase_ptr retval = + ::Components::HomeExecutorBase::_nil (); + + ACE_NEW_RETURN ( + retval, + Backup_Gizmo_Low_Factory_exec_i, + ::Components::HomeExecutorBase::_nil ()); + + return retval; + } +} diff --git a/CIAO/examples/space/Backup_Gizmo_Low/Backup_Gizmo_Low_exec.h b/CIAO/examples/space/Backup_Gizmo_Low/Backup_Gizmo_Low_exec.h new file mode 100644 index 00000000000..b989c2260b4 --- /dev/null +++ b/CIAO/examples/space/Backup_Gizmo_Low/Backup_Gizmo_Low_exec.h @@ -0,0 +1,111 @@ +#ifndef CIAO_BACKUP_GIZMO_LOW_EXEC_H +#define CIAO_BACKUP_GIZMO_LOW_EXEC_H + +#include /**/ "ace/pre.h" + +#include "Backup_Gizmo_Low_svnt.h" +#include "ace/Event_Handler.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + +#include "Backup_Gizmo_Low_exec_export.h" +#include "tao/LocalObject.h" + +namespace CIDL_Backup_Gizmo_Low +{ + class BACKUP_GIZMO_LOW_EXEC_Export Backup_Gizmo_Low_exec_i + : public virtual Backup_Gizmo_Low_Exec, + public virtual TAO_Local_RefCounted_Object, + public virtual ACE_Event_Handler + { + public: + Backup_Gizmo_Low_exec_i (void); + + virtual ~Backup_Gizmo_Low_exec_i (void); + + virtual int handle_timeout (const ACE_Time_Value &, + const void *ref); + + + virtual void + set_session_context ( + ::Components::SessionContext_ptr ctx + ACE_ENV_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC (( + ::CORBA::SystemException, + ::Components::CCMException)); + + virtual void + ciao_preactivate ( + ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC (( + ::CORBA::SystemException, + ::Components::CCMException)); + + virtual void + ciao_postactivate ( + ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC (( + ::CORBA::SystemException, + ::Components::CCMException)); + + virtual void + ccm_activate ( + ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC (( + ::CORBA::SystemException, + ::Components::CCMException)); + + virtual void + ccm_passivate ( + ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC (( + ::CORBA::SystemException, + ::Components::CCMException)); + + virtual void + ccm_remove ( + ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC (( + ::CORBA::SystemException, + ::Components::CCMException)); + + protected: + Backup_Gizmo_Low_Context *context_; + }; + + class BACKUP_GIZMO_LOW_EXEC_Export Backup_Gizmo_Low_Factory_exec_i + : public virtual Backup_Gizmo_Low_Factory_Exec, + public virtual TAO_Local_RefCounted_Object + { + public: + Backup_Gizmo_Low_Factory_exec_i (void); + virtual ~Backup_Gizmo_Low_Factory_exec_i (void); + + // Supported or inherited operations. + + // Home operations. + + // Factory and finder operations. + + // Attribute operations. + + // Implicit operations. + + virtual ::Components::EnterpriseComponent_ptr + create ( + ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC (( + ::CORBA::SystemException, + ::Components::CCMException)); + }; + + extern "C" BACKUP_GIZMO_LOW_EXEC_Export ::Components::HomeExecutorBase_ptr + create_SPACE_Backup_Gizmo_Low_Factory_Impl (void); +} + +#include /**/ "ace/post.h" + +#endif /* CIAO_BACKUP_GIZMO_LOW_EXEC_H */ diff --git a/CIAO/examples/space/Backup_Gizmo_Low/Backup_Gizmo_Low_exec_export.h b/CIAO/examples/space/Backup_Gizmo_Low/Backup_Gizmo_Low_exec_export.h new file mode 100644 index 00000000000..05e623cfd75 --- /dev/null +++ b/CIAO/examples/space/Backup_Gizmo_Low/Backup_Gizmo_Low_exec_export.h @@ -0,0 +1,58 @@ + +// -*- C++ -*- +// $Id$ +// Definition for Win32 Export directives. +// This file is generated automatically by generate_export_file.pl BACKUP_GIZMO_LOW_EXEC +// ------------------------------ +#ifndef BACKUP_GIZMO_LOW_EXEC_EXPORT_H +#define BACKUP_GIZMO_LOW_EXEC_EXPORT_H + +#include "ace/config-all.h" + +#if defined (ACE_AS_STATIC_LIBS) && !defined (BACKUP_GIZMO_LOW_EXEC_HAS_DLL) +# define BACKUP_GIZMO_LOW_EXEC_HAS_DLL 0 +#endif /* ACE_AS_STATIC_LIBS && BACKUP_GIZMO_LOW_EXEC_HAS_DLL */ + +#if !defined (BACKUP_GIZMO_LOW_EXEC_HAS_DLL) +# define BACKUP_GIZMO_LOW_EXEC_HAS_DLL 1 +#endif /* ! BACKUP_GIZMO_LOW_EXEC_HAS_DLL */ + +#if defined (BACKUP_GIZMO_LOW_EXEC_HAS_DLL) && (BACKUP_GIZMO_LOW_EXEC_HAS_DLL == 1) +# if defined (BACKUP_GIZMO_LOW_EXEC_BUILD_DLL) +# define BACKUP_GIZMO_LOW_EXEC_Export ACE_Proper_Export_Flag +# define BACKUP_GIZMO_LOW_EXEC_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T) +# define BACKUP_GIZMO_LOW_EXEC_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# else /* BACKUP_GIZMO_LOW_EXEC_BUILD_DLL */ +# define BACKUP_GIZMO_LOW_EXEC_Export ACE_Proper_Import_Flag +# define BACKUP_GIZMO_LOW_EXEC_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T) +# define BACKUP_GIZMO_LOW_EXEC_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# endif /* BACKUP_GIZMO_LOW_EXEC_BUILD_DLL */ +#else /* BACKUP_GIZMO_LOW_EXEC_HAS_DLL == 1 */ +# define BACKUP_GIZMO_LOW_EXEC_Export +# define BACKUP_GIZMO_LOW_EXEC_SINGLETON_DECLARATION(T) +# define BACKUP_GIZMO_LOW_EXEC_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +#endif /* BACKUP_GIZMO_LOW_EXEC_HAS_DLL == 1 */ + +// Set BACKUP_GIZMO_LOW_EXEC_NTRACE = 0 to turn on library specific tracing even if +// tracing is turned off for ACE. +#if !defined (BACKUP_GIZMO_LOW_EXEC_NTRACE) +# if (ACE_NTRACE == 1) +# define BACKUP_GIZMO_LOW_EXEC_NTRACE 1 +# else /* (ACE_NTRACE == 1) */ +# define BACKUP_GIZMO_LOW_EXEC_NTRACE 0 +# endif /* (ACE_NTRACE == 1) */ +#endif /* !BACKUP_GIZMO_LOW_EXEC_NTRACE */ + +#if (BACKUP_GIZMO_LOW_EXEC_NTRACE == 1) +# define BACKUP_GIZMO_LOW_EXEC_TRACE(X) +#else /* (BACKUP_GIZMO_LOW_EXEC_NTRACE == 1) */ +# if !defined (ACE_HAS_TRACE) +# define ACE_HAS_TRACE +# endif /* ACE_HAS_TRACE */ +# define BACKUP_GIZMO_LOW_EXEC_TRACE(X) ACE_TRACE_IMPL(X) +# include "ace/Trace.h" +#endif /* (BACKUP_GIZMO_LOW_EXEC_NTRACE == 1) */ + +#endif /* BACKUP_GIZMO_LOW_EXEC_EXPORT_H */ + +// End of auto generated file. diff --git a/CIAO/examples/space/Backup_Gizmo_Low/Backup_Gizmo_Low_stub_export.h b/CIAO/examples/space/Backup_Gizmo_Low/Backup_Gizmo_Low_stub_export.h new file mode 100644 index 00000000000..c730a79ed0b --- /dev/null +++ b/CIAO/examples/space/Backup_Gizmo_Low/Backup_Gizmo_Low_stub_export.h @@ -0,0 +1,58 @@ + +// -*- C++ -*- +// $Id$ +// Definition for Win32 Export directives. +// This file is generated automatically by generate_export_file.pl BACKUP_GIZMO_LOW_STUB +// ------------------------------ +#ifndef BACKUP_GIZMO_LOW_STUB_EXPORT_H +#define BACKUP_GIZMO_LOW_STUB_EXPORT_H + +#include "ace/config-all.h" + +#if defined (ACE_AS_STATIC_LIBS) && !defined (BACKUP_GIZMO_LOW_STUB_HAS_DLL) +# define BACKUP_GIZMO_LOW_STUB_HAS_DLL 0 +#endif /* ACE_AS_STATIC_LIBS && BACKUP_GIZMO_LOW_STUB_HAS_DLL */ + +#if !defined (BACKUP_GIZMO_LOW_STUB_HAS_DLL) +# define BACKUP_GIZMO_LOW_STUB_HAS_DLL 1 +#endif /* ! BACKUP_GIZMO_LOW_STUB_HAS_DLL */ + +#if defined (BACKUP_GIZMO_LOW_STUB_HAS_DLL) && (BACKUP_GIZMO_LOW_STUB_HAS_DLL == 1) +# if defined (BACKUP_GIZMO_LOW_STUB_BUILD_DLL) +# define BACKUP_GIZMO_LOW_STUB_Export ACE_Proper_Export_Flag +# define BACKUP_GIZMO_LOW_STUB_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T) +# define BACKUP_GIZMO_LOW_STUB_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# else /* BACKUP_GIZMO_LOW_STUB_BUILD_DLL */ +# define BACKUP_GIZMO_LOW_STUB_Export ACE_Proper_Import_Flag +# define BACKUP_GIZMO_LOW_STUB_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T) +# define BACKUP_GIZMO_LOW_STUB_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# endif /* BACKUP_GIZMO_LOW_STUB_BUILD_DLL */ +#else /* BACKUP_GIZMO_LOW_STUB_HAS_DLL == 1 */ +# define BACKUP_GIZMO_LOW_STUB_Export +# define BACKUP_GIZMO_LOW_STUB_SINGLETON_DECLARATION(T) +# define BACKUP_GIZMO_LOW_STUB_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +#endif /* BACKUP_GIZMO_LOW_STUB_HAS_DLL == 1 */ + +// Set BACKUP_GIZMO_LOW_STUB_NTRACE = 0 to turn on library specific tracing even if +// tracing is turned off for ACE. +#if !defined (BACKUP_GIZMO_LOW_STUB_NTRACE) +# if (ACE_NTRACE == 1) +# define BACKUP_GIZMO_LOW_STUB_NTRACE 1 +# else /* (ACE_NTRACE == 1) */ +# define BACKUP_GIZMO_LOW_STUB_NTRACE 0 +# endif /* (ACE_NTRACE == 1) */ +#endif /* !BACKUP_GIZMO_LOW_STUB_NTRACE */ + +#if (BACKUP_GIZMO_LOW_STUB_NTRACE == 1) +# define BACKUP_GIZMO_LOW_STUB_TRACE(X) +#else /* (BACKUP_GIZMO_LOW_STUB_NTRACE == 1) */ +# if !defined (ACE_HAS_TRACE) +# define ACE_HAS_TRACE +# endif /* ACE_HAS_TRACE */ +# define BACKUP_GIZMO_LOW_STUB_TRACE(X) ACE_TRACE_IMPL(X) +# include "ace/Trace.h" +#endif /* (BACKUP_GIZMO_LOW_STUB_NTRACE == 1) */ + +#endif /* BACKUP_GIZMO_LOW_STUB_EXPORT_H */ + +// End of auto generated file. diff --git a/CIAO/examples/space/Backup_Gizmo_Low/Backup_Gizmo_Low_svnt_export.h b/CIAO/examples/space/Backup_Gizmo_Low/Backup_Gizmo_Low_svnt_export.h new file mode 100644 index 00000000000..0933042f63b --- /dev/null +++ b/CIAO/examples/space/Backup_Gizmo_Low/Backup_Gizmo_Low_svnt_export.h @@ -0,0 +1,58 @@ + +// -*- C++ -*- +// $Id$ +// Definition for Win32 Export directives. +// This file is generated automatically by generate_export_file.pl BACKUP_GIZMO_LOW_SVNT +// ------------------------------ +#ifndef BACKUP_GIZMO_LOW_SVNT_EXPORT_H +#define BACKUP_GIZMO_LOW_SVNT_EXPORT_H + +#include "ace/config-all.h" + +#if defined (ACE_AS_STATIC_LIBS) && !defined (BACKUP_GIZMO_LOW_SVNT_HAS_DLL) +# define BACKUP_GIZMO_LOW_SVNT_HAS_DLL 0 +#endif /* ACE_AS_STATIC_LIBS && BACKUP_GIZMO_LOW_SVNT_HAS_DLL */ + +#if !defined (BACKUP_GIZMO_LOW_SVNT_HAS_DLL) +# define BACKUP_GIZMO_LOW_SVNT_HAS_DLL 1 +#endif /* ! BACKUP_GIZMO_LOW_SVNT_HAS_DLL */ + +#if defined (BACKUP_GIZMO_LOW_SVNT_HAS_DLL) && (BACKUP_GIZMO_LOW_SVNT_HAS_DLL == 1) +# if defined (BACKUP_GIZMO_LOW_SVNT_BUILD_DLL) +# define BACKUP_GIZMO_LOW_SVNT_Export ACE_Proper_Export_Flag +# define BACKUP_GIZMO_LOW_SVNT_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T) +# define BACKUP_GIZMO_LOW_SVNT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# else /* BACKUP_GIZMO_LOW_SVNT_BUILD_DLL */ +# define BACKUP_GIZMO_LOW_SVNT_Export ACE_Proper_Import_Flag +# define BACKUP_GIZMO_LOW_SVNT_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T) +# define BACKUP_GIZMO_LOW_SVNT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# endif /* BACKUP_GIZMO_LOW_SVNT_BUILD_DLL */ +#else /* BACKUP_GIZMO_LOW_SVNT_HAS_DLL == 1 */ +# define BACKUP_GIZMO_LOW_SVNT_Export +# define BACKUP_GIZMO_LOW_SVNT_SINGLETON_DECLARATION(T) +# define BACKUP_GIZMO_LOW_SVNT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +#endif /* BACKUP_GIZMO_LOW_SVNT_HAS_DLL == 1 */ + +// Set BACKUP_GIZMO_LOW_SVNT_NTRACE = 0 to turn on library specific tracing even if +// tracing is turned off for ACE. +#if !defined (BACKUP_GIZMO_LOW_SVNT_NTRACE) +# if (ACE_NTRACE == 1) +# define BACKUP_GIZMO_LOW_SVNT_NTRACE 1 +# else /* (ACE_NTRACE == 1) */ +# define BACKUP_GIZMO_LOW_SVNT_NTRACE 0 +# endif /* (ACE_NTRACE == 1) */ +#endif /* !BACKUP_GIZMO_LOW_SVNT_NTRACE */ + +#if (BACKUP_GIZMO_LOW_SVNT_NTRACE == 1) +# define BACKUP_GIZMO_LOW_SVNT_TRACE(X) +#else /* (BACKUP_GIZMO_LOW_SVNT_NTRACE == 1) */ +# if !defined (ACE_HAS_TRACE) +# define ACE_HAS_TRACE +# endif /* ACE_HAS_TRACE */ +# define BACKUP_GIZMO_LOW_SVNT_TRACE(X) ACE_TRACE_IMPL(X) +# include "ace/Trace.h" +#endif /* (BACKUP_GIZMO_LOW_SVNT_NTRACE == 1) */ + +#endif /* BACKUP_GIZMO_LOW_SVNT_EXPORT_H */ + +// End of auto generated file. diff --git a/CIAO/examples/space/Comm/Comm_Component.ccd b/CIAO/examples/space/Comm/Comm_Component.ccd new file mode 100644 index 00000000000..8fe07cf8c42 --- /dev/null +++ b/CIAO/examples/space/Comm/Comm_Component.ccd @@ -0,0 +1,43 @@ +<?xml version="1.0"?> +<!DOCTYPE corbacomponent SYSTEM "corbacomponent.dtd"> + +<corbacomponent> + <corbaversion>3.0</corbaversion> + <componentrepid repid="IDL:SPACE/Comm_Component:1.0"/> + <homerepid repid="IDL:SPACE/Comm_Component_Factory:1.0"/> + <componentkind> + <session> + <servant lifetime="container"/> + </session> + </componentkind> + <threading policy="multithread"/> + <configurationcomplete set="true"/> + + <homefeatures + name="Comm_Component_Factory" + repid="IDL:SPACE/Comm_Component_Factory:1.0"> + </homefeatures> + + <componentfeatures + name="Comm_Component" + repid="IDL:SPACE/Comm_Component:1.0"> + <ports> + <consumes + consumesname="recv_command" + eventtype="IDL:SPACE/Gizmo_Data:1.0"> + <eventpolicy policy="normal"/> + </consumes> + <consumes + consumesname="science_data" + eventtype="IDL:SPACE/Gizmo_Data:1.0"> + <eventpolicy policy="normal"/> + </consumes> + <emits + emitsname="transmit_data" + eventtype="IDL:SPACE/Gizmo_Data:1.0"> + <eventpolicy policy="normal"/> + </emits> + </ports> + </componentfeatures> + +</corbacomponent> diff --git a/CIAO/examples/space/Comm/Comm_Component.cidl b/CIAO/examples/space/Comm/Comm_Component.cidl new file mode 100644 index 00000000000..a966eb535d4 --- /dev/null +++ b/CIAO/examples/space/Comm/Comm_Component.cidl @@ -0,0 +1,20 @@ +// -*- CIDL -*- + +// This file was generated by +// $Id$ + +#ifndef _COMM_COMPONENT_CIDL_ +#define _COMM_COMPONENT_CIDL_ + +#include "Comm_Component.idl" + +composition session Comm_Component +{ + home executor Comm_Component_Factory_Exec + { + implements SPACE::Comm_Component_Factory; + manages Comm_Component_Exec; + }; +}; + +#endif // !defined _COMM_COMPONENT_CIDL_ diff --git a/CIAO/examples/space/Comm/Comm_Component.idl b/CIAO/examples/space/Comm/Comm_Component.idl new file mode 100644 index 00000000000..c1d81bfc885 --- /dev/null +++ b/CIAO/examples/space/Comm/Comm_Component.idl @@ -0,0 +1,26 @@ + +#ifndef COMM_COMPONENT_IDL +#define COMM_COMPONENT_IDL + +#include <Components.idl> +#include "Event_Types.idl" + +module SPACE +{ + component Comm_Component + { + consumes Gizmo_Data recv_command; + + consumes Gizmo_Data science_data; + + emits Gizmo_Data transmit_data; + }; + + home Comm_Component_Factory + manages Comm_Component + { + }; +}; + +#endif // COMM_COMPONENT_IDL + diff --git a/CIAO/examples/space/Comm/Comm_Component.mpc b/CIAO/examples/space/Comm/Comm_Component.mpc new file mode 100644 index 00000000000..b209a5aca56 --- /dev/null +++ b/CIAO/examples/space/Comm/Comm_Component.mpc @@ -0,0 +1,76 @@ +// $Id$ +// This file is generated with "generate_component_mpc.pl Comm_Component" + +project(Comm_Component_stub): ciao_client_dnc { + sharedname = Comm_Component_stub + after += Event_Types_stub + includes += ../common + libs += Event_Types_stub + idlflags += -Wb,stub_export_macro=COMM_COMPONENT_STUB_Export \ + -Wb,stub_export_include=Comm_Component_stub_export.h \ + -Wb,skel_export_macro=COMM_COMPONENT_SVNT_Export \ + -Wb,skel_export_include=Comm_Component_svnt_export.h \ + -I ../common + dynamicflags = COMM_COMPONENT_STUB_BUILD_DLL + + IDL_Files { + Comm_Component.idl + } + + Source_Files { + Comm_ComponentC.cpp + } +} + +project(Comm_Component_svnt) : ciao_servant_dnc { + after += Comm_Component_stub Event_Types_svnt + includes += ../common + sharedname = Comm_Component_svnt + libs += Comm_Component_stub Event_Types_stub Event_Types_svnt + + idlflags += -Wb,export_macro=COMM_COMPONENT_SVNT_Export \ + -Wb,export_include=Comm_Component_svnt_export.h \ + -I ../common + dynamicflags = COMM_COMPONENT_SVNT_BUILD_DLL + + cidlflags -= -- + cidlflags += -I ../common -- + + CIDL_Files { + Comm_Component.cidl + } + + IDL_Files { + Comm_ComponentE.idl + } + + Source_Files { + Comm_ComponentEC.cpp + Comm_ComponentS.cpp + Comm_Component_svnt.cpp + } +} + + +project(Comm_Component_exec) : ciao_component_dnc { + after += Comm_Component_svnt + includes += ../common + sharedname = Comm_Component_exec + libs += Comm_Component_stub \ + Comm_Component_svnt \ + Event_Types_stub \ + Event_Types_svnt + + idlflags += -Wb,export_macro=COMM_COMPONENT_EXEC_Export \ + -Wb,export_include=Comm_Component_exec_export.h + dynamicflags = COMM_COMPONENT_EXEC_BUILD_DLL + + IDL_Files { + + } + + Source_Files { + + Comm_Component_exec.cpp + } +} diff --git a/CIAO/examples/space/Comm/Comm_Component_exec.cpp b/CIAO/examples/space/Comm/Comm_Component_exec.cpp new file mode 100644 index 00000000000..8fd92874fa6 --- /dev/null +++ b/CIAO/examples/space/Comm/Comm_Component_exec.cpp @@ -0,0 +1,166 @@ +#include "Comm_Component_exec.h" +#include "ciao/CIAO_common.h" + +namespace CIDL_Comm_Component +{ + //================================================================== + // Component Executor Implementation Class: Comm_Component_exec_i + //================================================================== + + Comm_Component_exec_i::Comm_Component_exec_i (void) + { + } + + Comm_Component_exec_i::~Comm_Component_exec_i (void) + { + } + + // Supported or inherited operations. + + // Attribute operations. + + // Port operations. + + void + Comm_Component_exec_i::push_recv_command ( + ::SPACE::Gizmo_Data * ev + ACE_ENV_ARG_DECL_NOT_USED) + ACE_THROW_SPEC (( ::CORBA::SystemException)) + { + ACE_DEBUG ((LM_DEBUG, "(%P|%t) Comm-Component: " + "Got health data from %s.\n", ev->sender ())); + // this->context_->push_transmit_data (ev); + } + + void + Comm_Component_exec_i::push_science_data ( + ::SPACE::Gizmo_Data * ev + ACE_ENV_ARG_DECL_NOT_USED) + ACE_THROW_SPEC (( ::CORBA::SystemException)) + { + ACE_DEBUG ((LM_DEBUG, "(%P|%t) Comm-Component: " + "Got science data from %s.\n", ev->sender ())); + // this->context_->push_transmit_data (ev); + + } + + // Operations from Components::SessionComponent + + void + Comm_Component_exec_i::set_session_context ( + ::Components::SessionContext_ptr ctx + ACE_ENV_ARG_DECL) + ACE_THROW_SPEC (( ::CORBA::SystemException, + ::Components::CCMException)) + { + this->context_ = + Comm_Component_Context::_narrow ( + ctx + ACE_ENV_ARG_PARAMETER); + ACE_CHECK; + + if (this->context_ == 0) + { + ACE_THROW ( ::CORBA::INTERNAL ()); + } + } + + void + Comm_Component_exec_i::ciao_preactivate ( + ACE_ENV_SINGLE_ARG_DECL_NOT_USED) + ACE_THROW_SPEC (( ::CORBA::SystemException, + ::Components::CCMException)) + { + // Your code here. + } + + void + Comm_Component_exec_i::ciao_postactivate ( + ACE_ENV_SINGLE_ARG_DECL_NOT_USED) + ACE_THROW_SPEC (( ::CORBA::SystemException, + ::Components::CCMException)) + { + // Your code here. + } + + void + Comm_Component_exec_i::ccm_activate ( + ACE_ENV_SINGLE_ARG_DECL_NOT_USED) + ACE_THROW_SPEC (( ::CORBA::SystemException, + ::Components::CCMException)) + { + // Your code here. + } + + void + Comm_Component_exec_i::ccm_passivate ( + ACE_ENV_SINGLE_ARG_DECL_NOT_USED) + ACE_THROW_SPEC (( ::CORBA::SystemException, + ::Components::CCMException)) + { + // Your code here. + } + + void + Comm_Component_exec_i::ccm_remove ( + ACE_ENV_SINGLE_ARG_DECL_NOT_USED) + ACE_THROW_SPEC (( ::CORBA::SystemException, + ::Components::CCMException)) + { + // Your code here. + } + + //================================================================== + // Home Executor Implementation Class: Comm_Component_Factory_exec_i + //================================================================== + + Comm_Component_Factory_exec_i::Comm_Component_Factory_exec_i (void) + { + } + + Comm_Component_Factory_exec_i::~Comm_Component_Factory_exec_i (void) + { + } + + // Supported or inherited operations. + + // Home operations. + + // Factory and finder operations. + + // Attribute operations. + + // Implicit operations. + + ::Components::EnterpriseComponent_ptr + Comm_Component_Factory_exec_i::create ( + ACE_ENV_SINGLE_ARG_DECL) + ACE_THROW_SPEC (( ::CORBA::SystemException, + ::Components::CCMException)) + { + ::Components::EnterpriseComponent_ptr retval = + ::Components::EnterpriseComponent::_nil (); + + ACE_NEW_THROW_EX ( + retval, + Comm_Component_exec_i, + ::CORBA::NO_MEMORY ()); + ACE_CHECK_RETURN (::Components::EnterpriseComponent::_nil ()); + + return retval; + } + + extern "C" COMM_COMPONENT_EXEC_Export ::Components::HomeExecutorBase_ptr + create_SPACE_Comm_Component_Factory_Impl (void) + { + ::Components::HomeExecutorBase_ptr retval = + ::Components::HomeExecutorBase::_nil (); + + ACE_NEW_RETURN ( + retval, + Comm_Component_Factory_exec_i, + ::Components::HomeExecutorBase::_nil ()); + + return retval; + } +} diff --git a/CIAO/examples/space/Comm/Comm_Component_exec.h b/CIAO/examples/space/Comm/Comm_Component_exec.h new file mode 100644 index 00000000000..5aeeca9f08c --- /dev/null +++ b/CIAO/examples/space/Comm/Comm_Component_exec.h @@ -0,0 +1,145 @@ +// $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_COMM_COMPONENT_EXEC_H +#define CIAO_COMM_COMPONENT_EXEC_H + +#include /**/ "ace/pre.h" + +#include "Comm_Component_svnt.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + +#include "Comm_Component_exec_export.h" +#include "tao/LocalObject.h" + +namespace CIDL_Comm_Component +{ + class COMM_COMPONENT_EXEC_Export Comm_Component_exec_i + : public virtual Comm_Component_Exec, + public virtual TAO_Local_RefCounted_Object + { + public: + Comm_Component_exec_i (void); + virtual ~Comm_Component_exec_i (void); + + // Supported or inherited operations. + + // Attribute operations. + + // Port operations. + + virtual void + push_recv_command ( + ::SPACE::Gizmo_Data *ev + ACE_ENV_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC (( ::CORBA::SystemException)); + + virtual void + push_science_data ( + ::SPACE::Gizmo_Data *ev + ACE_ENV_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC (( ::CORBA::SystemException)); + + // Operations from Components::SessionComponent + + virtual void + set_session_context ( + ::Components::SessionContext_ptr ctx + ACE_ENV_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC (( + ::CORBA::SystemException, + ::Components::CCMException)); + + virtual void + ciao_preactivate ( + ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC (( + ::CORBA::SystemException, + ::Components::CCMException)); + + virtual void + ciao_postactivate ( + ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC (( + ::CORBA::SystemException, + ::Components::CCMException)); + + virtual void + ccm_activate ( + ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC (( + ::CORBA::SystemException, + ::Components::CCMException)); + + virtual void + ccm_passivate ( + ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC (( + ::CORBA::SystemException, + ::Components::CCMException)); + + virtual void + ccm_remove ( + ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC (( + ::CORBA::SystemException, + ::Components::CCMException)); + + protected: + Comm_Component_Context *context_; + }; + + class COMM_COMPONENT_EXEC_Export Comm_Component_Factory_exec_i + : public virtual Comm_Component_Factory_Exec, + public virtual TAO_Local_RefCounted_Object + { + public: + Comm_Component_Factory_exec_i (void); + virtual ~Comm_Component_Factory_exec_i (void); + + // Supported or inherited operations. + + // Home operations. + + // Factory and finder operations. + + // Attribute operations. + + // Implicit operations. + + virtual ::Components::EnterpriseComponent_ptr + create ( + ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC (( + ::CORBA::SystemException, + ::Components::CCMException)); + }; + + extern "C" COMM_COMPONENT_EXEC_Export ::Components::HomeExecutorBase_ptr + create_SPACE_Comm_Component_Factory_Impl (void); +} + +#include /**/ "ace/post.h" + +#endif /* CIAO_COMM_COMPONENT_EXEC_H */ + diff --git a/CIAO/examples/space/Comm/Comm_Component_exec_export.h b/CIAO/examples/space/Comm/Comm_Component_exec_export.h new file mode 100644 index 00000000000..0ea007a59da --- /dev/null +++ b/CIAO/examples/space/Comm/Comm_Component_exec_export.h @@ -0,0 +1,58 @@ + +// -*- C++ -*- +// $Id$ +// Definition for Win32 Export directives. +// This file is generated automatically by generate_export_file.pl COMM_COMPONENT_EXEC +// ------------------------------ +#ifndef COMM_COMPONENT_EXEC_EXPORT_H +#define COMM_COMPONENT_EXEC_EXPORT_H + +#include "ace/config-all.h" + +#if defined (ACE_AS_STATIC_LIBS) && !defined (COMM_COMPONENT_EXEC_HAS_DLL) +# define COMM_COMPONENT_EXEC_HAS_DLL 0 +#endif /* ACE_AS_STATIC_LIBS && COMM_COMPONENT_EXEC_HAS_DLL */ + +#if !defined (COMM_COMPONENT_EXEC_HAS_DLL) +# define COMM_COMPONENT_EXEC_HAS_DLL 1 +#endif /* ! COMM_COMPONENT_EXEC_HAS_DLL */ + +#if defined (COMM_COMPONENT_EXEC_HAS_DLL) && (COMM_COMPONENT_EXEC_HAS_DLL == 1) +# if defined (COMM_COMPONENT_EXEC_BUILD_DLL) +# define COMM_COMPONENT_EXEC_Export ACE_Proper_Export_Flag +# define COMM_COMPONENT_EXEC_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T) +# define COMM_COMPONENT_EXEC_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# else /* COMM_COMPONENT_EXEC_BUILD_DLL */ +# define COMM_COMPONENT_EXEC_Export ACE_Proper_Import_Flag +# define COMM_COMPONENT_EXEC_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T) +# define COMM_COMPONENT_EXEC_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# endif /* COMM_COMPONENT_EXEC_BUILD_DLL */ +#else /* COMM_COMPONENT_EXEC_HAS_DLL == 1 */ +# define COMM_COMPONENT_EXEC_Export +# define COMM_COMPONENT_EXEC_SINGLETON_DECLARATION(T) +# define COMM_COMPONENT_EXEC_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +#endif /* COMM_COMPONENT_EXEC_HAS_DLL == 1 */ + +// Set COMM_COMPONENT_EXEC_NTRACE = 0 to turn on library specific tracing even if +// tracing is turned off for ACE. +#if !defined (COMM_COMPONENT_EXEC_NTRACE) +# if (ACE_NTRACE == 1) +# define COMM_COMPONENT_EXEC_NTRACE 1 +# else /* (ACE_NTRACE == 1) */ +# define COMM_COMPONENT_EXEC_NTRACE 0 +# endif /* (ACE_NTRACE == 1) */ +#endif /* !COMM_COMPONENT_EXEC_NTRACE */ + +#if (COMM_COMPONENT_EXEC_NTRACE == 1) +# define COMM_COMPONENT_EXEC_TRACE(X) +#else /* (COMM_COMPONENT_EXEC_NTRACE == 1) */ +# if !defined (ACE_HAS_TRACE) +# define ACE_HAS_TRACE +# endif /* ACE_HAS_TRACE */ +# define COMM_COMPONENT_EXEC_TRACE(X) ACE_TRACE_IMPL(X) +# include "ace/Trace.h" +#endif /* (COMM_COMPONENT_EXEC_NTRACE == 1) */ + +#endif /* COMM_COMPONENT_EXEC_EXPORT_H */ + +// End of auto generated file. diff --git a/CIAO/examples/space/Comm/Comm_Component_stub_export.h b/CIAO/examples/space/Comm/Comm_Component_stub_export.h new file mode 100644 index 00000000000..b40fee3447e --- /dev/null +++ b/CIAO/examples/space/Comm/Comm_Component_stub_export.h @@ -0,0 +1,58 @@ + +// -*- C++ -*- +// $Id$ +// Definition for Win32 Export directives. +// This file is generated automatically by generate_export_file.pl COMM_COMPONENT_STUB +// ------------------------------ +#ifndef COMM_COMPONENT_STUB_EXPORT_H +#define COMM_COMPONENT_STUB_EXPORT_H + +#include "ace/config-all.h" + +#if defined (ACE_AS_STATIC_LIBS) && !defined (COMM_COMPONENT_STUB_HAS_DLL) +# define COMM_COMPONENT_STUB_HAS_DLL 0 +#endif /* ACE_AS_STATIC_LIBS && COMM_COMPONENT_STUB_HAS_DLL */ + +#if !defined (COMM_COMPONENT_STUB_HAS_DLL) +# define COMM_COMPONENT_STUB_HAS_DLL 1 +#endif /* ! COMM_COMPONENT_STUB_HAS_DLL */ + +#if defined (COMM_COMPONENT_STUB_HAS_DLL) && (COMM_COMPONENT_STUB_HAS_DLL == 1) +# if defined (COMM_COMPONENT_STUB_BUILD_DLL) +# define COMM_COMPONENT_STUB_Export ACE_Proper_Export_Flag +# define COMM_COMPONENT_STUB_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T) +# define COMM_COMPONENT_STUB_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# else /* COMM_COMPONENT_STUB_BUILD_DLL */ +# define COMM_COMPONENT_STUB_Export ACE_Proper_Import_Flag +# define COMM_COMPONENT_STUB_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T) +# define COMM_COMPONENT_STUB_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# endif /* COMM_COMPONENT_STUB_BUILD_DLL */ +#else /* COMM_COMPONENT_STUB_HAS_DLL == 1 */ +# define COMM_COMPONENT_STUB_Export +# define COMM_COMPONENT_STUB_SINGLETON_DECLARATION(T) +# define COMM_COMPONENT_STUB_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +#endif /* COMM_COMPONENT_STUB_HAS_DLL == 1 */ + +// Set COMM_COMPONENT_STUB_NTRACE = 0 to turn on library specific tracing even if +// tracing is turned off for ACE. +#if !defined (COMM_COMPONENT_STUB_NTRACE) +# if (ACE_NTRACE == 1) +# define COMM_COMPONENT_STUB_NTRACE 1 +# else /* (ACE_NTRACE == 1) */ +# define COMM_COMPONENT_STUB_NTRACE 0 +# endif /* (ACE_NTRACE == 1) */ +#endif /* !COMM_COMPONENT_STUB_NTRACE */ + +#if (COMM_COMPONENT_STUB_NTRACE == 1) +# define COMM_COMPONENT_STUB_TRACE(X) +#else /* (COMM_COMPONENT_STUB_NTRACE == 1) */ +# if !defined (ACE_HAS_TRACE) +# define ACE_HAS_TRACE +# endif /* ACE_HAS_TRACE */ +# define COMM_COMPONENT_STUB_TRACE(X) ACE_TRACE_IMPL(X) +# include "ace/Trace.h" +#endif /* (COMM_COMPONENT_STUB_NTRACE == 1) */ + +#endif /* COMM_COMPONENT_STUB_EXPORT_H */ + +// End of auto generated file. diff --git a/CIAO/examples/space/Comm/Comm_Component_svnt_export.h b/CIAO/examples/space/Comm/Comm_Component_svnt_export.h new file mode 100644 index 00000000000..8cf90921d52 --- /dev/null +++ b/CIAO/examples/space/Comm/Comm_Component_svnt_export.h @@ -0,0 +1,58 @@ + +// -*- C++ -*- +// $Id$ +// Definition for Win32 Export directives. +// This file is generated automatically by generate_export_file.pl COMM_COMPONENT_SVNT +// ------------------------------ +#ifndef COMM_COMPONENT_SVNT_EXPORT_H +#define COMM_COMPONENT_SVNT_EXPORT_H + +#include "ace/config-all.h" + +#if defined (ACE_AS_STATIC_LIBS) && !defined (COMM_COMPONENT_SVNT_HAS_DLL) +# define COMM_COMPONENT_SVNT_HAS_DLL 0 +#endif /* ACE_AS_STATIC_LIBS && COMM_COMPONENT_SVNT_HAS_DLL */ + +#if !defined (COMM_COMPONENT_SVNT_HAS_DLL) +# define COMM_COMPONENT_SVNT_HAS_DLL 1 +#endif /* ! COMM_COMPONENT_SVNT_HAS_DLL */ + +#if defined (COMM_COMPONENT_SVNT_HAS_DLL) && (COMM_COMPONENT_SVNT_HAS_DLL == 1) +# if defined (COMM_COMPONENT_SVNT_BUILD_DLL) +# define COMM_COMPONENT_SVNT_Export ACE_Proper_Export_Flag +# define COMM_COMPONENT_SVNT_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T) +# define COMM_COMPONENT_SVNT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# else /* COMM_COMPONENT_SVNT_BUILD_DLL */ +# define COMM_COMPONENT_SVNT_Export ACE_Proper_Import_Flag +# define COMM_COMPONENT_SVNT_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T) +# define COMM_COMPONENT_SVNT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# endif /* COMM_COMPONENT_SVNT_BUILD_DLL */ +#else /* COMM_COMPONENT_SVNT_HAS_DLL == 1 */ +# define COMM_COMPONENT_SVNT_Export +# define COMM_COMPONENT_SVNT_SINGLETON_DECLARATION(T) +# define COMM_COMPONENT_SVNT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +#endif /* COMM_COMPONENT_SVNT_HAS_DLL == 1 */ + +// Set COMM_COMPONENT_SVNT_NTRACE = 0 to turn on library specific tracing even if +// tracing is turned off for ACE. +#if !defined (COMM_COMPONENT_SVNT_NTRACE) +# if (ACE_NTRACE == 1) +# define COMM_COMPONENT_SVNT_NTRACE 1 +# else /* (ACE_NTRACE == 1) */ +# define COMM_COMPONENT_SVNT_NTRACE 0 +# endif /* (ACE_NTRACE == 1) */ +#endif /* !COMM_COMPONENT_SVNT_NTRACE */ + +#if (COMM_COMPONENT_SVNT_NTRACE == 1) +# define COMM_COMPONENT_SVNT_TRACE(X) +#else /* (COMM_COMPONENT_SVNT_NTRACE == 1) */ +# if !defined (ACE_HAS_TRACE) +# define ACE_HAS_TRACE +# endif /* ACE_HAS_TRACE */ +# define COMM_COMPONENT_SVNT_TRACE(X) ACE_TRACE_IMPL(X) +# include "ace/Trace.h" +#endif /* (COMM_COMPONENT_SVNT_NTRACE == 1) */ + +#endif /* COMM_COMPONENT_SVNT_EXPORT_H */ + +// End of auto generated file. diff --git a/CIAO/examples/space/Compression/Compression_Component.ccd b/CIAO/examples/space/Compression/Compression_Component.ccd new file mode 100644 index 00000000000..300afef3a8b --- /dev/null +++ b/CIAO/examples/space/Compression/Compression_Component.ccd @@ -0,0 +1,38 @@ +<?xml version="1.0"?> +<!DOCTYPE corbacomponent SYSTEM "corbacomponent.dtd"> + +<corbacomponent> + <corbaversion>3.0</corbaversion> + <componentrepid repid="IDL:SPACE/Compression_Component:1.0"/> + <homerepid repid="IDL:SPACE/Compression_Component_Factory:1.0"/> + <componentkind> + <session> + <servant lifetime="container"/> + </session> + </componentkind> + <threading policy="multithread"/> + <configurationcomplete set="true"/> + + <homefeatures + name="Compression_Component_Factory" + repid="IDL:SPACE/Compression_Component_Factory:1.0"> + </homefeatures> + + <componentfeatures + name="Compression_Component" + repid="IDL:SPACE/Compression_Component:1.0"> + <ports> + <consumes + consumesname="recv_data" + eventtype="IDL:SPACE/Gizmo_Data:1.0"> + <eventpolicy policy="normal"/> + </consumes> + <emits + emitsname="send_data" + eventtype="IDL:SPACE/Gizmo_Data:1.0"> + <eventpolicy policy="normal"/> + </emits> + </ports> + </componentfeatures> + +</corbacomponent> diff --git a/CIAO/examples/space/Compression/Compression_Component.cidl b/CIAO/examples/space/Compression/Compression_Component.cidl new file mode 100644 index 00000000000..e2e6aa14e37 --- /dev/null +++ b/CIAO/examples/space/Compression/Compression_Component.cidl @@ -0,0 +1,20 @@ +// -*- CIDL -*- + +// This file was generated by +// $Id$ + +#ifndef _COMPRESSION_COMPONENT_CIDL_ +#define _COMPRESSION_COMPONENT_CIDL_ + +#include "Compression_Component.idl" + +composition session Compression_Component +{ + home executor Compression_Component_Factory_Exec + { + implements SPACE::Compression_Component_Factory; + manages Compression_Component_Exec; + }; +}; + +#endif // !defined _COMPRESSION_COMPONENT_CIDL_ diff --git a/CIAO/examples/space/Compression/Compression_Component.idl b/CIAO/examples/space/Compression/Compression_Component.idl new file mode 100644 index 00000000000..76d802985d1 --- /dev/null +++ b/CIAO/examples/space/Compression/Compression_Component.idl @@ -0,0 +1,24 @@ + +#ifndef COMPRESSION_COMPONENT_IDL +#define COMPRESSION_COMPONENT_IDL + +#include <Components.idl> +#include "Event_Types.idl" + +module SPACE +{ + component Compression_Component + { + consumes Gizmo_Data recv_data; + + emits Gizmo_Data send_data; + }; + + home Compression_Component_Factory + manages Compression_Component + { + }; +}; + +#endif // COMPRESSION_COMPONENT_IDL + diff --git a/CIAO/examples/space/Compression/Compression_Component.mpc b/CIAO/examples/space/Compression/Compression_Component.mpc new file mode 100644 index 00000000000..7d1b35e1806 --- /dev/null +++ b/CIAO/examples/space/Compression/Compression_Component.mpc @@ -0,0 +1,77 @@ +// $Id$ +// This file is generated with "generate_component_mpc.pl Compression_Component" + +project(Compression_Component_stub): ciao_client_dnc { + + after += Event_Types_stub + includes += ../common + sharedname = Compression_Component_stub + libs += Event_Types_stub + idlflags += -Wb,stub_export_macro=COMPRESSION_COMPONENT_STUB_Export \ + -Wb,stub_export_include=Compression_Component_stub_export.h \ + -Wb,skel_export_macro=COMPRESSION_COMPONENT_SVNT_Export \ + -Wb,skel_export_include=Compression_Component_svnt_export.h \ + -I ../common + dynamicflags = COMPRESSION_COMPONENT_STUB_BUILD_DLL + + IDL_Files { + Compression_Component.idl + } + + Source_Files { + Compression_ComponentC.cpp + } +} + +project(Compression_Component_svnt) : ciao_servant_dnc { + after += Compression_Component_stub Event_Types_svnt + includes += ../common + sharedname = Compression_Component_svnt + libs += Compression_Component_stub Event_Types_stub Event_Types_svnt + + idlflags += -Wb,export_macro=COMPRESSION_COMPONENT_SVNT_Export \ + -Wb,export_include=Compression_Component_svnt_export.h \ + -I ../common + dynamicflags = COMPRESSION_COMPONENT_SVNT_BUILD_DLL + + cidlflags -= -- + cidlflags += -I ../common -- + + CIDL_Files { + Compression_Component.cidl + } + + IDL_Files { + Compression_ComponentE.idl + } + + Source_Files { + Compression_ComponentEC.cpp + Compression_ComponentS.cpp + Compression_Component_svnt.cpp + } +} + + +project(Compression_Component_exec) : ciao_component_dnc { + after += Compression_Component_svnt + sharedname = Compression_Component_exec + includes += ../common + libs += Compression_Component_stub \ + Compression_Component_svnt \ + Event_Types_stub \ + Event_Types_svnt + + idlflags += -Wb,export_macro=COMPRESSION_COMPONENT_EXEC_Export \ + -Wb,export_include=Compression_Component_exec_export.h + dynamicflags = COMPRESSION_COMPONENT_EXEC_BUILD_DLL + + IDL_Files { + + } + + Source_Files { + + Compression_Component_exec.cpp + } +} diff --git a/CIAO/examples/space/Compression/Compression_Component_exec.cpp b/CIAO/examples/space/Compression/Compression_Component_exec.cpp new file mode 100644 index 00000000000..c2c1d9ed048 --- /dev/null +++ b/CIAO/examples/space/Compression/Compression_Component_exec.cpp @@ -0,0 +1,185 @@ +// $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 "Compression_Component_exec.h" +#include "ciao/CIAO_common.h" + +namespace CIDL_Compression_Component +{ + //================================================================== + // Component Executor Implementation Class: Compression_Component_exec_i + //================================================================== + + Compression_Component_exec_i::Compression_Component_exec_i (void) + { + } + + Compression_Component_exec_i::~Compression_Component_exec_i (void) + { + } + + // Supported or inherited operations. + + // Attribute operations. + + // Port operations. + + void + Compression_Component_exec_i::push_recv_data ( + ::SPACE::Gizmo_Data * ev + ACE_ENV_ARG_DECL_NOT_USED) + ACE_THROW_SPEC (( ::CORBA::SystemException)) + { + ACE_DEBUG ((LM_DEBUG, "(%P|%t) Compression-Component: " + "Got science data from %s.\n", ev->sender ())); + + CORBA::Long iterations = ev->data (); + + // ACE_DEBUG ((LM_DEBUG, "\r\n THe ev data is %d\n", iterations)); + + for (CORBA::Long i = 0;i < ev->data ();i++) + { + ACE::is_prime (16127, 2, 16127 / 2); + } + + this->context_->push_send_data (ev); + + } + + // Operations from Components::SessionComponent + + void + Compression_Component_exec_i::set_session_context ( + ::Components::SessionContext_ptr ctx + ACE_ENV_ARG_DECL) + ACE_THROW_SPEC (( ::CORBA::SystemException, + ::Components::CCMException)) + { + this->context_ = + Compression_Component_Context::_narrow ( + ctx + ACE_ENV_ARG_PARAMETER); + ACE_CHECK; + + if (this->context_ == 0) + { + ACE_THROW ( ::CORBA::INTERNAL ()); + } + } + + void + Compression_Component_exec_i::ciao_preactivate ( + ACE_ENV_SINGLE_ARG_DECL_NOT_USED) + ACE_THROW_SPEC (( ::CORBA::SystemException, + ::Components::CCMException)) + { + // Your code here. + } + + void + Compression_Component_exec_i::ciao_postactivate ( + ACE_ENV_SINGLE_ARG_DECL_NOT_USED) + ACE_THROW_SPEC (( ::CORBA::SystemException, + ::Components::CCMException)) + { + // Your code here. + } + + void + Compression_Component_exec_i::ccm_activate ( + ACE_ENV_SINGLE_ARG_DECL_NOT_USED) + ACE_THROW_SPEC (( ::CORBA::SystemException, + ::Components::CCMException)) + { + // Your code here. + } + + void + Compression_Component_exec_i::ccm_passivate ( + ACE_ENV_SINGLE_ARG_DECL_NOT_USED) + ACE_THROW_SPEC (( ::CORBA::SystemException, + ::Components::CCMException)) + { + // Your code here. + } + + void + Compression_Component_exec_i::ccm_remove ( + ACE_ENV_SINGLE_ARG_DECL_NOT_USED) + ACE_THROW_SPEC (( ::CORBA::SystemException, + ::Components::CCMException)) + { + // Your code here. + } + + //================================================================== + // Home Executor Implementation Class: Compression_Component_Factory_exec_i + //================================================================== + + Compression_Component_Factory_exec_i::Compression_Component_Factory_exec_i (void) + { + } + + Compression_Component_Factory_exec_i::~Compression_Component_Factory_exec_i (void) + { + } + + // Supported or inherited operations. + + // Home operations. + + // Factory and finder operations. + + // Attribute operations. + + // Implicit operations. + + ::Components::EnterpriseComponent_ptr + Compression_Component_Factory_exec_i::create ( + ACE_ENV_SINGLE_ARG_DECL) + ACE_THROW_SPEC (( ::CORBA::SystemException, + ::Components::CCMException)) + { + ::Components::EnterpriseComponent_ptr retval = + ::Components::EnterpriseComponent::_nil (); + + ACE_NEW_THROW_EX ( + retval, + Compression_Component_exec_i, + ::CORBA::NO_MEMORY ()); + ACE_CHECK_RETURN (::Components::EnterpriseComponent::_nil ()); + + return retval; + } + + extern "C" COMPRESSION_COMPONENT_EXEC_Export ::Components::HomeExecutorBase_ptr + create_SPACE_Compression_Component_Factory_Impl (void) + { + ::Components::HomeExecutorBase_ptr retval = + ::Components::HomeExecutorBase::_nil (); + + ACE_NEW_RETURN ( + retval, + Compression_Component_Factory_exec_i, + ::Components::HomeExecutorBase::_nil ()); + + return retval; + } +} diff --git a/CIAO/examples/space/Compression/Compression_Component_exec.h b/CIAO/examples/space/Compression/Compression_Component_exec.h new file mode 100644 index 00000000000..fc4eef7c745 --- /dev/null +++ b/CIAO/examples/space/Compression/Compression_Component_exec.h @@ -0,0 +1,139 @@ +// $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_COMPRESSION_COMPONENT_EXEC_H +#define CIAO_COMPRESSION_COMPONENT_EXEC_H + +#include /**/ "ace/pre.h" + +#include "Compression_Component_svnt.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + +#include "Compression_Component_exec_export.h" +#include "tao/LocalObject.h" + +namespace CIDL_Compression_Component +{ + class COMPRESSION_COMPONENT_EXEC_Export Compression_Component_exec_i + : public virtual Compression_Component_Exec, + public virtual TAO_Local_RefCounted_Object + { + public: + Compression_Component_exec_i (void); + virtual ~Compression_Component_exec_i (void); + + // Supported or inherited operations. + + // Attribute operations. + + // Port operations. + + virtual void + push_recv_data ( + ::SPACE::Gizmo_Data *ev + ACE_ENV_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC (( ::CORBA::SystemException)); + + // Operations from Components::SessionComponent + + virtual void + set_session_context ( + ::Components::SessionContext_ptr ctx + ACE_ENV_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC (( + ::CORBA::SystemException, + ::Components::CCMException)); + + virtual void + ciao_preactivate ( + ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC (( + ::CORBA::SystemException, + ::Components::CCMException)); + + virtual void + ciao_postactivate ( + ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC (( + ::CORBA::SystemException, + ::Components::CCMException)); + + virtual void + ccm_activate ( + ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC (( + ::CORBA::SystemException, + ::Components::CCMException)); + + virtual void + ccm_passivate ( + ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC (( + ::CORBA::SystemException, + ::Components::CCMException)); + + virtual void + ccm_remove ( + ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC (( + ::CORBA::SystemException, + ::Components::CCMException)); + + protected: + Compression_Component_Context *context_; + }; + + class COMPRESSION_COMPONENT_EXEC_Export Compression_Component_Factory_exec_i + : public virtual Compression_Component_Factory_Exec, + public virtual TAO_Local_RefCounted_Object + { + public: + Compression_Component_Factory_exec_i (void); + virtual ~Compression_Component_Factory_exec_i (void); + + // Supported or inherited operations. + + // Home operations. + + // Factory and finder operations. + + // Attribute operations. + + // Implicit operations. + + virtual ::Components::EnterpriseComponent_ptr + create ( + ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC (( + ::CORBA::SystemException, + ::Components::CCMException)); + }; + + extern "C" COMPRESSION_COMPONENT_EXEC_Export ::Components::HomeExecutorBase_ptr + create_SPACE_Compression_Component_Factory_Impl (void); +} + +#include /**/ "ace/post.h" + +#endif /* CIAO_COMPRESSION_COMPONENT_EXEC_H */ + diff --git a/CIAO/examples/space/Compression/Compression_Component_exec_export.h b/CIAO/examples/space/Compression/Compression_Component_exec_export.h new file mode 100644 index 00000000000..9e7ad094ef7 --- /dev/null +++ b/CIAO/examples/space/Compression/Compression_Component_exec_export.h @@ -0,0 +1,58 @@ + +// -*- C++ -*- +// $Id$ +// Definition for Win32 Export directives. +// This file is generated automatically by generate_export_file.pl COMPRESSION_COMPONENT_EXEC +// ------------------------------ +#ifndef COMPRESSION_COMPONENT_EXEC_EXPORT_H +#define COMPRESSION_COMPONENT_EXEC_EXPORT_H + +#include "ace/config-all.h" + +#if defined (ACE_AS_STATIC_LIBS) && !defined (COMPRESSION_COMPONENT_EXEC_HAS_DLL) +# define COMPRESSION_COMPONENT_EXEC_HAS_DLL 0 +#endif /* ACE_AS_STATIC_LIBS && COMPRESSION_COMPONENT_EXEC_HAS_DLL */ + +#if !defined (COMPRESSION_COMPONENT_EXEC_HAS_DLL) +# define COMPRESSION_COMPONENT_EXEC_HAS_DLL 1 +#endif /* ! COMPRESSION_COMPONENT_EXEC_HAS_DLL */ + +#if defined (COMPRESSION_COMPONENT_EXEC_HAS_DLL) && (COMPRESSION_COMPONENT_EXEC_HAS_DLL == 1) +# if defined (COMPRESSION_COMPONENT_EXEC_BUILD_DLL) +# define COMPRESSION_COMPONENT_EXEC_Export ACE_Proper_Export_Flag +# define COMPRESSION_COMPONENT_EXEC_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T) +# define COMPRESSION_COMPONENT_EXEC_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# else /* COMPRESSION_COMPONENT_EXEC_BUILD_DLL */ +# define COMPRESSION_COMPONENT_EXEC_Export ACE_Proper_Import_Flag +# define COMPRESSION_COMPONENT_EXEC_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T) +# define COMPRESSION_COMPONENT_EXEC_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# endif /* COMPRESSION_COMPONENT_EXEC_BUILD_DLL */ +#else /* COMPRESSION_COMPONENT_EXEC_HAS_DLL == 1 */ +# define COMPRESSION_COMPONENT_EXEC_Export +# define COMPRESSION_COMPONENT_EXEC_SINGLETON_DECLARATION(T) +# define COMPRESSION_COMPONENT_EXEC_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +#endif /* COMPRESSION_COMPONENT_EXEC_HAS_DLL == 1 */ + +// Set COMPRESSION_COMPONENT_EXEC_NTRACE = 0 to turn on library specific tracing even if +// tracing is turned off for ACE. +#if !defined (COMPRESSION_COMPONENT_EXEC_NTRACE) +# if (ACE_NTRACE == 1) +# define COMPRESSION_COMPONENT_EXEC_NTRACE 1 +# else /* (ACE_NTRACE == 1) */ +# define COMPRESSION_COMPONENT_EXEC_NTRACE 0 +# endif /* (ACE_NTRACE == 1) */ +#endif /* !COMPRESSION_COMPONENT_EXEC_NTRACE */ + +#if (COMPRESSION_COMPONENT_EXEC_NTRACE == 1) +# define COMPRESSION_COMPONENT_EXEC_TRACE(X) +#else /* (COMPRESSION_COMPONENT_EXEC_NTRACE == 1) */ +# if !defined (ACE_HAS_TRACE) +# define ACE_HAS_TRACE +# endif /* ACE_HAS_TRACE */ +# define COMPRESSION_COMPONENT_EXEC_TRACE(X) ACE_TRACE_IMPL(X) +# include "ace/Trace.h" +#endif /* (COMPRESSION_COMPONENT_EXEC_NTRACE == 1) */ + +#endif /* COMPRESSION_COMPONENT_EXEC_EXPORT_H */ + +// End of auto generated file. diff --git a/CIAO/examples/space/Compression/Compression_Component_stub_export.h b/CIAO/examples/space/Compression/Compression_Component_stub_export.h new file mode 100644 index 00000000000..a7b45afd474 --- /dev/null +++ b/CIAO/examples/space/Compression/Compression_Component_stub_export.h @@ -0,0 +1,58 @@ + +// -*- C++ -*- +// $Id$ +// Definition for Win32 Export directives. +// This file is generated automatically by generate_export_file.pl COMPRESSION_COMPONENT_STUB +// ------------------------------ +#ifndef COMPRESSION_COMPONENT_STUB_EXPORT_H +#define COMPRESSION_COMPONENT_STUB_EXPORT_H + +#include "ace/config-all.h" + +#if defined (ACE_AS_STATIC_LIBS) && !defined (COMPRESSION_COMPONENT_STUB_HAS_DLL) +# define COMPRESSION_COMPONENT_STUB_HAS_DLL 0 +#endif /* ACE_AS_STATIC_LIBS && COMPRESSION_COMPONENT_STUB_HAS_DLL */ + +#if !defined (COMPRESSION_COMPONENT_STUB_HAS_DLL) +# define COMPRESSION_COMPONENT_STUB_HAS_DLL 1 +#endif /* ! COMPRESSION_COMPONENT_STUB_HAS_DLL */ + +#if defined (COMPRESSION_COMPONENT_STUB_HAS_DLL) && (COMPRESSION_COMPONENT_STUB_HAS_DLL == 1) +# if defined (COMPRESSION_COMPONENT_STUB_BUILD_DLL) +# define COMPRESSION_COMPONENT_STUB_Export ACE_Proper_Export_Flag +# define COMPRESSION_COMPONENT_STUB_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T) +# define COMPRESSION_COMPONENT_STUB_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# else /* COMPRESSION_COMPONENT_STUB_BUILD_DLL */ +# define COMPRESSION_COMPONENT_STUB_Export ACE_Proper_Import_Flag +# define COMPRESSION_COMPONENT_STUB_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T) +# define COMPRESSION_COMPONENT_STUB_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# endif /* COMPRESSION_COMPONENT_STUB_BUILD_DLL */ +#else /* COMPRESSION_COMPONENT_STUB_HAS_DLL == 1 */ +# define COMPRESSION_COMPONENT_STUB_Export +# define COMPRESSION_COMPONENT_STUB_SINGLETON_DECLARATION(T) +# define COMPRESSION_COMPONENT_STUB_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +#endif /* COMPRESSION_COMPONENT_STUB_HAS_DLL == 1 */ + +// Set COMPRESSION_COMPONENT_STUB_NTRACE = 0 to turn on library specific tracing even if +// tracing is turned off for ACE. +#if !defined (COMPRESSION_COMPONENT_STUB_NTRACE) +# if (ACE_NTRACE == 1) +# define COMPRESSION_COMPONENT_STUB_NTRACE 1 +# else /* (ACE_NTRACE == 1) */ +# define COMPRESSION_COMPONENT_STUB_NTRACE 0 +# endif /* (ACE_NTRACE == 1) */ +#endif /* !COMPRESSION_COMPONENT_STUB_NTRACE */ + +#if (COMPRESSION_COMPONENT_STUB_NTRACE == 1) +# define COMPRESSION_COMPONENT_STUB_TRACE(X) +#else /* (COMPRESSION_COMPONENT_STUB_NTRACE == 1) */ +# if !defined (ACE_HAS_TRACE) +# define ACE_HAS_TRACE +# endif /* ACE_HAS_TRACE */ +# define COMPRESSION_COMPONENT_STUB_TRACE(X) ACE_TRACE_IMPL(X) +# include "ace/Trace.h" +#endif /* (COMPRESSION_COMPONENT_STUB_NTRACE == 1) */ + +#endif /* COMPRESSION_COMPONENT_STUB_EXPORT_H */ + +// End of auto generated file. diff --git a/CIAO/examples/space/Compression/Compression_Component_svnt_export.h b/CIAO/examples/space/Compression/Compression_Component_svnt_export.h new file mode 100644 index 00000000000..57e43c4b6bf --- /dev/null +++ b/CIAO/examples/space/Compression/Compression_Component_svnt_export.h @@ -0,0 +1,58 @@ + +// -*- C++ -*- +// $Id$ +// Definition for Win32 Export directives. +// This file is generated automatically by generate_export_file.pl COMPRESSION_COMPONENT_SVNT +// ------------------------------ +#ifndef COMPRESSION_COMPONENT_SVNT_EXPORT_H +#define COMPRESSION_COMPONENT_SVNT_EXPORT_H + +#include "ace/config-all.h" + +#if defined (ACE_AS_STATIC_LIBS) && !defined (COMPRESSION_COMPONENT_SVNT_HAS_DLL) +# define COMPRESSION_COMPONENT_SVNT_HAS_DLL 0 +#endif /* ACE_AS_STATIC_LIBS && COMPRESSION_COMPONENT_SVNT_HAS_DLL */ + +#if !defined (COMPRESSION_COMPONENT_SVNT_HAS_DLL) +# define COMPRESSION_COMPONENT_SVNT_HAS_DLL 1 +#endif /* ! COMPRESSION_COMPONENT_SVNT_HAS_DLL */ + +#if defined (COMPRESSION_COMPONENT_SVNT_HAS_DLL) && (COMPRESSION_COMPONENT_SVNT_HAS_DLL == 1) +# if defined (COMPRESSION_COMPONENT_SVNT_BUILD_DLL) +# define COMPRESSION_COMPONENT_SVNT_Export ACE_Proper_Export_Flag +# define COMPRESSION_COMPONENT_SVNT_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T) +# define COMPRESSION_COMPONENT_SVNT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# else /* COMPRESSION_COMPONENT_SVNT_BUILD_DLL */ +# define COMPRESSION_COMPONENT_SVNT_Export ACE_Proper_Import_Flag +# define COMPRESSION_COMPONENT_SVNT_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T) +# define COMPRESSION_COMPONENT_SVNT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# endif /* COMPRESSION_COMPONENT_SVNT_BUILD_DLL */ +#else /* COMPRESSION_COMPONENT_SVNT_HAS_DLL == 1 */ +# define COMPRESSION_COMPONENT_SVNT_Export +# define COMPRESSION_COMPONENT_SVNT_SINGLETON_DECLARATION(T) +# define COMPRESSION_COMPONENT_SVNT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +#endif /* COMPRESSION_COMPONENT_SVNT_HAS_DLL == 1 */ + +// Set COMPRESSION_COMPONENT_SVNT_NTRACE = 0 to turn on library specific tracing even if +// tracing is turned off for ACE. +#if !defined (COMPRESSION_COMPONENT_SVNT_NTRACE) +# if (ACE_NTRACE == 1) +# define COMPRESSION_COMPONENT_SVNT_NTRACE 1 +# else /* (ACE_NTRACE == 1) */ +# define COMPRESSION_COMPONENT_SVNT_NTRACE 0 +# endif /* (ACE_NTRACE == 1) */ +#endif /* !COMPRESSION_COMPONENT_SVNT_NTRACE */ + +#if (COMPRESSION_COMPONENT_SVNT_NTRACE == 1) +# define COMPRESSION_COMPONENT_SVNT_TRACE(X) +#else /* (COMPRESSION_COMPONENT_SVNT_NTRACE == 1) */ +# if !defined (ACE_HAS_TRACE) +# define ACE_HAS_TRACE +# endif /* ACE_HAS_TRACE */ +# define COMPRESSION_COMPONENT_SVNT_TRACE(X) ACE_TRACE_IMPL(X) +# include "ace/Trace.h" +#endif /* (COMPRESSION_COMPONENT_SVNT_NTRACE == 1) */ + +#endif /* COMPRESSION_COMPONENT_SVNT_EXPORT_H */ + +// End of auto generated file. diff --git a/CIAO/examples/space/Exec/Exec_Component.ccd b/CIAO/examples/space/Exec/Exec_Component.ccd new file mode 100644 index 00000000000..d5d2bd7083d --- /dev/null +++ b/CIAO/examples/space/Exec/Exec_Component.ccd @@ -0,0 +1,33 @@ +<?xml version="1.0"?> +<!DOCTYPE corbacomponent SYSTEM "corbacomponent.dtd"> + +<corbacomponent> + <corbaversion>3.0</corbaversion> + <componentrepid repid="IDL:SPACE/Exec_Component:1.0"/> + <homerepid repid="IDL:SPACE/Exec_Component_Factory:1.0"/> + <componentkind> + <session> + <servant lifetime="container"/> + </session> + </componentkind> + <threading policy="multithread"/> + <configurationcomplete set="true"/> + + <homefeatures + name="Exec_Component_Factory" + repid="IDL:SPACE/Exec_Component_Factory:1.0"> + </homefeatures> + + <componentfeatures + name="Exec_Component" + repid="IDL:SPACE/Exec_Component:1.0"> + <ports> + <emits + emitsname="send_command" + eventtype="IDL:SPACE/Gizmo_Data:1.0"> + <eventpolicy policy="normal"/> + </emits> + </ports> + </componentfeatures> + +</corbacomponent> diff --git a/CIAO/examples/space/Exec/Exec_Component.cidl b/CIAO/examples/space/Exec/Exec_Component.cidl new file mode 100644 index 00000000000..b2a495cd4fd --- /dev/null +++ b/CIAO/examples/space/Exec/Exec_Component.cidl @@ -0,0 +1,20 @@ +// -*- CIDL -*- + +// This file was generated by +// $Id$ + +#ifndef _EXEC_COMPONENT_CIDL_ +#define _EXEC_COMPONENT_CIDL_ + +#include "Exec_Component.idl" + +composition session Exec_Component +{ + home executor Exec_Component_Factory_Exec + { + implements SPACE::Exec_Component_Factory; + manages Exec_Component_Exec; + }; +}; + +#endif // !defined _EXEC_COMPONENT_CIDL_ diff --git a/CIAO/examples/space/Exec/Exec_Component.idl b/CIAO/examples/space/Exec/Exec_Component.idl new file mode 100644 index 00000000000..c4425cce2b7 --- /dev/null +++ b/CIAO/examples/space/Exec/Exec_Component.idl @@ -0,0 +1,20 @@ +#ifndef EXEC_COMPONENT_IDL +#define EXEC_COMPONENT_IDL + +#include <Components.idl> +#include "Event_Types.idl" + +module SPACE +{ + component Exec_Component + { + emits Gizmo_Data send_command; + }; + + home Exec_Component_Factory + manages Exec_Component + { + }; +}; + +#endif // EXEC_COMPONENT_IDL diff --git a/CIAO/examples/space/Exec/Exec_Component.mpc b/CIAO/examples/space/Exec/Exec_Component.mpc new file mode 100644 index 00000000000..d266998c01f --- /dev/null +++ b/CIAO/examples/space/Exec/Exec_Component.mpc @@ -0,0 +1,79 @@ +// $Id$ +// This file is generated with "generate_component_mpc.pl Exec_Component" + +project(Exec_Component_stub): ciao_client_dnc { + + after += Event_Types_stub + includes += ../common + libs += Event_Types_stub + sharedname = Exec_Component_stub + idlflags += -Wb,stub_export_macro=EXEC_COMPONENT_STUB_Export \ + -Wb,stub_export_include=Exec_Component_stub_export.h \ + -Wb,skel_export_macro=EXEC_COMPONENT_SVNT_Export \ + -Wb,skel_export_include=Exec_Component_svnt_export.h \ + -I ../common + dynamicflags = EXEC_COMPONENT_STUB_BUILD_DLL + + + IDL_Files { + Exec_Component.idl + } + + Source_Files { + Exec_ComponentC.cpp + } +} + +project(Exec_Component_svnt) : ciao_servant_dnc { + after += Exec_Component_stub Event_Types_svnt + sharedname = Exec_Component_svnt + libs += Exec_Component_stub Event_Types_stub Event_Types_svnt + includes += ../common + + idlflags += -Wb,export_macro=EXEC_COMPONENT_SVNT_Export \ + -Wb,export_include=Exec_Component_svnt_export.h \ + -I ../common + dynamicflags = EXEC_COMPONENT_SVNT_BUILD_DLL + + cidlflags -= -- + cidlflags += -I ../common -- + + CIDL_Files { + Exec_Component.cidl + } + + IDL_Files { + Exec_ComponentE.idl + } + + Source_Files { + Exec_ComponentEC.cpp + Exec_ComponentS.cpp + Exec_Component_svnt.cpp + } +} + + +project(Exec_Component_exec) : ciao_component_dnc { + includes += ../common + after += Exec_Component_svnt + sharedname = Exec_Component_exec + libs += Exec_Component_stub \ + Exec_Component_svnt \ + Event_Types_stub \ + Event_Types_svnt + + + idlflags += -Wb,export_macro=EXEC_COMPONENT_EXEC_Export \ + -Wb,export_include=Exec_Component_exec_export.h + dynamicflags = EXEC_COMPONENT_EXEC_BUILD_DLL + + IDL_Files { + + } + + Source_Files { + + Exec_Component_exec.cpp + } +} diff --git a/CIAO/examples/space/Exec/Exec_Component_exec.cpp b/CIAO/examples/space/Exec/Exec_Component_exec.cpp new file mode 100644 index 00000000000..1b90b6e18bd --- /dev/null +++ b/CIAO/examples/space/Exec/Exec_Component_exec.cpp @@ -0,0 +1,170 @@ +#include "Exec_Component_exec.h" +#include "ciao/CIAO_common.h" +#include "tao/ORB_Core.h" +#include "ace/Reactor.h" +#include "ace/Time_Value.h" +#include "ace/Thread.h" + +namespace CIDL_Exec_Component +{ + //================================================================== + // Component Executor Implementation Class: Exec_Component_exec_i + //================================================================== + + Exec_Component_exec_i::Exec_Component_exec_i (void) + { + } + + Exec_Component_exec_i::~Exec_Component_exec_i (void) + { + } + + int + Exec_Component_exec_i::handle_timeout (const ACE_Time_Value &, + const void *) + { + + ::SPACE::Gizmo_Data_var ev = new OBV_SPACE::Gizmo_Data; + ev->sender ("Exec-Agent"); + this->context_->push_send_command (ev); + return 0; + + } + + + // Supported or inherited operations. + + // Attribute operations. + + // Port operations. + + // Operations from Components::SessionComponent + + void + Exec_Component_exec_i::set_session_context ( + ::Components::SessionContext_ptr ctx + ACE_ENV_ARG_DECL) + ACE_THROW_SPEC (( ::CORBA::SystemException, + ::Components::CCMException)) + { + this->context_ = + Exec_Component_Context::_narrow ( + ctx + ACE_ENV_ARG_PARAMETER); + ACE_CHECK; + + if (this->context_ == 0) + { + ACE_THROW ( ::CORBA::INTERNAL ()); + } + } + + void + Exec_Component_exec_i::ciao_preactivate ( + ACE_ENV_SINGLE_ARG_DECL_NOT_USED) + ACE_THROW_SPEC (( ::CORBA::SystemException, + ::Components::CCMException)) + { + // Your code here. + } + + void + Exec_Component_exec_i::ciao_postactivate ( + ACE_ENV_SINGLE_ARG_DECL_NOT_USED) + ACE_THROW_SPEC (( ::CORBA::SystemException, + ::Components::CCMException)) + { + ACE_Reactor *reactor = + this->context_->_ciao_the_Container ()->the_ORB ()->orb_core ()->reactor (); + ACE_Time_Value interval (10); + + reactor->owner (ACE_Thread::self ()); + if (reactor->schedule_timer (this, this, interval, interval) < 0) + { + ACE_ERROR ((LM_ERROR, "Exec-Agent: Error will registering " + "periodic task!\n")); + } + } + + + void + Exec_Component_exec_i::ccm_activate ( + ACE_ENV_SINGLE_ARG_DECL_NOT_USED) + ACE_THROW_SPEC (( ::CORBA::SystemException, + ::Components::CCMException)) + { + // Your code here. + } + + void + Exec_Component_exec_i::ccm_passivate ( + ACE_ENV_SINGLE_ARG_DECL_NOT_USED) + ACE_THROW_SPEC (( ::CORBA::SystemException, + ::Components::CCMException)) + { + // Your code here. + } + + void + Exec_Component_exec_i::ccm_remove ( + ACE_ENV_SINGLE_ARG_DECL_NOT_USED) + ACE_THROW_SPEC (( ::CORBA::SystemException, + ::Components::CCMException)) + { + // Your code here. + } + + //================================================================== + // Home Executor Implementation Class: Exec_Component_Factory_exec_i + //================================================================== + + Exec_Component_Factory_exec_i::Exec_Component_Factory_exec_i (void) + { + } + + Exec_Component_Factory_exec_i::~Exec_Component_Factory_exec_i (void) + { + } + + // Supported or inherited operations. + + // Home operations. + + // Factory and finder operations. + + // Attribute operations. + + // Implicit operations. + + ::Components::EnterpriseComponent_ptr + Exec_Component_Factory_exec_i::create ( + ACE_ENV_SINGLE_ARG_DECL) + ACE_THROW_SPEC (( ::CORBA::SystemException, + ::Components::CCMException)) + { + ::Components::EnterpriseComponent_ptr retval = + ::Components::EnterpriseComponent::_nil (); + + ACE_NEW_THROW_EX ( + retval, + Exec_Component_exec_i, + ::CORBA::NO_MEMORY ()); + ACE_CHECK_RETURN (::Components::EnterpriseComponent::_nil ()); + + return retval; + } + + extern "C" EXEC_COMPONENT_EXEC_Export ::Components::HomeExecutorBase_ptr + create_SPACE_Exec_Component_Factory_Impl (void) + { + ::Components::HomeExecutorBase_ptr retval = + ::Components::HomeExecutorBase::_nil (); + + ACE_NEW_RETURN ( + retval, + Exec_Component_Factory_exec_i, + ::Components::HomeExecutorBase::_nil ()); + + return retval; + } +} diff --git a/CIAO/examples/space/Exec/Exec_Component_exec.h b/CIAO/examples/space/Exec/Exec_Component_exec.h new file mode 100644 index 00000000000..08240737be3 --- /dev/null +++ b/CIAO/examples/space/Exec/Exec_Component_exec.h @@ -0,0 +1,109 @@ +#ifndef CIAO_EXEC_COMPONENT_EXEC_H +#define CIAO_EXEC_COMPONENT_EXEC_H + +#include /**/ "ace/pre.h" + +#include "Exec_Component_svnt.h" +#include "ace/Event_Handler.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + +#include "Exec_Component_exec_export.h" +#include "tao/LocalObject.h" + +namespace CIDL_Exec_Component +{ + class EXEC_COMPONENT_EXEC_Export Exec_Component_exec_i + : public virtual Exec_Component_Exec, + public virtual TAO_Local_RefCounted_Object, + public virtual ACE_Event_Handler + { + public: + Exec_Component_exec_i (void); + virtual ~Exec_Component_exec_i (void); + + virtual int handle_timeout (const ACE_Time_Value &, + const void *ref); + + virtual void + set_session_context ( + ::Components::SessionContext_ptr ctx + ACE_ENV_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC (( + ::CORBA::SystemException, + ::Components::CCMException)); + + virtual void + ciao_preactivate ( + ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC (( + ::CORBA::SystemException, + ::Components::CCMException)); + + virtual void + ciao_postactivate ( + ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC (( + ::CORBA::SystemException, + ::Components::CCMException)); + + virtual void + ccm_activate ( + ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC (( + ::CORBA::SystemException, + ::Components::CCMException)); + + virtual void + ccm_passivate ( + ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC (( + ::CORBA::SystemException, + ::Components::CCMException)); + + virtual void + ccm_remove ( + ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC (( + ::CORBA::SystemException, + ::Components::CCMException)); + + protected: + Exec_Component_Context *context_; + }; + + class EXEC_COMPONENT_EXEC_Export Exec_Component_Factory_exec_i + : public virtual Exec_Component_Factory_Exec, + public virtual TAO_Local_RefCounted_Object + { + public: + Exec_Component_Factory_exec_i (void); + virtual ~Exec_Component_Factory_exec_i (void); + + // Supported or inherited operations. + + // Home operations. + + // Factory and finder operations. + + // Attribute operations. + + // Implicit operations. + + virtual ::Components::EnterpriseComponent_ptr + create ( + ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC (( + ::CORBA::SystemException, + ::Components::CCMException)); + }; + + extern "C" EXEC_COMPONENT_EXEC_Export ::Components::HomeExecutorBase_ptr + create_SPACE_Exec_Component_Factory_Impl (void); +} + +#include /**/ "ace/post.h" + +#endif /* CIAO_EXEC_COMPONENT_EXEC_H */ diff --git a/CIAO/examples/space/Exec/Exec_Component_exec_export.h b/CIAO/examples/space/Exec/Exec_Component_exec_export.h new file mode 100644 index 00000000000..0e8768834dc --- /dev/null +++ b/CIAO/examples/space/Exec/Exec_Component_exec_export.h @@ -0,0 +1,58 @@ + +// -*- C++ -*- +// $Id$ +// Definition for Win32 Export directives. +// This file is generated automatically by generate_export_file.pl EXEC_COMPONENT_EXEC +// ------------------------------ +#ifndef EXEC_COMPONENT_EXEC_EXPORT_H +#define EXEC_COMPONENT_EXEC_EXPORT_H + +#include "ace/config-all.h" + +#if defined (ACE_AS_STATIC_LIBS) && !defined (EXEC_COMPONENT_EXEC_HAS_DLL) +# define EXEC_COMPONENT_EXEC_HAS_DLL 0 +#endif /* ACE_AS_STATIC_LIBS && EXEC_COMPONENT_EXEC_HAS_DLL */ + +#if !defined (EXEC_COMPONENT_EXEC_HAS_DLL) +# define EXEC_COMPONENT_EXEC_HAS_DLL 1 +#endif /* ! EXEC_COMPONENT_EXEC_HAS_DLL */ + +#if defined (EXEC_COMPONENT_EXEC_HAS_DLL) && (EXEC_COMPONENT_EXEC_HAS_DLL == 1) +# if defined (EXEC_COMPONENT_EXEC_BUILD_DLL) +# define EXEC_COMPONENT_EXEC_Export ACE_Proper_Export_Flag +# define EXEC_COMPONENT_EXEC_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T) +# define EXEC_COMPONENT_EXEC_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# else /* EXEC_COMPONENT_EXEC_BUILD_DLL */ +# define EXEC_COMPONENT_EXEC_Export ACE_Proper_Import_Flag +# define EXEC_COMPONENT_EXEC_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T) +# define EXEC_COMPONENT_EXEC_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# endif /* EXEC_COMPONENT_EXEC_BUILD_DLL */ +#else /* EXEC_COMPONENT_EXEC_HAS_DLL == 1 */ +# define EXEC_COMPONENT_EXEC_Export +# define EXEC_COMPONENT_EXEC_SINGLETON_DECLARATION(T) +# define EXEC_COMPONENT_EXEC_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +#endif /* EXEC_COMPONENT_EXEC_HAS_DLL == 1 */ + +// Set EXEC_COMPONENT_EXEC_NTRACE = 0 to turn on library specific tracing even if +// tracing is turned off for ACE. +#if !defined (EXEC_COMPONENT_EXEC_NTRACE) +# if (ACE_NTRACE == 1) +# define EXEC_COMPONENT_EXEC_NTRACE 1 +# else /* (ACE_NTRACE == 1) */ +# define EXEC_COMPONENT_EXEC_NTRACE 0 +# endif /* (ACE_NTRACE == 1) */ +#endif /* !EXEC_COMPONENT_EXEC_NTRACE */ + +#if (EXEC_COMPONENT_EXEC_NTRACE == 1) +# define EXEC_COMPONENT_EXEC_TRACE(X) +#else /* (EXEC_COMPONENT_EXEC_NTRACE == 1) */ +# if !defined (ACE_HAS_TRACE) +# define ACE_HAS_TRACE +# endif /* ACE_HAS_TRACE */ +# define EXEC_COMPONENT_EXEC_TRACE(X) ACE_TRACE_IMPL(X) +# include "ace/Trace.h" +#endif /* (EXEC_COMPONENT_EXEC_NTRACE == 1) */ + +#endif /* EXEC_COMPONENT_EXEC_EXPORT_H */ + +// End of auto generated file. diff --git a/CIAO/examples/space/Exec/Exec_Component_stub_export.h b/CIAO/examples/space/Exec/Exec_Component_stub_export.h new file mode 100644 index 00000000000..6977f7e5e86 --- /dev/null +++ b/CIAO/examples/space/Exec/Exec_Component_stub_export.h @@ -0,0 +1,58 @@ + +// -*- C++ -*- +// $Id$ +// Definition for Win32 Export directives. +// This file is generated automatically by generate_export_file.pl EXEC_COMPONENT_STUB +// ------------------------------ +#ifndef EXEC_COMPONENT_STUB_EXPORT_H +#define EXEC_COMPONENT_STUB_EXPORT_H + +#include "ace/config-all.h" + +#if defined (ACE_AS_STATIC_LIBS) && !defined (EXEC_COMPONENT_STUB_HAS_DLL) +# define EXEC_COMPONENT_STUB_HAS_DLL 0 +#endif /* ACE_AS_STATIC_LIBS && EXEC_COMPONENT_STUB_HAS_DLL */ + +#if !defined (EXEC_COMPONENT_STUB_HAS_DLL) +# define EXEC_COMPONENT_STUB_HAS_DLL 1 +#endif /* ! EXEC_COMPONENT_STUB_HAS_DLL */ + +#if defined (EXEC_COMPONENT_STUB_HAS_DLL) && (EXEC_COMPONENT_STUB_HAS_DLL == 1) +# if defined (EXEC_COMPONENT_STUB_BUILD_DLL) +# define EXEC_COMPONENT_STUB_Export ACE_Proper_Export_Flag +# define EXEC_COMPONENT_STUB_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T) +# define EXEC_COMPONENT_STUB_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# else /* EXEC_COMPONENT_STUB_BUILD_DLL */ +# define EXEC_COMPONENT_STUB_Export ACE_Proper_Import_Flag +# define EXEC_COMPONENT_STUB_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T) +# define EXEC_COMPONENT_STUB_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# endif /* EXEC_COMPONENT_STUB_BUILD_DLL */ +#else /* EXEC_COMPONENT_STUB_HAS_DLL == 1 */ +# define EXEC_COMPONENT_STUB_Export +# define EXEC_COMPONENT_STUB_SINGLETON_DECLARATION(T) +# define EXEC_COMPONENT_STUB_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +#endif /* EXEC_COMPONENT_STUB_HAS_DLL == 1 */ + +// Set EXEC_COMPONENT_STUB_NTRACE = 0 to turn on library specific tracing even if +// tracing is turned off for ACE. +#if !defined (EXEC_COMPONENT_STUB_NTRACE) +# if (ACE_NTRACE == 1) +# define EXEC_COMPONENT_STUB_NTRACE 1 +# else /* (ACE_NTRACE == 1) */ +# define EXEC_COMPONENT_STUB_NTRACE 0 +# endif /* (ACE_NTRACE == 1) */ +#endif /* !EXEC_COMPONENT_STUB_NTRACE */ + +#if (EXEC_COMPONENT_STUB_NTRACE == 1) +# define EXEC_COMPONENT_STUB_TRACE(X) +#else /* (EXEC_COMPONENT_STUB_NTRACE == 1) */ +# if !defined (ACE_HAS_TRACE) +# define ACE_HAS_TRACE +# endif /* ACE_HAS_TRACE */ +# define EXEC_COMPONENT_STUB_TRACE(X) ACE_TRACE_IMPL(X) +# include "ace/Trace.h" +#endif /* (EXEC_COMPONENT_STUB_NTRACE == 1) */ + +#endif /* EXEC_COMPONENT_STUB_EXPORT_H */ + +// End of auto generated file. diff --git a/CIAO/examples/space/Exec/Exec_Component_svnt_export.h b/CIAO/examples/space/Exec/Exec_Component_svnt_export.h new file mode 100644 index 00000000000..845b60d7f64 --- /dev/null +++ b/CIAO/examples/space/Exec/Exec_Component_svnt_export.h @@ -0,0 +1,58 @@ + +// -*- C++ -*- +// $Id$ +// Definition for Win32 Export directives. +// This file is generated automatically by generate_export_file.pl EXEC_COMPONENT_SVNT +// ------------------------------ +#ifndef EXEC_COMPONENT_SVNT_EXPORT_H +#define EXEC_COMPONENT_SVNT_EXPORT_H + +#include "ace/config-all.h" + +#if defined (ACE_AS_STATIC_LIBS) && !defined (EXEC_COMPONENT_SVNT_HAS_DLL) +# define EXEC_COMPONENT_SVNT_HAS_DLL 0 +#endif /* ACE_AS_STATIC_LIBS && EXEC_COMPONENT_SVNT_HAS_DLL */ + +#if !defined (EXEC_COMPONENT_SVNT_HAS_DLL) +# define EXEC_COMPONENT_SVNT_HAS_DLL 1 +#endif /* ! EXEC_COMPONENT_SVNT_HAS_DLL */ + +#if defined (EXEC_COMPONENT_SVNT_HAS_DLL) && (EXEC_COMPONENT_SVNT_HAS_DLL == 1) +# if defined (EXEC_COMPONENT_SVNT_BUILD_DLL) +# define EXEC_COMPONENT_SVNT_Export ACE_Proper_Export_Flag +# define EXEC_COMPONENT_SVNT_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T) +# define EXEC_COMPONENT_SVNT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# else /* EXEC_COMPONENT_SVNT_BUILD_DLL */ +# define EXEC_COMPONENT_SVNT_Export ACE_Proper_Import_Flag +# define EXEC_COMPONENT_SVNT_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T) +# define EXEC_COMPONENT_SVNT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# endif /* EXEC_COMPONENT_SVNT_BUILD_DLL */ +#else /* EXEC_COMPONENT_SVNT_HAS_DLL == 1 */ +# define EXEC_COMPONENT_SVNT_Export +# define EXEC_COMPONENT_SVNT_SINGLETON_DECLARATION(T) +# define EXEC_COMPONENT_SVNT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +#endif /* EXEC_COMPONENT_SVNT_HAS_DLL == 1 */ + +// Set EXEC_COMPONENT_SVNT_NTRACE = 0 to turn on library specific tracing even if +// tracing is turned off for ACE. +#if !defined (EXEC_COMPONENT_SVNT_NTRACE) +# if (ACE_NTRACE == 1) +# define EXEC_COMPONENT_SVNT_NTRACE 1 +# else /* (ACE_NTRACE == 1) */ +# define EXEC_COMPONENT_SVNT_NTRACE 0 +# endif /* (ACE_NTRACE == 1) */ +#endif /* !EXEC_COMPONENT_SVNT_NTRACE */ + +#if (EXEC_COMPONENT_SVNT_NTRACE == 1) +# define EXEC_COMPONENT_SVNT_TRACE(X) +#else /* (EXEC_COMPONENT_SVNT_NTRACE == 1) */ +# if !defined (ACE_HAS_TRACE) +# define ACE_HAS_TRACE +# endif /* ACE_HAS_TRACE */ +# define EXEC_COMPONENT_SVNT_TRACE(X) ACE_TRACE_IMPL(X) +# include "ace/Trace.h" +#endif /* (EXEC_COMPONENT_SVNT_NTRACE == 1) */ + +#endif /* EXEC_COMPONENT_SVNT_EXPORT_H */ + +// End of auto generated file. diff --git a/CIAO/examples/space/Filter/Filter_Component.ccd b/CIAO/examples/space/Filter/Filter_Component.ccd new file mode 100644 index 00000000000..81afe650ced --- /dev/null +++ b/CIAO/examples/space/Filter/Filter_Component.ccd @@ -0,0 +1,38 @@ +<?xml version="1.0"?> +<!DOCTYPE corbacomponent SYSTEM "corbacomponent.dtd"> + +<corbacomponent> + <corbaversion>3.0</corbaversion> + <componentrepid repid="IDL:SPACE/Filter_Component:1.0"/> + <homerepid repid="IDL:SPACE/Filter_Component_Factory:1.0"/> + <componentkind> + <session> + <servant lifetime="container"/> + </session> + </componentkind> + <threading policy="multithread"/> + <configurationcomplete set="true"/> + + <homefeatures + name="Filter_Component_Factory" + repid="IDL:SPACE/Filter_Component_Factory:1.0"> + </homefeatures> + + <componentfeatures + name="Filter_Component" + repid="IDL:SPACE/Filter_Component:1.0"> + <ports> + <consumes + consumesname="recv_data" + eventtype="IDL:SPACE/Gizmo_Data:1.0"> + <eventpolicy policy="normal"/> + </consumes> + <emits + emitsname="send_data" + eventtype="IDL:SPACE/Gizmo_Data:1.0"> + <eventpolicy policy="normal"/> + </emits> + </ports> + </componentfeatures> + +</corbacomponent> diff --git a/CIAO/examples/space/Filter/Filter_Component.cidl b/CIAO/examples/space/Filter/Filter_Component.cidl new file mode 100644 index 00000000000..0d03344009d --- /dev/null +++ b/CIAO/examples/space/Filter/Filter_Component.cidl @@ -0,0 +1,20 @@ +// -*- CIDL -*- + +// This file was generated by +// $Id$ + +#ifndef _FILTER_COMPONENT_CIDL_ +#define _FILTER_COMPONENT_CIDL_ + +#include "Filter_Component.idl" + +composition session Filter_Component +{ + home executor Filter_Component_Factory_Exec + { + implements SPACE::Filter_Component_Factory; + manages Filter_Component_Exec; + }; +}; + +#endif // !defined _FILTER_COMPONENT_CIDL_ diff --git a/CIAO/examples/space/Filter/Filter_Component.idl b/CIAO/examples/space/Filter/Filter_Component.idl new file mode 100644 index 00000000000..26c8959de6f --- /dev/null +++ b/CIAO/examples/space/Filter/Filter_Component.idl @@ -0,0 +1,24 @@ + +#ifndef FILTER_COMPONENT_IDL +#define FILTER_COMPONENT_IDL + +#include <Components.idl> +#include "Event_Types.idl" + +module SPACE +{ + component Filter_Component + { + consumes Gizmo_Data recv_data; + + emits Gizmo_Data send_data; + }; + + home Filter_Component_Factory + manages Filter_Component + { + }; +}; + +#endif // FILTER_COMPONENT_IDL + diff --git a/CIAO/examples/space/Filter/Filter_Component.mpc b/CIAO/examples/space/Filter/Filter_Component.mpc new file mode 100644 index 00000000000..790c707d363 --- /dev/null +++ b/CIAO/examples/space/Filter/Filter_Component.mpc @@ -0,0 +1,77 @@ +// $Id$ +// This file is generated with "generate_component_mpc.pl Filter_Component" + +project(Filter_Component_stub): ciao_client_dnc { + + sharedname = Filter_Component_stub + after += Event_Types_stub + includes += ../common + libs += Event_Types_stub + idlflags += -Wb,stub_export_macro=FILTER_COMPONENT_STUB_Export \ + -Wb,stub_export_include=Filter_Component_stub_export.h \ + -Wb,skel_export_macro=FILTER_COMPONENT_SVNT_Export \ + -Wb,skel_export_include=Filter_Component_svnt_export.h \ + -I ../common + dynamicflags = FILTER_COMPONENT_STUB_BUILD_DLL + + IDL_Files { + Filter_Component.idl + } + + Source_Files { + Filter_ComponentC.cpp + } +} + +project(Filter_Component_svnt) : ciao_servant_dnc { + after += Filter_Component_stub + sharedname = Filter_Component_svnt + includes += ../common + libs += Filter_Component_stub Event_Types_stub Event_Types_svnt + + idlflags += -Wb,export_macro=FILTER_COMPONENT_SVNT_Export \ + -Wb,export_include=Filter_Component_svnt_export.h \ + -I ../common + dynamicflags = FILTER_COMPONENT_SVNT_BUILD_DLL + + cidlflags -= -- + cidlflags += -I ../common -- + + CIDL_Files { + Filter_Component.cidl + } + + IDL_Files { + Filter_ComponentE.idl + } + + Source_Files { + Filter_ComponentEC.cpp + Filter_ComponentS.cpp + Filter_Component_svnt.cpp + } +} + + +project(Filter_Component_exec) : ciao_component_dnc { + after += Filter_Component_svnt + includes += ../common + sharedname = Filter_Component_exec + libs += Filter_Component_stub \ + Filter_Component_svnt \ + Event_Types_stub \ + Event_Types_svnt + + idlflags += -Wb,export_macro=FILTER_COMPONENT_EXEC_Export \ + -Wb,export_include=Filter_Component_exec_export.h + dynamicflags = FILTER_COMPONENT_EXEC_BUILD_DLL + + IDL_Files { + + } + + Source_Files { + + Filter_Component_exec.cpp + } +} diff --git a/CIAO/examples/space/Filter/Filter_Component_exec.cpp b/CIAO/examples/space/Filter/Filter_Component_exec.cpp new file mode 100644 index 00000000000..5c7887bc22b --- /dev/null +++ b/CIAO/examples/space/Filter/Filter_Component_exec.cpp @@ -0,0 +1,155 @@ +#include "Filter_Component_exec.h" +#include "ciao/CIAO_common.h" + +namespace CIDL_Filter_Component +{ + //================================================================== + // Component Executor Implementation Class: Filter_Component_exec_i + //================================================================== + + Filter_Component_exec_i::Filter_Component_exec_i (void) + { + } + + Filter_Component_exec_i::~Filter_Component_exec_i (void) + { + } + + // Supported or inherited operations. + + // Attribute operations. + + // Port operations. + + void + Filter_Component_exec_i::push_recv_data ( + ::SPACE::Gizmo_Data * ev) + ACE_THROW_SPEC (( ::CORBA::SystemException)) + { + + ACE_DEBUG ((LM_DEBUG, "(%P|%t) Filter-Component: " + "Got science data from %s.\n", ev->sender ())); + this->context_->push_send_data (ev); + // Your code here. + } + + // Operations from Components::SessionComponent + + void + Filter_Component_exec_i::set_session_context ( + ::Components::SessionContext_ptr ctx + ACE_ENV_ARG_DECL) + ACE_THROW_SPEC (( ::CORBA::SystemException, + ::Components::CCMException)) + { + this->context_ = + Filter_Component_Context::_narrow ( + ctx + ACE_ENV_ARG_PARAMETER); + ACE_CHECK; + + if (this->context_ == 0) + { + ACE_THROW ( ::CORBA::INTERNAL ()); + } + } + + void + Filter_Component_exec_i::ciao_preactivate ( + ACE_ENV_SINGLE_ARG_DECL_NOT_USED) + ACE_THROW_SPEC (( ::CORBA::SystemException, + ::Components::CCMException)) + { + // Your code here. + } + + void + Filter_Component_exec_i::ciao_postactivate ( + ACE_ENV_SINGLE_ARG_DECL_NOT_USED) + ACE_THROW_SPEC (( ::CORBA::SystemException, + ::Components::CCMException)) + { + // Your code here. + } + + void + Filter_Component_exec_i::ccm_activate ( + ACE_ENV_SINGLE_ARG_DECL_NOT_USED) + ACE_THROW_SPEC (( ::CORBA::SystemException, + ::Components::CCMException)) + { + // Your code here. + } + + void + Filter_Component_exec_i::ccm_passivate ( + ACE_ENV_SINGLE_ARG_DECL_NOT_USED) + ACE_THROW_SPEC (( ::CORBA::SystemException, + ::Components::CCMException)) + { + // Your code here. + } + + void + Filter_Component_exec_i::ccm_remove ( + ACE_ENV_SINGLE_ARG_DECL_NOT_USED) + ACE_THROW_SPEC (( ::CORBA::SystemException, + ::Components::CCMException)) + { + // Your code here. + } + + //================================================================== + // Home Executor Implementation Class: Filter_Component_Factory_exec_i + //================================================================== + + Filter_Component_Factory_exec_i::Filter_Component_Factory_exec_i (void) + { + } + + Filter_Component_Factory_exec_i::~Filter_Component_Factory_exec_i (void) + { + } + + // Supported or inherited operations. + + // Home operations. + + // Factory and finder operations. + + // Attribute operations. + + // Implicit operations. + + ::Components::EnterpriseComponent_ptr + Filter_Component_Factory_exec_i::create ( + ACE_ENV_SINGLE_ARG_DECL) + ACE_THROW_SPEC (( ::CORBA::SystemException, + ::Components::CCMException)) + { + ::Components::EnterpriseComponent_ptr retval = + ::Components::EnterpriseComponent::_nil (); + + ACE_NEW_THROW_EX ( + retval, + Filter_Component_exec_i, + ::CORBA::NO_MEMORY ()); + ACE_CHECK_RETURN (::Components::EnterpriseComponent::_nil ()); + + return retval; + } + + extern "C" FILTER_COMPONENT_EXEC_Export ::Components::HomeExecutorBase_ptr + create_SPACE_Filter_Component_Factory_Impl (void) + { + ::Components::HomeExecutorBase_ptr retval = + ::Components::HomeExecutorBase::_nil (); + + ACE_NEW_RETURN ( + retval, + Filter_Component_Factory_exec_i, + ::Components::HomeExecutorBase::_nil ()); + + return retval; + } +} diff --git a/CIAO/examples/space/Filter/Filter_Component_exec.h b/CIAO/examples/space/Filter/Filter_Component_exec.h new file mode 100644 index 00000000000..ffadff71a1d --- /dev/null +++ b/CIAO/examples/space/Filter/Filter_Component_exec.h @@ -0,0 +1,139 @@ +// $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_FILTER_COMPONENT_EXEC_H +#define CIAO_FILTER_COMPONENT_EXEC_H + +#include /**/ "ace/pre.h" + +#include "Filter_Component_svnt.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + +#include "Filter_Component_exec_export.h" +#include "tao/LocalObject.h" + +namespace CIDL_Filter_Component +{ + class FILTER_COMPONENT_EXEC_Export Filter_Component_exec_i + : public virtual Filter_Component_Exec, + public virtual TAO_Local_RefCounted_Object + { + public: + Filter_Component_exec_i (void); + virtual ~Filter_Component_exec_i (void); + + // Supported or inherited operations. + + // Attribute operations. + + // Port operations. + + virtual void + push_recv_data ( + ::SPACE::Gizmo_Data *ev + ACE_ENV_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC (( ::CORBA::SystemException)); + + // Operations from Components::SessionComponent + + virtual void + set_session_context ( + ::Components::SessionContext_ptr ctx + ACE_ENV_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC (( + ::CORBA::SystemException, + ::Components::CCMException)); + + virtual void + ciao_preactivate ( + ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC (( + ::CORBA::SystemException, + ::Components::CCMException)); + + virtual void + ciao_postactivate ( + ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC (( + ::CORBA::SystemException, + ::Components::CCMException)); + + virtual void + ccm_activate ( + ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC (( + ::CORBA::SystemException, + ::Components::CCMException)); + + virtual void + ccm_passivate ( + ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC (( + ::CORBA::SystemException, + ::Components::CCMException)); + + virtual void + ccm_remove ( + ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC (( + ::CORBA::SystemException, + ::Components::CCMException)); + + protected: + Filter_Component_Context *context_; + }; + + class FILTER_COMPONENT_EXEC_Export Filter_Component_Factory_exec_i + : public virtual Filter_Component_Factory_Exec, + public virtual TAO_Local_RefCounted_Object + { + public: + Filter_Component_Factory_exec_i (void); + virtual ~Filter_Component_Factory_exec_i (void); + + // Supported or inherited operations. + + // Home operations. + + // Factory and finder operations. + + // Attribute operations. + + // Implicit operations. + + virtual ::Components::EnterpriseComponent_ptr + create ( + ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC (( + ::CORBA::SystemException, + ::Components::CCMException)); + }; + + extern "C" FILTER_COMPONENT_EXEC_Export ::Components::HomeExecutorBase_ptr + create_SPACE_Filter_Component_Factory_Impl (void); +} + +#include /**/ "ace/post.h" + +#endif /* CIAO_FILTER_COMPONENT_EXEC_H */ + diff --git a/CIAO/examples/space/Filter/Filter_Component_exec_export.h b/CIAO/examples/space/Filter/Filter_Component_exec_export.h new file mode 100644 index 00000000000..c07e7487da1 --- /dev/null +++ b/CIAO/examples/space/Filter/Filter_Component_exec_export.h @@ -0,0 +1,58 @@ + +// -*- C++ -*- +// $Id$ +// Definition for Win32 Export directives. +// This file is generated automatically by generate_export_file.pl FILTER_COMPONENT_EXEC +// ------------------------------ +#ifndef FILTER_COMPONENT_EXEC_EXPORT_H +#define FILTER_COMPONENT_EXEC_EXPORT_H + +#include "ace/config-all.h" + +#if defined (ACE_AS_STATIC_LIBS) && !defined (FILTER_COMPONENT_EXEC_HAS_DLL) +# define FILTER_COMPONENT_EXEC_HAS_DLL 0 +#endif /* ACE_AS_STATIC_LIBS && FILTER_COMPONENT_EXEC_HAS_DLL */ + +#if !defined (FILTER_COMPONENT_EXEC_HAS_DLL) +# define FILTER_COMPONENT_EXEC_HAS_DLL 1 +#endif /* ! FILTER_COMPONENT_EXEC_HAS_DLL */ + +#if defined (FILTER_COMPONENT_EXEC_HAS_DLL) && (FILTER_COMPONENT_EXEC_HAS_DLL == 1) +# if defined (FILTER_COMPONENT_EXEC_BUILD_DLL) +# define FILTER_COMPONENT_EXEC_Export ACE_Proper_Export_Flag +# define FILTER_COMPONENT_EXEC_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T) +# define FILTER_COMPONENT_EXEC_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# else /* FILTER_COMPONENT_EXEC_BUILD_DLL */ +# define FILTER_COMPONENT_EXEC_Export ACE_Proper_Import_Flag +# define FILTER_COMPONENT_EXEC_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T) +# define FILTER_COMPONENT_EXEC_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# endif /* FILTER_COMPONENT_EXEC_BUILD_DLL */ +#else /* FILTER_COMPONENT_EXEC_HAS_DLL == 1 */ +# define FILTER_COMPONENT_EXEC_Export +# define FILTER_COMPONENT_EXEC_SINGLETON_DECLARATION(T) +# define FILTER_COMPONENT_EXEC_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +#endif /* FILTER_COMPONENT_EXEC_HAS_DLL == 1 */ + +// Set FILTER_COMPONENT_EXEC_NTRACE = 0 to turn on library specific tracing even if +// tracing is turned off for ACE. +#if !defined (FILTER_COMPONENT_EXEC_NTRACE) +# if (ACE_NTRACE == 1) +# define FILTER_COMPONENT_EXEC_NTRACE 1 +# else /* (ACE_NTRACE == 1) */ +# define FILTER_COMPONENT_EXEC_NTRACE 0 +# endif /* (ACE_NTRACE == 1) */ +#endif /* !FILTER_COMPONENT_EXEC_NTRACE */ + +#if (FILTER_COMPONENT_EXEC_NTRACE == 1) +# define FILTER_COMPONENT_EXEC_TRACE(X) +#else /* (FILTER_COMPONENT_EXEC_NTRACE == 1) */ +# if !defined (ACE_HAS_TRACE) +# define ACE_HAS_TRACE +# endif /* ACE_HAS_TRACE */ +# define FILTER_COMPONENT_EXEC_TRACE(X) ACE_TRACE_IMPL(X) +# include "ace/Trace.h" +#endif /* (FILTER_COMPONENT_EXEC_NTRACE == 1) */ + +#endif /* FILTER_COMPONENT_EXEC_EXPORT_H */ + +// End of auto generated file. diff --git a/CIAO/examples/space/Filter/Filter_Component_stub_export.h b/CIAO/examples/space/Filter/Filter_Component_stub_export.h new file mode 100644 index 00000000000..277174ea7bc --- /dev/null +++ b/CIAO/examples/space/Filter/Filter_Component_stub_export.h @@ -0,0 +1,58 @@ + +// -*- C++ -*- +// $Id$ +// Definition for Win32 Export directives. +// This file is generated automatically by generate_export_file.pl FILTER_COMPONENT_STUB +// ------------------------------ +#ifndef FILTER_COMPONENT_STUB_EXPORT_H +#define FILTER_COMPONENT_STUB_EXPORT_H + +#include "ace/config-all.h" + +#if defined (ACE_AS_STATIC_LIBS) && !defined (FILTER_COMPONENT_STUB_HAS_DLL) +# define FILTER_COMPONENT_STUB_HAS_DLL 0 +#endif /* ACE_AS_STATIC_LIBS && FILTER_COMPONENT_STUB_HAS_DLL */ + +#if !defined (FILTER_COMPONENT_STUB_HAS_DLL) +# define FILTER_COMPONENT_STUB_HAS_DLL 1 +#endif /* ! FILTER_COMPONENT_STUB_HAS_DLL */ + +#if defined (FILTER_COMPONENT_STUB_HAS_DLL) && (FILTER_COMPONENT_STUB_HAS_DLL == 1) +# if defined (FILTER_COMPONENT_STUB_BUILD_DLL) +# define FILTER_COMPONENT_STUB_Export ACE_Proper_Export_Flag +# define FILTER_COMPONENT_STUB_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T) +# define FILTER_COMPONENT_STUB_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# else /* FILTER_COMPONENT_STUB_BUILD_DLL */ +# define FILTER_COMPONENT_STUB_Export ACE_Proper_Import_Flag +# define FILTER_COMPONENT_STUB_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T) +# define FILTER_COMPONENT_STUB_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# endif /* FILTER_COMPONENT_STUB_BUILD_DLL */ +#else /* FILTER_COMPONENT_STUB_HAS_DLL == 1 */ +# define FILTER_COMPONENT_STUB_Export +# define FILTER_COMPONENT_STUB_SINGLETON_DECLARATION(T) +# define FILTER_COMPONENT_STUB_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +#endif /* FILTER_COMPONENT_STUB_HAS_DLL == 1 */ + +// Set FILTER_COMPONENT_STUB_NTRACE = 0 to turn on library specific tracing even if +// tracing is turned off for ACE. +#if !defined (FILTER_COMPONENT_STUB_NTRACE) +# if (ACE_NTRACE == 1) +# define FILTER_COMPONENT_STUB_NTRACE 1 +# else /* (ACE_NTRACE == 1) */ +# define FILTER_COMPONENT_STUB_NTRACE 0 +# endif /* (ACE_NTRACE == 1) */ +#endif /* !FILTER_COMPONENT_STUB_NTRACE */ + +#if (FILTER_COMPONENT_STUB_NTRACE == 1) +# define FILTER_COMPONENT_STUB_TRACE(X) +#else /* (FILTER_COMPONENT_STUB_NTRACE == 1) */ +# if !defined (ACE_HAS_TRACE) +# define ACE_HAS_TRACE +# endif /* ACE_HAS_TRACE */ +# define FILTER_COMPONENT_STUB_TRACE(X) ACE_TRACE_IMPL(X) +# include "ace/Trace.h" +#endif /* (FILTER_COMPONENT_STUB_NTRACE == 1) */ + +#endif /* FILTER_COMPONENT_STUB_EXPORT_H */ + +// End of auto generated file. diff --git a/CIAO/examples/space/Filter/Filter_Component_svnt_export.h b/CIAO/examples/space/Filter/Filter_Component_svnt_export.h new file mode 100644 index 00000000000..a900504f725 --- /dev/null +++ b/CIAO/examples/space/Filter/Filter_Component_svnt_export.h @@ -0,0 +1,58 @@ + +// -*- C++ -*- +// $Id$ +// Definition for Win32 Export directives. +// This file is generated automatically by generate_export_file.pl FILTER_COMPONENT_SVNT +// ------------------------------ +#ifndef FILTER_COMPONENT_SVNT_EXPORT_H +#define FILTER_COMPONENT_SVNT_EXPORT_H + +#include "ace/config-all.h" + +#if defined (ACE_AS_STATIC_LIBS) && !defined (FILTER_COMPONENT_SVNT_HAS_DLL) +# define FILTER_COMPONENT_SVNT_HAS_DLL 0 +#endif /* ACE_AS_STATIC_LIBS && FILTER_COMPONENT_SVNT_HAS_DLL */ + +#if !defined (FILTER_COMPONENT_SVNT_HAS_DLL) +# define FILTER_COMPONENT_SVNT_HAS_DLL 1 +#endif /* ! FILTER_COMPONENT_SVNT_HAS_DLL */ + +#if defined (FILTER_COMPONENT_SVNT_HAS_DLL) && (FILTER_COMPONENT_SVNT_HAS_DLL == 1) +# if defined (FILTER_COMPONENT_SVNT_BUILD_DLL) +# define FILTER_COMPONENT_SVNT_Export ACE_Proper_Export_Flag +# define FILTER_COMPONENT_SVNT_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T) +# define FILTER_COMPONENT_SVNT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# else /* FILTER_COMPONENT_SVNT_BUILD_DLL */ +# define FILTER_COMPONENT_SVNT_Export ACE_Proper_Import_Flag +# define FILTER_COMPONENT_SVNT_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T) +# define FILTER_COMPONENT_SVNT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# endif /* FILTER_COMPONENT_SVNT_BUILD_DLL */ +#else /* FILTER_COMPONENT_SVNT_HAS_DLL == 1 */ +# define FILTER_COMPONENT_SVNT_Export +# define FILTER_COMPONENT_SVNT_SINGLETON_DECLARATION(T) +# define FILTER_COMPONENT_SVNT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +#endif /* FILTER_COMPONENT_SVNT_HAS_DLL == 1 */ + +// Set FILTER_COMPONENT_SVNT_NTRACE = 0 to turn on library specific tracing even if +// tracing is turned off for ACE. +#if !defined (FILTER_COMPONENT_SVNT_NTRACE) +# if (ACE_NTRACE == 1) +# define FILTER_COMPONENT_SVNT_NTRACE 1 +# else /* (ACE_NTRACE == 1) */ +# define FILTER_COMPONENT_SVNT_NTRACE 0 +# endif /* (ACE_NTRACE == 1) */ +#endif /* !FILTER_COMPONENT_SVNT_NTRACE */ + +#if (FILTER_COMPONENT_SVNT_NTRACE == 1) +# define FILTER_COMPONENT_SVNT_TRACE(X) +#else /* (FILTER_COMPONENT_SVNT_NTRACE == 1) */ +# if !defined (ACE_HAS_TRACE) +# define ACE_HAS_TRACE +# endif /* ACE_HAS_TRACE */ +# define FILTER_COMPONENT_SVNT_TRACE(X) ACE_TRACE_IMPL(X) +# include "ace/Trace.h" +#endif /* (FILTER_COMPONENT_SVNT_NTRACE == 1) */ + +#endif /* FILTER_COMPONENT_SVNT_EXPORT_H */ + +// End of auto generated file. diff --git a/CIAO/examples/space/Gizmo1_High/Gizmo1_High.ccd b/CIAO/examples/space/Gizmo1_High/Gizmo1_High.ccd new file mode 100644 index 00000000000..deb37e265fa --- /dev/null +++ b/CIAO/examples/space/Gizmo1_High/Gizmo1_High.ccd @@ -0,0 +1,33 @@ +<?xml version="1.0"?> +<!DOCTYPE corbacomponent SYSTEM "corbacomponent.dtd"> + +<corbacomponent> + <corbaversion>3.0</corbaversion> + <componentrepid repid="IDL:SPACE/Gizmo1_High:1.0"/> + <homerepid repid="IDL:SPACE/Gizmo1_High_Factory:1.0"/> + <componentkind> + <session> + <servant lifetime="container"/> + </session> + </componentkind> + <threading policy="multithread"/> + <configurationcomplete set="true"/> + + <homefeatures + name="Gizmo1_High_Factory" + repid="IDL:SPACE/Gizmo1_High_Factory:1.0"> + </homefeatures> + + <componentfeatures + name="Gizmo1_High" + repid="IDL:SPACE/Gizmo1_High:1.0"> + <ports> + <emits + emitsname="observation_data" + eventtype="IDL:SPACE/Gizmo_Data:1.0"> + <eventpolicy policy="normal"/> + </emits> + </ports> + </componentfeatures> + +</corbacomponent> diff --git a/CIAO/examples/space/Gizmo1_High/Gizmo1_High.cidl b/CIAO/examples/space/Gizmo1_High/Gizmo1_High.cidl new file mode 100644 index 00000000000..a362e738e9c --- /dev/null +++ b/CIAO/examples/space/Gizmo1_High/Gizmo1_High.cidl @@ -0,0 +1,20 @@ +// -*- CIDL -*- + +// This file was generated by +// $Id$ + +#ifndef _GIZMO1_HIGH_CIDL_ +#define _GIZMO1_HIGH_CIDL_ + +#include "Gizmo1_High.idl" + +composition session Gizmo1_High +{ + home executor Gizmo1_High_Factory_Exec + { + implements SPACE::Gizmo1_High_Factory; + manages Gizmo1_High_Exec; + }; +}; + +#endif // !defined _GIZMO1_HIGH_CIDL_ diff --git a/CIAO/examples/space/Gizmo1_High/Gizmo1_High.idl b/CIAO/examples/space/Gizmo1_High/Gizmo1_High.idl new file mode 100644 index 00000000000..d7cd506d887 --- /dev/null +++ b/CIAO/examples/space/Gizmo1_High/Gizmo1_High.idl @@ -0,0 +1,22 @@ + +#ifndef GIZMO1_HIGH_IDL +#define GIZMO1_HIGH_IDL + +#include <Components.idl> +#include "Event_Types.idl" + +module SPACE +{ + component Gizmo1_High + { + emits Gizmo_Data observation_data; + }; + + home Gizmo1_High_Factory + manages Gizmo1_High + { + }; +}; + +#endif // GIZMO1_HIGH_IDL + diff --git a/CIAO/examples/space/Gizmo1_High/Gizmo1_High.mpc b/CIAO/examples/space/Gizmo1_High/Gizmo1_High.mpc new file mode 100644 index 00000000000..b2703da1f6b --- /dev/null +++ b/CIAO/examples/space/Gizmo1_High/Gizmo1_High.mpc @@ -0,0 +1,75 @@ +project(Gizmo1_High_stub): ciao_client_dnc { + + sharedname = Gizmo1_High_stub + libs += Event_Types_stub + after += Event_Types_stub + includes += ../common + idlflags += -Wb,stub_export_macro=GIZMO1_HIGH_STUB_Export \ + -Wb,stub_export_include=Gizmo1_High_stub_export.h \ + -Wb,skel_export_macro=GIZMO1_HIGH_SVNT_Export \ + -Wb,skel_export_include=Gizmo1_High_svnt_export.h \ + -I ../common + + dynamicflags = GIZMO1_HIGH_STUB_BUILD_DLL + + IDL_Files { + Gizmo1_High.idl + } + + Source_Files { + Gizmo1_HighC.cpp + } +} + +project(Gizmo1_High_svnt) : ciao_servant_dnc { + after += Gizmo1_High_stub + sharedname = Gizmo1_High_svnt + libs += Gizmo1_High_stub Event_Types_stub + includes += ../common + + idlflags += -Wb,export_macro=GIZMO1_HIGH_SVNT_Export \ + -Wb,export_include=Gizmo1_High_svnt_export.h \ + -I ../common + + dynamicflags = GIZMO1_HIGH_SVNT_BUILD_DLL + + cidlflags -= -- + cidlflags += -I ../common -- + + + CIDL_Files { + Gizmo1_High.cidl + } + + IDL_Files { + Gizmo1_HighE.idl + } + + Source_Files { + Gizmo1_HighEC.cpp + Gizmo1_HighS.cpp + Gizmo1_High_svnt.cpp + } +} + + +project(Gizmo1_High_exec) : ciao_component_dnc { + after += Gizmo1_High_svnt + sharedname = Gizmo1_High_exec + libs += Gizmo1_High_stub Gizmo1_High_svnt Event_Types_stub + includes += ../common + + idlflags += -Wb,export_macro=GIZMO1_HIGH_EXEC_Export \ + -Wb,export_include=Gizmo1_High_exec_export.h + + dynamicflags = GIZMO1_HIGH_EXEC_BUILD_DLL + + IDL_Files { + + } + + Source_Files { + + Gizmo1_High_exec.cpp + } +} diff --git a/CIAO/examples/space/Gizmo1_High/Gizmo1_High_exec.cpp b/CIAO/examples/space/Gizmo1_High/Gizmo1_High_exec.cpp new file mode 100644 index 00000000000..35a2a957935 --- /dev/null +++ b/CIAO/examples/space/Gizmo1_High/Gizmo1_High_exec.cpp @@ -0,0 +1,163 @@ +#include "Gizmo1_High_exec.h" +#include "ciao/CIAO_common.h" +#include "tao/ORB_Core.h" +#include "ace/Reactor.h" +#include "ace/Time_Value.h" +#include "ace/Thread.h" + + +namespace CIDL_Gizmo1_High +{ + //================================================================== + // Component Executor Implementation Class: Gizmo1_High_exec_i + //================================================================== + + Gizmo1_High_exec_i::Gizmo1_High_exec_i (void) + { + } + + Gizmo1_High_exec_i::~Gizmo1_High_exec_i (void) + { + } + + int + Gizmo1_High_exec_i::handle_timeout (const ACE_Time_Value &, + const void *) + { + + ::SPACE::Gizmo_Data_var ev = new OBV_SPACE::Gizmo_Data; + ev->sender ("Gizmo1-High"); + this->context_->push_observation_data (ev); + return 0; + + } + + + void + Gizmo1_High_exec_i::set_session_context ( + ::Components::SessionContext_ptr ctx + ACE_ENV_ARG_DECL) + ACE_THROW_SPEC (( ::CORBA::SystemException, + ::Components::CCMException)) + { + this->context_ = + Gizmo1_High_Context::_narrow ( + ctx + ACE_ENV_ARG_PARAMETER); + ACE_CHECK; + + if (this->context_ == 0) + { + ACE_THROW ( ::CORBA::INTERNAL ()); + } + } + + void + Gizmo1_High_exec_i::ciao_preactivate ( + ACE_ENV_SINGLE_ARG_DECL_NOT_USED) + ACE_THROW_SPEC (( ::CORBA::SystemException, + ::Components::CCMException)) + { + // Your code here. + } + + void + Gizmo1_High_exec_i::ciao_postactivate ( + ACE_ENV_SINGLE_ARG_DECL_NOT_USED) + ACE_THROW_SPEC (( ::CORBA::SystemException, + ::Components::CCMException)) + { + ACE_Reactor *reactor = + this->context_->_ciao_the_Container ()->the_ORB ()->orb_core ()->reactor (); + ACE_Time_Value interval (1); + + reactor->owner (ACE_Thread::self ()); + if (reactor->schedule_timer (this, this, interval, interval) < 0) + { + ACE_ERROR ((LM_ERROR, "Exec-Agent: Error will registering " + "periodic task!\n")); + } + + } + + void + Gizmo1_High_exec_i::ccm_activate ( + ACE_ENV_SINGLE_ARG_DECL_NOT_USED) + ACE_THROW_SPEC (( ::CORBA::SystemException, + ::Components::CCMException)) + { + // Your code here. + } + + void + Gizmo1_High_exec_i::ccm_passivate ( + ACE_ENV_SINGLE_ARG_DECL_NOT_USED) + ACE_THROW_SPEC (( ::CORBA::SystemException, + ::Components::CCMException)) + { + // Your code here. + } + + void + Gizmo1_High_exec_i::ccm_remove ( + ACE_ENV_SINGLE_ARG_DECL_NOT_USED) + ACE_THROW_SPEC (( ::CORBA::SystemException, + ::Components::CCMException)) + { + // Your code here. + } + + //================================================================== + // Home Executor Implementation Class: Gizmo1_High_Factory_exec_i + //================================================================== + + Gizmo1_High_Factory_exec_i::Gizmo1_High_Factory_exec_i (void) + { + } + + Gizmo1_High_Factory_exec_i::~Gizmo1_High_Factory_exec_i (void) + { + } + + // Supported or inherited operations. + + // Home operations. + + // Factory and finder operations. + + // Attribute operations. + + // Implicit operations. + + ::Components::EnterpriseComponent_ptr + Gizmo1_High_Factory_exec_i::create ( + ACE_ENV_SINGLE_ARG_DECL) + ACE_THROW_SPEC (( ::CORBA::SystemException, + ::Components::CCMException)) + { + ::Components::EnterpriseComponent_ptr retval = + ::Components::EnterpriseComponent::_nil (); + + ACE_NEW_THROW_EX ( + retval, + Gizmo1_High_exec_i, + ::CORBA::NO_MEMORY ()); + ACE_CHECK_RETURN (::Components::EnterpriseComponent::_nil ()); + + return retval; + } + + extern "C" GIZMO1_HIGH_EXEC_Export ::Components::HomeExecutorBase_ptr + create_SPACE_Gizmo1_High_Factory_Impl (void) + { + ::Components::HomeExecutorBase_ptr retval = + ::Components::HomeExecutorBase::_nil (); + + ACE_NEW_RETURN ( + retval, + Gizmo1_High_Factory_exec_i, + ::Components::HomeExecutorBase::_nil ()); + + return retval; + } +} diff --git a/CIAO/examples/space/Gizmo1_High/Gizmo1_High_exec.h b/CIAO/examples/space/Gizmo1_High/Gizmo1_High_exec.h new file mode 100644 index 00000000000..01df72ee5c1 --- /dev/null +++ b/CIAO/examples/space/Gizmo1_High/Gizmo1_High_exec.h @@ -0,0 +1,100 @@ +#ifndef CIAO_GIZMO1_HIGH_EXEC_H +#define CIAO_GIZMO1_HIGH_EXEC_H + +#include /**/ "ace/pre.h" + +#include "Gizmo1_High_svnt.h" +#include "ace/Event_Handler.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + +#include "Gizmo1_High_exec_export.h" +#include "tao/LocalObject.h" + +namespace CIDL_Gizmo1_High +{ + class GIZMO1_HIGH_EXEC_Export Gizmo1_High_exec_i + : public virtual Gizmo1_High_Exec, + public virtual TAO_Local_RefCounted_Object, + public virtual ACE_Event_Handler + { + public: + Gizmo1_High_exec_i (void); + virtual ~Gizmo1_High_exec_i (void); + + virtual int handle_timeout (const ACE_Time_Value &, + const void *ref); + + virtual void + set_session_context ( + ::Components::SessionContext_ptr ctx + ACE_ENV_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC (( + ::CORBA::SystemException, + ::Components::CCMException)); + + virtual void + ciao_preactivate ( + ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC (( + ::CORBA::SystemException, + ::Components::CCMException)); + + virtual void + ciao_postactivate ( + ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC (( + ::CORBA::SystemException, + ::Components::CCMException)); + + virtual void + ccm_activate ( + ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC (( + ::CORBA::SystemException, + ::Components::CCMException)); + + virtual void + ccm_passivate ( + ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC (( + ::CORBA::SystemException, + ::Components::CCMException)); + + virtual void + ccm_remove ( + ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC (( + ::CORBA::SystemException, + ::Components::CCMException)); + + protected: + Gizmo1_High_Context *context_; + }; + + class GIZMO1_HIGH_EXEC_Export Gizmo1_High_Factory_exec_i + : public virtual Gizmo1_High_Factory_Exec, + public virtual TAO_Local_RefCounted_Object + { + public: + Gizmo1_High_Factory_exec_i (void); + virtual ~Gizmo1_High_Factory_exec_i (void); + + + virtual ::Components::EnterpriseComponent_ptr + create ( + ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC (( + ::CORBA::SystemException, + ::Components::CCMException)); + }; + + extern "C" GIZMO1_HIGH_EXEC_Export ::Components::HomeExecutorBase_ptr + create_SPACE_Gizmo1_High_Factory_Impl (void); +} + +#include /**/ "ace/post.h" + +#endif /* CIAO_GIZMO1_HIGH_EXEC_H */ diff --git a/CIAO/examples/space/Gizmo1_High/Gizmo1_High_exec_export.h b/CIAO/examples/space/Gizmo1_High/Gizmo1_High_exec_export.h new file mode 100644 index 00000000000..b79899efb79 --- /dev/null +++ b/CIAO/examples/space/Gizmo1_High/Gizmo1_High_exec_export.h @@ -0,0 +1,58 @@ + +// -*- C++ -*- +// $Id$ +// Definition for Win32 Export directives. +// This file is generated automatically by generate_export_file.pl GIZMO1_HIGH_EXEC +// ------------------------------ +#ifndef GIZMO1_HIGH_EXEC_EXPORT_H +#define GIZMO1_HIGH_EXEC_EXPORT_H + +#include "ace/config-all.h" + +#if defined (ACE_AS_STATIC_LIBS) && !defined (GIZMO1_HIGH_EXEC_HAS_DLL) +# define GIZMO1_HIGH_EXEC_HAS_DLL 0 +#endif /* ACE_AS_STATIC_LIBS && GIZMO1_HIGH_EXEC_HAS_DLL */ + +#if !defined (GIZMO1_HIGH_EXEC_HAS_DLL) +# define GIZMO1_HIGH_EXEC_HAS_DLL 1 +#endif /* ! GIZMO1_HIGH_EXEC_HAS_DLL */ + +#if defined (GIZMO1_HIGH_EXEC_HAS_DLL) && (GIZMO1_HIGH_EXEC_HAS_DLL == 1) +# if defined (GIZMO1_HIGH_EXEC_BUILD_DLL) +# define GIZMO1_HIGH_EXEC_Export ACE_Proper_Export_Flag +# define GIZMO1_HIGH_EXEC_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T) +# define GIZMO1_HIGH_EXEC_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# else /* GIZMO1_HIGH_EXEC_BUILD_DLL */ +# define GIZMO1_HIGH_EXEC_Export ACE_Proper_Import_Flag +# define GIZMO1_HIGH_EXEC_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T) +# define GIZMO1_HIGH_EXEC_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# endif /* GIZMO1_HIGH_EXEC_BUILD_DLL */ +#else /* GIZMO1_HIGH_EXEC_HAS_DLL == 1 */ +# define GIZMO1_HIGH_EXEC_Export +# define GIZMO1_HIGH_EXEC_SINGLETON_DECLARATION(T) +# define GIZMO1_HIGH_EXEC_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +#endif /* GIZMO1_HIGH_EXEC_HAS_DLL == 1 */ + +// Set GIZMO1_HIGH_EXEC_NTRACE = 0 to turn on library specific tracing even if +// tracing is turned off for ACE. +#if !defined (GIZMO1_HIGH_EXEC_NTRACE) +# if (ACE_NTRACE == 1) +# define GIZMO1_HIGH_EXEC_NTRACE 1 +# else /* (ACE_NTRACE == 1) */ +# define GIZMO1_HIGH_EXEC_NTRACE 0 +# endif /* (ACE_NTRACE == 1) */ +#endif /* !GIZMO1_HIGH_EXEC_NTRACE */ + +#if (GIZMO1_HIGH_EXEC_NTRACE == 1) +# define GIZMO1_HIGH_EXEC_TRACE(X) +#else /* (GIZMO1_HIGH_EXEC_NTRACE == 1) */ +# if !defined (ACE_HAS_TRACE) +# define ACE_HAS_TRACE +# endif /* ACE_HAS_TRACE */ +# define GIZMO1_HIGH_EXEC_TRACE(X) ACE_TRACE_IMPL(X) +# include "ace/Trace.h" +#endif /* (GIZMO1_HIGH_EXEC_NTRACE == 1) */ + +#endif /* GIZMO1_HIGH_EXEC_EXPORT_H */ + +// End of auto generated file. diff --git a/CIAO/examples/space/Gizmo1_High/Gizmo1_High_stub_export.h b/CIAO/examples/space/Gizmo1_High/Gizmo1_High_stub_export.h new file mode 100644 index 00000000000..4722fab4a29 --- /dev/null +++ b/CIAO/examples/space/Gizmo1_High/Gizmo1_High_stub_export.h @@ -0,0 +1,58 @@ + +// -*- C++ -*- +// $Id$ +// Definition for Win32 Export directives. +// This file is generated automatically by generate_export_file.pl GIZMO1_HIGH_STUB +// ------------------------------ +#ifndef GIZMO1_HIGH_STUB_EXPORT_H +#define GIZMO1_HIGH_STUB_EXPORT_H + +#include "ace/config-all.h" + +#if defined (ACE_AS_STATIC_LIBS) && !defined (GIZMO1_HIGH_STUB_HAS_DLL) +# define GIZMO1_HIGH_STUB_HAS_DLL 0 +#endif /* ACE_AS_STATIC_LIBS && GIZMO1_HIGH_STUB_HAS_DLL */ + +#if !defined (GIZMO1_HIGH_STUB_HAS_DLL) +# define GIZMO1_HIGH_STUB_HAS_DLL 1 +#endif /* ! GIZMO1_HIGH_STUB_HAS_DLL */ + +#if defined (GIZMO1_HIGH_STUB_HAS_DLL) && (GIZMO1_HIGH_STUB_HAS_DLL == 1) +# if defined (GIZMO1_HIGH_STUB_BUILD_DLL) +# define GIZMO1_HIGH_STUB_Export ACE_Proper_Export_Flag +# define GIZMO1_HIGH_STUB_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T) +# define GIZMO1_HIGH_STUB_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# else /* GIZMO1_HIGH_STUB_BUILD_DLL */ +# define GIZMO1_HIGH_STUB_Export ACE_Proper_Import_Flag +# define GIZMO1_HIGH_STUB_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T) +# define GIZMO1_HIGH_STUB_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# endif /* GIZMO1_HIGH_STUB_BUILD_DLL */ +#else /* GIZMO1_HIGH_STUB_HAS_DLL == 1 */ +# define GIZMO1_HIGH_STUB_Export +# define GIZMO1_HIGH_STUB_SINGLETON_DECLARATION(T) +# define GIZMO1_HIGH_STUB_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +#endif /* GIZMO1_HIGH_STUB_HAS_DLL == 1 */ + +// Set GIZMO1_HIGH_STUB_NTRACE = 0 to turn on library specific tracing even if +// tracing is turned off for ACE. +#if !defined (GIZMO1_HIGH_STUB_NTRACE) +# if (ACE_NTRACE == 1) +# define GIZMO1_HIGH_STUB_NTRACE 1 +# else /* (ACE_NTRACE == 1) */ +# define GIZMO1_HIGH_STUB_NTRACE 0 +# endif /* (ACE_NTRACE == 1) */ +#endif /* !GIZMO1_HIGH_STUB_NTRACE */ + +#if (GIZMO1_HIGH_STUB_NTRACE == 1) +# define GIZMO1_HIGH_STUB_TRACE(X) +#else /* (GIZMO1_HIGH_STUB_NTRACE == 1) */ +# if !defined (ACE_HAS_TRACE) +# define ACE_HAS_TRACE +# endif /* ACE_HAS_TRACE */ +# define GIZMO1_HIGH_STUB_TRACE(X) ACE_TRACE_IMPL(X) +# include "ace/Trace.h" +#endif /* (GIZMO1_HIGH_STUB_NTRACE == 1) */ + +#endif /* GIZMO1_HIGH_STUB_EXPORT_H */ + +// End of auto generated file. diff --git a/CIAO/examples/space/Gizmo1_High/Gizmo1_High_svnt_export.h b/CIAO/examples/space/Gizmo1_High/Gizmo1_High_svnt_export.h new file mode 100644 index 00000000000..4b256a84898 --- /dev/null +++ b/CIAO/examples/space/Gizmo1_High/Gizmo1_High_svnt_export.h @@ -0,0 +1,58 @@ + +// -*- C++ -*- +// $Id$ +// Definition for Win32 Export directives. +// This file is generated automatically by generate_export_file.pl GIZMO1_HIGH_SVNT +// ------------------------------ +#ifndef GIZMO1_HIGH_SVNT_EXPORT_H +#define GIZMO1_HIGH_SVNT_EXPORT_H + +#include "ace/config-all.h" + +#if defined (ACE_AS_STATIC_LIBS) && !defined (GIZMO1_HIGH_SVNT_HAS_DLL) +# define GIZMO1_HIGH_SVNT_HAS_DLL 0 +#endif /* ACE_AS_STATIC_LIBS && GIZMO1_HIGH_SVNT_HAS_DLL */ + +#if !defined (GIZMO1_HIGH_SVNT_HAS_DLL) +# define GIZMO1_HIGH_SVNT_HAS_DLL 1 +#endif /* ! GIZMO1_HIGH_SVNT_HAS_DLL */ + +#if defined (GIZMO1_HIGH_SVNT_HAS_DLL) && (GIZMO1_HIGH_SVNT_HAS_DLL == 1) +# if defined (GIZMO1_HIGH_SVNT_BUILD_DLL) +# define GIZMO1_HIGH_SVNT_Export ACE_Proper_Export_Flag +# define GIZMO1_HIGH_SVNT_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T) +# define GIZMO1_HIGH_SVNT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# else /* GIZMO1_HIGH_SVNT_BUILD_DLL */ +# define GIZMO1_HIGH_SVNT_Export ACE_Proper_Import_Flag +# define GIZMO1_HIGH_SVNT_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T) +# define GIZMO1_HIGH_SVNT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# endif /* GIZMO1_HIGH_SVNT_BUILD_DLL */ +#else /* GIZMO1_HIGH_SVNT_HAS_DLL == 1 */ +# define GIZMO1_HIGH_SVNT_Export +# define GIZMO1_HIGH_SVNT_SINGLETON_DECLARATION(T) +# define GIZMO1_HIGH_SVNT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +#endif /* GIZMO1_HIGH_SVNT_HAS_DLL == 1 */ + +// Set GIZMO1_HIGH_SVNT_NTRACE = 0 to turn on library specific tracing even if +// tracing is turned off for ACE. +#if !defined (GIZMO1_HIGH_SVNT_NTRACE) +# if (ACE_NTRACE == 1) +# define GIZMO1_HIGH_SVNT_NTRACE 1 +# else /* (ACE_NTRACE == 1) */ +# define GIZMO1_HIGH_SVNT_NTRACE 0 +# endif /* (ACE_NTRACE == 1) */ +#endif /* !GIZMO1_HIGH_SVNT_NTRACE */ + +#if (GIZMO1_HIGH_SVNT_NTRACE == 1) +# define GIZMO1_HIGH_SVNT_TRACE(X) +#else /* (GIZMO1_HIGH_SVNT_NTRACE == 1) */ +# if !defined (ACE_HAS_TRACE) +# define ACE_HAS_TRACE +# endif /* ACE_HAS_TRACE */ +# define GIZMO1_HIGH_SVNT_TRACE(X) ACE_TRACE_IMPL(X) +# include "ace/Trace.h" +#endif /* (GIZMO1_HIGH_SVNT_NTRACE == 1) */ + +#endif /* GIZMO1_HIGH_SVNT_EXPORT_H */ + +// End of auto generated file. diff --git a/CIAO/examples/space/Gizmo1_Low/Gizmo1_Low.ccd b/CIAO/examples/space/Gizmo1_Low/Gizmo1_Low.ccd new file mode 100644 index 00000000000..13e5465af95 --- /dev/null +++ b/CIAO/examples/space/Gizmo1_Low/Gizmo1_Low.ccd @@ -0,0 +1,33 @@ +<?xml version="1.0"?> +<!DOCTYPE corbacomponent SYSTEM "corbacomponent.dtd"> + +<corbacomponent> + <corbaversion>3.0</corbaversion> + <componentrepid repid="IDL:SPACE/Gizmo1_Low:1.0"/> + <homerepid repid="IDL:SPACE/Gizmo1_Low_Factory:1.0"/> + <componentkind> + <session> + <servant lifetime="container"/> + </session> + </componentkind> + <threading policy="multithread"/> + <configurationcomplete set="true"/> + + <homefeatures + name="Gizmo1_Low_Factory" + repid="IDL:SPACE/Gizmo1_Low_Factory:1.0"> + </homefeatures> + + <componentfeatures + name="Gizmo1_Low" + repid="IDL:SPACE/Gizmo1_Low:1.0"> + <ports> + <emits + emitsname="observation_data" + eventtype="IDL:SPACE/Gizmo_Data:1.0"> + <eventpolicy policy="normal"/> + </emits> + </ports> + </componentfeatures> + +</corbacomponent> diff --git a/CIAO/examples/space/Gizmo1_Low/Gizmo1_Low.cidl b/CIAO/examples/space/Gizmo1_Low/Gizmo1_Low.cidl new file mode 100644 index 00000000000..36b61d835e5 --- /dev/null +++ b/CIAO/examples/space/Gizmo1_Low/Gizmo1_Low.cidl @@ -0,0 +1,20 @@ +// -*- CIDL -*- + +// This file was generated by +// $Id$ + +#ifndef _GIZMO1_LOW_CIDL_ +#define _GIZMO1_LOW_CIDL_ + +#include "Gizmo1_Low.idl" + +composition session Gizmo1_Low +{ + home executor Gizmo1_Low_Factory_Exec + { + implements SPACE::Gizmo1_Low_Factory; + manages Gizmo1_Low_Exec; + }; +}; + +#endif // !defined _GIZMO1_LOW_CIDL_ diff --git a/CIAO/examples/space/Gizmo1_Low/Gizmo1_Low.idl b/CIAO/examples/space/Gizmo1_Low/Gizmo1_Low.idl new file mode 100644 index 00000000000..4932dc6af59 --- /dev/null +++ b/CIAO/examples/space/Gizmo1_Low/Gizmo1_Low.idl @@ -0,0 +1,22 @@ + +#ifndef GIZMO1_LOW_IDL +#define GIZMO1_LOW_IDL + +#include <Components.idl> +#include "Event_Types.idl" + +module SPACE +{ + component Gizmo1_Low + { + emits Gizmo_Data observation_data; + }; + + home Gizmo1_Low_Factory + manages Gizmo1_Low + { + }; +}; + +#endif // GIZMO1_LOW_IDL + diff --git a/CIAO/examples/space/Gizmo1_Low/Gizmo1_Low.mpc b/CIAO/examples/space/Gizmo1_Low/Gizmo1_Low.mpc new file mode 100644 index 00000000000..cc74f0d2958 --- /dev/null +++ b/CIAO/examples/space/Gizmo1_Low/Gizmo1_Low.mpc @@ -0,0 +1,74 @@ +project(Gizmo1_Low_stub): ciao_client_dnc { + + sharedname = Gizmo1_Low_stub + libs += Event_Types_stub + after += Event_Types_stub + includes += ../common + idlflags += -Wb,stub_export_macro=GIZMO1_LOW_STUB_Export \ + -Wb,stub_export_include=Gizmo1_Low_stub_export.h \ + -Wb,skel_export_macro=GIZMO1_LOW_SVNT_Export \ + -Wb,skel_export_include=Gizmo1_Low_svnt_export.h \ + -I ../common + + dynamicflags = GIZMO1_LOW_STUB_BUILD_DLL + + IDL_Files { + Gizmo1_Low.idl + } + + Source_Files { + Gizmo1_LowC.cpp + } +} + +project(Gizmo1_Low_svnt) : ciao_servant_dnc { + after += Gizmo1_Low_stub + sharedname = Gizmo1_Low_svnt + libs += Gizmo1_Low_stub Event_Types_stub + includes += ../common + + idlflags += -Wb,export_macro=GIZMO1_LOW_SVNT_Export \ + -Wb,export_include=Gizmo1_Low_svnt_export.h \ + -I ../common + + dynamicflags = GIZMO1_LOW_SVNT_BUILD_DLL + + cidlflags -= -- + cidlflags += -I ../common -- + + CIDL_Files { + Gizmo1_Low.cidl + } + + IDL_Files { + Gizmo1_LowE.idl + } + + Source_Files { + Gizmo1_LowEC.cpp + Gizmo1_LowS.cpp + Gizmo1_Low_svnt.cpp + } +} + + +project(Gizmo1_Low_exec) : ciao_component_dnc { + after += Gizmo1_Low_svnt + sharedname = Gizmo1_Low_exec + libs += Gizmo1_Low_stub Gizmo1_Low_svnt Event_Types_stub + includes += ../common + + idlflags += -Wb,export_macro=GIZMO1_LOW_EXEC_Export \ + -Wb,export_include=Gizmo1_Low_exec_export.h + + dynamicflags = GIZMO1_LOW_EXEC_BUILD_DLL + + IDL_Files { + + } + + Source_Files { + + Gizmo1_Low_exec.cpp + } +} diff --git a/CIAO/examples/space/Gizmo1_Low/Gizmo1_Low_exec.cpp b/CIAO/examples/space/Gizmo1_Low/Gizmo1_Low_exec.cpp new file mode 100644 index 00000000000..8715a04d2ec --- /dev/null +++ b/CIAO/examples/space/Gizmo1_Low/Gizmo1_Low_exec.cpp @@ -0,0 +1,162 @@ +#include "Gizmo1_Low_exec.h" +#include "ciao/CIAO_common.h" +#include "tao/ORB_Core.h" +#include "ace/Reactor.h" +#include "ace/Time_Value.h" +#include "ace/Thread.h" + +namespace CIDL_Gizmo1_Low +{ + //================================================================== + // Component Executor Implementation Class: Gizmo1_Low_exec_i + //================================================================== + + Gizmo1_Low_exec_i::Gizmo1_Low_exec_i (void) + { + } + + Gizmo1_Low_exec_i::~Gizmo1_Low_exec_i (void) + { + } + + int + Gizmo1_Low_exec_i::handle_timeout (const ACE_Time_Value &, + const void *) + { + + ::SPACE::Gizmo_Data_var ev = new OBV_SPACE::Gizmo_Data; + ev->sender ("Gizmo1-Low"); + + ev->data (10); + this->context_->push_observation_data (ev); + return 0; + + } + + void + Gizmo1_Low_exec_i::set_session_context ( + ::Components::SessionContext_ptr ctx + ACE_ENV_ARG_DECL) + ACE_THROW_SPEC (( ::CORBA::SystemException, + ::Components::CCMException)) + { + this->context_ = + Gizmo1_Low_Context::_narrow ( + ctx + ACE_ENV_ARG_PARAMETER); + ACE_CHECK; + + if (this->context_ == 0) + { + ACE_THROW ( ::CORBA::INTERNAL ()); + } + } + + void + Gizmo1_Low_exec_i::ciao_preactivate ( + ACE_ENV_SINGLE_ARG_DECL_NOT_USED) + ACE_THROW_SPEC (( ::CORBA::SystemException, + ::Components::CCMException)) + { + // Your code here. + } + + void + Gizmo1_Low_exec_i::ciao_postactivate ( + ACE_ENV_SINGLE_ARG_DECL_NOT_USED) + ACE_THROW_SPEC (( ::CORBA::SystemException, + ::Components::CCMException)) + { + ACE_Reactor *reactor = + this->context_->_ciao_the_Container ()->the_ORB ()->orb_core ()->reactor (); + ACE_Time_Value interval (1000); + + reactor->owner (ACE_Thread::self ()); + if (reactor->schedule_timer (this, this, interval, interval) < 0) + { + ACE_ERROR ((LM_ERROR, "Exec-Agent: Error will registering " + "periodic task!\n")); + } + } + + void + Gizmo1_Low_exec_i::ccm_activate ( + ACE_ENV_SINGLE_ARG_DECL_NOT_USED) + ACE_THROW_SPEC (( ::CORBA::SystemException, + ::Components::CCMException)) + { + // Your code here. + } + + void + Gizmo1_Low_exec_i::ccm_passivate ( + ACE_ENV_SINGLE_ARG_DECL_NOT_USED) + ACE_THROW_SPEC (( ::CORBA::SystemException, + ::Components::CCMException)) + { + // Your code here. + } + + void + Gizmo1_Low_exec_i::ccm_remove ( + ACE_ENV_SINGLE_ARG_DECL_NOT_USED) + ACE_THROW_SPEC (( ::CORBA::SystemException, + ::Components::CCMException)) + { + // Your code here. + } + + //================================================================== + // Home Executor Implementation Class: Gizmo1_Low_Factory_exec_i + //================================================================== + + Gizmo1_Low_Factory_exec_i::Gizmo1_Low_Factory_exec_i (void) + { + } + + Gizmo1_Low_Factory_exec_i::~Gizmo1_Low_Factory_exec_i (void) + { + } + + // Supported or inherited operations. + + // Home operations. + + // Factory and finder operations. + + // Attribute operations. + + // Implicit operations. + + ::Components::EnterpriseComponent_ptr + Gizmo1_Low_Factory_exec_i::create ( + ACE_ENV_SINGLE_ARG_DECL) + ACE_THROW_SPEC (( ::CORBA::SystemException, + ::Components::CCMException)) + { + ::Components::EnterpriseComponent_ptr retval = + ::Components::EnterpriseComponent::_nil (); + + ACE_NEW_THROW_EX ( + retval, + Gizmo1_Low_exec_i, + ::CORBA::NO_MEMORY ()); + ACE_CHECK_RETURN (::Components::EnterpriseComponent::_nil ()); + + return retval; + } + + extern "C" GIZMO1_LOW_EXEC_Export ::Components::HomeExecutorBase_ptr + create_SPACE_Gizmo1_Low_Factory_Impl (void) + { + ::Components::HomeExecutorBase_ptr retval = + ::Components::HomeExecutorBase::_nil (); + + ACE_NEW_RETURN ( + retval, + Gizmo1_Low_Factory_exec_i, + ::Components::HomeExecutorBase::_nil ()); + + return retval; + } +} diff --git a/CIAO/examples/space/Gizmo1_Low/Gizmo1_Low_exec.h b/CIAO/examples/space/Gizmo1_Low/Gizmo1_Low_exec.h new file mode 100644 index 00000000000..e2d352935a2 --- /dev/null +++ b/CIAO/examples/space/Gizmo1_Low/Gizmo1_Low_exec.h @@ -0,0 +1,109 @@ +#ifndef CIAO_GIZMO1_LOW_EXEC_H +#define CIAO_GIZMO1_LOW_EXEC_H + +#include /**/ "ace/pre.h" + +#include "Gizmo1_Low_svnt.h" +#include "ace/Event_Handler.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + +#include "Gizmo1_Low_exec_export.h" +#include "tao/LocalObject.h" + +namespace CIDL_Gizmo1_Low +{ + class GIZMO1_LOW_EXEC_Export Gizmo1_Low_exec_i + : public virtual Gizmo1_Low_Exec, + public virtual TAO_Local_RefCounted_Object, + public virtual ACE_Event_Handler + { + public: + Gizmo1_Low_exec_i (void); + virtual ~Gizmo1_Low_exec_i (void); + + virtual int handle_timeout (const ACE_Time_Value &, + const void *ref); + + virtual void + set_session_context ( + ::Components::SessionContext_ptr ctx + ACE_ENV_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC (( + ::CORBA::SystemException, + ::Components::CCMException)); + + virtual void + ciao_preactivate ( + ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC (( + ::CORBA::SystemException, + ::Components::CCMException)); + + virtual void + ciao_postactivate ( + ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC (( + ::CORBA::SystemException, + ::Components::CCMException)); + + virtual void + ccm_activate ( + ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC (( + ::CORBA::SystemException, + ::Components::CCMException)); + + virtual void + ccm_passivate ( + ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC (( + ::CORBA::SystemException, + ::Components::CCMException)); + + virtual void + ccm_remove ( + ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC (( + ::CORBA::SystemException, + ::Components::CCMException)); + + protected: + Gizmo1_Low_Context *context_; + }; + + class GIZMO1_LOW_EXEC_Export Gizmo1_Low_Factory_exec_i + : public virtual Gizmo1_Low_Factory_Exec, + public virtual TAO_Local_RefCounted_Object + { + public: + Gizmo1_Low_Factory_exec_i (void); + virtual ~Gizmo1_Low_Factory_exec_i (void); + + // Supported or inherited operations. + + // Home operations. + + // Factory and finder operations. + + // Attribute operations. + + // Implicit operations. + + virtual ::Components::EnterpriseComponent_ptr + create ( + ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC (( + ::CORBA::SystemException, + ::Components::CCMException)); + }; + + extern "C" GIZMO1_LOW_EXEC_Export ::Components::HomeExecutorBase_ptr + create_SPACE_Gizmo1_Low_Factory_Impl (void); +} + +#include /**/ "ace/post.h" + +#endif /* CIAO_GIZMO1_LOW_EXEC_H */ diff --git a/CIAO/examples/space/Gizmo1_Low/Gizmo1_Low_exec_export.h b/CIAO/examples/space/Gizmo1_Low/Gizmo1_Low_exec_export.h new file mode 100644 index 00000000000..cfceb811c7f --- /dev/null +++ b/CIAO/examples/space/Gizmo1_Low/Gizmo1_Low_exec_export.h @@ -0,0 +1,58 @@ + +// -*- C++ -*- +// $Id$ +// Definition for Win32 Export directives. +// This file is generated automatically by generate_export_file.pl GIZMO1_LOW_EXEC +// ------------------------------ +#ifndef GIZMO1_LOW_EXEC_EXPORT_H +#define GIZMO1_LOW_EXEC_EXPORT_H + +#include "ace/config-all.h" + +#if defined (ACE_AS_STATIC_LIBS) && !defined (GIZMO1_LOW_EXEC_HAS_DLL) +# define GIZMO1_LOW_EXEC_HAS_DLL 0 +#endif /* ACE_AS_STATIC_LIBS && GIZMO1_LOW_EXEC_HAS_DLL */ + +#if !defined (GIZMO1_LOW_EXEC_HAS_DLL) +# define GIZMO1_LOW_EXEC_HAS_DLL 1 +#endif /* ! GIZMO1_LOW_EXEC_HAS_DLL */ + +#if defined (GIZMO1_LOW_EXEC_HAS_DLL) && (GIZMO1_LOW_EXEC_HAS_DLL == 1) +# if defined (GIZMO1_LOW_EXEC_BUILD_DLL) +# define GIZMO1_LOW_EXEC_Export ACE_Proper_Export_Flag +# define GIZMO1_LOW_EXEC_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T) +# define GIZMO1_LOW_EXEC_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# else /* GIZMO1_LOW_EXEC_BUILD_DLL */ +# define GIZMO1_LOW_EXEC_Export ACE_Proper_Import_Flag +# define GIZMO1_LOW_EXEC_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T) +# define GIZMO1_LOW_EXEC_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# endif /* GIZMO1_LOW_EXEC_BUILD_DLL */ +#else /* GIZMO1_LOW_EXEC_HAS_DLL == 1 */ +# define GIZMO1_LOW_EXEC_Export +# define GIZMO1_LOW_EXEC_SINGLETON_DECLARATION(T) +# define GIZMO1_LOW_EXEC_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +#endif /* GIZMO1_LOW_EXEC_HAS_DLL == 1 */ + +// Set GIZMO1_LOW_EXEC_NTRACE = 0 to turn on library specific tracing even if +// tracing is turned off for ACE. +#if !defined (GIZMO1_LOW_EXEC_NTRACE) +# if (ACE_NTRACE == 1) +# define GIZMO1_LOW_EXEC_NTRACE 1 +# else /* (ACE_NTRACE == 1) */ +# define GIZMO1_LOW_EXEC_NTRACE 0 +# endif /* (ACE_NTRACE == 1) */ +#endif /* !GIZMO1_LOW_EXEC_NTRACE */ + +#if (GIZMO1_LOW_EXEC_NTRACE == 1) +# define GIZMO1_LOW_EXEC_TRACE(X) +#else /* (GIZMO1_LOW_EXEC_NTRACE == 1) */ +# if !defined (ACE_HAS_TRACE) +# define ACE_HAS_TRACE +# endif /* ACE_HAS_TRACE */ +# define GIZMO1_LOW_EXEC_TRACE(X) ACE_TRACE_IMPL(X) +# include "ace/Trace.h" +#endif /* (GIZMO1_LOW_EXEC_NTRACE == 1) */ + +#endif /* GIZMO1_LOW_EXEC_EXPORT_H */ + +// End of auto generated file. diff --git a/CIAO/examples/space/Gizmo1_Low/Gizmo1_Low_stub_export.h b/CIAO/examples/space/Gizmo1_Low/Gizmo1_Low_stub_export.h new file mode 100644 index 00000000000..e87c2c7620b --- /dev/null +++ b/CIAO/examples/space/Gizmo1_Low/Gizmo1_Low_stub_export.h @@ -0,0 +1,58 @@ + +// -*- C++ -*- +// $Id$ +// Definition for Win32 Export directives. +// This file is generated automatically by generate_export_file.pl GIZMO1_LOW_STUB +// ------------------------------ +#ifndef GIZMO1_LOW_STUB_EXPORT_H +#define GIZMO1_LOW_STUB_EXPORT_H + +#include "ace/config-all.h" + +#if defined (ACE_AS_STATIC_LIBS) && !defined (GIZMO1_LOW_STUB_HAS_DLL) +# define GIZMO1_LOW_STUB_HAS_DLL 0 +#endif /* ACE_AS_STATIC_LIBS && GIZMO1_LOW_STUB_HAS_DLL */ + +#if !defined (GIZMO1_LOW_STUB_HAS_DLL) +# define GIZMO1_LOW_STUB_HAS_DLL 1 +#endif /* ! GIZMO1_LOW_STUB_HAS_DLL */ + +#if defined (GIZMO1_LOW_STUB_HAS_DLL) && (GIZMO1_LOW_STUB_HAS_DLL == 1) +# if defined (GIZMO1_LOW_STUB_BUILD_DLL) +# define GIZMO1_LOW_STUB_Export ACE_Proper_Export_Flag +# define GIZMO1_LOW_STUB_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T) +# define GIZMO1_LOW_STUB_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# else /* GIZMO1_LOW_STUB_BUILD_DLL */ +# define GIZMO1_LOW_STUB_Export ACE_Proper_Import_Flag +# define GIZMO1_LOW_STUB_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T) +# define GIZMO1_LOW_STUB_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# endif /* GIZMO1_LOW_STUB_BUILD_DLL */ +#else /* GIZMO1_LOW_STUB_HAS_DLL == 1 */ +# define GIZMO1_LOW_STUB_Export +# define GIZMO1_LOW_STUB_SINGLETON_DECLARATION(T) +# define GIZMO1_LOW_STUB_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +#endif /* GIZMO1_LOW_STUB_HAS_DLL == 1 */ + +// Set GIZMO1_LOW_STUB_NTRACE = 0 to turn on library specific tracing even if +// tracing is turned off for ACE. +#if !defined (GIZMO1_LOW_STUB_NTRACE) +# if (ACE_NTRACE == 1) +# define GIZMO1_LOW_STUB_NTRACE 1 +# else /* (ACE_NTRACE == 1) */ +# define GIZMO1_LOW_STUB_NTRACE 0 +# endif /* (ACE_NTRACE == 1) */ +#endif /* !GIZMO1_LOW_STUB_NTRACE */ + +#if (GIZMO1_LOW_STUB_NTRACE == 1) +# define GIZMO1_LOW_STUB_TRACE(X) +#else /* (GIZMO1_LOW_STUB_NTRACE == 1) */ +# if !defined (ACE_HAS_TRACE) +# define ACE_HAS_TRACE +# endif /* ACE_HAS_TRACE */ +# define GIZMO1_LOW_STUB_TRACE(X) ACE_TRACE_IMPL(X) +# include "ace/Trace.h" +#endif /* (GIZMO1_LOW_STUB_NTRACE == 1) */ + +#endif /* GIZMO1_LOW_STUB_EXPORT_H */ + +// End of auto generated file. diff --git a/CIAO/examples/space/Gizmo1_Low/Gizmo1_Low_svnt_export.h b/CIAO/examples/space/Gizmo1_Low/Gizmo1_Low_svnt_export.h new file mode 100644 index 00000000000..5891b0611a9 --- /dev/null +++ b/CIAO/examples/space/Gizmo1_Low/Gizmo1_Low_svnt_export.h @@ -0,0 +1,58 @@ + +// -*- C++ -*- +// $Id$ +// Definition for Win32 Export directives. +// This file is generated automatically by generate_export_file.pl GIZMO1_LOW_SVNT +// ------------------------------ +#ifndef GIZMO1_LOW_SVNT_EXPORT_H +#define GIZMO1_LOW_SVNT_EXPORT_H + +#include "ace/config-all.h" + +#if defined (ACE_AS_STATIC_LIBS) && !defined (GIZMO1_LOW_SVNT_HAS_DLL) +# define GIZMO1_LOW_SVNT_HAS_DLL 0 +#endif /* ACE_AS_STATIC_LIBS && GIZMO1_LOW_SVNT_HAS_DLL */ + +#if !defined (GIZMO1_LOW_SVNT_HAS_DLL) +# define GIZMO1_LOW_SVNT_HAS_DLL 1 +#endif /* ! GIZMO1_LOW_SVNT_HAS_DLL */ + +#if defined (GIZMO1_LOW_SVNT_HAS_DLL) && (GIZMO1_LOW_SVNT_HAS_DLL == 1) +# if defined (GIZMO1_LOW_SVNT_BUILD_DLL) +# define GIZMO1_LOW_SVNT_Export ACE_Proper_Export_Flag +# define GIZMO1_LOW_SVNT_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T) +# define GIZMO1_LOW_SVNT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# else /* GIZMO1_LOW_SVNT_BUILD_DLL */ +# define GIZMO1_LOW_SVNT_Export ACE_Proper_Import_Flag +# define GIZMO1_LOW_SVNT_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T) +# define GIZMO1_LOW_SVNT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# endif /* GIZMO1_LOW_SVNT_BUILD_DLL */ +#else /* GIZMO1_LOW_SVNT_HAS_DLL == 1 */ +# define GIZMO1_LOW_SVNT_Export +# define GIZMO1_LOW_SVNT_SINGLETON_DECLARATION(T) +# define GIZMO1_LOW_SVNT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +#endif /* GIZMO1_LOW_SVNT_HAS_DLL == 1 */ + +// Set GIZMO1_LOW_SVNT_NTRACE = 0 to turn on library specific tracing even if +// tracing is turned off for ACE. +#if !defined (GIZMO1_LOW_SVNT_NTRACE) +# if (ACE_NTRACE == 1) +# define GIZMO1_LOW_SVNT_NTRACE 1 +# else /* (ACE_NTRACE == 1) */ +# define GIZMO1_LOW_SVNT_NTRACE 0 +# endif /* (ACE_NTRACE == 1) */ +#endif /* !GIZMO1_LOW_SVNT_NTRACE */ + +#if (GIZMO1_LOW_SVNT_NTRACE == 1) +# define GIZMO1_LOW_SVNT_TRACE(X) +#else /* (GIZMO1_LOW_SVNT_NTRACE == 1) */ +# if !defined (ACE_HAS_TRACE) +# define ACE_HAS_TRACE +# endif /* ACE_HAS_TRACE */ +# define GIZMO1_LOW_SVNT_TRACE(X) ACE_TRACE_IMPL(X) +# include "ace/Trace.h" +#endif /* (GIZMO1_LOW_SVNT_NTRACE == 1) */ + +#endif /* GIZMO1_LOW_SVNT_EXPORT_H */ + +// End of auto generated file. diff --git a/CIAO/examples/space/Gizmo1_Medium/Gizmo1_Medium.ccd b/CIAO/examples/space/Gizmo1_Medium/Gizmo1_Medium.ccd new file mode 100644 index 00000000000..f2a5ddc135e --- /dev/null +++ b/CIAO/examples/space/Gizmo1_Medium/Gizmo1_Medium.ccd @@ -0,0 +1,33 @@ +<?xml version="1.0"?> +<!DOCTYPE corbacomponent SYSTEM "corbacomponent.dtd"> + +<corbacomponent> + <corbaversion>3.0</corbaversion> + <componentrepid repid="IDL:SPACE/Gizmo1_Medium:1.0"/> + <homerepid repid="IDL:SPACE/Gizmo1_Medium_Factory:1.0"/> + <componentkind> + <session> + <servant lifetime="container"/> + </session> + </componentkind> + <threading policy="multithread"/> + <configurationcomplete set="true"/> + + <homefeatures + name="Gizmo1_Medium_Factory" + repid="IDL:SPACE/Gizmo1_Medium_Factory:1.0"> + </homefeatures> + + <componentfeatures + name="Gizmo1_Medium" + repid="IDL:SPACE/Gizmo1_Medium:1.0"> + <ports> + <emits + emitsname="observation_data" + eventtype="IDL:SPACE/Gizmo_Data:1.0"> + <eventpolicy policy="normal"/> + </emits> + </ports> + </componentfeatures> + +</corbacomponent> diff --git a/CIAO/examples/space/Gizmo1_Medium/Gizmo1_Medium.cidl b/CIAO/examples/space/Gizmo1_Medium/Gizmo1_Medium.cidl new file mode 100644 index 00000000000..89e0750fcd1 --- /dev/null +++ b/CIAO/examples/space/Gizmo1_Medium/Gizmo1_Medium.cidl @@ -0,0 +1,20 @@ +// -*- CIDL -*- + +// This file was generated by +// $Id$ + +#ifndef _GIZMO1_MEDIUM_CIDL_ +#define _GIZMO1_MEDIUM_CIDL_ + +#include "Gizmo1_Medium.idl" + +composition session Gizmo1_Medium +{ + home executor Gizmo1_Medium_Factory_Exec + { + implements SPACE::Gizmo1_Medium_Factory; + manages Gizmo1_Medium_Exec; + }; +}; + +#endif // !defined _GIZMO1_MEDIUM_CIDL_ diff --git a/CIAO/examples/space/Gizmo1_Medium/Gizmo1_Medium.idl b/CIAO/examples/space/Gizmo1_Medium/Gizmo1_Medium.idl new file mode 100644 index 00000000000..0b515473b6e --- /dev/null +++ b/CIAO/examples/space/Gizmo1_Medium/Gizmo1_Medium.idl @@ -0,0 +1,22 @@ + +#ifndef GIZMO1_MEDIUM_IDL +#define GIZMO1_MEDIUM_IDL + +#include <Components.idl> +#include "Event_Types.idl" + +module SPACE +{ + component Gizmo1_Medium + { + emits Gizmo_Data observation_data; + }; + + home Gizmo1_Medium_Factory + manages Gizmo1_Medium + { + }; +}; + +#endif // GIZMO1_MEDIUM_IDL + diff --git a/CIAO/examples/space/Gizmo1_Medium/Gizmo1_Medium.mpc b/CIAO/examples/space/Gizmo1_Medium/Gizmo1_Medium.mpc new file mode 100644 index 00000000000..468fe642d8b --- /dev/null +++ b/CIAO/examples/space/Gizmo1_Medium/Gizmo1_Medium.mpc @@ -0,0 +1,76 @@ +project(Gizmo1_Medium_stub): ciao_client_dnc { + + sharedname = Gizmo1_Medium_stub + libs += Event_Types_stub + after += Event_Types_stub + includes += ../common + idlflags += -Wb,stub_export_macro=GIZMO1_MEDIUM_STUB_Export \ + -Wb,stub_export_include=Gizmo1_Medium_stub_export.h \ + -Wb,skel_export_macro=GIZMO1_MEDIUM_SVNT_Export \ + -Wb,skel_export_include=Gizmo1_Medium_svnt_export.h \ + -I ../common + + + dynamicflags = GIZMO1_MEDIUM_STUB_BUILD_DLL + + IDL_Files { + Gizmo1_Medium.idl + } + + Source_Files { + Gizmo1_MediumC.cpp + } +} + +project(Gizmo1_Medium_svnt) : ciao_servant_dnc { + after += Gizmo1_Medium_stub + sharedname = Gizmo1_Medium_svnt + libs += Gizmo1_Medium_stub Event_Types_stub + includes += ../common + + idlflags += -Wb,export_macro=GIZMO1_MEDIUM_SVNT_Export \ + -Wb,export_include=Gizmo1_Medium_svnt_export.h \ + -I ../common + + dynamicflags = GIZMO1_MEDIUM_SVNT_BUILD_DLL + + + cidlflags -= -- + cidlflags += -I ../common -- + + CIDL_Files { + Gizmo1_Medium.cidl + } + + IDL_Files { + Gizmo1_MediumE.idl + } + + Source_Files { + Gizmo1_MediumEC.cpp + Gizmo1_MediumS.cpp + Gizmo1_Medium_svnt.cpp + } +} + + +project(Gizmo1_Medium_exec) : ciao_component_dnc { + after += Gizmo1_Medium_svnt + sharedname = Gizmo1_Medium_exec + libs += Gizmo1_Medium_stub Gizmo1_Medium_svnt Event_Types_stub + includes += ../common + + idlflags += -Wb,export_macro=GIZMO1_MEDIUM_EXEC_Export \ + -Wb,export_include=Gizmo1_Medium_exec_export.h + + dynamicflags = GIZMO1_MEDIUM_EXEC_BUILD_DLL + + IDL_Files { + + } + + Source_Files { + + Gizmo1_Medium_exec.cpp + } +} diff --git a/CIAO/examples/space/Gizmo1_Medium/Gizmo1_Medium_exec.cpp b/CIAO/examples/space/Gizmo1_Medium/Gizmo1_Medium_exec.cpp new file mode 100644 index 00000000000..9a11d46448d --- /dev/null +++ b/CIAO/examples/space/Gizmo1_Medium/Gizmo1_Medium_exec.cpp @@ -0,0 +1,175 @@ +#include "Gizmo1_Medium_exec.h" +#include "ciao/CIAO_common.h" +#include "tao/ORB_Core.h" +#include "ace/Reactor.h" +#include "ace/Time_Value.h" +#include "ace/Thread.h" + +namespace CIDL_Gizmo1_Medium +{ + //================================================================== + // Component Executor Implementation Class: Gizmo1_Medium_exec_i + //================================================================== + + Gizmo1_Medium_exec_i::Gizmo1_Medium_exec_i (void) + { + } + + Gizmo1_Medium_exec_i::~Gizmo1_Medium_exec_i (void) + { + } + + int + Gizmo1_Medium_exec_i::handle_timeout (const ACE_Time_Value &, + const void *) + { + + ::SPACE::Gizmo_Data_var ev = new OBV_SPACE::Gizmo_Data; + ev->sender ("Gizmo1-Medium"); + + ev->data (100); + + // ACE_DEBUG ((LM_DEBUG, "firing the observation\n")); + + try + { + this->context_->push_observation_data (ev); + } + catch (CORBA::Exception &) + { + } + return 0; + + } + + + void + Gizmo1_Medium_exec_i::set_session_context ( + ::Components::SessionContext_ptr ctx + ACE_ENV_ARG_DECL) + ACE_THROW_SPEC (( ::CORBA::SystemException, + ::Components::CCMException)) + { + this->context_ = + Gizmo1_Medium_Context::_narrow ( + ctx + ACE_ENV_ARG_PARAMETER); + ACE_CHECK; + + if (this->context_ == 0) + { + ACE_THROW ( ::CORBA::INTERNAL ()); + } + } + + void + Gizmo1_Medium_exec_i::ciao_preactivate ( + ACE_ENV_SINGLE_ARG_DECL_NOT_USED) + ACE_THROW_SPEC (( ::CORBA::SystemException, + ::Components::CCMException)) + { + // Your code here. + } + + void + Gizmo1_Medium_exec_i::ciao_postactivate ( + ACE_ENV_SINGLE_ARG_DECL_NOT_USED) + ACE_THROW_SPEC (( ::CORBA::SystemException, + ::Components::CCMException)) + { + ACE_Reactor *reactor = + this->context_->_ciao_the_Container ()->the_ORB ()->orb_core ()->reactor (); + ACE_Time_Value interval (5); + + ACE_DEBUG ((LM_DEBUG, "Registering the timer\n")); + + + reactor->owner (ACE_Thread::self ()); + if (reactor->schedule_timer (this, this, interval, interval) < 0) + { + ACE_ERROR ((LM_ERROR, "Exec-Agent: Error will registering " + "periodic task!\n")); + } + } + + void + Gizmo1_Medium_exec_i::ccm_activate ( + ACE_ENV_SINGLE_ARG_DECL_NOT_USED) + ACE_THROW_SPEC (( ::CORBA::SystemException, + ::Components::CCMException)) + { + // Your code here. + } + + void + Gizmo1_Medium_exec_i::ccm_passivate ( + ACE_ENV_SINGLE_ARG_DECL_NOT_USED) + ACE_THROW_SPEC (( ::CORBA::SystemException, + ::Components::CCMException)) + { + // Your code here. + } + + void + Gizmo1_Medium_exec_i::ccm_remove ( + ACE_ENV_SINGLE_ARG_DECL_NOT_USED) + ACE_THROW_SPEC (( ::CORBA::SystemException, + ::Components::CCMException)) + { + // Your code here. + } + + //================================================================== + // Home Executor Implementation Class: Gizmo1_Medium_Factory_exec_i + //================================================================== + + Gizmo1_Medium_Factory_exec_i::Gizmo1_Medium_Factory_exec_i (void) + { + } + + Gizmo1_Medium_Factory_exec_i::~Gizmo1_Medium_Factory_exec_i (void) + { + } + + // Supported or inherited operations. + + // Home operations. + + // Factory and finder operations. + + // Attribute operations. + + // Implicit operations. + + ::Components::EnterpriseComponent_ptr + Gizmo1_Medium_Factory_exec_i::create ( + ACE_ENV_SINGLE_ARG_DECL) + ACE_THROW_SPEC (( ::CORBA::SystemException, + ::Components::CCMException)) + { + ::Components::EnterpriseComponent_ptr retval = + ::Components::EnterpriseComponent::_nil (); + + ACE_NEW_THROW_EX ( + retval, + Gizmo1_Medium_exec_i, + ::CORBA::NO_MEMORY ()); + ACE_CHECK_RETURN (::Components::EnterpriseComponent::_nil ()); + + return retval; + } + + extern "C" GIZMO1_MEDIUM_EXEC_Export ::Components::HomeExecutorBase_ptr + create_SPACE_Gizmo1_Medium_Factory_Impl (void) + { + ::Components::HomeExecutorBase_ptr retval = + ::Components::HomeExecutorBase::_nil (); + + ACE_NEW_RETURN ( + retval, + Gizmo1_Medium_Factory_exec_i, + ::Components::HomeExecutorBase::_nil ()); + + return retval; + } +} diff --git a/CIAO/examples/space/Gizmo1_Medium/Gizmo1_Medium_exec.h b/CIAO/examples/space/Gizmo1_Medium/Gizmo1_Medium_exec.h new file mode 100644 index 00000000000..7c5151ce1e4 --- /dev/null +++ b/CIAO/examples/space/Gizmo1_Medium/Gizmo1_Medium_exec.h @@ -0,0 +1,109 @@ +#ifndef CIAO_GIZMO1_MEDIUM_EXEC_H +#define CIAO_GIZMO1_MEDIUM_EXEC_H + +#include /**/ "ace/pre.h" + +#include "Gizmo1_Medium_svnt.h" +#include "ace/Event_Handler.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + +#include "Gizmo1_Medium_exec_export.h" +#include "tao/LocalObject.h" + +namespace CIDL_Gizmo1_Medium +{ + class GIZMO1_MEDIUM_EXEC_Export Gizmo1_Medium_exec_i + : public virtual Gizmo1_Medium_Exec, + public virtual TAO_Local_RefCounted_Object, + public virtual ACE_Event_Handler + { + public: + Gizmo1_Medium_exec_i (void); + virtual ~Gizmo1_Medium_exec_i (void); + + virtual int handle_timeout (const ACE_Time_Value &, + const void *ref); + + virtual void + set_session_context ( + ::Components::SessionContext_ptr ctx + ACE_ENV_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC (( + ::CORBA::SystemException, + ::Components::CCMException)); + + virtual void + ciao_preactivate ( + ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC (( + ::CORBA::SystemException, + ::Components::CCMException)); + + virtual void + ciao_postactivate ( + ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC (( + ::CORBA::SystemException, + ::Components::CCMException)); + + virtual void + ccm_activate ( + ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC (( + ::CORBA::SystemException, + ::Components::CCMException)); + + virtual void + ccm_passivate ( + ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC (( + ::CORBA::SystemException, + ::Components::CCMException)); + + virtual void + ccm_remove ( + ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC (( + ::CORBA::SystemException, + ::Components::CCMException)); + + protected: + Gizmo1_Medium_Context *context_; + }; + + class GIZMO1_MEDIUM_EXEC_Export Gizmo1_Medium_Factory_exec_i + : public virtual Gizmo1_Medium_Factory_Exec, + public virtual TAO_Local_RefCounted_Object + { + public: + Gizmo1_Medium_Factory_exec_i (void); + virtual ~Gizmo1_Medium_Factory_exec_i (void); + + // Supported or inherited operations. + + // Home operations. + + // Factory and finder operations. + + // Attribute operations. + + // Implicit operations. + + virtual ::Components::EnterpriseComponent_ptr + create ( + ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC (( + ::CORBA::SystemException, + ::Components::CCMException)); + }; + + extern "C" GIZMO1_MEDIUM_EXEC_Export ::Components::HomeExecutorBase_ptr + create_SPACE_Gizmo1_Medium_Factory_Impl (void); +} + +#include /**/ "ace/post.h" + +#endif /* CIAO_GIZMO1_MEDIUM_EXEC_H */ diff --git a/CIAO/examples/space/Gizmo1_Medium/Gizmo1_Medium_exec_export.h b/CIAO/examples/space/Gizmo1_Medium/Gizmo1_Medium_exec_export.h new file mode 100644 index 00000000000..234e76523d0 --- /dev/null +++ b/CIAO/examples/space/Gizmo1_Medium/Gizmo1_Medium_exec_export.h @@ -0,0 +1,58 @@ + +// -*- C++ -*- +// $Id$ +// Definition for Win32 Export directives. +// This file is generated automatically by generate_export_file.pl GIZMO1_MEDIUM_EXEC +// ------------------------------ +#ifndef GIZMO1_MEDIUM_EXEC_EXPORT_H +#define GIZMO1_MEDIUM_EXEC_EXPORT_H + +#include "ace/config-all.h" + +#if defined (ACE_AS_STATIC_LIBS) && !defined (GIZMO1_MEDIUM_EXEC_HAS_DLL) +# define GIZMO1_MEDIUM_EXEC_HAS_DLL 0 +#endif /* ACE_AS_STATIC_LIBS && GIZMO1_MEDIUM_EXEC_HAS_DLL */ + +#if !defined (GIZMO1_MEDIUM_EXEC_HAS_DLL) +# define GIZMO1_MEDIUM_EXEC_HAS_DLL 1 +#endif /* ! GIZMO1_MEDIUM_EXEC_HAS_DLL */ + +#if defined (GIZMO1_MEDIUM_EXEC_HAS_DLL) && (GIZMO1_MEDIUM_EXEC_HAS_DLL == 1) +# if defined (GIZMO1_MEDIUM_EXEC_BUILD_DLL) +# define GIZMO1_MEDIUM_EXEC_Export ACE_Proper_Export_Flag +# define GIZMO1_MEDIUM_EXEC_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T) +# define GIZMO1_MEDIUM_EXEC_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# else /* GIZMO1_MEDIUM_EXEC_BUILD_DLL */ +# define GIZMO1_MEDIUM_EXEC_Export ACE_Proper_Import_Flag +# define GIZMO1_MEDIUM_EXEC_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T) +# define GIZMO1_MEDIUM_EXEC_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# endif /* GIZMO1_MEDIUM_EXEC_BUILD_DLL */ +#else /* GIZMO1_MEDIUM_EXEC_HAS_DLL == 1 */ +# define GIZMO1_MEDIUM_EXEC_Export +# define GIZMO1_MEDIUM_EXEC_SINGLETON_DECLARATION(T) +# define GIZMO1_MEDIUM_EXEC_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +#endif /* GIZMO1_MEDIUM_EXEC_HAS_DLL == 1 */ + +// Set GIZMO1_MEDIUM_EXEC_NTRACE = 0 to turn on library specific tracing even if +// tracing is turned off for ACE. +#if !defined (GIZMO1_MEDIUM_EXEC_NTRACE) +# if (ACE_NTRACE == 1) +# define GIZMO1_MEDIUM_EXEC_NTRACE 1 +# else /* (ACE_NTRACE == 1) */ +# define GIZMO1_MEDIUM_EXEC_NTRACE 0 +# endif /* (ACE_NTRACE == 1) */ +#endif /* !GIZMO1_MEDIUM_EXEC_NTRACE */ + +#if (GIZMO1_MEDIUM_EXEC_NTRACE == 1) +# define GIZMO1_MEDIUM_EXEC_TRACE(X) +#else /* (GIZMO1_MEDIUM_EXEC_NTRACE == 1) */ +# if !defined (ACE_HAS_TRACE) +# define ACE_HAS_TRACE +# endif /* ACE_HAS_TRACE */ +# define GIZMO1_MEDIUM_EXEC_TRACE(X) ACE_TRACE_IMPL(X) +# include "ace/Trace.h" +#endif /* (GIZMO1_MEDIUM_EXEC_NTRACE == 1) */ + +#endif /* GIZMO1_MEDIUM_EXEC_EXPORT_H */ + +// End of auto generated file. diff --git a/CIAO/examples/space/Gizmo1_Medium/Gizmo1_Medium_stub_export.h b/CIAO/examples/space/Gizmo1_Medium/Gizmo1_Medium_stub_export.h new file mode 100644 index 00000000000..63b3b078f67 --- /dev/null +++ b/CIAO/examples/space/Gizmo1_Medium/Gizmo1_Medium_stub_export.h @@ -0,0 +1,58 @@ + +// -*- C++ -*- +// $Id$ +// Definition for Win32 Export directives. +// This file is generated automatically by generate_export_file.pl GIZMO1_MEDIUM_STUB +// ------------------------------ +#ifndef GIZMO1_MEDIUM_STUB_EXPORT_H +#define GIZMO1_MEDIUM_STUB_EXPORT_H + +#include "ace/config-all.h" + +#if defined (ACE_AS_STATIC_LIBS) && !defined (GIZMO1_MEDIUM_STUB_HAS_DLL) +# define GIZMO1_MEDIUM_STUB_HAS_DLL 0 +#endif /* ACE_AS_STATIC_LIBS && GIZMO1_MEDIUM_STUB_HAS_DLL */ + +#if !defined (GIZMO1_MEDIUM_STUB_HAS_DLL) +# define GIZMO1_MEDIUM_STUB_HAS_DLL 1 +#endif /* ! GIZMO1_MEDIUM_STUB_HAS_DLL */ + +#if defined (GIZMO1_MEDIUM_STUB_HAS_DLL) && (GIZMO1_MEDIUM_STUB_HAS_DLL == 1) +# if defined (GIZMO1_MEDIUM_STUB_BUILD_DLL) +# define GIZMO1_MEDIUM_STUB_Export ACE_Proper_Export_Flag +# define GIZMO1_MEDIUM_STUB_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T) +# define GIZMO1_MEDIUM_STUB_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# else /* GIZMO1_MEDIUM_STUB_BUILD_DLL */ +# define GIZMO1_MEDIUM_STUB_Export ACE_Proper_Import_Flag +# define GIZMO1_MEDIUM_STUB_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T) +# define GIZMO1_MEDIUM_STUB_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# endif /* GIZMO1_MEDIUM_STUB_BUILD_DLL */ +#else /* GIZMO1_MEDIUM_STUB_HAS_DLL == 1 */ +# define GIZMO1_MEDIUM_STUB_Export +# define GIZMO1_MEDIUM_STUB_SINGLETON_DECLARATION(T) +# define GIZMO1_MEDIUM_STUB_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +#endif /* GIZMO1_MEDIUM_STUB_HAS_DLL == 1 */ + +// Set GIZMO1_MEDIUM_STUB_NTRACE = 0 to turn on library specific tracing even if +// tracing is turned off for ACE. +#if !defined (GIZMO1_MEDIUM_STUB_NTRACE) +# if (ACE_NTRACE == 1) +# define GIZMO1_MEDIUM_STUB_NTRACE 1 +# else /* (ACE_NTRACE == 1) */ +# define GIZMO1_MEDIUM_STUB_NTRACE 0 +# endif /* (ACE_NTRACE == 1) */ +#endif /* !GIZMO1_MEDIUM_STUB_NTRACE */ + +#if (GIZMO1_MEDIUM_STUB_NTRACE == 1) +# define GIZMO1_MEDIUM_STUB_TRACE(X) +#else /* (GIZMO1_MEDIUM_STUB_NTRACE == 1) */ +# if !defined (ACE_HAS_TRACE) +# define ACE_HAS_TRACE +# endif /* ACE_HAS_TRACE */ +# define GIZMO1_MEDIUM_STUB_TRACE(X) ACE_TRACE_IMPL(X) +# include "ace/Trace.h" +#endif /* (GIZMO1_MEDIUM_STUB_NTRACE == 1) */ + +#endif /* GIZMO1_MEDIUM_STUB_EXPORT_H */ + +// End of auto generated file. diff --git a/CIAO/examples/space/Gizmo1_Medium/Gizmo1_Medium_svnt_export.h b/CIAO/examples/space/Gizmo1_Medium/Gizmo1_Medium_svnt_export.h new file mode 100644 index 00000000000..29604061ff6 --- /dev/null +++ b/CIAO/examples/space/Gizmo1_Medium/Gizmo1_Medium_svnt_export.h @@ -0,0 +1,58 @@ + +// -*- C++ -*- +// $Id$ +// Definition for Win32 Export directives. +// This file is generated automatically by generate_export_file.pl GIZMO1_MEDIUM_SVNT +// ------------------------------ +#ifndef GIZMO1_MEDIUM_SVNT_EXPORT_H +#define GIZMO1_MEDIUM_SVNT_EXPORT_H + +#include "ace/config-all.h" + +#if defined (ACE_AS_STATIC_LIBS) && !defined (GIZMO1_MEDIUM_SVNT_HAS_DLL) +# define GIZMO1_MEDIUM_SVNT_HAS_DLL 0 +#endif /* ACE_AS_STATIC_LIBS && GIZMO1_MEDIUM_SVNT_HAS_DLL */ + +#if !defined (GIZMO1_MEDIUM_SVNT_HAS_DLL) +# define GIZMO1_MEDIUM_SVNT_HAS_DLL 1 +#endif /* ! GIZMO1_MEDIUM_SVNT_HAS_DLL */ + +#if defined (GIZMO1_MEDIUM_SVNT_HAS_DLL) && (GIZMO1_MEDIUM_SVNT_HAS_DLL == 1) +# if defined (GIZMO1_MEDIUM_SVNT_BUILD_DLL) +# define GIZMO1_MEDIUM_SVNT_Export ACE_Proper_Export_Flag +# define GIZMO1_MEDIUM_SVNT_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T) +# define GIZMO1_MEDIUM_SVNT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# else /* GIZMO1_MEDIUM_SVNT_BUILD_DLL */ +# define GIZMO1_MEDIUM_SVNT_Export ACE_Proper_Import_Flag +# define GIZMO1_MEDIUM_SVNT_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T) +# define GIZMO1_MEDIUM_SVNT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# endif /* GIZMO1_MEDIUM_SVNT_BUILD_DLL */ +#else /* GIZMO1_MEDIUM_SVNT_HAS_DLL == 1 */ +# define GIZMO1_MEDIUM_SVNT_Export +# define GIZMO1_MEDIUM_SVNT_SINGLETON_DECLARATION(T) +# define GIZMO1_MEDIUM_SVNT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +#endif /* GIZMO1_MEDIUM_SVNT_HAS_DLL == 1 */ + +// Set GIZMO1_MEDIUM_SVNT_NTRACE = 0 to turn on library specific tracing even if +// tracing is turned off for ACE. +#if !defined (GIZMO1_MEDIUM_SVNT_NTRACE) +# if (ACE_NTRACE == 1) +# define GIZMO1_MEDIUM_SVNT_NTRACE 1 +# else /* (ACE_NTRACE == 1) */ +# define GIZMO1_MEDIUM_SVNT_NTRACE 0 +# endif /* (ACE_NTRACE == 1) */ +#endif /* !GIZMO1_MEDIUM_SVNT_NTRACE */ + +#if (GIZMO1_MEDIUM_SVNT_NTRACE == 1) +# define GIZMO1_MEDIUM_SVNT_TRACE(X) +#else /* (GIZMO1_MEDIUM_SVNT_NTRACE == 1) */ +# if !defined (ACE_HAS_TRACE) +# define ACE_HAS_TRACE +# endif /* ACE_HAS_TRACE */ +# define GIZMO1_MEDIUM_SVNT_TRACE(X) ACE_TRACE_IMPL(X) +# include "ace/Trace.h" +#endif /* (GIZMO1_MEDIUM_SVNT_NTRACE == 1) */ + +#endif /* GIZMO1_MEDIUM_SVNT_EXPORT_H */ + +// End of auto generated file. diff --git a/CIAO/examples/space/Gizmo2_High/Gizmo2_High.ccd b/CIAO/examples/space/Gizmo2_High/Gizmo2_High.ccd new file mode 100644 index 00000000000..da241a70bcc --- /dev/null +++ b/CIAO/examples/space/Gizmo2_High/Gizmo2_High.ccd @@ -0,0 +1,33 @@ +<?xml version="1.0"?> +<!DOCTYPE corbacomponent SYSTEM "corbacomponent.dtd"> + +<corbacomponent> + <corbaversion>3.0</corbaversion> + <componentrepid repid="IDL:SPACE/Gizmo2_High:1.0"/> + <homerepid repid="IDL:SPACE/Gizmo2_High_Factory:1.0"/> + <componentkind> + <session> + <servant lifetime="container"/> + </session> + </componentkind> + <threading policy="multithread"/> + <configurationcomplete set="true"/> + + <homefeatures + name="Gizmo2_High_Factory" + repid="IDL:SPACE/Gizmo2_High_Factory:1.0"> + </homefeatures> + + <componentfeatures + name="Gizmo2_High" + repid="IDL:SPACE/Gizmo2_High:1.0"> + <ports> + <emits + emitsname="observation_data" + eventtype="IDL:SPACE/Gizmo_Data:1.0"> + <eventpolicy policy="normal"/> + </emits> + </ports> + </componentfeatures> + +</corbacomponent> diff --git a/CIAO/examples/space/Gizmo2_High/Gizmo2_High.cidl b/CIAO/examples/space/Gizmo2_High/Gizmo2_High.cidl new file mode 100644 index 00000000000..8de97787a59 --- /dev/null +++ b/CIAO/examples/space/Gizmo2_High/Gizmo2_High.cidl @@ -0,0 +1,20 @@ +// -*- CIDL -*- + +// This file was generated by +// $Id$ + +#ifndef _GIZMO2_HIGH_CIDL_ +#define _GIZMO2_HIGH_CIDL_ + +#include "Gizmo2_High.idl" + +composition session Gizmo2_High +{ + home executor Gizmo2_High_Factory_Exec + { + implements SPACE::Gizmo2_High_Factory; + manages Gizmo2_High_Exec; + }; +}; + +#endif // !defined _GIZMO2_HIGH_CIDL_ diff --git a/CIAO/examples/space/Gizmo2_High/Gizmo2_High.idl b/CIAO/examples/space/Gizmo2_High/Gizmo2_High.idl new file mode 100644 index 00000000000..cad9599871f --- /dev/null +++ b/CIAO/examples/space/Gizmo2_High/Gizmo2_High.idl @@ -0,0 +1,22 @@ + +#ifndef GIZMO2_HIGH_IDL +#define GIZMO2_HIGH_IDL + +#include <Components.idl> +#include "Event_Types.idl" + +module SPACE +{ + component Gizmo2_High + { + emits Gizmo_Data observation_data; + }; + + home Gizmo2_High_Factory + manages Gizmo2_High + { + }; +}; + +#endif // GIZMO2_HIGH_IDL + diff --git a/CIAO/examples/space/Gizmo2_High/Gizmo2_High.mpc b/CIAO/examples/space/Gizmo2_High/Gizmo2_High.mpc new file mode 100644 index 00000000000..9f25ff2813c --- /dev/null +++ b/CIAO/examples/space/Gizmo2_High/Gizmo2_High.mpc @@ -0,0 +1,77 @@ +project(Gizmo2_High_stub): ciao_client_dnc { + + sharedname = Gizmo2_High_stub + libs += Event_Types_stub + after += Event_Types_stub + includes += ../common + idlflags += -Wb,stub_export_macro=GIZMO2_HIGH_STUB_Export \ + -Wb,stub_export_include=Gizmo2_High_stub_export.h \ + -Wb,skel_export_macro=GIZMO2_HIGH_SVNT_Export \ + -Wb,skel_export_include=Gizmo2_High_svnt_export.h \ + -I ../common + + + dynamicflags = GIZMO2_HIGH_STUB_BUILD_DLL + + IDL_Files { + Gizmo2_High.idl + } + + Source_Files { + Gizmo2_HighC.cpp + } +} + +project(Gizmo2_High_svnt) : ciao_servant_dnc { + after += Gizmo2_High_stub + sharedname = Gizmo2_High_svnt + libs += Gizmo2_High_stub Event_Types_stub + includes += ../common + + + idlflags += -Wb,export_macro=GIZMO2_HIGH_SVNT_Export \ + -Wb,export_include=Gizmo2_High_svnt_export.h \ + -I ../common + + dynamicflags = GIZMO2_HIGH_SVNT_BUILD_DLL + + cidlflags -= -- + cidlflags += -I ../common -- + + + CIDL_Files { + Gizmo2_High.cidl + } + + IDL_Files { + Gizmo2_HighE.idl + } + + Source_Files { + Gizmo2_HighEC.cpp + Gizmo2_HighS.cpp + Gizmo2_High_svnt.cpp + } +} + + +project(Gizmo2_High_exec) : ciao_component_dnc { + after += Gizmo2_High_svnt + sharedname = Gizmo2_High_exec + libs += Gizmo2_High_stub Gizmo2_High_svnt Event_Types_stub + includes += ../common + + idlflags += -Wb,export_macro=GIZMO2_HIGH_EXEC_Export \ + -Wb,export_include=Gizmo2_High_exec_export.h + + dynamicflags = GIZMO2_HIGH_EXEC_BUILD_DLL + + IDL_Files { + + } + + Source_Files { + + Gizmo2_High_exec.cpp + } +} diff --git a/CIAO/examples/space/Gizmo2_High/Gizmo2_High_exec.cpp b/CIAO/examples/space/Gizmo2_High/Gizmo2_High_exec.cpp new file mode 100644 index 00000000000..af7c315026f --- /dev/null +++ b/CIAO/examples/space/Gizmo2_High/Gizmo2_High_exec.cpp @@ -0,0 +1,171 @@ +#include "Gizmo2_High_exec.h" +#include "ciao/CIAO_common.h" +#include "tao/ORB_Core.h" +#include "ace/Reactor.h" +#include "ace/Time_Value.h" +#include "ace/Thread.h" + + +namespace CIDL_Gizmo2_High +{ + //================================================================== + // Component Executor Implementation Class: Gizmo2_High_exec_i + //================================================================== + + Gizmo2_High_exec_i::Gizmo2_High_exec_i (void) + { + } + + Gizmo2_High_exec_i::~Gizmo2_High_exec_i (void) + { + } + + int + Gizmo2_High_exec_i::handle_timeout (const ACE_Time_Value &, + const void *) + { + + ::SPACE::Gizmo_Data_var ev = new OBV_SPACE::Gizmo_Data; + ev->sender ("Gizmo2-High"); + this->context_->push_observation_data (ev); + return 0; + + } + + + // Supported or inherited operations. + + // Attribute operations. + + // Port operations. + + // Operations from Components::SessionComponent + + void + Gizmo2_High_exec_i::set_session_context ( + ::Components::SessionContext_ptr ctx + ACE_ENV_ARG_DECL) + ACE_THROW_SPEC (( ::CORBA::SystemException, + ::Components::CCMException)) + { + this->context_ = + Gizmo2_High_Context::_narrow ( + ctx + ACE_ENV_ARG_PARAMETER); + ACE_CHECK; + + if (this->context_ == 0) + { + ACE_THROW ( ::CORBA::INTERNAL ()); + } + } + + void + Gizmo2_High_exec_i::ciao_preactivate ( + ACE_ENV_SINGLE_ARG_DECL_NOT_USED) + ACE_THROW_SPEC (( ::CORBA::SystemException, + ::Components::CCMException)) + { + // Your code here. + } + + void + Gizmo2_High_exec_i::ciao_postactivate ( + ACE_ENV_SINGLE_ARG_DECL_NOT_USED) + ACE_THROW_SPEC (( ::CORBA::SystemException, + ::Components::CCMException)) + { + ACE_Reactor *reactor = + this->context_->_ciao_the_Container ()->the_ORB ()->orb_core ()->reactor (); + ACE_Time_Value interval (20); + + reactor->owner (ACE_Thread::self ()); + if (reactor->schedule_timer (this, this, interval, interval) < 0) + { + ACE_ERROR ((LM_ERROR, "Exec-Agent: Error will registering " + "periodic task!\n")); + } + + } + + void + Gizmo2_High_exec_i::ccm_activate ( + ACE_ENV_SINGLE_ARG_DECL_NOT_USED) + ACE_THROW_SPEC (( ::CORBA::SystemException, + ::Components::CCMException)) + { + // Your code here. + } + + void + Gizmo2_High_exec_i::ccm_passivate ( + ACE_ENV_SINGLE_ARG_DECL_NOT_USED) + ACE_THROW_SPEC (( ::CORBA::SystemException, + ::Components::CCMException)) + { + // Your code here. + } + + void + Gizmo2_High_exec_i::ccm_remove ( + ACE_ENV_SINGLE_ARG_DECL_NOT_USED) + ACE_THROW_SPEC (( ::CORBA::SystemException, + ::Components::CCMException)) + { + // Your code here. + } + + //================================================================== + // Home Executor Implementation Class: Gizmo2_High_Factory_exec_i + //================================================================== + + Gizmo2_High_Factory_exec_i::Gizmo2_High_Factory_exec_i (void) + { + } + + Gizmo2_High_Factory_exec_i::~Gizmo2_High_Factory_exec_i (void) + { + } + + // Supported or inherited operations. + + // Home operations. + + // Factory and finder operations. + + // Attribute operations. + + // Implicit operations. + + ::Components::EnterpriseComponent_ptr + Gizmo2_High_Factory_exec_i::create ( + ACE_ENV_SINGLE_ARG_DECL) + ACE_THROW_SPEC (( ::CORBA::SystemException, + ::Components::CCMException)) + { + ::Components::EnterpriseComponent_ptr retval = + ::Components::EnterpriseComponent::_nil (); + + ACE_NEW_THROW_EX ( + retval, + Gizmo2_High_exec_i, + ::CORBA::NO_MEMORY ()); + ACE_CHECK_RETURN (::Components::EnterpriseComponent::_nil ()); + + return retval; + } + + extern "C" GIZMO2_HIGH_EXEC_Export ::Components::HomeExecutorBase_ptr + create_SPACE_Gizmo2_High_Factory_Impl (void) + { + ::Components::HomeExecutorBase_ptr retval = + ::Components::HomeExecutorBase::_nil (); + + ACE_NEW_RETURN ( + retval, + Gizmo2_High_Factory_exec_i, + ::Components::HomeExecutorBase::_nil ()); + + return retval; + } +} diff --git a/CIAO/examples/space/Gizmo2_High/Gizmo2_High_exec.h b/CIAO/examples/space/Gizmo2_High/Gizmo2_High_exec.h new file mode 100644 index 00000000000..f3a5a2ec3b5 --- /dev/null +++ b/CIAO/examples/space/Gizmo2_High/Gizmo2_High_exec.h @@ -0,0 +1,109 @@ +#ifndef CIAO_GIZMO2_HIGH_EXEC_H +#define CIAO_GIZMO2_HIGH_EXEC_H + +#include /**/ "ace/pre.h" + +#include "Gizmo2_High_svnt.h" +#include "ace/Event_Handler.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + +#include "Gizmo2_High_exec_export.h" +#include "tao/LocalObject.h" + +namespace CIDL_Gizmo2_High +{ + class GIZMO2_HIGH_EXEC_Export Gizmo2_High_exec_i + : public virtual Gizmo2_High_Exec, + public virtual TAO_Local_RefCounted_Object, + public virtual ACE_Event_Handler + { + public: + Gizmo2_High_exec_i (void); + virtual ~Gizmo2_High_exec_i (void); + + virtual int handle_timeout (const ACE_Time_Value &, + const void *ref); + + virtual void + set_session_context ( + ::Components::SessionContext_ptr ctx + ACE_ENV_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC (( + ::CORBA::SystemException, + ::Components::CCMException)); + + virtual void + ciao_preactivate ( + ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC (( + ::CORBA::SystemException, + ::Components::CCMException)); + + virtual void + ciao_postactivate ( + ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC (( + ::CORBA::SystemException, + ::Components::CCMException)); + + virtual void + ccm_activate ( + ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC (( + ::CORBA::SystemException, + ::Components::CCMException)); + + virtual void + ccm_passivate ( + ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC (( + ::CORBA::SystemException, + ::Components::CCMException)); + + virtual void + ccm_remove ( + ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC (( + ::CORBA::SystemException, + ::Components::CCMException)); + + protected: + Gizmo2_High_Context *context_; + }; + + class GIZMO2_HIGH_EXEC_Export Gizmo2_High_Factory_exec_i + : public virtual Gizmo2_High_Factory_Exec, + public virtual TAO_Local_RefCounted_Object + { + public: + Gizmo2_High_Factory_exec_i (void); + virtual ~Gizmo2_High_Factory_exec_i (void); + + // Supported or inherited operations. + + // Home operations. + + // Factory and finder operations. + + // Attribute operations. + + // Implicit operations. + + virtual ::Components::EnterpriseComponent_ptr + create ( + ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC (( + ::CORBA::SystemException, + ::Components::CCMException)); + }; + + extern "C" GIZMO2_HIGH_EXEC_Export ::Components::HomeExecutorBase_ptr + create_SPACE_Gizmo2_High_Factory_Impl (void); +} + +#include /**/ "ace/post.h" + +#endif /* CIAO_GIZMO2_HIGH_EXEC_H */ diff --git a/CIAO/examples/space/Gizmo2_High/Gizmo2_High_exec_export.h b/CIAO/examples/space/Gizmo2_High/Gizmo2_High_exec_export.h new file mode 100644 index 00000000000..9cdb6ec08ff --- /dev/null +++ b/CIAO/examples/space/Gizmo2_High/Gizmo2_High_exec_export.h @@ -0,0 +1,58 @@ + +// -*- C++ -*- +// $Id$ +// Definition for Win32 Export directives. +// This file is generated automatically by generate_export_file.pl GIZMO2_HIGH_EXEC +// ------------------------------ +#ifndef GIZMO2_HIGH_EXEC_EXPORT_H +#define GIZMO2_HIGH_EXEC_EXPORT_H + +#include "ace/config-all.h" + +#if defined (ACE_AS_STATIC_LIBS) && !defined (GIZMO2_HIGH_EXEC_HAS_DLL) +# define GIZMO2_HIGH_EXEC_HAS_DLL 0 +#endif /* ACE_AS_STATIC_LIBS && GIZMO2_HIGH_EXEC_HAS_DLL */ + +#if !defined (GIZMO2_HIGH_EXEC_HAS_DLL) +# define GIZMO2_HIGH_EXEC_HAS_DLL 1 +#endif /* ! GIZMO2_HIGH_EXEC_HAS_DLL */ + +#if defined (GIZMO2_HIGH_EXEC_HAS_DLL) && (GIZMO2_HIGH_EXEC_HAS_DLL == 1) +# if defined (GIZMO2_HIGH_EXEC_BUILD_DLL) +# define GIZMO2_HIGH_EXEC_Export ACE_Proper_Export_Flag +# define GIZMO2_HIGH_EXEC_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T) +# define GIZMO2_HIGH_EXEC_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# else /* GIZMO2_HIGH_EXEC_BUILD_DLL */ +# define GIZMO2_HIGH_EXEC_Export ACE_Proper_Import_Flag +# define GIZMO2_HIGH_EXEC_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T) +# define GIZMO2_HIGH_EXEC_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# endif /* GIZMO2_HIGH_EXEC_BUILD_DLL */ +#else /* GIZMO2_HIGH_EXEC_HAS_DLL == 1 */ +# define GIZMO2_HIGH_EXEC_Export +# define GIZMO2_HIGH_EXEC_SINGLETON_DECLARATION(T) +# define GIZMO2_HIGH_EXEC_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +#endif /* GIZMO2_HIGH_EXEC_HAS_DLL == 1 */ + +// Set GIZMO2_HIGH_EXEC_NTRACE = 0 to turn on library specific tracing even if +// tracing is turned off for ACE. +#if !defined (GIZMO2_HIGH_EXEC_NTRACE) +# if (ACE_NTRACE == 1) +# define GIZMO2_HIGH_EXEC_NTRACE 1 +# else /* (ACE_NTRACE == 1) */ +# define GIZMO2_HIGH_EXEC_NTRACE 0 +# endif /* (ACE_NTRACE == 1) */ +#endif /* !GIZMO2_HIGH_EXEC_NTRACE */ + +#if (GIZMO2_HIGH_EXEC_NTRACE == 1) +# define GIZMO2_HIGH_EXEC_TRACE(X) +#else /* (GIZMO2_HIGH_EXEC_NTRACE == 1) */ +# if !defined (ACE_HAS_TRACE) +# define ACE_HAS_TRACE +# endif /* ACE_HAS_TRACE */ +# define GIZMO2_HIGH_EXEC_TRACE(X) ACE_TRACE_IMPL(X) +# include "ace/Trace.h" +#endif /* (GIZMO2_HIGH_EXEC_NTRACE == 1) */ + +#endif /* GIZMO2_HIGH_EXEC_EXPORT_H */ + +// End of auto generated file. diff --git a/CIAO/examples/space/Gizmo2_High/Gizmo2_High_stub_export.h b/CIAO/examples/space/Gizmo2_High/Gizmo2_High_stub_export.h new file mode 100644 index 00000000000..b94cbb193e0 --- /dev/null +++ b/CIAO/examples/space/Gizmo2_High/Gizmo2_High_stub_export.h @@ -0,0 +1,58 @@ + +// -*- C++ -*- +// $Id$ +// Definition for Win32 Export directives. +// This file is generated automatically by generate_export_file.pl GIZMO2_HIGH_STUB +// ------------------------------ +#ifndef GIZMO2_HIGH_STUB_EXPORT_H +#define GIZMO2_HIGH_STUB_EXPORT_H + +#include "ace/config-all.h" + +#if defined (ACE_AS_STATIC_LIBS) && !defined (GIZMO2_HIGH_STUB_HAS_DLL) +# define GIZMO2_HIGH_STUB_HAS_DLL 0 +#endif /* ACE_AS_STATIC_LIBS && GIZMO2_HIGH_STUB_HAS_DLL */ + +#if !defined (GIZMO2_HIGH_STUB_HAS_DLL) +# define GIZMO2_HIGH_STUB_HAS_DLL 1 +#endif /* ! GIZMO2_HIGH_STUB_HAS_DLL */ + +#if defined (GIZMO2_HIGH_STUB_HAS_DLL) && (GIZMO2_HIGH_STUB_HAS_DLL == 1) +# if defined (GIZMO2_HIGH_STUB_BUILD_DLL) +# define GIZMO2_HIGH_STUB_Export ACE_Proper_Export_Flag +# define GIZMO2_HIGH_STUB_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T) +# define GIZMO2_HIGH_STUB_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# else /* GIZMO2_HIGH_STUB_BUILD_DLL */ +# define GIZMO2_HIGH_STUB_Export ACE_Proper_Import_Flag +# define GIZMO2_HIGH_STUB_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T) +# define GIZMO2_HIGH_STUB_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# endif /* GIZMO2_HIGH_STUB_BUILD_DLL */ +#else /* GIZMO2_HIGH_STUB_HAS_DLL == 1 */ +# define GIZMO2_HIGH_STUB_Export +# define GIZMO2_HIGH_STUB_SINGLETON_DECLARATION(T) +# define GIZMO2_HIGH_STUB_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +#endif /* GIZMO2_HIGH_STUB_HAS_DLL == 1 */ + +// Set GIZMO2_HIGH_STUB_NTRACE = 0 to turn on library specific tracing even if +// tracing is turned off for ACE. +#if !defined (GIZMO2_HIGH_STUB_NTRACE) +# if (ACE_NTRACE == 1) +# define GIZMO2_HIGH_STUB_NTRACE 1 +# else /* (ACE_NTRACE == 1) */ +# define GIZMO2_HIGH_STUB_NTRACE 0 +# endif /* (ACE_NTRACE == 1) */ +#endif /* !GIZMO2_HIGH_STUB_NTRACE */ + +#if (GIZMO2_HIGH_STUB_NTRACE == 1) +# define GIZMO2_HIGH_STUB_TRACE(X) +#else /* (GIZMO2_HIGH_STUB_NTRACE == 1) */ +# if !defined (ACE_HAS_TRACE) +# define ACE_HAS_TRACE +# endif /* ACE_HAS_TRACE */ +# define GIZMO2_HIGH_STUB_TRACE(X) ACE_TRACE_IMPL(X) +# include "ace/Trace.h" +#endif /* (GIZMO2_HIGH_STUB_NTRACE == 1) */ + +#endif /* GIZMO2_HIGH_STUB_EXPORT_H */ + +// End of auto generated file. diff --git a/CIAO/examples/space/Gizmo2_High/Gizmo2_High_svnt_export.h b/CIAO/examples/space/Gizmo2_High/Gizmo2_High_svnt_export.h new file mode 100644 index 00000000000..38cfd5622dc --- /dev/null +++ b/CIAO/examples/space/Gizmo2_High/Gizmo2_High_svnt_export.h @@ -0,0 +1,58 @@ + +// -*- C++ -*- +// $Id$ +// Definition for Win32 Export directives. +// This file is generated automatically by generate_export_file.pl GIZMO2_HIGH_SVNT +// ------------------------------ +#ifndef GIZMO2_HIGH_SVNT_EXPORT_H +#define GIZMO2_HIGH_SVNT_EXPORT_H + +#include "ace/config-all.h" + +#if defined (ACE_AS_STATIC_LIBS) && !defined (GIZMO2_HIGH_SVNT_HAS_DLL) +# define GIZMO2_HIGH_SVNT_HAS_DLL 0 +#endif /* ACE_AS_STATIC_LIBS && GIZMO2_HIGH_SVNT_HAS_DLL */ + +#if !defined (GIZMO2_HIGH_SVNT_HAS_DLL) +# define GIZMO2_HIGH_SVNT_HAS_DLL 1 +#endif /* ! GIZMO2_HIGH_SVNT_HAS_DLL */ + +#if defined (GIZMO2_HIGH_SVNT_HAS_DLL) && (GIZMO2_HIGH_SVNT_HAS_DLL == 1) +# if defined (GIZMO2_HIGH_SVNT_BUILD_DLL) +# define GIZMO2_HIGH_SVNT_Export ACE_Proper_Export_Flag +# define GIZMO2_HIGH_SVNT_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T) +# define GIZMO2_HIGH_SVNT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# else /* GIZMO2_HIGH_SVNT_BUILD_DLL */ +# define GIZMO2_HIGH_SVNT_Export ACE_Proper_Import_Flag +# define GIZMO2_HIGH_SVNT_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T) +# define GIZMO2_HIGH_SVNT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# endif /* GIZMO2_HIGH_SVNT_BUILD_DLL */ +#else /* GIZMO2_HIGH_SVNT_HAS_DLL == 1 */ +# define GIZMO2_HIGH_SVNT_Export +# define GIZMO2_HIGH_SVNT_SINGLETON_DECLARATION(T) +# define GIZMO2_HIGH_SVNT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +#endif /* GIZMO2_HIGH_SVNT_HAS_DLL == 1 */ + +// Set GIZMO2_HIGH_SVNT_NTRACE = 0 to turn on library specific tracing even if +// tracing is turned off for ACE. +#if !defined (GIZMO2_HIGH_SVNT_NTRACE) +# if (ACE_NTRACE == 1) +# define GIZMO2_HIGH_SVNT_NTRACE 1 +# else /* (ACE_NTRACE == 1) */ +# define GIZMO2_HIGH_SVNT_NTRACE 0 +# endif /* (ACE_NTRACE == 1) */ +#endif /* !GIZMO2_HIGH_SVNT_NTRACE */ + +#if (GIZMO2_HIGH_SVNT_NTRACE == 1) +# define GIZMO2_HIGH_SVNT_TRACE(X) +#else /* (GIZMO2_HIGH_SVNT_NTRACE == 1) */ +# if !defined (ACE_HAS_TRACE) +# define ACE_HAS_TRACE +# endif /* ACE_HAS_TRACE */ +# define GIZMO2_HIGH_SVNT_TRACE(X) ACE_TRACE_IMPL(X) +# include "ace/Trace.h" +#endif /* (GIZMO2_HIGH_SVNT_NTRACE == 1) */ + +#endif /* GIZMO2_HIGH_SVNT_EXPORT_H */ + +// End of auto generated file. diff --git a/CIAO/examples/space/Gizmo2_Medium/Gizmo2_Medium.ccd b/CIAO/examples/space/Gizmo2_Medium/Gizmo2_Medium.ccd new file mode 100644 index 00000000000..bb0eea029fb --- /dev/null +++ b/CIAO/examples/space/Gizmo2_Medium/Gizmo2_Medium.ccd @@ -0,0 +1,33 @@ +<?xml version="1.0"?> +<!DOCTYPE corbacomponent SYSTEM "corbacomponent.dtd"> + +<corbacomponent> + <corbaversion>3.0</corbaversion> + <componentrepid repid="IDL:SPACE/Gizmo2_Medium:1.0"/> + <homerepid repid="IDL:SPACE/Gizmo2_Medium_Factory:1.0"/> + <componentkind> + <session> + <servant lifetime="container"/> + </session> + </componentkind> + <threading policy="multithread"/> + <configurationcomplete set="true"/> + + <homefeatures + name="Gizmo2_Medium_Factory" + repid="IDL:SPACE/Gizmo2_Medium_Factory:1.0"> + </homefeatures> + + <componentfeatures + name="Gizmo2_Medium" + repid="IDL:SPACE/Gizmo2_Medium:1.0"> + <ports> + <emits + emitsname="observation_data" + eventtype="IDL:SPACE/Gizmo_Data:1.0"> + <eventpolicy policy="normal"/> + </emits> + </ports> + </componentfeatures> + +</corbacomponent> diff --git a/CIAO/examples/space/Gizmo2_Medium/Gizmo2_Medium.cidl b/CIAO/examples/space/Gizmo2_Medium/Gizmo2_Medium.cidl new file mode 100644 index 00000000000..85605f18763 --- /dev/null +++ b/CIAO/examples/space/Gizmo2_Medium/Gizmo2_Medium.cidl @@ -0,0 +1,20 @@ +// -*- CIDL -*- + +// This file was generated by +// $Id$ + +#ifndef _GIZMO2_MEDIUM_CIDL_ +#define _GIZMO2_MEDIUM_CIDL_ + +#include "Gizmo2_Medium.idl" + +composition session Gizmo2_Medium +{ + home executor Gizmo2_Medium_Factory_Exec + { + implements SPACE::Gizmo2_Medium_Factory; + manages Gizmo2_Medium_Exec; + }; +}; + +#endif // !defined _GIZMO2_MEDIUM_CIDL_ diff --git a/CIAO/examples/space/Gizmo2_Medium/Gizmo2_Medium.idl b/CIAO/examples/space/Gizmo2_Medium/Gizmo2_Medium.idl new file mode 100644 index 00000000000..a85c3a12425 --- /dev/null +++ b/CIAO/examples/space/Gizmo2_Medium/Gizmo2_Medium.idl @@ -0,0 +1,22 @@ + +#ifndef GIZMO2_MEDIUM_IDL +#define GIZMO2_MEDIUM_IDL + +#include <Components.idl> +#include "Event_Types.idl" + +module SPACE +{ + component Gizmo2_Medium + { + emits Gizmo_Data observation_data; + }; + + home Gizmo2_Medium_Factory + manages Gizmo2_Medium + { + }; +}; + +#endif // GIZMO2_MEDIUM_IDL + diff --git a/CIAO/examples/space/Gizmo2_Medium/Gizmo2_Medium.mpc b/CIAO/examples/space/Gizmo2_Medium/Gizmo2_Medium.mpc new file mode 100644 index 00000000000..5e74a7c7191 --- /dev/null +++ b/CIAO/examples/space/Gizmo2_Medium/Gizmo2_Medium.mpc @@ -0,0 +1,76 @@ +project(Gizmo2_Medium_stub): ciao_client_dnc { + + sharedname = Gizmo2_Medium_stub + libs += Event_Types_stub + after += Event_Types_stub + includes += ../common + idlflags += -Wb,stub_export_macro=GIZMO2_MEDIUM_STUB_Export \ + -Wb,stub_export_include=Gizmo2_Medium_stub_export.h \ + -Wb,skel_export_macro=GIZMO2_MEDIUM_SVNT_Export \ + -Wb,skel_export_include=Gizmo2_Medium_svnt_export.h \ + -I ../common + + + dynamicflags = GIZMO2_MEDIUM_STUB_BUILD_DLL + + IDL_Files { + Gizmo2_Medium.idl + } + + Source_Files { + Gizmo2_MediumC.cpp + } +} + +project(Gizmo2_Medium_svnt) : ciao_servant_dnc { + after += Gizmo2_Medium_stub + sharedname = Gizmo2_Medium_svnt + libs += Gizmo2_Medium_stub Event_Types_stub + includes += ../common + + + idlflags += -Wb,export_macro=GIZMO2_MEDIUM_SVNT_Export \ + -Wb,export_include=Gizmo2_Medium_svnt_export.h \ + -I ../common + + dynamicflags = GIZMO2_MEDIUM_SVNT_BUILD_DLL + + cidlflags -= -- + cidlflags += -I ../common -- + + CIDL_Files { + Gizmo2_Medium.cidl + } + + IDL_Files { + Gizmo2_MediumE.idl + } + + Source_Files { + Gizmo2_MediumEC.cpp + Gizmo2_MediumS.cpp + Gizmo2_Medium_svnt.cpp + } +} + + +project(Gizmo2_Medium_exec) : ciao_component_dnc { + after += Gizmo2_Medium_svnt + sharedname = Gizmo2_Medium_exec + libs += Gizmo2_Medium_stub Gizmo2_Medium_svnt Event_Types_stub + includes += ../common + + idlflags += -Wb,export_macro=GIZMO2_MEDIUM_EXEC_Export \ + -Wb,export_include=Gizmo2_Medium_exec_export.h + + dynamicflags = GIZMO2_MEDIUM_EXEC_BUILD_DLL + + IDL_Files { + + } + + Source_Files { + + Gizmo2_Medium_exec.cpp + } +} diff --git a/CIAO/examples/space/Gizmo2_Medium/Gizmo2_Medium_exec.cpp b/CIAO/examples/space/Gizmo2_Medium/Gizmo2_Medium_exec.cpp new file mode 100644 index 00000000000..b8f6fdf3245 --- /dev/null +++ b/CIAO/examples/space/Gizmo2_Medium/Gizmo2_Medium_exec.cpp @@ -0,0 +1,166 @@ +#include "Gizmo2_Medium_exec.h" +#include "ciao/CIAO_common.h" +#include "tao/ORB_Core.h" +#include "ace/Reactor.h" +#include "ace/Time_Value.h" +#include "ace/Thread.h" + + +namespace CIDL_Gizmo2_Medium +{ + //================================================================== + // Component Executor Implementation Class: Gizmo2_Medium_exec_i + //================================================================== + + Gizmo2_Medium_exec_i::Gizmo2_Medium_exec_i (void) + { + } + + Gizmo2_Medium_exec_i::~Gizmo2_Medium_exec_i (void) + { + } + + int + Gizmo2_Medium_exec_i::handle_timeout (const ACE_Time_Value &, + const void *) + { + + ::SPACE::Gizmo_Data_var ev = new OBV_SPACE::Gizmo_Data; + ev->sender ("Gizmo2-Medium"); + + ev->data (100); + + this->context_->push_observation_data (ev); + return 0; + + } + + + + void + Gizmo2_Medium_exec_i::set_session_context ( + ::Components::SessionContext_ptr ctx + ACE_ENV_ARG_DECL) + ACE_THROW_SPEC (( ::CORBA::SystemException, + ::Components::CCMException)) + { + this->context_ = + Gizmo2_Medium_Context::_narrow ( + ctx + ACE_ENV_ARG_PARAMETER); + ACE_CHECK; + + if (this->context_ == 0) + { + ACE_THROW ( ::CORBA::INTERNAL ()); + } + } + + void + Gizmo2_Medium_exec_i::ciao_preactivate ( + ACE_ENV_SINGLE_ARG_DECL_NOT_USED) + ACE_THROW_SPEC (( ::CORBA::SystemException, + ::Components::CCMException)) + { + // Your code here. + } + + void + Gizmo2_Medium_exec_i::ciao_postactivate ( + ACE_ENV_SINGLE_ARG_DECL_NOT_USED) + ACE_THROW_SPEC (( ::CORBA::SystemException, + ::Components::CCMException)) + { + ACE_Reactor *reactor = + this->context_->_ciao_the_Container ()->the_ORB ()->orb_core ()->reactor (); + ACE_Time_Value interval (2500); + + reactor->owner (ACE_Thread::self ()); + if (reactor->schedule_timer (this, this, interval, interval) < 0) + { + ACE_ERROR ((LM_ERROR, "Gizmo2-Medium: Error will registering " + "periodic task!\n")); + } + } + + void + Gizmo2_Medium_exec_i::ccm_activate ( + ACE_ENV_SINGLE_ARG_DECL_NOT_USED) + ACE_THROW_SPEC (( ::CORBA::SystemException, + ::Components::CCMException)) + { + // Your code here. + } + + void + Gizmo2_Medium_exec_i::ccm_passivate ( + ACE_ENV_SINGLE_ARG_DECL_NOT_USED) + ACE_THROW_SPEC (( ::CORBA::SystemException, + ::Components::CCMException)) + { + // Your code here. + } + + void + Gizmo2_Medium_exec_i::ccm_remove ( + ACE_ENV_SINGLE_ARG_DECL_NOT_USED) + ACE_THROW_SPEC (( ::CORBA::SystemException, + ::Components::CCMException)) + { + // Your code here. + } + + //================================================================== + // Home Executor Implementation Class: Gizmo2_Medium_Factory_exec_i + //================================================================== + + Gizmo2_Medium_Factory_exec_i::Gizmo2_Medium_Factory_exec_i (void) + { + } + + Gizmo2_Medium_Factory_exec_i::~Gizmo2_Medium_Factory_exec_i (void) + { + } + + // Supported or inherited operations. + + // Home operations. + + // Factory and finder operations. + + // Attribute operations. + + // Implicit operations. + + ::Components::EnterpriseComponent_ptr + Gizmo2_Medium_Factory_exec_i::create ( + ACE_ENV_SINGLE_ARG_DECL) + ACE_THROW_SPEC (( ::CORBA::SystemException, + ::Components::CCMException)) + { + ::Components::EnterpriseComponent_ptr retval = + ::Components::EnterpriseComponent::_nil (); + + ACE_NEW_THROW_EX ( + retval, + Gizmo2_Medium_exec_i, + ::CORBA::NO_MEMORY ()); + ACE_CHECK_RETURN (::Components::EnterpriseComponent::_nil ()); + + return retval; + } + + extern "C" GIZMO2_MEDIUM_EXEC_Export ::Components::HomeExecutorBase_ptr + create_SPACE_Gizmo2_Medium_Factory_Impl (void) + { + ::Components::HomeExecutorBase_ptr retval = + ::Components::HomeExecutorBase::_nil (); + + ACE_NEW_RETURN ( + retval, + Gizmo2_Medium_Factory_exec_i, + ::Components::HomeExecutorBase::_nil ()); + + return retval; + } +} diff --git a/CIAO/examples/space/Gizmo2_Medium/Gizmo2_Medium_exec.h b/CIAO/examples/space/Gizmo2_Medium/Gizmo2_Medium_exec.h new file mode 100644 index 00000000000..13b8173d9a9 --- /dev/null +++ b/CIAO/examples/space/Gizmo2_Medium/Gizmo2_Medium_exec.h @@ -0,0 +1,110 @@ +#ifndef CIAO_GIZMO2_MEDIUM_EXEC_H +#define CIAO_GIZMO2_MEDIUM_EXEC_H + +#include /**/ "ace/pre.h" + +#include "Gizmo2_Medium_svnt.h" +#include "ace/Event_Handler.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + +#include "Gizmo2_Medium_exec_export.h" +#include "tao/LocalObject.h" + +namespace CIDL_Gizmo2_Medium +{ + class GIZMO2_MEDIUM_EXEC_Export Gizmo2_Medium_exec_i + : public virtual Gizmo2_Medium_Exec, + public virtual TAO_Local_RefCounted_Object, + public virtual ACE_Event_Handler + { + public: + Gizmo2_Medium_exec_i (void); + virtual ~Gizmo2_Medium_exec_i (void); + + virtual int handle_timeout (const ACE_Time_Value &, + const void *ref); + + + virtual void + set_session_context ( + ::Components::SessionContext_ptr ctx + ACE_ENV_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC (( + ::CORBA::SystemException, + ::Components::CCMException)); + + virtual void + ciao_preactivate ( + ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC (( + ::CORBA::SystemException, + ::Components::CCMException)); + + virtual void + ciao_postactivate ( + ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC (( + ::CORBA::SystemException, + ::Components::CCMException)); + + virtual void + ccm_activate ( + ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC (( + ::CORBA::SystemException, + ::Components::CCMException)); + + virtual void + ccm_passivate ( + ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC (( + ::CORBA::SystemException, + ::Components::CCMException)); + + virtual void + ccm_remove ( + ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC (( + ::CORBA::SystemException, + ::Components::CCMException)); + + protected: + Gizmo2_Medium_Context *context_; + }; + + class GIZMO2_MEDIUM_EXEC_Export Gizmo2_Medium_Factory_exec_i + : public virtual Gizmo2_Medium_Factory_Exec, + public virtual TAO_Local_RefCounted_Object + { + public: + Gizmo2_Medium_Factory_exec_i (void); + virtual ~Gizmo2_Medium_Factory_exec_i (void); + + // Supported or inherited operations. + + // Home operations. + + // Factory and finder operations. + + // Attribute operations. + + // Implicit operations. + + virtual ::Components::EnterpriseComponent_ptr + create ( + ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC (( + ::CORBA::SystemException, + ::Components::CCMException)); + }; + + extern "C" GIZMO2_MEDIUM_EXEC_Export ::Components::HomeExecutorBase_ptr + create_SPACE_Gizmo2_Medium_Factory_Impl (void); +} + +#include /**/ "ace/post.h" + +#endif /* CIAO_GIZMO2_MEDIUM_EXEC_H */ diff --git a/CIAO/examples/space/Gizmo2_Medium/Gizmo2_Medium_exec_export.h b/CIAO/examples/space/Gizmo2_Medium/Gizmo2_Medium_exec_export.h new file mode 100644 index 00000000000..f5fe04fa3d8 --- /dev/null +++ b/CIAO/examples/space/Gizmo2_Medium/Gizmo2_Medium_exec_export.h @@ -0,0 +1,58 @@ + +// -*- C++ -*- +// $Id$ +// Definition for Win32 Export directives. +// This file is generated automatically by generate_export_file.pl GIZMO2_MEDIUM_EXEC +// ------------------------------ +#ifndef GIZMO2_MEDIUM_EXEC_EXPORT_H +#define GIZMO2_MEDIUM_EXEC_EXPORT_H + +#include "ace/config-all.h" + +#if defined (ACE_AS_STATIC_LIBS) && !defined (GIZMO2_MEDIUM_EXEC_HAS_DLL) +# define GIZMO2_MEDIUM_EXEC_HAS_DLL 0 +#endif /* ACE_AS_STATIC_LIBS && GIZMO2_MEDIUM_EXEC_HAS_DLL */ + +#if !defined (GIZMO2_MEDIUM_EXEC_HAS_DLL) +# define GIZMO2_MEDIUM_EXEC_HAS_DLL 1 +#endif /* ! GIZMO2_MEDIUM_EXEC_HAS_DLL */ + +#if defined (GIZMO2_MEDIUM_EXEC_HAS_DLL) && (GIZMO2_MEDIUM_EXEC_HAS_DLL == 1) +# if defined (GIZMO2_MEDIUM_EXEC_BUILD_DLL) +# define GIZMO2_MEDIUM_EXEC_Export ACE_Proper_Export_Flag +# define GIZMO2_MEDIUM_EXEC_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T) +# define GIZMO2_MEDIUM_EXEC_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# else /* GIZMO2_MEDIUM_EXEC_BUILD_DLL */ +# define GIZMO2_MEDIUM_EXEC_Export ACE_Proper_Import_Flag +# define GIZMO2_MEDIUM_EXEC_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T) +# define GIZMO2_MEDIUM_EXEC_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# endif /* GIZMO2_MEDIUM_EXEC_BUILD_DLL */ +#else /* GIZMO2_MEDIUM_EXEC_HAS_DLL == 1 */ +# define GIZMO2_MEDIUM_EXEC_Export +# define GIZMO2_MEDIUM_EXEC_SINGLETON_DECLARATION(T) +# define GIZMO2_MEDIUM_EXEC_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +#endif /* GIZMO2_MEDIUM_EXEC_HAS_DLL == 1 */ + +// Set GIZMO2_MEDIUM_EXEC_NTRACE = 0 to turn on library specific tracing even if +// tracing is turned off for ACE. +#if !defined (GIZMO2_MEDIUM_EXEC_NTRACE) +# if (ACE_NTRACE == 1) +# define GIZMO2_MEDIUM_EXEC_NTRACE 1 +# else /* (ACE_NTRACE == 1) */ +# define GIZMO2_MEDIUM_EXEC_NTRACE 0 +# endif /* (ACE_NTRACE == 1) */ +#endif /* !GIZMO2_MEDIUM_EXEC_NTRACE */ + +#if (GIZMO2_MEDIUM_EXEC_NTRACE == 1) +# define GIZMO2_MEDIUM_EXEC_TRACE(X) +#else /* (GIZMO2_MEDIUM_EXEC_NTRACE == 1) */ +# if !defined (ACE_HAS_TRACE) +# define ACE_HAS_TRACE +# endif /* ACE_HAS_TRACE */ +# define GIZMO2_MEDIUM_EXEC_TRACE(X) ACE_TRACE_IMPL(X) +# include "ace/Trace.h" +#endif /* (GIZMO2_MEDIUM_EXEC_NTRACE == 1) */ + +#endif /* GIZMO2_MEDIUM_EXEC_EXPORT_H */ + +// End of auto generated file. diff --git a/CIAO/examples/space/Gizmo2_Medium/Gizmo2_Medium_stub_export.h b/CIAO/examples/space/Gizmo2_Medium/Gizmo2_Medium_stub_export.h new file mode 100644 index 00000000000..882f5b85b97 --- /dev/null +++ b/CIAO/examples/space/Gizmo2_Medium/Gizmo2_Medium_stub_export.h @@ -0,0 +1,58 @@ + +// -*- C++ -*- +// $Id$ +// Definition for Win32 Export directives. +// This file is generated automatically by generate_export_file.pl GIZMO2_MEDIUM_STUB +// ------------------------------ +#ifndef GIZMO2_MEDIUM_STUB_EXPORT_H +#define GIZMO2_MEDIUM_STUB_EXPORT_H + +#include "ace/config-all.h" + +#if defined (ACE_AS_STATIC_LIBS) && !defined (GIZMO2_MEDIUM_STUB_HAS_DLL) +# define GIZMO2_MEDIUM_STUB_HAS_DLL 0 +#endif /* ACE_AS_STATIC_LIBS && GIZMO2_MEDIUM_STUB_HAS_DLL */ + +#if !defined (GIZMO2_MEDIUM_STUB_HAS_DLL) +# define GIZMO2_MEDIUM_STUB_HAS_DLL 1 +#endif /* ! GIZMO2_MEDIUM_STUB_HAS_DLL */ + +#if defined (GIZMO2_MEDIUM_STUB_HAS_DLL) && (GIZMO2_MEDIUM_STUB_HAS_DLL == 1) +# if defined (GIZMO2_MEDIUM_STUB_BUILD_DLL) +# define GIZMO2_MEDIUM_STUB_Export ACE_Proper_Export_Flag +# define GIZMO2_MEDIUM_STUB_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T) +# define GIZMO2_MEDIUM_STUB_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# else /* GIZMO2_MEDIUM_STUB_BUILD_DLL */ +# define GIZMO2_MEDIUM_STUB_Export ACE_Proper_Import_Flag +# define GIZMO2_MEDIUM_STUB_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T) +# define GIZMO2_MEDIUM_STUB_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# endif /* GIZMO2_MEDIUM_STUB_BUILD_DLL */ +#else /* GIZMO2_MEDIUM_STUB_HAS_DLL == 1 */ +# define GIZMO2_MEDIUM_STUB_Export +# define GIZMO2_MEDIUM_STUB_SINGLETON_DECLARATION(T) +# define GIZMO2_MEDIUM_STUB_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +#endif /* GIZMO2_MEDIUM_STUB_HAS_DLL == 1 */ + +// Set GIZMO2_MEDIUM_STUB_NTRACE = 0 to turn on library specific tracing even if +// tracing is turned off for ACE. +#if !defined (GIZMO2_MEDIUM_STUB_NTRACE) +# if (ACE_NTRACE == 1) +# define GIZMO2_MEDIUM_STUB_NTRACE 1 +# else /* (ACE_NTRACE == 1) */ +# define GIZMO2_MEDIUM_STUB_NTRACE 0 +# endif /* (ACE_NTRACE == 1) */ +#endif /* !GIZMO2_MEDIUM_STUB_NTRACE */ + +#if (GIZMO2_MEDIUM_STUB_NTRACE == 1) +# define GIZMO2_MEDIUM_STUB_TRACE(X) +#else /* (GIZMO2_MEDIUM_STUB_NTRACE == 1) */ +# if !defined (ACE_HAS_TRACE) +# define ACE_HAS_TRACE +# endif /* ACE_HAS_TRACE */ +# define GIZMO2_MEDIUM_STUB_TRACE(X) ACE_TRACE_IMPL(X) +# include "ace/Trace.h" +#endif /* (GIZMO2_MEDIUM_STUB_NTRACE == 1) */ + +#endif /* GIZMO2_MEDIUM_STUB_EXPORT_H */ + +// End of auto generated file. diff --git a/CIAO/examples/space/Gizmo2_Medium/Gizmo2_Medium_svnt_export.h b/CIAO/examples/space/Gizmo2_Medium/Gizmo2_Medium_svnt_export.h new file mode 100644 index 00000000000..f3f75caf847 --- /dev/null +++ b/CIAO/examples/space/Gizmo2_Medium/Gizmo2_Medium_svnt_export.h @@ -0,0 +1,58 @@ + +// -*- C++ -*- +// $Id$ +// Definition for Win32 Export directives. +// This file is generated automatically by generate_export_file.pl GIZMO2_MEDIUM_SVNT +// ------------------------------ +#ifndef GIZMO2_MEDIUM_SVNT_EXPORT_H +#define GIZMO2_MEDIUM_SVNT_EXPORT_H + +#include "ace/config-all.h" + +#if defined (ACE_AS_STATIC_LIBS) && !defined (GIZMO2_MEDIUM_SVNT_HAS_DLL) +# define GIZMO2_MEDIUM_SVNT_HAS_DLL 0 +#endif /* ACE_AS_STATIC_LIBS && GIZMO2_MEDIUM_SVNT_HAS_DLL */ + +#if !defined (GIZMO2_MEDIUM_SVNT_HAS_DLL) +# define GIZMO2_MEDIUM_SVNT_HAS_DLL 1 +#endif /* ! GIZMO2_MEDIUM_SVNT_HAS_DLL */ + +#if defined (GIZMO2_MEDIUM_SVNT_HAS_DLL) && (GIZMO2_MEDIUM_SVNT_HAS_DLL == 1) +# if defined (GIZMO2_MEDIUM_SVNT_BUILD_DLL) +# define GIZMO2_MEDIUM_SVNT_Export ACE_Proper_Export_Flag +# define GIZMO2_MEDIUM_SVNT_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T) +# define GIZMO2_MEDIUM_SVNT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# else /* GIZMO2_MEDIUM_SVNT_BUILD_DLL */ +# define GIZMO2_MEDIUM_SVNT_Export ACE_Proper_Import_Flag +# define GIZMO2_MEDIUM_SVNT_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T) +# define GIZMO2_MEDIUM_SVNT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# endif /* GIZMO2_MEDIUM_SVNT_BUILD_DLL */ +#else /* GIZMO2_MEDIUM_SVNT_HAS_DLL == 1 */ +# define GIZMO2_MEDIUM_SVNT_Export +# define GIZMO2_MEDIUM_SVNT_SINGLETON_DECLARATION(T) +# define GIZMO2_MEDIUM_SVNT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +#endif /* GIZMO2_MEDIUM_SVNT_HAS_DLL == 1 */ + +// Set GIZMO2_MEDIUM_SVNT_NTRACE = 0 to turn on library specific tracing even if +// tracing is turned off for ACE. +#if !defined (GIZMO2_MEDIUM_SVNT_NTRACE) +# if (ACE_NTRACE == 1) +# define GIZMO2_MEDIUM_SVNT_NTRACE 1 +# else /* (ACE_NTRACE == 1) */ +# define GIZMO2_MEDIUM_SVNT_NTRACE 0 +# endif /* (ACE_NTRACE == 1) */ +#endif /* !GIZMO2_MEDIUM_SVNT_NTRACE */ + +#if (GIZMO2_MEDIUM_SVNT_NTRACE == 1) +# define GIZMO2_MEDIUM_SVNT_TRACE(X) +#else /* (GIZMO2_MEDIUM_SVNT_NTRACE == 1) */ +# if !defined (ACE_HAS_TRACE) +# define ACE_HAS_TRACE +# endif /* ACE_HAS_TRACE */ +# define GIZMO2_MEDIUM_SVNT_TRACE(X) ACE_TRACE_IMPL(X) +# include "ace/Trace.h" +#endif /* (GIZMO2_MEDIUM_SVNT_NTRACE == 1) */ + +#endif /* GIZMO2_MEDIUM_SVNT_EXPORT_H */ + +// End of auto generated file. diff --git a/CIAO/examples/space/Ground/Ground_Component.ccd b/CIAO/examples/space/Ground/Ground_Component.ccd new file mode 100644 index 00000000000..8080455051d --- /dev/null +++ b/CIAO/examples/space/Ground/Ground_Component.ccd @@ -0,0 +1,33 @@ +<?xml version="1.0"?> +<!DOCTYPE corbacomponent SYSTEM "corbacomponent.dtd"> + +<corbacomponent> + <corbaversion>3.0</corbaversion> + <componentrepid repid="IDL:SPACE/Ground_Station:1.0"/> + <homerepid repid="IDL:SPACE/Ground_Station_Factory:1.0"/> + <componentkind> + <session> + <servant lifetime="container"/> + </session> + </componentkind> + <threading policy="multithread"/> + <configurationcomplete set="true"/> + + <homefeatures + name="Ground_Station_Factory" + repid="IDL:SPACE/Ground_Station_Factory:1.0"> + </homefeatures> + + <componentfeatures + name="Ground_Station" + repid="IDL:SPACE/Ground_Station:1.0"> + <ports> + <consumes + consumesname="recv_transmission" + eventtype="IDL:SPACE/Gizmo_Data:1.0"> + <eventpolicy policy="normal"/> + </consumes> + </ports> + </componentfeatures> + +</corbacomponent> diff --git a/CIAO/examples/space/Ground/Ground_Component.cidl b/CIAO/examples/space/Ground/Ground_Component.cidl new file mode 100644 index 00000000000..afdb1ac417c --- /dev/null +++ b/CIAO/examples/space/Ground/Ground_Component.cidl @@ -0,0 +1,20 @@ +// -*- CIDL -*- + +// This file was generated by +// $Id$ + +#ifndef _GROUND_COMPONENT_CIDL_ +#define _GROUND_COMPONENT_CIDL_ + +#include "Ground_Component.idl" + +composition session Ground_Component +{ + home executor Ground_Station_Factory_Exec + { + implements SPACE::Ground_Station_Factory; + manages Ground_Station_Exec; + }; +}; + +#endif // !defined _GROUND_COMPONENT_CIDL_ diff --git a/CIAO/examples/space/Ground/Ground_Component.idl b/CIAO/examples/space/Ground/Ground_Component.idl new file mode 100644 index 00000000000..3e142ab1ffd --- /dev/null +++ b/CIAO/examples/space/Ground/Ground_Component.idl @@ -0,0 +1,22 @@ + +#ifndef GROUND_COMPONENT_IDL +#define GROUND_COMPONENT_IDL + +#include <Components.idl> +#include "Event_Types.idl" + +module SPACE +{ + component Ground_Station + { + consumes Gizmo_Data recv_transmission; + }; + + home Ground_Station_Factory + manages Ground_Station + { + }; +}; + +#endif // GROUND_COMPONENT_IDL + diff --git a/CIAO/examples/space/Ground/Ground_Component.mpc b/CIAO/examples/space/Ground/Ground_Component.mpc new file mode 100644 index 00000000000..134964c1ad9 --- /dev/null +++ b/CIAO/examples/space/Ground/Ground_Component.mpc @@ -0,0 +1,77 @@ +// $Id$ +// This file is generated with "generate_component_mpc.pl Ground_Component" + +project(Ground_Component_stub): ciao_client_dnc { + + after += Event_Types_stub + includes += ../common + libs += Event_Types_stub + sharedname = Ground_Component_stub + idlflags += -Wb,stub_export_macro=GROUND_COMPONENT_STUB_Export \ + -Wb,stub_export_include=Ground_Component_stub_export.h \ + -Wb,skel_export_macro=GROUND_COMPONENT_SVNT_Export \ + -Wb,skel_export_include=Ground_Component_svnt_export.h \ + -I ../common + dynamicflags = GROUND_COMPONENT_STUB_BUILD_DLL + + IDL_Files { + Ground_Component.idl + } + + Source_Files { + Ground_ComponentC.cpp + } +} + +project(Ground_Component_svnt) : ciao_servant_dnc { + after += Ground_Component_stub Event_Types_svnt + sharedname = Ground_Component_svnt + libs += Ground_Component_stub Event_Types_stub Event_Types_svnt + includes += ../common + + idlflags += -Wb,export_macro=GROUND_COMPONENT_SVNT_Export \ + -Wb,export_include=Ground_Component_svnt_export.h \ + -I ../common + dynamicflags = GROUND_COMPONENT_SVNT_BUILD_DLL + + cidlflags -= -- + cidlflags += -I ../common -- + + CIDL_Files { + Ground_Component.cidl + } + + IDL_Files { + Ground_ComponentE.idl + } + + Source_Files { + Ground_ComponentEC.cpp + Ground_ComponentS.cpp + Ground_Component_svnt.cpp + } +} + + +project(Ground_Component_exec) : ciao_component_dnc { + includes += ../common + after += Ground_Component_svnt + sharedname = Ground_Component_exec + libs += Ground_Component_stub \ + Ground_Component_svnt \ + Event_Types_stub \ + Event_Types_svnt + + idlflags += -Wb,export_macro=GROUND_COMPONENT_EXEC_Export \ + -Wb,export_include=Ground_Component_exec_export.h + dynamicflags = GROUND_COMPONENT_EXEC_BUILD_DLL + + IDL_Files { + + } + + Source_Files { + + Ground_Component_exec.cpp + } +} diff --git a/CIAO/examples/space/Ground/Ground_Component_exec.cpp b/CIAO/examples/space/Ground/Ground_Component_exec.cpp new file mode 100644 index 00000000000..9c1bdb36ded --- /dev/null +++ b/CIAO/examples/space/Ground/Ground_Component_exec.cpp @@ -0,0 +1,161 @@ +#include "Ground_Component_exec.h" +#include "ciao/CIAO_common.h" + +namespace CIDL_Ground_Component +{ + //================================================================== + // Component Executor Implementation Class: Ground_Station_exec_i + //================================================================== + + Ground_Station_exec_i::Ground_Station_exec_i (void) + { + } + + Ground_Station_exec_i::~Ground_Station_exec_i (void) + { + } + + // Supported or inherited operations. + + // Attribute operations. + + // Port operations. + + void + Ground_Station_exec_i::push_recv_transmission ( + ::SPACE::Gizmo_Data * ev + ACE_ENV_ARG_DECL_NOT_USED) + ACE_THROW_SPEC (( ::CORBA::SystemException)) + { + if (ACE_OS::strcmp (ev->sender (), "Exec-Agent") == 0) + { + ACE_DEBUG ((LM_DEBUG, "(%P|%t) Ground-Agent: " + "Got health data from %s.\n", ev->sender ())); + } + else + { + ACE_DEBUG ((LM_DEBUG, "(%P|%t) Ground-Agent: " + "Got sceince data from %s.\n", ev->sender ())); + } + } + + // Operations from Components::SessionComponent + + void + Ground_Station_exec_i::set_session_context ( + ::Components::SessionContext_ptr ctx + ACE_ENV_ARG_DECL) + ACE_THROW_SPEC (( ::CORBA::SystemException, + ::Components::CCMException)) + { + this->context_ = + Ground_Station_Context::_narrow ( + ctx + ACE_ENV_ARG_PARAMETER); + ACE_CHECK; + + if (this->context_ == 0) + { + ACE_THROW ( ::CORBA::INTERNAL ()); + } + } + + void + Ground_Station_exec_i::ciao_preactivate ( + ACE_ENV_SINGLE_ARG_DECL_NOT_USED) + ACE_THROW_SPEC (( ::CORBA::SystemException, + ::Components::CCMException)) + { + // Your code here. + } + + void + Ground_Station_exec_i::ciao_postactivate ( + ACE_ENV_SINGLE_ARG_DECL_NOT_USED) + ACE_THROW_SPEC (( ::CORBA::SystemException, + ::Components::CCMException)) + { + // Your code here. + } + + void + Ground_Station_exec_i::ccm_activate ( + ACE_ENV_SINGLE_ARG_DECL_NOT_USED) + ACE_THROW_SPEC (( ::CORBA::SystemException, + ::Components::CCMException)) + { + // Your code here. + } + + void + Ground_Station_exec_i::ccm_passivate ( + ACE_ENV_SINGLE_ARG_DECL_NOT_USED) + ACE_THROW_SPEC (( ::CORBA::SystemException, + ::Components::CCMException)) + { + // Your code here. + } + + void + Ground_Station_exec_i::ccm_remove ( + ACE_ENV_SINGLE_ARG_DECL_NOT_USED) + ACE_THROW_SPEC (( ::CORBA::SystemException, + ::Components::CCMException)) + { + // Your code here. + } + + //================================================================== + // Home Executor Implementation Class: Ground_Station_Factory_exec_i + //================================================================== + + Ground_Station_Factory_exec_i::Ground_Station_Factory_exec_i (void) + { + } + + Ground_Station_Factory_exec_i::~Ground_Station_Factory_exec_i (void) + { + } + + // Supported or inherited operations. + + // Home operations. + + // Factory and finder operations. + + // Attribute operations. + + // Implicit operations. + + ::Components::EnterpriseComponent_ptr + Ground_Station_Factory_exec_i::create ( + ACE_ENV_SINGLE_ARG_DECL) + ACE_THROW_SPEC (( ::CORBA::SystemException, + ::Components::CCMException)) + { + ::Components::EnterpriseComponent_ptr retval = + ::Components::EnterpriseComponent::_nil (); + + ACE_NEW_THROW_EX ( + retval, + Ground_Station_exec_i, + ::CORBA::NO_MEMORY ()); + ACE_CHECK_RETURN (::Components::EnterpriseComponent::_nil ()); + + return retval; + } + + extern "C" GROUND_COMPONENT_EXEC_Export ::Components::HomeExecutorBase_ptr + create_SPACE_Ground_Station_Factory_Impl (void) + { + ::Components::HomeExecutorBase_ptr retval = + ::Components::HomeExecutorBase::_nil (); + + ACE_NEW_RETURN ( + retval, + Ground_Station_Factory_exec_i, + ::Components::HomeExecutorBase::_nil ()); + + return retval; + } +} diff --git a/CIAO/examples/space/Ground/Ground_Component_exec.h b/CIAO/examples/space/Ground/Ground_Component_exec.h new file mode 100644 index 00000000000..35719fcb7c4 --- /dev/null +++ b/CIAO/examples/space/Ground/Ground_Component_exec.h @@ -0,0 +1,139 @@ +// $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_GROUND_COMPONENT_EXEC_H +#define CIAO_GROUND_COMPONENT_EXEC_H + +#include /**/ "ace/pre.h" + +#include "Ground_Component_svnt.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + +#include "Ground_Component_exec_export.h" +#include "tao/LocalObject.h" + +namespace CIDL_Ground_Component +{ + class GROUND_COMPONENT_EXEC_Export Ground_Station_exec_i + : public virtual Ground_Station_Exec, + public virtual TAO_Local_RefCounted_Object + { + public: + Ground_Station_exec_i (void); + virtual ~Ground_Station_exec_i (void); + + // Supported or inherited operations. + + // Attribute operations. + + // Port operations. + + virtual void + push_recv_transmission ( + ::SPACE::Gizmo_Data *ev + ACE_ENV_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC (( ::CORBA::SystemException)); + + // Operations from Components::SessionComponent + + virtual void + set_session_context ( + ::Components::SessionContext_ptr ctx + ACE_ENV_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC (( + ::CORBA::SystemException, + ::Components::CCMException)); + + virtual void + ciao_preactivate ( + ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC (( + ::CORBA::SystemException, + ::Components::CCMException)); + + virtual void + ciao_postactivate ( + ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC (( + ::CORBA::SystemException, + ::Components::CCMException)); + + virtual void + ccm_activate ( + ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC (( + ::CORBA::SystemException, + ::Components::CCMException)); + + virtual void + ccm_passivate ( + ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC (( + ::CORBA::SystemException, + ::Components::CCMException)); + + virtual void + ccm_remove ( + ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC (( + ::CORBA::SystemException, + ::Components::CCMException)); + + protected: + Ground_Station_Context *context_; + }; + + class GROUND_COMPONENT_EXEC_Export Ground_Station_Factory_exec_i + : public virtual Ground_Station_Factory_Exec, + public virtual TAO_Local_RefCounted_Object + { + public: + Ground_Station_Factory_exec_i (void); + virtual ~Ground_Station_Factory_exec_i (void); + + // Supported or inherited operations. + + // Home operations. + + // Factory and finder operations. + + // Attribute operations. + + // Implicit operations. + + virtual ::Components::EnterpriseComponent_ptr + create ( + ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC (( + ::CORBA::SystemException, + ::Components::CCMException)); + }; + + extern "C" GROUND_COMPONENT_EXEC_Export ::Components::HomeExecutorBase_ptr + create_SPACE_Ground_Station_Factory_Impl (void); +} + +#include /**/ "ace/post.h" + +#endif /* CIAO_GROUND_COMPONENT_EXEC_H */ + diff --git a/CIAO/examples/space/Ground/Ground_Component_exec_export.h b/CIAO/examples/space/Ground/Ground_Component_exec_export.h new file mode 100644 index 00000000000..3933325f758 --- /dev/null +++ b/CIAO/examples/space/Ground/Ground_Component_exec_export.h @@ -0,0 +1,58 @@ + +// -*- C++ -*- +// $Id$ +// Definition for Win32 Export directives. +// This file is generated automatically by generate_export_file.pl GROUND_COMPONENT_EXEC +// ------------------------------ +#ifndef GROUND_COMPONENT_EXEC_EXPORT_H +#define GROUND_COMPONENT_EXEC_EXPORT_H + +#include "ace/config-all.h" + +#if defined (ACE_AS_STATIC_LIBS) && !defined (GROUND_COMPONENT_EXEC_HAS_DLL) +# define GROUND_COMPONENT_EXEC_HAS_DLL 0 +#endif /* ACE_AS_STATIC_LIBS && GROUND_COMPONENT_EXEC_HAS_DLL */ + +#if !defined (GROUND_COMPONENT_EXEC_HAS_DLL) +# define GROUND_COMPONENT_EXEC_HAS_DLL 1 +#endif /* ! GROUND_COMPONENT_EXEC_HAS_DLL */ + +#if defined (GROUND_COMPONENT_EXEC_HAS_DLL) && (GROUND_COMPONENT_EXEC_HAS_DLL == 1) +# if defined (GROUND_COMPONENT_EXEC_BUILD_DLL) +# define GROUND_COMPONENT_EXEC_Export ACE_Proper_Export_Flag +# define GROUND_COMPONENT_EXEC_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T) +# define GROUND_COMPONENT_EXEC_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# else /* GROUND_COMPONENT_EXEC_BUILD_DLL */ +# define GROUND_COMPONENT_EXEC_Export ACE_Proper_Import_Flag +# define GROUND_COMPONENT_EXEC_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T) +# define GROUND_COMPONENT_EXEC_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# endif /* GROUND_COMPONENT_EXEC_BUILD_DLL */ +#else /* GROUND_COMPONENT_EXEC_HAS_DLL == 1 */ +# define GROUND_COMPONENT_EXEC_Export +# define GROUND_COMPONENT_EXEC_SINGLETON_DECLARATION(T) +# define GROUND_COMPONENT_EXEC_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +#endif /* GROUND_COMPONENT_EXEC_HAS_DLL == 1 */ + +// Set GROUND_COMPONENT_EXEC_NTRACE = 0 to turn on library specific tracing even if +// tracing is turned off for ACE. +#if !defined (GROUND_COMPONENT_EXEC_NTRACE) +# if (ACE_NTRACE == 1) +# define GROUND_COMPONENT_EXEC_NTRACE 1 +# else /* (ACE_NTRACE == 1) */ +# define GROUND_COMPONENT_EXEC_NTRACE 0 +# endif /* (ACE_NTRACE == 1) */ +#endif /* !GROUND_COMPONENT_EXEC_NTRACE */ + +#if (GROUND_COMPONENT_EXEC_NTRACE == 1) +# define GROUND_COMPONENT_EXEC_TRACE(X) +#else /* (GROUND_COMPONENT_EXEC_NTRACE == 1) */ +# if !defined (ACE_HAS_TRACE) +# define ACE_HAS_TRACE +# endif /* ACE_HAS_TRACE */ +# define GROUND_COMPONENT_EXEC_TRACE(X) ACE_TRACE_IMPL(X) +# include "ace/Trace.h" +#endif /* (GROUND_COMPONENT_EXEC_NTRACE == 1) */ + +#endif /* GROUND_COMPONENT_EXEC_EXPORT_H */ + +// End of auto generated file. diff --git a/CIAO/examples/space/Ground/Ground_Component_stub_export.h b/CIAO/examples/space/Ground/Ground_Component_stub_export.h new file mode 100644 index 00000000000..f32b0522e5b --- /dev/null +++ b/CIAO/examples/space/Ground/Ground_Component_stub_export.h @@ -0,0 +1,58 @@ + +// -*- C++ -*- +// $Id$ +// Definition for Win32 Export directives. +// This file is generated automatically by generate_export_file.pl GROUND_COMPONENT_STUB +// ------------------------------ +#ifndef GROUND_COMPONENT_STUB_EXPORT_H +#define GROUND_COMPONENT_STUB_EXPORT_H + +#include "ace/config-all.h" + +#if defined (ACE_AS_STATIC_LIBS) && !defined (GROUND_COMPONENT_STUB_HAS_DLL) +# define GROUND_COMPONENT_STUB_HAS_DLL 0 +#endif /* ACE_AS_STATIC_LIBS && GROUND_COMPONENT_STUB_HAS_DLL */ + +#if !defined (GROUND_COMPONENT_STUB_HAS_DLL) +# define GROUND_COMPONENT_STUB_HAS_DLL 1 +#endif /* ! GROUND_COMPONENT_STUB_HAS_DLL */ + +#if defined (GROUND_COMPONENT_STUB_HAS_DLL) && (GROUND_COMPONENT_STUB_HAS_DLL == 1) +# if defined (GROUND_COMPONENT_STUB_BUILD_DLL) +# define GROUND_COMPONENT_STUB_Export ACE_Proper_Export_Flag +# define GROUND_COMPONENT_STUB_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T) +# define GROUND_COMPONENT_STUB_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# else /* GROUND_COMPONENT_STUB_BUILD_DLL */ +# define GROUND_COMPONENT_STUB_Export ACE_Proper_Import_Flag +# define GROUND_COMPONENT_STUB_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T) +# define GROUND_COMPONENT_STUB_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# endif /* GROUND_COMPONENT_STUB_BUILD_DLL */ +#else /* GROUND_COMPONENT_STUB_HAS_DLL == 1 */ +# define GROUND_COMPONENT_STUB_Export +# define GROUND_COMPONENT_STUB_SINGLETON_DECLARATION(T) +# define GROUND_COMPONENT_STUB_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +#endif /* GROUND_COMPONENT_STUB_HAS_DLL == 1 */ + +// Set GROUND_COMPONENT_STUB_NTRACE = 0 to turn on library specific tracing even if +// tracing is turned off for ACE. +#if !defined (GROUND_COMPONENT_STUB_NTRACE) +# if (ACE_NTRACE == 1) +# define GROUND_COMPONENT_STUB_NTRACE 1 +# else /* (ACE_NTRACE == 1) */ +# define GROUND_COMPONENT_STUB_NTRACE 0 +# endif /* (ACE_NTRACE == 1) */ +#endif /* !GROUND_COMPONENT_STUB_NTRACE */ + +#if (GROUND_COMPONENT_STUB_NTRACE == 1) +# define GROUND_COMPONENT_STUB_TRACE(X) +#else /* (GROUND_COMPONENT_STUB_NTRACE == 1) */ +# if !defined (ACE_HAS_TRACE) +# define ACE_HAS_TRACE +# endif /* ACE_HAS_TRACE */ +# define GROUND_COMPONENT_STUB_TRACE(X) ACE_TRACE_IMPL(X) +# include "ace/Trace.h" +#endif /* (GROUND_COMPONENT_STUB_NTRACE == 1) */ + +#endif /* GROUND_COMPONENT_STUB_EXPORT_H */ + +// End of auto generated file. diff --git a/CIAO/examples/space/Ground/Ground_Component_svnt_export.h b/CIAO/examples/space/Ground/Ground_Component_svnt_export.h new file mode 100644 index 00000000000..823728ec172 --- /dev/null +++ b/CIAO/examples/space/Ground/Ground_Component_svnt_export.h @@ -0,0 +1,58 @@ + +// -*- C++ -*- +// $Id$ +// Definition for Win32 Export directives. +// This file is generated automatically by generate_export_file.pl GROUND_COMPONENT_SVNT +// ------------------------------ +#ifndef GROUND_COMPONENT_SVNT_EXPORT_H +#define GROUND_COMPONENT_SVNT_EXPORT_H + +#include "ace/config-all.h" + +#if defined (ACE_AS_STATIC_LIBS) && !defined (GROUND_COMPONENT_SVNT_HAS_DLL) +# define GROUND_COMPONENT_SVNT_HAS_DLL 0 +#endif /* ACE_AS_STATIC_LIBS && GROUND_COMPONENT_SVNT_HAS_DLL */ + +#if !defined (GROUND_COMPONENT_SVNT_HAS_DLL) +# define GROUND_COMPONENT_SVNT_HAS_DLL 1 +#endif /* ! GROUND_COMPONENT_SVNT_HAS_DLL */ + +#if defined (GROUND_COMPONENT_SVNT_HAS_DLL) && (GROUND_COMPONENT_SVNT_HAS_DLL == 1) +# if defined (GROUND_COMPONENT_SVNT_BUILD_DLL) +# define GROUND_COMPONENT_SVNT_Export ACE_Proper_Export_Flag +# define GROUND_COMPONENT_SVNT_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T) +# define GROUND_COMPONENT_SVNT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# else /* GROUND_COMPONENT_SVNT_BUILD_DLL */ +# define GROUND_COMPONENT_SVNT_Export ACE_Proper_Import_Flag +# define GROUND_COMPONENT_SVNT_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T) +# define GROUND_COMPONENT_SVNT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# endif /* GROUND_COMPONENT_SVNT_BUILD_DLL */ +#else /* GROUND_COMPONENT_SVNT_HAS_DLL == 1 */ +# define GROUND_COMPONENT_SVNT_Export +# define GROUND_COMPONENT_SVNT_SINGLETON_DECLARATION(T) +# define GROUND_COMPONENT_SVNT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +#endif /* GROUND_COMPONENT_SVNT_HAS_DLL == 1 */ + +// Set GROUND_COMPONENT_SVNT_NTRACE = 0 to turn on library specific tracing even if +// tracing is turned off for ACE. +#if !defined (GROUND_COMPONENT_SVNT_NTRACE) +# if (ACE_NTRACE == 1) +# define GROUND_COMPONENT_SVNT_NTRACE 1 +# else /* (ACE_NTRACE == 1) */ +# define GROUND_COMPONENT_SVNT_NTRACE 0 +# endif /* (ACE_NTRACE == 1) */ +#endif /* !GROUND_COMPONENT_SVNT_NTRACE */ + +#if (GROUND_COMPONENT_SVNT_NTRACE == 1) +# define GROUND_COMPONENT_SVNT_TRACE(X) +#else /* (GROUND_COMPONENT_SVNT_NTRACE == 1) */ +# if !defined (ACE_HAS_TRACE) +# define ACE_HAS_TRACE +# endif /* ACE_HAS_TRACE */ +# define GROUND_COMPONENT_SVNT_TRACE(X) ACE_TRACE_IMPL(X) +# include "ace/Trace.h" +#endif /* (GROUND_COMPONENT_SVNT_NTRACE == 1) */ + +#endif /* GROUND_COMPONENT_SVNT_EXPORT_H */ + +// End of auto generated file. diff --git a/CIAO/examples/space/Primary_Gizmo/Primary_Gizmo.ccd b/CIAO/examples/space/Primary_Gizmo/Primary_Gizmo.ccd new file mode 100644 index 00000000000..d7f52cbe710 --- /dev/null +++ b/CIAO/examples/space/Primary_Gizmo/Primary_Gizmo.ccd @@ -0,0 +1,33 @@ +<?xml version="1.0"?> +<!DOCTYPE corbacomponent SYSTEM "corbacomponent.dtd"> + +<corbacomponent> + <corbaversion>3.0</corbaversion> + <componentrepid repid="IDL:SPACE/Primary_Gizmo:1.0"/> + <homerepid repid="IDL:SPACE/Primary_Gizmo_Factory:1.0"/> + <componentkind> + <session> + <servant lifetime="container"/> + </session> + </componentkind> + <threading policy="multithread"/> + <configurationcomplete set="true"/> + + <homefeatures + name="Primary_Gizmo_Factory" + repid="IDL:SPACE/Primary_Gizmo_Factory:1.0"> + </homefeatures> + + <componentfeatures + name="Primary_Gizmo" + repid="IDL:SPACE/Primary_Gizmo:1.0"> + <ports> + <emits + emitsname="observation_data" + eventtype="IDL:SPACE/Gizmo_Data:1.0"> + <eventpolicy policy="normal"/> + </emits> + </ports> + </componentfeatures> + +</corbacomponent> diff --git a/CIAO/examples/space/Primary_Gizmo/Primary_Gizmo.cidl b/CIAO/examples/space/Primary_Gizmo/Primary_Gizmo.cidl new file mode 100644 index 00000000000..b283dced00f --- /dev/null +++ b/CIAO/examples/space/Primary_Gizmo/Primary_Gizmo.cidl @@ -0,0 +1,20 @@ +// -*- CIDL -*- + +// This file was generated by +// $Id$ + +#ifndef _PRIMARY_GIZMO_CIDL_ +#define _PRIMARY_GIZMO_CIDL_ + +#include "Primary_Gizmo.idl" + +composition session Primary_Gizmo +{ + home executor Primary_Gizmo_Factory_Exec + { + implements SPACE::Primary_Gizmo_Factory; + manages Primary_Gizmo_Exec; + }; +}; + +#endif // !defined _PRIMARY_GIZMO_CIDL_ diff --git a/CIAO/examples/space/Primary_Gizmo/Primary_Gizmo.idl b/CIAO/examples/space/Primary_Gizmo/Primary_Gizmo.idl new file mode 100644 index 00000000000..b44af6122d5 --- /dev/null +++ b/CIAO/examples/space/Primary_Gizmo/Primary_Gizmo.idl @@ -0,0 +1,22 @@ + +#ifndef PRIMARY_GIZMO_IDL +#define PRIMARY_GIZMO_IDL + +#include <Components.idl> +#include "Event_Types.idl" + +module SPACE +{ + component Primary_Gizmo + { + emits Gizmo_Data observation_data; + }; + + home Primary_Gizmo_Factory + manages Primary_Gizmo + { + }; +}; + +#endif // PRIMARY_GIZMO_IDL + diff --git a/CIAO/examples/space/Primary_Gizmo/Primary_Gizmo.mpc b/CIAO/examples/space/Primary_Gizmo/Primary_Gizmo.mpc new file mode 100644 index 00000000000..63c49654b92 --- /dev/null +++ b/CIAO/examples/space/Primary_Gizmo/Primary_Gizmo.mpc @@ -0,0 +1,77 @@ +// $Id$ +// This file is generated with "generate_component_mpc.pl Primary_Gizmo" + +project(Primary_Gizmo_stub): ciao_client_dnc { + + after += Event_Types_stub + includes += ../common + libs += Event_Types_stub + sharedname = Primary_Gizmo_stub + idlflags += -Wb,stub_export_macro=PRIMARY_GIZMO_STUB_Export \ + -Wb,stub_export_include=Primary_Gizmo_stub_export.h \ + -Wb,skel_export_macro=PRIMARY_GIZMO_SVNT_Export \ + -Wb,skel_export_include=Primary_Gizmo_svnt_export.h\ + -I ../common + dynamicflags = PRIMARY_GIZMO_STUB_BUILD_DLL + + IDL_Files { + Primary_Gizmo.idl + } + + Source_Files { + Primary_GizmoC.cpp + } +} + +project(Primary_Gizmo_svnt) : ciao_servant_dnc { + after += Primary_Gizmo_stub Event_Types_svnt + includes += ../common + sharedname = Primary_Gizmo_svnt + libs += Primary_Gizmo_stub Event_Types_svnt Event_Types_stub + + idlflags += -Wb,export_macro=PRIMARY_GIZMO_SVNT_Export \ + -Wb,export_include=Primary_Gizmo_svnt_export.h \ + -I ../common + dynamicflags = PRIMARY_GIZMO_SVNT_BUILD_DLL + + cidlflags -= -- + cidlflags += -I ../common -- + + CIDL_Files { + Primary_Gizmo.cidl + } + + IDL_Files { + Primary_GizmoE.idl + } + + Source_Files { + Primary_GizmoEC.cpp + Primary_GizmoS.cpp + Primary_Gizmo_svnt.cpp + } +} + + +project(Primary_Gizmo_exec) : ciao_component_dnc { + after += Primary_Gizmo_svnt + includes += ../common + sharedname = Primary_Gizmo_exec + libs += Primary_Gizmo_stub \ + Primary_Gizmo_svnt \ + Event_Types_stub \ + Event_Types_svnt + + idlflags += -Wb,export_macro=PRIMARY_GIZMO_EXEC_Export \ + -Wb,export_include=Primary_Gizmo_exec_export.h + dynamicflags = PRIMARY_GIZMO_EXEC_BUILD_DLL + + IDL_Files { + + } + + Source_Files { + + Primary_Gizmo_exec.cpp + } +} diff --git a/CIAO/examples/space/Primary_Gizmo/Primary_Gizmo_exec.cpp b/CIAO/examples/space/Primary_Gizmo/Primary_Gizmo_exec.cpp new file mode 100644 index 00000000000..90e0e30aca2 --- /dev/null +++ b/CIAO/examples/space/Primary_Gizmo/Primary_Gizmo_exec.cpp @@ -0,0 +1,161 @@ +#include "Primary_Gizmo_exec.h" +#include "ciao/CIAO_common.h" +#include "tao/ORB_Core.h" +#include "ace/Reactor.h" +#include "ace/Time_Value.h" +#include "ace/Thread.h" + +namespace CIDL_Primary_Gizmo +{ + //================================================================== + // Component Executor Implementation Class: Primary_Gizmo_exec_i + //================================================================== + + Primary_Gizmo_exec_i::Primary_Gizmo_exec_i (void) + { + } + + Primary_Gizmo_exec_i::~Primary_Gizmo_exec_i (void) + { + } + + int + Primary_Gizmo_exec_i::handle_timeout (const ACE_Time_Value &, + const void *) + { + + ::SPACE::Gizmo_Data_var ev = new OBV_SPACE::Gizmo_Data; + ev->sender ("Primary-Gizmo"); + this->context_->push_observation_data (ev); + return 0; + + } + + void + Primary_Gizmo_exec_i::set_session_context ( + ::Components::SessionContext_ptr ctx + ACE_ENV_ARG_DECL) + ACE_THROW_SPEC (( ::CORBA::SystemException, + ::Components::CCMException)) + { + this->context_ = + Primary_Gizmo_Context::_narrow ( + ctx + ACE_ENV_ARG_PARAMETER); + ACE_CHECK; + + if (this->context_ == 0) + { + ACE_THROW ( ::CORBA::INTERNAL ()); + } + } + + void + Primary_Gizmo_exec_i::ciao_preactivate ( + ACE_ENV_SINGLE_ARG_DECL_NOT_USED) + ACE_THROW_SPEC (( ::CORBA::SystemException, + ::Components::CCMException)) + { + // Your code here. + } + + void + Primary_Gizmo_exec_i::ciao_postactivate ( + ACE_ENV_SINGLE_ARG_DECL_NOT_USED) + ACE_THROW_SPEC (( ::CORBA::SystemException, + ::Components::CCMException)) + { + ACE_Reactor *reactor = + this->context_->_ciao_the_Container ()->the_ORB ()->orb_core ()->reactor (); + ACE_Time_Value interval (5); + + reactor->owner (ACE_Thread::self ()); + if (reactor->schedule_timer (this, this, interval, interval) < 0) + { + ACE_ERROR ((LM_ERROR, "Exec-Agent: Error will registering " + "periodic task!\n")); + } + + } + + void + Primary_Gizmo_exec_i::ccm_activate ( + ACE_ENV_SINGLE_ARG_DECL_NOT_USED) + ACE_THROW_SPEC (( ::CORBA::SystemException, + ::Components::CCMException)) + { + // Your code here. + } + + void + Primary_Gizmo_exec_i::ccm_passivate ( + ACE_ENV_SINGLE_ARG_DECL_NOT_USED) + ACE_THROW_SPEC (( ::CORBA::SystemException, + ::Components::CCMException)) + { + // Your code here. + } + + void + Primary_Gizmo_exec_i::ccm_remove ( + ACE_ENV_SINGLE_ARG_DECL_NOT_USED) + ACE_THROW_SPEC (( ::CORBA::SystemException, + ::Components::CCMException)) + { + // Your code here. + } + + //================================================================== + // Home Executor Implementation Class: Primary_Gizmo_Factory_exec_i + //================================================================== + + Primary_Gizmo_Factory_exec_i::Primary_Gizmo_Factory_exec_i (void) + { + } + + Primary_Gizmo_Factory_exec_i::~Primary_Gizmo_Factory_exec_i (void) + { + } + + // Supported or inherited operations. + + // Home operations. + + // Factory and finder operations. + + // Attribute operations. + + // Implicit operations. + + ::Components::EnterpriseComponent_ptr + Primary_Gizmo_Factory_exec_i::create ( + ACE_ENV_SINGLE_ARG_DECL) + ACE_THROW_SPEC (( ::CORBA::SystemException, + ::Components::CCMException)) + { + ::Components::EnterpriseComponent_ptr retval = + ::Components::EnterpriseComponent::_nil (); + + ACE_NEW_THROW_EX ( + retval, + Primary_Gizmo_exec_i, + ::CORBA::NO_MEMORY ()); + ACE_CHECK_RETURN (::Components::EnterpriseComponent::_nil ()); + + return retval; + } + + extern "C" PRIMARY_GIZMO_EXEC_Export ::Components::HomeExecutorBase_ptr + create_SPACE_Primary_Gizmo_Factory_Impl (void) + { + ::Components::HomeExecutorBase_ptr retval = + ::Components::HomeExecutorBase::_nil (); + + ACE_NEW_RETURN ( + retval, + Primary_Gizmo_Factory_exec_i, + ::Components::HomeExecutorBase::_nil ()); + + return retval; + } +} diff --git a/CIAO/examples/space/Primary_Gizmo/Primary_Gizmo_exec.h b/CIAO/examples/space/Primary_Gizmo/Primary_Gizmo_exec.h new file mode 100644 index 00000000000..e0e6430797f --- /dev/null +++ b/CIAO/examples/space/Primary_Gizmo/Primary_Gizmo_exec.h @@ -0,0 +1,110 @@ +#ifndef CIAO_PRIMARY_GIZMO_EXEC_H +#define CIAO_PRIMARY_GIZMO_EXEC_H + +#include /**/ "ace/pre.h" + +#include "Primary_Gizmo_svnt.h" +#include "ace/Event_Handler.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + +#include "Primary_Gizmo_exec_export.h" +#include "tao/LocalObject.h" + +namespace CIDL_Primary_Gizmo +{ + class PRIMARY_GIZMO_EXEC_Export Primary_Gizmo_exec_i + : public virtual Primary_Gizmo_Exec, + public virtual TAO_Local_RefCounted_Object, + public virtual ACE_Event_Handler + { + public: + Primary_Gizmo_exec_i (void); + + virtual ~Primary_Gizmo_exec_i (void); + + virtual int handle_timeout (const ACE_Time_Value &, + const void *ref); + + virtual void + set_session_context ( + ::Components::SessionContext_ptr ctx + ACE_ENV_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC (( + ::CORBA::SystemException, + ::Components::CCMException)); + + virtual void + ciao_preactivate ( + ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC (( + ::CORBA::SystemException, + ::Components::CCMException)); + + virtual void + ciao_postactivate ( + ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC (( + ::CORBA::SystemException, + ::Components::CCMException)); + + virtual void + ccm_activate ( + ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC (( + ::CORBA::SystemException, + ::Components::CCMException)); + + virtual void + ccm_passivate ( + ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC (( + ::CORBA::SystemException, + ::Components::CCMException)); + + virtual void + ccm_remove ( + ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC (( + ::CORBA::SystemException, + ::Components::CCMException)); + + protected: + Primary_Gizmo_Context *context_; + }; + + class PRIMARY_GIZMO_EXEC_Export Primary_Gizmo_Factory_exec_i + : public virtual Primary_Gizmo_Factory_Exec, + public virtual TAO_Local_RefCounted_Object + { + public: + Primary_Gizmo_Factory_exec_i (void); + virtual ~Primary_Gizmo_Factory_exec_i (void); + + // Supported or inherited operations. + + // Home operations. + + // Factory and finder operations. + + // Attribute operations. + + // Implicit operations. + + virtual ::Components::EnterpriseComponent_ptr + create ( + ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC (( + ::CORBA::SystemException, + ::Components::CCMException)); + }; + + extern "C" PRIMARY_GIZMO_EXEC_Export ::Components::HomeExecutorBase_ptr + create_SPACE_Primary_Gizmo_Factory_Impl (void); +} + +#include /**/ "ace/post.h" + +#endif /* CIAO_PRIMARY_GIZMO_EXEC_H */ diff --git a/CIAO/examples/space/Primary_Gizmo/Primary_Gizmo_exec_export.h b/CIAO/examples/space/Primary_Gizmo/Primary_Gizmo_exec_export.h new file mode 100644 index 00000000000..b1b08c59a91 --- /dev/null +++ b/CIAO/examples/space/Primary_Gizmo/Primary_Gizmo_exec_export.h @@ -0,0 +1,58 @@ + +// -*- C++ -*- +// $Id$ +// Definition for Win32 Export directives. +// This file is generated automatically by generate_export_file.pl PRIMARY_GIZMO_EXEC +// ------------------------------ +#ifndef PRIMARY_GIZMO_EXEC_EXPORT_H +#define PRIMARY_GIZMO_EXEC_EXPORT_H + +#include "ace/config-all.h" + +#if defined (ACE_AS_STATIC_LIBS) && !defined (PRIMARY_GIZMO_EXEC_HAS_DLL) +# define PRIMARY_GIZMO_EXEC_HAS_DLL 0 +#endif /* ACE_AS_STATIC_LIBS && PRIMARY_GIZMO_EXEC_HAS_DLL */ + +#if !defined (PRIMARY_GIZMO_EXEC_HAS_DLL) +# define PRIMARY_GIZMO_EXEC_HAS_DLL 1 +#endif /* ! PRIMARY_GIZMO_EXEC_HAS_DLL */ + +#if defined (PRIMARY_GIZMO_EXEC_HAS_DLL) && (PRIMARY_GIZMO_EXEC_HAS_DLL == 1) +# if defined (PRIMARY_GIZMO_EXEC_BUILD_DLL) +# define PRIMARY_GIZMO_EXEC_Export ACE_Proper_Export_Flag +# define PRIMARY_GIZMO_EXEC_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T) +# define PRIMARY_GIZMO_EXEC_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# else /* PRIMARY_GIZMO_EXEC_BUILD_DLL */ +# define PRIMARY_GIZMO_EXEC_Export ACE_Proper_Import_Flag +# define PRIMARY_GIZMO_EXEC_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T) +# define PRIMARY_GIZMO_EXEC_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# endif /* PRIMARY_GIZMO_EXEC_BUILD_DLL */ +#else /* PRIMARY_GIZMO_EXEC_HAS_DLL == 1 */ +# define PRIMARY_GIZMO_EXEC_Export +# define PRIMARY_GIZMO_EXEC_SINGLETON_DECLARATION(T) +# define PRIMARY_GIZMO_EXEC_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +#endif /* PRIMARY_GIZMO_EXEC_HAS_DLL == 1 */ + +// Set PRIMARY_GIZMO_EXEC_NTRACE = 0 to turn on library specific tracing even if +// tracing is turned off for ACE. +#if !defined (PRIMARY_GIZMO_EXEC_NTRACE) +# if (ACE_NTRACE == 1) +# define PRIMARY_GIZMO_EXEC_NTRACE 1 +# else /* (ACE_NTRACE == 1) */ +# define PRIMARY_GIZMO_EXEC_NTRACE 0 +# endif /* (ACE_NTRACE == 1) */ +#endif /* !PRIMARY_GIZMO_EXEC_NTRACE */ + +#if (PRIMARY_GIZMO_EXEC_NTRACE == 1) +# define PRIMARY_GIZMO_EXEC_TRACE(X) +#else /* (PRIMARY_GIZMO_EXEC_NTRACE == 1) */ +# if !defined (ACE_HAS_TRACE) +# define ACE_HAS_TRACE +# endif /* ACE_HAS_TRACE */ +# define PRIMARY_GIZMO_EXEC_TRACE(X) ACE_TRACE_IMPL(X) +# include "ace/Trace.h" +#endif /* (PRIMARY_GIZMO_EXEC_NTRACE == 1) */ + +#endif /* PRIMARY_GIZMO_EXEC_EXPORT_H */ + +// End of auto generated file. diff --git a/CIAO/examples/space/Primary_Gizmo/Primary_Gizmo_stub_export.h b/CIAO/examples/space/Primary_Gizmo/Primary_Gizmo_stub_export.h new file mode 100644 index 00000000000..cf2228b59e0 --- /dev/null +++ b/CIAO/examples/space/Primary_Gizmo/Primary_Gizmo_stub_export.h @@ -0,0 +1,58 @@ + +// -*- C++ -*- +// $Id$ +// Definition for Win32 Export directives. +// This file is generated automatically by generate_export_file.pl PRIMARY_GIZMO_STUB +// ------------------------------ +#ifndef PRIMARY_GIZMO_STUB_EXPORT_H +#define PRIMARY_GIZMO_STUB_EXPORT_H + +#include "ace/config-all.h" + +#if defined (ACE_AS_STATIC_LIBS) && !defined (PRIMARY_GIZMO_STUB_HAS_DLL) +# define PRIMARY_GIZMO_STUB_HAS_DLL 0 +#endif /* ACE_AS_STATIC_LIBS && PRIMARY_GIZMO_STUB_HAS_DLL */ + +#if !defined (PRIMARY_GIZMO_STUB_HAS_DLL) +# define PRIMARY_GIZMO_STUB_HAS_DLL 1 +#endif /* ! PRIMARY_GIZMO_STUB_HAS_DLL */ + +#if defined (PRIMARY_GIZMO_STUB_HAS_DLL) && (PRIMARY_GIZMO_STUB_HAS_DLL == 1) +# if defined (PRIMARY_GIZMO_STUB_BUILD_DLL) +# define PRIMARY_GIZMO_STUB_Export ACE_Proper_Export_Flag +# define PRIMARY_GIZMO_STUB_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T) +# define PRIMARY_GIZMO_STUB_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# else /* PRIMARY_GIZMO_STUB_BUILD_DLL */ +# define PRIMARY_GIZMO_STUB_Export ACE_Proper_Import_Flag +# define PRIMARY_GIZMO_STUB_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T) +# define PRIMARY_GIZMO_STUB_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# endif /* PRIMARY_GIZMO_STUB_BUILD_DLL */ +#else /* PRIMARY_GIZMO_STUB_HAS_DLL == 1 */ +# define PRIMARY_GIZMO_STUB_Export +# define PRIMARY_GIZMO_STUB_SINGLETON_DECLARATION(T) +# define PRIMARY_GIZMO_STUB_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +#endif /* PRIMARY_GIZMO_STUB_HAS_DLL == 1 */ + +// Set PRIMARY_GIZMO_STUB_NTRACE = 0 to turn on library specific tracing even if +// tracing is turned off for ACE. +#if !defined (PRIMARY_GIZMO_STUB_NTRACE) +# if (ACE_NTRACE == 1) +# define PRIMARY_GIZMO_STUB_NTRACE 1 +# else /* (ACE_NTRACE == 1) */ +# define PRIMARY_GIZMO_STUB_NTRACE 0 +# endif /* (ACE_NTRACE == 1) */ +#endif /* !PRIMARY_GIZMO_STUB_NTRACE */ + +#if (PRIMARY_GIZMO_STUB_NTRACE == 1) +# define PRIMARY_GIZMO_STUB_TRACE(X) +#else /* (PRIMARY_GIZMO_STUB_NTRACE == 1) */ +# if !defined (ACE_HAS_TRACE) +# define ACE_HAS_TRACE +# endif /* ACE_HAS_TRACE */ +# define PRIMARY_GIZMO_STUB_TRACE(X) ACE_TRACE_IMPL(X) +# include "ace/Trace.h" +#endif /* (PRIMARY_GIZMO_STUB_NTRACE == 1) */ + +#endif /* PRIMARY_GIZMO_STUB_EXPORT_H */ + +// End of auto generated file. diff --git a/CIAO/examples/space/Primary_Gizmo/Primary_Gizmo_svnt_export.h b/CIAO/examples/space/Primary_Gizmo/Primary_Gizmo_svnt_export.h new file mode 100644 index 00000000000..89d45344c31 --- /dev/null +++ b/CIAO/examples/space/Primary_Gizmo/Primary_Gizmo_svnt_export.h @@ -0,0 +1,58 @@ + +// -*- C++ -*- +// $Id$ +// Definition for Win32 Export directives. +// This file is generated automatically by generate_export_file.pl PRIMARY_GIZMO_SVNT +// ------------------------------ +#ifndef PRIMARY_GIZMO_SVNT_EXPORT_H +#define PRIMARY_GIZMO_SVNT_EXPORT_H + +#include "ace/config-all.h" + +#if defined (ACE_AS_STATIC_LIBS) && !defined (PRIMARY_GIZMO_SVNT_HAS_DLL) +# define PRIMARY_GIZMO_SVNT_HAS_DLL 0 +#endif /* ACE_AS_STATIC_LIBS && PRIMARY_GIZMO_SVNT_HAS_DLL */ + +#if !defined (PRIMARY_GIZMO_SVNT_HAS_DLL) +# define PRIMARY_GIZMO_SVNT_HAS_DLL 1 +#endif /* ! PRIMARY_GIZMO_SVNT_HAS_DLL */ + +#if defined (PRIMARY_GIZMO_SVNT_HAS_DLL) && (PRIMARY_GIZMO_SVNT_HAS_DLL == 1) +# if defined (PRIMARY_GIZMO_SVNT_BUILD_DLL) +# define PRIMARY_GIZMO_SVNT_Export ACE_Proper_Export_Flag +# define PRIMARY_GIZMO_SVNT_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T) +# define PRIMARY_GIZMO_SVNT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# else /* PRIMARY_GIZMO_SVNT_BUILD_DLL */ +# define PRIMARY_GIZMO_SVNT_Export ACE_Proper_Import_Flag +# define PRIMARY_GIZMO_SVNT_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T) +# define PRIMARY_GIZMO_SVNT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# endif /* PRIMARY_GIZMO_SVNT_BUILD_DLL */ +#else /* PRIMARY_GIZMO_SVNT_HAS_DLL == 1 */ +# define PRIMARY_GIZMO_SVNT_Export +# define PRIMARY_GIZMO_SVNT_SINGLETON_DECLARATION(T) +# define PRIMARY_GIZMO_SVNT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +#endif /* PRIMARY_GIZMO_SVNT_HAS_DLL == 1 */ + +// Set PRIMARY_GIZMO_SVNT_NTRACE = 0 to turn on library specific tracing even if +// tracing is turned off for ACE. +#if !defined (PRIMARY_GIZMO_SVNT_NTRACE) +# if (ACE_NTRACE == 1) +# define PRIMARY_GIZMO_SVNT_NTRACE 1 +# else /* (ACE_NTRACE == 1) */ +# define PRIMARY_GIZMO_SVNT_NTRACE 0 +# endif /* (ACE_NTRACE == 1) */ +#endif /* !PRIMARY_GIZMO_SVNT_NTRACE */ + +#if (PRIMARY_GIZMO_SVNT_NTRACE == 1) +# define PRIMARY_GIZMO_SVNT_TRACE(X) +#else /* (PRIMARY_GIZMO_SVNT_NTRACE == 1) */ +# if !defined (ACE_HAS_TRACE) +# define ACE_HAS_TRACE +# endif /* ACE_HAS_TRACE */ +# define PRIMARY_GIZMO_SVNT_TRACE(X) ACE_TRACE_IMPL(X) +# include "ace/Trace.h" +#endif /* (PRIMARY_GIZMO_SVNT_NTRACE == 1) */ + +#endif /* PRIMARY_GIZMO_SVNT_EXPORT_H */ + +// End of auto generated file. diff --git a/CIAO/examples/space/common/Event_Types.idl b/CIAO/examples/space/common/Event_Types.idl new file mode 100644 index 00000000000..c6fe19567be --- /dev/null +++ b/CIAO/examples/space/common/Event_Types.idl @@ -0,0 +1,18 @@ +#ifndef EVENT_TYPES_IDL +#define EVENT_TYPES_IDL + +#include <Components.idl> + +module SPACE + { + + eventtype Gizmo_Data + { + public long dispatch_time; + public string sender; + public long data; + }; +}; + + +#endif // EVENT_TYPES_IDL diff --git a/CIAO/examples/space/common/Event_Types.mpc b/CIAO/examples/space/common/Event_Types.mpc new file mode 100644 index 00000000000..537fd8aedaf --- /dev/null +++ b/CIAO/examples/space/common/Event_Types.mpc @@ -0,0 +1,33 @@ +project(Event_Types_stub): ciao_client_dnc { + + sharedname = Event_Types_stub + idlflags += -Wb,stub_export_macro=EVENT_TYPES_STUB_Export \ + -Wb,stub_export_include=Event_Types_stub_export.h \ + -Wb,skel_export_macro=EVENT_TYPES_SVNT_Export \ + -Wb,skel_export_include=Event_Types_svnt_export.h + dynamicflags = EVENT_TYPES_STUB_BUILD_DLL + + IDL_Files { + Event_Types.idl + } + + Source_Files { + Event_TypesC.cpp + } +} + +project(Event_Types_svnt) : ciao_servant_dnc { + after += Event_Types_stub + sharedname = Event_Types_svnt + libs += Event_Types_stub + + dynamicflags = EVENT_TYPES_SVNT_BUILD_DLL + + + IDL_Files { + } + + Source_Files { + Event_TypesS.cpp + } +} diff --git a/CIAO/examples/space/common/Event_Types_exec_export.h b/CIAO/examples/space/common/Event_Types_exec_export.h new file mode 100644 index 00000000000..d0cfa909860 --- /dev/null +++ b/CIAO/examples/space/common/Event_Types_exec_export.h @@ -0,0 +1,58 @@ + +// -*- C++ -*- +// $Id$ +// Definition for Win32 Export directives. +// This file is generated automatically by generate_export_file.pl EVENT_TYPES_EXEC +// ------------------------------ +#ifndef EVENT_TYPES_EXEC_EXPORT_H +#define EVENT_TYPES_EXEC_EXPORT_H + +#include "ace/config-all.h" + +#if defined (ACE_AS_STATIC_LIBS) && !defined (EVENT_TYPES_EXEC_HAS_DLL) +# define EVENT_TYPES_EXEC_HAS_DLL 0 +#endif /* ACE_AS_STATIC_LIBS && EVENT_TYPES_EXEC_HAS_DLL */ + +#if !defined (EVENT_TYPES_EXEC_HAS_DLL) +# define EVENT_TYPES_EXEC_HAS_DLL 1 +#endif /* ! EVENT_TYPES_EXEC_HAS_DLL */ + +#if defined (EVENT_TYPES_EXEC_HAS_DLL) && (EVENT_TYPES_EXEC_HAS_DLL == 1) +# if defined (EVENT_TYPES_EXEC_BUILD_DLL) +# define EVENT_TYPES_EXEC_Export ACE_Proper_Export_Flag +# define EVENT_TYPES_EXEC_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T) +# define EVENT_TYPES_EXEC_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# else /* EVENT_TYPES_EXEC_BUILD_DLL */ +# define EVENT_TYPES_EXEC_Export ACE_Proper_Import_Flag +# define EVENT_TYPES_EXEC_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T) +# define EVENT_TYPES_EXEC_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# endif /* EVENT_TYPES_EXEC_BUILD_DLL */ +#else /* EVENT_TYPES_EXEC_HAS_DLL == 1 */ +# define EVENT_TYPES_EXEC_Export +# define EVENT_TYPES_EXEC_SINGLETON_DECLARATION(T) +# define EVENT_TYPES_EXEC_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +#endif /* EVENT_TYPES_EXEC_HAS_DLL == 1 */ + +// Set EVENT_TYPES_EXEC_NTRACE = 0 to turn on library specific tracing even if +// tracing is turned off for ACE. +#if !defined (EVENT_TYPES_EXEC_NTRACE) +# if (ACE_NTRACE == 1) +# define EVENT_TYPES_EXEC_NTRACE 1 +# else /* (ACE_NTRACE == 1) */ +# define EVENT_TYPES_EXEC_NTRACE 0 +# endif /* (ACE_NTRACE == 1) */ +#endif /* !EVENT_TYPES_EXEC_NTRACE */ + +#if (EVENT_TYPES_EXEC_NTRACE == 1) +# define EVENT_TYPES_EXEC_TRACE(X) +#else /* (EVENT_TYPES_EXEC_NTRACE == 1) */ +# if !defined (ACE_HAS_TRACE) +# define ACE_HAS_TRACE +# endif /* ACE_HAS_TRACE */ +# define EVENT_TYPES_EXEC_TRACE(X) ACE_TRACE_IMPL(X) +# include "ace/Trace.h" +#endif /* (EVENT_TYPES_EXEC_NTRACE == 1) */ + +#endif /* EVENT_TYPES_EXEC_EXPORT_H */ + +// End of auto generated file. diff --git a/CIAO/examples/space/common/Event_Types_stub_export.h b/CIAO/examples/space/common/Event_Types_stub_export.h new file mode 100644 index 00000000000..994b4e2a08c --- /dev/null +++ b/CIAO/examples/space/common/Event_Types_stub_export.h @@ -0,0 +1,58 @@ + +// -*- C++ -*- +// $Id$ +// Definition for Win32 Export directives. +// This file is generated automatically by generate_export_file.pl EVENT_TYPES_STUB +// ------------------------------ +#ifndef EVENT_TYPES_STUB_EXPORT_H +#define EVENT_TYPES_STUB_EXPORT_H + +#include "ace/config-all.h" + +#if defined (ACE_AS_STATIC_LIBS) && !defined (EVENT_TYPES_STUB_HAS_DLL) +# define EVENT_TYPES_STUB_HAS_DLL 0 +#endif /* ACE_AS_STATIC_LIBS && EVENT_TYPES_STUB_HAS_DLL */ + +#if !defined (EVENT_TYPES_STUB_HAS_DLL) +# define EVENT_TYPES_STUB_HAS_DLL 1 +#endif /* ! EVENT_TYPES_STUB_HAS_DLL */ + +#if defined (EVENT_TYPES_STUB_HAS_DLL) && (EVENT_TYPES_STUB_HAS_DLL == 1) +# if defined (EVENT_TYPES_STUB_BUILD_DLL) +# define EVENT_TYPES_STUB_Export ACE_Proper_Export_Flag +# define EVENT_TYPES_STUB_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T) +# define EVENT_TYPES_STUB_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# else /* EVENT_TYPES_STUB_BUILD_DLL */ +# define EVENT_TYPES_STUB_Export ACE_Proper_Import_Flag +# define EVENT_TYPES_STUB_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T) +# define EVENT_TYPES_STUB_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# endif /* EVENT_TYPES_STUB_BUILD_DLL */ +#else /* EVENT_TYPES_STUB_HAS_DLL == 1 */ +# define EVENT_TYPES_STUB_Export +# define EVENT_TYPES_STUB_SINGLETON_DECLARATION(T) +# define EVENT_TYPES_STUB_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +#endif /* EVENT_TYPES_STUB_HAS_DLL == 1 */ + +// Set EVENT_TYPES_STUB_NTRACE = 0 to turn on library specific tracing even if +// tracing is turned off for ACE. +#if !defined (EVENT_TYPES_STUB_NTRACE) +# if (ACE_NTRACE == 1) +# define EVENT_TYPES_STUB_NTRACE 1 +# else /* (ACE_NTRACE == 1) */ +# define EVENT_TYPES_STUB_NTRACE 0 +# endif /* (ACE_NTRACE == 1) */ +#endif /* !EVENT_TYPES_STUB_NTRACE */ + +#if (EVENT_TYPES_STUB_NTRACE == 1) +# define EVENT_TYPES_STUB_TRACE(X) +#else /* (EVENT_TYPES_STUB_NTRACE == 1) */ +# if !defined (ACE_HAS_TRACE) +# define ACE_HAS_TRACE +# endif /* ACE_HAS_TRACE */ +# define EVENT_TYPES_STUB_TRACE(X) ACE_TRACE_IMPL(X) +# include "ace/Trace.h" +#endif /* (EVENT_TYPES_STUB_NTRACE == 1) */ + +#endif /* EVENT_TYPES_STUB_EXPORT_H */ + +// End of auto generated file. diff --git a/CIAO/examples/space/common/Event_Types_svnt_export.h b/CIAO/examples/space/common/Event_Types_svnt_export.h new file mode 100644 index 00000000000..d6dbf730e56 --- /dev/null +++ b/CIAO/examples/space/common/Event_Types_svnt_export.h @@ -0,0 +1,58 @@ + +// -*- C++ -*- +// $Id$ +// Definition for Win32 Export directives. +// This file is generated automatically by generate_export_file.pl EVENT_TYPES_SVNT +// ------------------------------ +#ifndef EVENT_TYPES_SVNT_EXPORT_H +#define EVENT_TYPES_SVNT_EXPORT_H + +#include "ace/config-all.h" + +#if defined (ACE_AS_STATIC_LIBS) && !defined (EVENT_TYPES_SVNT_HAS_DLL) +# define EVENT_TYPES_SVNT_HAS_DLL 0 +#endif /* ACE_AS_STATIC_LIBS && EVENT_TYPES_SVNT_HAS_DLL */ + +#if !defined (EVENT_TYPES_SVNT_HAS_DLL) +# define EVENT_TYPES_SVNT_HAS_DLL 1 +#endif /* ! EVENT_TYPES_SVNT_HAS_DLL */ + +#if defined (EVENT_TYPES_SVNT_HAS_DLL) && (EVENT_TYPES_SVNT_HAS_DLL == 1) +# if defined (EVENT_TYPES_SVNT_BUILD_DLL) +# define EVENT_TYPES_SVNT_Export ACE_Proper_Export_Flag +# define EVENT_TYPES_SVNT_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T) +# define EVENT_TYPES_SVNT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# else /* EVENT_TYPES_SVNT_BUILD_DLL */ +# define EVENT_TYPES_SVNT_Export ACE_Proper_Import_Flag +# define EVENT_TYPES_SVNT_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T) +# define EVENT_TYPES_SVNT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# endif /* EVENT_TYPES_SVNT_BUILD_DLL */ +#else /* EVENT_TYPES_SVNT_HAS_DLL == 1 */ +# define EVENT_TYPES_SVNT_Export +# define EVENT_TYPES_SVNT_SINGLETON_DECLARATION(T) +# define EVENT_TYPES_SVNT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +#endif /* EVENT_TYPES_SVNT_HAS_DLL == 1 */ + +// Set EVENT_TYPES_SVNT_NTRACE = 0 to turn on library specific tracing even if +// tracing is turned off for ACE. +#if !defined (EVENT_TYPES_SVNT_NTRACE) +# if (ACE_NTRACE == 1) +# define EVENT_TYPES_SVNT_NTRACE 1 +# else /* (ACE_NTRACE == 1) */ +# define EVENT_TYPES_SVNT_NTRACE 0 +# endif /* (ACE_NTRACE == 1) */ +#endif /* !EVENT_TYPES_SVNT_NTRACE */ + +#if (EVENT_TYPES_SVNT_NTRACE == 1) +# define EVENT_TYPES_SVNT_TRACE(X) +#else /* (EVENT_TYPES_SVNT_NTRACE == 1) */ +# if !defined (ACE_HAS_TRACE) +# define ACE_HAS_TRACE +# endif /* ACE_HAS_TRACE */ +# define EVENT_TYPES_SVNT_TRACE(X) ACE_TRACE_IMPL(X) +# include "ace/Trace.h" +#endif /* (EVENT_TYPES_SVNT_NTRACE == 1) */ + +#endif /* EVENT_TYPES_SVNT_EXPORT_H */ + +// End of auto generated file. diff --git a/CIAO/examples/space/descriptors/Domain.cdd b/CIAO/examples/space/descriptors/Domain.cdd new file mode 100644 index 00000000000..b7d7243e6a4 --- /dev/null +++ b/CIAO/examples/space/descriptors/Domain.cdd @@ -0,0 +1,210 @@ +<?xml version="1.0" encoding="UTF-8" ?> +<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>effd4bd0-6db0-4c50-9bb7-db9decebae1c</UUID> +<label>Hello Domain</label> + + +<node> + <name>blade39</name> + <label>VxWorks Node</label> + <resource> + <name>Processor</name> + <resourceType>CPULoad</resourceType> + <property> + <name>LoadAverage</name> + <kind>Quantity</kind> + <dynamic>true</dynamic> + <value> + <type> + <kind>tk_long</kind> + </type> + <value><long>99</long></value> + </value> + </property> + </resource> + <resource> + <name>NA_Monitor</name> + <resourceType>CPULoad</resourceType> + <property> + <name>LoadAverage</name> + <kind>Quantity</kind> + <dynamic>false</dynamic> + <value> + <type> + <kind>tk_double</kind> + </type> + <value> + <double>100</double> + </value> + </value> + </property> + </resource> +</node> + +<node> + <name>blade40</name> + <label>Linux Node</label> + <resource> + <name>Processor</name> + <resourceType>CPULoad</resourceType> + <property> + <name>LoadAverage</name> + <kind>Quantity</kind> + <dynamic>true</dynamic> + <value> + <type> + <kind>tk_long</kind> + </type> + <value><long>99</long></value> + </value> + </property> + </resource> + <resource> + <name>NA_Monitor</name> + <resourceType>CPULoad</resourceType> + <property> + <name>LoadAverage</name> + <kind>Quantity</kind> + <dynamic>false</dynamic> + <value> + <type> + <kind>tk_double</kind> + </type> + <value> + <double>100</double> + </value> + </value> + </property> + </resource> +</node> + +<node> + <name>blade36</name> + <label>Linux Node</label> + <resource> + <name>Processor</name> + <resourceType>CPULoad</resourceType> + <property> + <name>LoadAverage</name> + <kind>Quantity</kind> + <dynamic>true</dynamic> + <value> + <type> + <kind>tk_long</kind> + </type> + <value><long>99</long></value> + </value> + </property> + </resource> + <resource> + <name>NA_Monitor</name> + <resourceType>CPULoad</resourceType> + <property> + <name>LoadAverage</name> + <kind>Quantity</kind> + <dynamic>false</dynamic> + <value> + <type> + <kind>tk_double</kind> + </type> + <value> + <double>100</double> + </value> + </value> + </property> + </resource> +</node> + +<node> + <name>blade38</name> + <label>VxWorks Node</label> + <resource> + <name>Processor</name> + <resourceType>CPULoad</resourceType> + <property> + <name>LoadAverage</name> + <kind>Quantity</kind> + <dynamic>true</dynamic> + <value> + <type> + <kind>tk_long</kind> + </type> + <value><long>99</long></value> + </value> + </property> + </resource> + <resource> + <name>NA_Monitor</name> + <resourceType>CPULoad</resourceType> + <property> + <name>LoadAverage</name> + <kind>Quantity</kind> + <dynamic>false</dynamic> + <value> + <type> + <kind>tk_double</kind> + </type> + <value> + <double>100</double> + </value> + </value> + </property> + </resource> +</node> + + +<interconnect> + <name>NoBridgeInterConnect</name> + <connect> + <name>Receiver</name> + <resource> + <name>Processor</name> + <resourceType>CPULoad</resourceType> + <property> + <name>LoadAverage</name> + <kind>Quantity</kind> + <dynamic>true</dynamic> + <value> + <type> + <kind>tk_long</kind> + </type> + <value><long>99</long></value> + </value> + </property> + </resource> + </connect> +</interconnect> + + +<bridge> + <name>NoBridge</name> + <connect> + <name>NoBridgeInterConnect</name> + <connect> + <name>Receiver</name> + <resource> + <name>Processor</name> + <resourceType>CPULoad</resourceType> + <property> + <name>LoadAverage</name> + <kind>Quantity</kind> + <dynamic>true</dynamic> + <value> + <type> + <kind>tk_long</kind> + </type> + <value><long>99</long></value> + </value> + </property> + </resource> + </connect> + </connect> +</bridge> + + +</Deployment:domain> diff --git a/CIAO/examples/space/descriptors/Domain_4.cdd b/CIAO/examples/space/descriptors/Domain_4.cdd new file mode 100644 index 00000000000..b7d7243e6a4 --- /dev/null +++ b/CIAO/examples/space/descriptors/Domain_4.cdd @@ -0,0 +1,210 @@ +<?xml version="1.0" encoding="UTF-8" ?> +<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>effd4bd0-6db0-4c50-9bb7-db9decebae1c</UUID> +<label>Hello Domain</label> + + +<node> + <name>blade39</name> + <label>VxWorks Node</label> + <resource> + <name>Processor</name> + <resourceType>CPULoad</resourceType> + <property> + <name>LoadAverage</name> + <kind>Quantity</kind> + <dynamic>true</dynamic> + <value> + <type> + <kind>tk_long</kind> + </type> + <value><long>99</long></value> + </value> + </property> + </resource> + <resource> + <name>NA_Monitor</name> + <resourceType>CPULoad</resourceType> + <property> + <name>LoadAverage</name> + <kind>Quantity</kind> + <dynamic>false</dynamic> + <value> + <type> + <kind>tk_double</kind> + </type> + <value> + <double>100</double> + </value> + </value> + </property> + </resource> +</node> + +<node> + <name>blade40</name> + <label>Linux Node</label> + <resource> + <name>Processor</name> + <resourceType>CPULoad</resourceType> + <property> + <name>LoadAverage</name> + <kind>Quantity</kind> + <dynamic>true</dynamic> + <value> + <type> + <kind>tk_long</kind> + </type> + <value><long>99</long></value> + </value> + </property> + </resource> + <resource> + <name>NA_Monitor</name> + <resourceType>CPULoad</resourceType> + <property> + <name>LoadAverage</name> + <kind>Quantity</kind> + <dynamic>false</dynamic> + <value> + <type> + <kind>tk_double</kind> + </type> + <value> + <double>100</double> + </value> + </value> + </property> + </resource> +</node> + +<node> + <name>blade36</name> + <label>Linux Node</label> + <resource> + <name>Processor</name> + <resourceType>CPULoad</resourceType> + <property> + <name>LoadAverage</name> + <kind>Quantity</kind> + <dynamic>true</dynamic> + <value> + <type> + <kind>tk_long</kind> + </type> + <value><long>99</long></value> + </value> + </property> + </resource> + <resource> + <name>NA_Monitor</name> + <resourceType>CPULoad</resourceType> + <property> + <name>LoadAverage</name> + <kind>Quantity</kind> + <dynamic>false</dynamic> + <value> + <type> + <kind>tk_double</kind> + </type> + <value> + <double>100</double> + </value> + </value> + </property> + </resource> +</node> + +<node> + <name>blade38</name> + <label>VxWorks Node</label> + <resource> + <name>Processor</name> + <resourceType>CPULoad</resourceType> + <property> + <name>LoadAverage</name> + <kind>Quantity</kind> + <dynamic>true</dynamic> + <value> + <type> + <kind>tk_long</kind> + </type> + <value><long>99</long></value> + </value> + </property> + </resource> + <resource> + <name>NA_Monitor</name> + <resourceType>CPULoad</resourceType> + <property> + <name>LoadAverage</name> + <kind>Quantity</kind> + <dynamic>false</dynamic> + <value> + <type> + <kind>tk_double</kind> + </type> + <value> + <double>100</double> + </value> + </value> + </property> + </resource> +</node> + + +<interconnect> + <name>NoBridgeInterConnect</name> + <connect> + <name>Receiver</name> + <resource> + <name>Processor</name> + <resourceType>CPULoad</resourceType> + <property> + <name>LoadAverage</name> + <kind>Quantity</kind> + <dynamic>true</dynamic> + <value> + <type> + <kind>tk_long</kind> + </type> + <value><long>99</long></value> + </value> + </property> + </resource> + </connect> +</interconnect> + + +<bridge> + <name>NoBridge</name> + <connect> + <name>NoBridgeInterConnect</name> + <connect> + <name>Receiver</name> + <resource> + <name>Processor</name> + <resourceType>CPULoad</resourceType> + <property> + <name>LoadAverage</name> + <kind>Quantity</kind> + <dynamic>true</dynamic> + <value> + <type> + <kind>tk_long</kind> + </type> + <value><long>99</long></value> + </value> + </property> + </resource> + </connect> + </connect> +</bridge> + + +</Deployment:domain> diff --git a/CIAO/examples/space/descriptors/Domain_6.cdd b/CIAO/examples/space/descriptors/Domain_6.cdd new file mode 100644 index 00000000000..bc59e258161 --- /dev/null +++ b/CIAO/examples/space/descriptors/Domain_6.cdd @@ -0,0 +1,284 @@ +<?xml version="1.0" encoding="UTF-8" ?> +<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>effd4bd0-6db0-4c50-9bb7-db9decebae1c</UUID> +<label>Hello Domain</label> + + +<node> + <name>blade38</name> + <label>Linux Node</label> + <resource> + <name>Processor</name> + <resourceType>CPULoad</resourceType> + <property> + <name>LoadAverage</name> + <kind>Quantity</kind> + <dynamic>true</dynamic> + <value> + <type> + <kind>tk_long</kind> + </type> + <value><long>99</long></value> + </value> + </property> + </resource> + <resource> + <name>NA_Monitor</name> + <resourceType>CPULoad</resourceType> + <property> + <name>LoadAverage</name> + <kind>Quantity</kind> + <dynamic>false</dynamic> + <value> + <type> + <kind>tk_double</kind> + </type> + <value> + <double>100</double> + </value> + </value> + </property> + </resource> +</node> + +<node> + <name>blade39</name> + <label>VxWorks Node</label> + <resource> + <name>Processor</name> + <resourceType>CPULoad</resourceType> + <property> + <name>LoadAverage</name> + <kind>Quantity</kind> + <dynamic>true</dynamic> + <value> + <type> + <kind>tk_long</kind> + </type> + <value><long>99</long></value> + </value> + </property> + </resource> + <resource> + <name>NA_Monitor</name> + <resourceType>CPULoad</resourceType> + <property> + <name>LoadAverage</name> + <kind>Quantity</kind> + <dynamic>false</dynamic> + <value> + <type> + <kind>tk_double</kind> + </type> + <value> + <double>100</double> + </value> + </value> + </property> + </resource> +</node> + +<node> + <name>blade40</name> + <label>Linux Node</label> + <resource> + <name>Processor</name> + <resourceType>CPULoad</resourceType> + <property> + <name>LoadAverage</name> + <kind>Quantity</kind> + <dynamic>true</dynamic> + <value> + <type> + <kind>tk_long</kind> + </type> + <value><long>99</long></value> + </value> + </property> + </resource> + <resource> + <name>NA_Monitor</name> + <resourceType>CPULoad</resourceType> + <property> + <name>LoadAverage</name> + <kind>Quantity</kind> + <dynamic>false</dynamic> + <value> + <type> + <kind>tk_double</kind> + </type> + <value> + <double>100</double> + </value> + </value> + </property> + </resource> +</node> + +<node> + <name>blade33</name> + <label>VxWorks Node</label> + <resource> + <name>Processor</name> + <resourceType>CPULoad</resourceType> + <property> + <name>LoadAverage</name> + <kind>Quantity</kind> + <dynamic>true</dynamic> + <value> + <type> + <kind>tk_long</kind> + </type> + <value><long>99</long></value> + </value> + </property> + </resource> + <resource> + <name>NA_Monitor</name> + <resourceType>CPULoad</resourceType> + <property> + <name>LoadAverage</name> + <kind>Quantity</kind> + <dynamic>false</dynamic> + <value> + <type> + <kind>tk_double</kind> + </type> + <value> + <double>100</double> + </value> + </value> + </property> + </resource> +</node> + +<node> + <name>blade36</name> + <label>Linux Node</label> + <resource> + <name>Processor</name> + <resourceType>CPULoad</resourceType> + <property> + <name>LoadAverage</name> + <kind>Quantity</kind> + <dynamic>true</dynamic> + <value> + <type> + <kind>tk_long</kind> + </type> + <value><long>99</long></value> + </value> + </property> + </resource> + <resource> + <name>NA_Monitor</name> + <resourceType>CPULoad</resourceType> + <property> + <name>LoadAverage</name> + <kind>Quantity</kind> + <dynamic>false</dynamic> + <value> + <type> + <kind>tk_double</kind> + </type> + <value> + <double>100</double> + </value> + </value> + </property> + </resource> +</node> + +<node> + <name>blade37</name> + <label>VxWorks Node</label> + <resource> + <name>Processor</name> + <resourceType>CPULoad</resourceType> + <property> + <name>LoadAverage</name> + <kind>Quantity</kind> + <dynamic>true</dynamic> + <value> + <type> + <kind>tk_long</kind> + </type> + <value><long>99</long></value> + </value> + </property> + </resource> + <resource> + <name>NA_Monitor</name> + <resourceType>CPULoad</resourceType> + <property> + <name>LoadAverage</name> + <kind>Quantity</kind> + <dynamic>false</dynamic> + <value> + <type> + <kind>tk_double</kind> + </type> + <value> + <double>100</double> + </value> + </value> + </property> + </resource> +</node> + + +<interconnect> + <name>NoBridgeInterConnect</name> + <connect> + <name>Receiver</name> + <resource> + <name>Processor</name> + <resourceType>CPULoad</resourceType> + <property> + <name>LoadAverage</name> + <kind>Quantity</kind> + <dynamic>true</dynamic> + <value> + <type> + <kind>tk_long</kind> + </type> + <value><long>99</long></value> + </value> + </property> + </resource> + </connect> +</interconnect> + + +<bridge> + <name>NoBridge</name> + <connect> + <name>NoBridgeInterConnect</name> + <connect> + <name>Receiver</name> + <resource> + <name>Processor</name> + <resourceType>CPULoad</resourceType> + <property> + <name>LoadAverage</name> + <kind>Quantity</kind> + <dynamic>true</dynamic> + <value> + <type> + <kind>tk_long</kind> + </type> + <value><long>99</long></value> + </value> + </property> + </resource> + </connect> + </connect> +</bridge> + + +</Deployment:domain> diff --git a/CIAO/examples/space/descriptors/Domain_MT.cdd b/CIAO/examples/space/descriptors/Domain_MT.cdd new file mode 100644 index 00000000000..b18a88791a8 --- /dev/null +++ b/CIAO/examples/space/descriptors/Domain_MT.cdd @@ -0,0 +1,358 @@ +<?xml version="1.0" encoding="UTF-8" ?> +<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>effd4bd0-6db0-4c50-9bb7-db9decebae1c</UUID> +<label>Hello Domain</label> + + +<node> + <name>blade38</name> + <label>Linux Node</label> + <resource> + <name>Processor</name> + <resourceType>CPULoad</resourceType> + <property> + <name>LoadAverage</name> + <kind>Quantity</kind> + <dynamic>true</dynamic> + <value> + <type> + <kind>tk_long</kind> + </type> + <value><long>99</long></value> + </value> + </property> + </resource> + <resource> + <name>NA_Monitor</name> + <resourceType>CPULoad</resourceType> + <property> + <name>LoadAverage</name> + <kind>Quantity</kind> + <dynamic>false</dynamic> + <value> + <type> + <kind>tk_double</kind> + </type> + <value> + <double>100</double> + </value> + </value> + </property> + </resource> +</node> + +<node> + <name>blade39</name> + <label>VxWorks Node</label> + <resource> + <name>Processor</name> + <resourceType>CPULoad</resourceType> + <property> + <name>LoadAverage</name> + <kind>Quantity</kind> + <dynamic>true</dynamic> + <value> + <type> + <kind>tk_long</kind> + </type> + <value><long>99</long></value> + </value> + </property> + </resource> + <resource> + <name>NA_Monitor</name> + <resourceType>CPULoad</resourceType> + <property> + <name>LoadAverage</name> + <kind>Quantity</kind> + <dynamic>false</dynamic> + <value> + <type> + <kind>tk_double</kind> + </type> + <value> + <double>100</double> + </value> + </value> + </property> + </resource> +</node> + +<node> + <name>blade40</name> + <label>Linux Node</label> + <resource> + <name>Processor</name> + <resourceType>CPULoad</resourceType> + <property> + <name>LoadAverage</name> + <kind>Quantity</kind> + <dynamic>true</dynamic> + <value> + <type> + <kind>tk_long</kind> + </type> + <value><long>99</long></value> + </value> + </property> + </resource> + <resource> + <name>NA_Monitor</name> + <resourceType>CPULoad</resourceType> + <property> + <name>LoadAverage</name> + <kind>Quantity</kind> + <dynamic>false</dynamic> + <value> + <type> + <kind>tk_double</kind> + </type> + <value> + <double>100</double> + </value> + </value> + </property> + </resource> +</node> + +<node> + <name>blade41</name> + <label>VxWorks Node</label> + <resource> + <name>Processor</name> + <resourceType>CPULoad</resourceType> + <property> + <name>LoadAverage</name> + <kind>Quantity</kind> + <dynamic>true</dynamic> + <value> + <type> + <kind>tk_long</kind> + </type> + <value><long>99</long></value> + </value> + </property> + </resource> + <resource> + <name>NA_Monitor</name> + <resourceType>CPULoad</resourceType> + <property> + <name>LoadAverage</name> + <kind>Quantity</kind> + <dynamic>false</dynamic> + <value> + <type> + <kind>tk_double</kind> + </type> + <value> + <double>100</double> + </value> + </value> + </property> + </resource> +</node> + +<node> + <name>blade42</name> + <label>Linux Node</label> + <resource> + <name>Processor</name> + <resourceType>CPULoad</resourceType> + <property> + <name>LoadAverage</name> + <kind>Quantity</kind> + <dynamic>true</dynamic> + <value> + <type> + <kind>tk_long</kind> + </type> + <value><long>99</long></value> + </value> + </property> + </resource> + <resource> + <name>NA_Monitor</name> + <resourceType>CPULoad</resourceType> + <property> + <name>LoadAverage</name> + <kind>Quantity</kind> + <dynamic>false</dynamic> + <value> + <type> + <kind>tk_double</kind> + </type> + <value> + <double>100</double> + </value> + </value> + </property> + </resource> +</node> + +<node> + <name>blade33</name> + <label>VxWorks Node</label> + <resource> + <name>Processor</name> + <resourceType>CPULoad</resourceType> + <property> + <name>LoadAverage</name> + <kind>Quantity</kind> + <dynamic>true</dynamic> + <value> + <type> + <kind>tk_long</kind> + </type> + <value><long>99</long></value> + </value> + </property> + </resource> + <resource> + <name>NA_Monitor</name> + <resourceType>CPULoad</resourceType> + <property> + <name>LoadAverage</name> + <kind>Quantity</kind> + <dynamic>false</dynamic> + <value> + <type> + <kind>tk_double</kind> + </type> + <value> + <double>100</double> + </value> + </value> + </property> + </resource> +</node> + +<node> + <name>blade36</name> + <label>Linux Node</label> + <resource> + <name>Processor</name> + <resourceType>CPULoad</resourceType> + <property> + <name>LoadAverage</name> + <kind>Quantity</kind> + <dynamic>true</dynamic> + <value> + <type> + <kind>tk_long</kind> + </type> + <value><long>99</long></value> + </value> + </property> + </resource> + <resource> + <name>NA_Monitor</name> + <resourceType>CPULoad</resourceType> + <property> + <name>LoadAverage</name> + <kind>Quantity</kind> + <dynamic>false</dynamic> + <value> + <type> + <kind>tk_double</kind> + </type> + <value> + <double>100</double> + </value> + </value> + </property> + </resource> +</node> + +<node> + <name>blade37</name> + <label>VxWorks Node</label> + <resource> + <name>Processor</name> + <resourceType>CPULoad</resourceType> + <property> + <name>LoadAverage</name> + <kind>Quantity</kind> + <dynamic>true</dynamic> + <value> + <type> + <kind>tk_long</kind> + </type> + <value><long>99</long></value> + </value> + </property> + </resource> + <resource> + <name>NA_Monitor</name> + <resourceType>CPULoad</resourceType> + <property> + <name>LoadAverage</name> + <kind>Quantity</kind> + <dynamic>false</dynamic> + <value> + <type> + <kind>tk_double</kind> + </type> + <value> + <double>100</double> + </value> + </value> + </property> + </resource> +</node> + + +<interconnect> + <name>NoBridgeInterConnect</name> + <connect> + <name>Receiver</name> + <resource> + <name>Processor</name> + <resourceType>CPULoad</resourceType> + <property> + <name>LoadAverage</name> + <kind>Quantity</kind> + <dynamic>true</dynamic> + <value> + <type> + <kind>tk_long</kind> + </type> + <value><long>99</long></value> + </value> + </property> + </resource> + </connect> +</interconnect> + + +<bridge> + <name>NoBridge</name> + <connect> + <name>NoBridgeInterConnect</name> + <connect> + <name>Receiver</name> + <resource> + <name>Processor</name> + <resourceType>CPULoad</resourceType> + <property> + <name>LoadAverage</name> + <kind>Quantity</kind> + <dynamic>true</dynamic> + <value> + <type> + <kind>tk_long</kind> + </type> + <value><long>99</long></value> + </value> + </property> + </resource> + </connect> + </connect> +</bridge> + + +</Deployment:domain> diff --git a/CIAO/examples/space/descriptors/Domain_single.cdd b/CIAO/examples/space/descriptors/Domain_single.cdd new file mode 100644 index 00000000000..ffb15a6de8a --- /dev/null +++ b/CIAO/examples/space/descriptors/Domain_single.cdd @@ -0,0 +1,136 @@ +<?xml version="1.0" encoding="UTF-8" ?> +<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>effd4bd0-6db0-4c50-9bb7-db9decebae1c</UUID> +<label>Hello Domain</label> + + +<node> + <name>Linux</name> + <label>Linux Node</label> + <resource> + <name>Processor</name> + <resourceType>CPULoad</resourceType> + <property> + <name>LoadAverage</name> + <kind>Quantity</kind> + <dynamic>true</dynamic> + <value> + <type> + <kind>tk_long</kind> + </type> + <value><long>99</long></value> + </value> + </property> + </resource> + <resource> + <name>NA_Monitor</name> + <resourceType>CPULoad</resourceType> + <property> + <name>LoadAverage</name> + <kind>Quantity</kind> + <dynamic>false</dynamic> + <value> + <type> + <kind>tk_double</kind> + </type> + <value> + <double>100</double> + </value> + </value> + </property> + </resource> + +</node> +<node> + <name>VxWorks</name> + <label>VxWorks Node</label> + <resource> + <name>Processor</name> + <resourceType>CPULoad</resourceType> + <property> + <name>LoadAverage</name> + <kind>Quantity</kind> + <dynamic>true</dynamic> + <value> + <type> + <kind>tk_long</kind> + </type> + <value><long>99</long></value> + </value> + </property> + </resource> + <resource> + <name>NA_Monitor</name> + <resourceType>CPULoad</resourceType> + <property> + <name>LoadAverage</name> + <kind>Quantity</kind> + <dynamic>false</dynamic> + <value> + <type> + <kind>tk_double</kind> + </type> + <value> + <double>100</double> + </value> + </value> + </property> + </resource> +</node> + + +<interconnect> + <name>NoBridgeInterConnect</name> + <connect> + <name>Receiver</name> + <resource> + <name>Processor</name> + <resourceType>CPULoad</resourceType> + <property> + <name>LoadAverage</name> + <kind>Quantity</kind> + <dynamic>true</dynamic> + <value> + <type> + <kind>tk_long</kind> + </type> + <value><long>99</long></value> + </value> + </property> + </resource> + </connect> +</interconnect> + + +<bridge> + <name>NoBridge</name> + <connect> + <name>NoBridgeInterConnect</name> + <connect> + <name>Receiver</name> + <resource> + <name>Processor</name> + <resourceType>CPULoad</resourceType> + <property> + <name>LoadAverage</name> + <kind>Quantity</kind> + <dynamic>true</dynamic> + <value> + <type> + <kind>tk_long</kind> + </type> + <value><long>99</long></value> + </value> + </property> + </resource> + </connect> + </connect> +</bridge> + + +</Deployment:domain> diff --git a/CIAO/examples/space/descriptors/Domain_two.cdd b/CIAO/examples/space/descriptors/Domain_two.cdd new file mode 100644 index 00000000000..67c5d0282a1 --- /dev/null +++ b/CIAO/examples/space/descriptors/Domain_two.cdd @@ -0,0 +1,136 @@ +<?xml version="1.0" encoding="UTF-8" ?> +<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>effd4bd0-6db0-4c50-9bb7-db9decebae1c</UUID> +<label>Hello Domain</label> + + +<node> + <name>blade39</name> + <label>Linux Node</label> + <resource> + <name>Processor</name> + <resourceType>CPULoad</resourceType> + <property> + <name>LoadAverage</name> + <kind>Quantity</kind> + <dynamic>true</dynamic> + <value> + <type> + <kind>tk_long</kind> + </type> + <value><long>99</long></value> + </value> + </property> + </resource> + <resource> + <name>NA_Monitor</name> + <resourceType>CPULoad</resourceType> + <property> + <name>LoadAverage</name> + <kind>Quantity</kind> + <dynamic>false</dynamic> + <value> + <type> + <kind>tk_double</kind> + </type> + <value> + <double>100</double> + </value> + </value> + </property> + </resource> + +</node> +<node> + <name>blade38</name> + <label>VxWorks Node</label> + <resource> + <name>Processor</name> + <resourceType>CPULoad</resourceType> + <property> + <name>LoadAverage</name> + <kind>Quantity</kind> + <dynamic>true</dynamic> + <value> + <type> + <kind>tk_long</kind> + </type> + <value><long>99</long></value> + </value> + </property> + </resource> + <resource> + <name>NA_Monitor</name> + <resourceType>CPULoad</resourceType> + <property> + <name>LoadAverage</name> + <kind>Quantity</kind> + <dynamic>false</dynamic> + <value> + <type> + <kind>tk_double</kind> + </type> + <value> + <double>100</double> + </value> + </value> + </property> + </resource> +</node> + + +<interconnect> + <name>NoBridgeInterConnect</name> + <connect> + <name>Receiver</name> + <resource> + <name>Processor</name> + <resourceType>CPULoad</resourceType> + <property> + <name>LoadAverage</name> + <kind>Quantity</kind> + <dynamic>true</dynamic> + <value> + <type> + <kind>tk_long</kind> + </type> + <value><long>99</long></value> + </value> + </property> + </resource> + </connect> +</interconnect> + + +<bridge> + <name>NoBridge</name> + <connect> + <name>NoBridgeInterConnect</name> + <connect> + <name>Receiver</name> + <resource> + <name>Processor</name> + <resourceType>CPULoad</resourceType> + <property> + <name>LoadAverage</name> + <kind>Quantity</kind> + <dynamic>true</dynamic> + <value> + <type> + <kind>tk_long</kind> + </type> + <value><long>99</long></value> + </value> + </property> + </resource> + </connect> + </connect> +</bridge> + + +</Deployment:domain> diff --git a/CIAO/examples/space/descriptors/NodeManagerMap.dat b/CIAO/examples/space/descriptors/NodeManagerMap.dat new file mode 100644 index 00000000000..4ec2a655e3d --- /dev/null +++ b/CIAO/examples/space/descriptors/NodeManagerMap.dat @@ -0,0 +1,4 @@ +blade36 corbaloc:iiop:blade36:30000/NodeManager +blade38 corbaloc:iiop:blade38:30000/NodeManager +blade39 corbaloc:iiop:blade39:30000/NodeManager +blade40 corbaloc:iiop:blade40:30000/NodeManager diff --git a/CIAO/examples/space/descriptors/NodeManagerMap_4.dat b/CIAO/examples/space/descriptors/NodeManagerMap_4.dat new file mode 100644 index 00000000000..1f76bb4c1f8 --- /dev/null +++ b/CIAO/examples/space/descriptors/NodeManagerMap_4.dat @@ -0,0 +1,4 @@ +blade36 corbaloc:iiop:blade31:30000/NodeManager +blade38 corbaloc:iiop:blade32:30000/NodeManager +blade39 corbaloc:iiop:blade33:30000/NodeManager +blade40 corbaloc:iiop:blade34:30000/NodeManager diff --git a/CIAO/examples/space/descriptors/NodeManagerMap_6.dat b/CIAO/examples/space/descriptors/NodeManagerMap_6.dat new file mode 100644 index 00000000000..b717ade26f3 --- /dev/null +++ b/CIAO/examples/space/descriptors/NodeManagerMap_6.dat @@ -0,0 +1,6 @@ +blade33 corbaloc:iiop:blade41:30000/NodeManager +blade36 corbaloc:iiop:blade42:30000/NodeManager +blade37 corbaloc:iiop:blade37:30000/NodeManager +blade38 corbaloc:iiop:blade38:30000/NodeManager +blade39 corbaloc:iiop:blade39:30000/NodeManager +blade40 corbaloc:iiop:blade40:30000/NodeManager diff --git a/CIAO/examples/space/descriptors/NodeManagerMap_MT.dat b/CIAO/examples/space/descriptors/NodeManagerMap_MT.dat new file mode 100644 index 00000000000..212e166c1f8 --- /dev/null +++ b/CIAO/examples/space/descriptors/NodeManagerMap_MT.dat @@ -0,0 +1,8 @@ +blade33 corbaloc:iiop:blade33:30000/NodeManager +blade36 corbaloc:iiop:blade36:30000/NodeManager +blade37 corbaloc:iiop:blade37:30000/NodeManager +blade38 corbaloc:iiop:blade38:30000/NodeManager +blade39 corbaloc:iiop:blade39:30000/NodeManager +blade40 corbaloc:iiop:blade40:30000/NodeManager +blade41 corbaloc:iiop:blade41:30000/NodeManager +blade42 corbaloc:iiop:blade42:30000/NodeManager diff --git a/CIAO/examples/space/descriptors/NodeManagerMap_two.dat b/CIAO/examples/space/descriptors/NodeManagerMap_two.dat new file mode 100644 index 00000000000..57228886070 --- /dev/null +++ b/CIAO/examples/space/descriptors/NodeManagerMap_two.dat @@ -0,0 +1,2 @@ +blade38 corbaloc:iiop:blade38:30000/NodeManager +blade39 corbaloc:iiop:blade39:30000/NodeManager diff --git a/CIAO/examples/space/descriptors/SPACE.cdp b/CIAO/examples/space/descriptors/SPACE.cdp new file mode 100644 index 00000000000..da044214c01 --- /dev/null +++ b/CIAO/examples/space/descriptors/SPACE.cdp @@ -0,0 +1,577 @@ +<?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>4FC33490-49B5-4633-9ECB-DF1980C04843</UUID> + + <implementation id="_7CB380A7-8BCD-44C5-8D12-63AD69D753BD"> + <name>SPACE.ComponentImpl.Gizmo1_Low.Gizmo1_Low</name> + <source/> + <artifact>_A834AB4E-13EA-4F28-88B5-2FDD4589E49D</artifact> + <artifact>_8780AED5-0E0F-4C34-B2B3-05E48B9B83AF</artifact> + <artifact>_12BF8D22-06AA-49E1-89DF-4A0B34F321DC</artifact> + </implementation> + + <implementation id="_864725F9-CBB2-462E-85F2-CE44C668A394"> + <name>SPACE.ComponentImpl.Gizmo1_Medium.Gizmo1_Medium</name> + <source/> + <artifact>_CFC907DD-5AD7-4277-9116-A948BD5B5623</artifact> + <artifact>_E86E0896-4B2E-47FA-A3A4-1E19BCC2C9E9</artifact> + <artifact>_F33A4BF0-3679-4B1C-A4B7-C0D128E10F63</artifact> + </implementation> + + <implementation id="_A622DD4F-F709-479E-AEC6-80680D6B5439"> + <name>SPACE.ComponentImpl.Comm_Component.Comm_Component</name> + <source/> + <artifact>_8B2B3F58-9B5F-47A6-BECC-1E449ECC3E9A</artifact> + <artifact>_8D1B2EB6-C09E-4B06-961F-B8A98C6ADFE6</artifact> + <artifact>_38A51483-49B8-4602-BEF2-7FFFE366D194</artifact> + </implementation> + + <implementation id="_47EB0690-2A1B-42F6-AA60-B901814E884E"> + <name>SPACE.ComponentImpl.Compression_Component.Compression_Component</name> + <source/> + <artifact>_7EF85D5C-AE3F-4A80-8DB4-10F7C2D651D5</artifact> + <artifact>_200E62B5-0D3A-431C-A90C-481A336DC229</artifact> + <artifact>_3D04ECCB-692D-42C6-9743-628924E163DD</artifact> + </implementation> + + <implementation id="_DB70C55B-3312-4279-9354-73B0DF98DAAA"> + <name>SPACE.ComponentImpl.Gizmo2_Medium.Gizmo2_Medium</name> + <source/> + <artifact>_30D9EBBA-D1E3-42B1-873F-14DF3EB1D0A1</artifact> + <artifact>_DFE266D1-330C-471B-9863-C4CECB17C4A9</artifact> + <artifact>_58324120-AF86-4265-859E-609B7CEB55CF</artifact> + </implementation> + + <implementation id="_8E619279-F191-495B-86D9-8813967D73EB"> + <name>SPACE.ComponentImpl.Filter_Component.Filter_Component</name> + <source/> + <artifact>_26921C94-D013-4957-815B-7D2984F8224E</artifact> + <artifact>_CE12D6F8-B71F-44A4-AE65-21E5C2F38925</artifact> + <artifact>_55626C35-16B1-4990-BA9E-64C1836E32D8</artifact> + </implementation> + + <implementation id="_12C96C83-45D4-4F70-BE5F-74FD05037401"> + <name>SPACE.ComponentImpl.Gizmo1_High.Gizmo1_High</name> + <source/> + <artifact>_9C7075AC-ED5E-427B-94F3-8212ED5ED66E</artifact> + <artifact>_E1DB4AFF-7A1F-47EF-9C17-41F9AF3B5C70</artifact> + <artifact>_C7BC8AF7-7532-4C80-A5A2-19508FF7AB32</artifact> + </implementation> + + <implementation id="_C2969BE6-A179-4D55-BB48-03DA3C2A4D21"> + <name>SPACE.ComponentImpl.Gizmo2_High.Gizmo2_High</name> + <source/> + <artifact>_13520379-D48D-448B-A1C7-CC5A8265E4A7</artifact> + <artifact>_3501F7B8-A724-44D5-B178-B66BD6AF4DD0</artifact> + <artifact>_92D4FB89-78F9-403D-84F4-31E80445F6E5</artifact> + </implementation> + + <implementation id="_06C15E63-DC7A-4EFF-AC46-791555C755E9"> + <name>SPACE.ComponentImpl.Analysis_ComponentImplementation.Analysis_ComponentMonolithicImpl</name> + <source/> + <artifact>_6053785F-482D-4DFC-B6A1-2678FEB98F6D</artifact> + <artifact>_26E18897-E0CF-4302-AD68-4C4186BEF1ED</artifact> + <artifact>_4A6A8E09-2BB0-4120-8B93-382E49CA82E4</artifact> + </implementation> + + <instance id="SPACE.ComponentImpl.SPACE.SPACE.Space_Station.Linux_1.Filter_Component"> + <name>SPACE.ComponentImpl.SPACE.SPACE.Space_Station.Linux_1.Filter_Component</name> + <node>blade39</node> + <source/> + <implementation>_8E619279-F191-495B-86D9-8813967D73EB</implementation> + </instance> + + <instance id="SPACE.ComponentImpl.SPACE.SPACE.Space_Station.Linux_1.Compression_Component"> + <name>SPACE.ComponentImpl.SPACE.SPACE.Space_Station.Linux_1.Compression_Component</name> + <node>blade39</node> + <source>_ZN26CIDL_Compression_Component28Compression_Component_exec_i14push_recv_dataEPN5SPACE10Gizmo_DataE</source> + <implementation>_47EB0690-2A1B-42F6-AA60-B901814E884E</implementation> + </instance> + + <instance id="SPACE.ComponentImpl.SPACE.SPACE.Space_Station.Linux_1.Comm_Component"> + <name>SPACE.ComponentImpl.SPACE.SPACE.Space_Station.Linux_1.Comm_Component</name> + <node>blade39</node> + <source/> + <implementation>_A622DD4F-F709-479E-AEC6-80680D6B5439</implementation> + </instance> + + <instance id="SPACE.ComponentImpl.SPACE.SPACE.Space_Station.VxWorks_1.Gizmo2_Medium"> + <name>SPACE.ComponentImpl.SPACE.SPACE.Space_Station.VxWorks_1.Gizmo2_Medium</name> + <node>blade38</node> + <source/> + <implementation>_DB70C55B-3312-4279-9354-73B0DF98DAAA</implementation> + </instance> + + <instance id="SPACE.ComponentImpl.SPACE.SPACE.Space_Station.VxWorks_1.Gizmo1_Low"> + <name>SPACE.ComponentImpl.SPACE.SPACE.Space_Station.VxWorks_1.Gizmo1_Low</name> + <node>blade38</node> + <source/> + <implementation>_7CB380A7-8BCD-44C5-8D12-63AD69D753BD</implementation> + </instance> + + <instance id="SPACE.ComponentImpl.SPACE.SPACE.Space_Station.VxWorks_1.Gizmo1_Medium"> + <name>SPACE.ComponentImpl.SPACE.SPACE.Space_Station.VxWorks_1.Gizmo1_Medium</name> + <node>blade38</node> +<source>_ZN18CIDL_Gizmo1_Medium21Gizmo1_Medium_Context21push_observation_dataEPN5SPACE10Gizmo_DataE</source> + <implementation>_864725F9-CBB2-462E-85F2-CE44C668A394</implementation> + </instance> + + <connection> + <name>observation_data_recv_dataSPACE.ComponentImpl.SPACE.SPACE.Space_Station.VxWorks_1.Gizmo2_MediumSPACE.ComponentImpl.SPACE.SPACE.Space_Station.Linux_1.Filter_Component</name> + <internalEndpoint> + <portName>observation_data</portName> + <kind>EventEmitter</kind> + <instance>SPACE.ComponentImpl.SPACE.SPACE.Space_Station.VxWorks_1.Gizmo2_Medium</instance> + </internalEndpoint> + <internalEndpoint> + <portName>recv_data</portName> + <kind>EventConsumer</kind> + <instance>SPACE.ComponentImpl.SPACE.SPACE.Space_Station.Linux_1.Filter_Component</instance> + </internalEndpoint> + </connection> + + <connection> + <name>observation_data_recv_dataSPACE.ComponentImpl.SPACE.SPACE.Space_Station.VxWorks_1.Gizmo1_LowSPACE.ComponentImpl.SPACE.SPACE.Space_Station.Linux_1.Filter_Component</name> + <internalEndpoint> + <portName>observation_data</portName> + <kind>EventEmitter</kind> + <instance>SPACE.ComponentImpl.SPACE.SPACE.Space_Station.VxWorks_1.Gizmo1_Low</instance> + </internalEndpoint> + <internalEndpoint> + <portName>recv_data</portName> + <kind>EventConsumer</kind> + <instance>SPACE.ComponentImpl.SPACE.SPACE.Space_Station.Linux_1.Filter_Component</instance> + </internalEndpoint> + </connection> + + <connection> + <name>observation_data_recv_dataSPACE.ComponentImpl.SPACE.SPACE.Space_Station.VxWorks_1.Gizmo1_MediumSPACE.ComponentImpl.SPACE.SPACE.Space_Station.Linux_1.Filter_Component</name> + <internalEndpoint> + <portName>observation_data</portName> + <kind>EventEmitter</kind> + <instance>SPACE.ComponentImpl.SPACE.SPACE.Space_Station.VxWorks_1.Gizmo1_Medium</instance> + </internalEndpoint> + <internalEndpoint> + <portName>recv_data</portName> + <kind>EventConsumer</kind> + <instance>SPACE.ComponentImpl.SPACE.SPACE.Space_Station.Linux_1.Filter_Component</instance> + </internalEndpoint> + </connection> + + <connection> + <name>send_data_recv_dataSPACE.ComponentImpl.SPACE.SPACE.Space_Station.Linux_1.Filter_ComponentSPACE.ComponentImpl.SPACE.SPACE.Space_Station.Linux_1.Compression_Component</name> + <internalEndpoint> + <portName>send_data</portName> + <kind>EventEmitter</kind> + <instance>SPACE.ComponentImpl.SPACE.SPACE.Space_Station.Linux_1.Filter_Component</instance> + </internalEndpoint> + <internalEndpoint> + <portName>recv_data</portName> + <kind>EventConsumer</kind> + <instance>SPACE.ComponentImpl.SPACE.SPACE.Space_Station.Linux_1.Compression_Component</instance> + </internalEndpoint> + </connection> + + <connection> + <name>send_data_science_dataSPACE.ComponentImpl.SPACE.SPACE.Space_Station.Linux_1.Compression_ComponentSPACE.ComponentImpl.SPACE.SPACE.Space_Station.Linux_1.Comm_Component</name> + <internalEndpoint> + <portName>send_data</portName> + <kind>EventEmitter</kind> + <instance>SPACE.ComponentImpl.SPACE.SPACE.Space_Station.Linux_1.Compression_Component</instance> + </internalEndpoint> + <internalEndpoint> + <portName>science_data</portName> + <kind>EventConsumer</kind> + <instance>SPACE.ComponentImpl.SPACE.SPACE.Space_Station.Linux_1.Comm_Component</instance> + </internalEndpoint> + </connection> + + <artifact id="_58324120-AF86-4265-859E-609B7CEB55CF"> + <name>SPACE.ImplementationArtifacts.Gizmo2_Medium.Gizmo2_Medium_svnt</name> + <source/> + <node/> + <location>Gizmo2_Medium_svnt</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_SPACE_Gizmo2_Medium_Factory_Servant</string> + </value> + </value> + </execParameter> + </artifact> + + <artifact id="_DFE266D1-330C-471B-9863-C4CECB17C4A9"> + <name>SPACE.ImplementationArtifacts.Gizmo2_Medium.Gizmo2_Medium_exec</name> + <source/> + <node/> + <location>Gizmo2_Medium_exec</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_SPACE_Gizmo2_Medium_Factory_Impl</string> + </value> + </value> + </execParameter> + </artifact> + + <artifact id="_30D9EBBA-D1E3-42B1-873F-14DF3EB1D0A1"> + <name>SPACE.ImplementationArtifacts.Gizmo2_Medium.Gizmo2_Medium_stub</name> + <source/> + <node/> + <location>Gizmo2_Medium_stub</location> + </artifact> + + <artifact id="_F33A4BF0-3679-4B1C-A4B7-C0D128E10F63"> + <name>SPACE.ImplementationArtifacts.Gizmo1_Medium.Gizmo1_Medium_svnt</name> + <source/> + <node/> + <location>Gizmo1_Medium_svnt</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_SPACE_Gizmo1_Medium_Factory_Servant</string> + </value> + </value> + </execParameter> + </artifact> + + <artifact id="_E86E0896-4B2E-47FA-A3A4-1E19BCC2C9E9"> + <name>SPACE.ImplementationArtifacts.Gizmo1_Medium.Gizmo1_Medium_stub</name> + <source/> + <node/> + <location>Gizmo1_Medium_stub</location> + </artifact> + + <artifact id="_CFC907DD-5AD7-4277-9116-A948BD5B5623"> + <name>SPACE.ImplementationArtifacts.Gizmo1_Medium.Gizmo1_Medium_exec</name> + <source/> + <node/> + <location>Gizmo1_Medium_exec</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_SPACE_Gizmo1_Medium_Factory_Impl</string> + </value> + </value> + </execParameter> + </artifact> + + <artifact id="_8780AED5-0E0F-4C34-B2B3-05E48B9B83AF"> + <name>SPACE.ImplementationArtifacts.Gizmo1_Low.Gizmo1_Low_svnt</name> + <source/> + <node/> + <location>Gizmo1_Low_svnt</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_SPACE_Gizmo1_Low_Factory_Servant</string> + </value> + </value> + </execParameter> + </artifact> + + <artifact id="_12BF8D22-06AA-49E1-89DF-4A0B34F321DC"> + <name>SPACE.ImplementationArtifacts.Gizmo1_Low.Gizmo1_Low_exec</name> + <source/> + <node/> + <location>Gizmo1_Low_exec</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_SPACE_Gizmo1_Low_Factory_Impl</string> + </value> + </value> + </execParameter> + </artifact> + + <artifact id="_A834AB4E-13EA-4F28-88B5-2FDD4589E49D"> + <name>SPACE.ImplementationArtifacts.Gizmo1_Low.Gizmo1_Low_stub</name> + <source/> + <node/> + <location>Gizmo1_Low_stub</location> + </artifact> + + <artifact id="_8D1B2EB6-C09E-4B06-961F-B8A98C6ADFE6"> + <name>SPACE.ImplementationArtifacts.Comm_Compnent.Comm_Component_svnt</name> + <source/> + <node/> + <location>Comm_Component_svnt</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_SPACE_Comm_Component_Factory_Servant</string> + </value> + </value> + </execParameter> + </artifact> + + <artifact id="_8B2B3F58-9B5F-47A6-BECC-1E449ECC3E9A"> + <name>SPACE.ImplementationArtifacts.Comm_Compnent.Comm_Component_stub</name> + <source/> + <node/> + <location>Comm_Component_stub</location> + </artifact> + + <artifact id="_38A51483-49B8-4602-BEF2-7FFFE366D194"> + <name>SPACE.ImplementationArtifacts.Comm_Compnent.Comm_Component_exec</name> + <source/> + <node/> + <location>Comm_Component_exec</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_SPACE_Comm_Component_Factory_Impl</string> + </value> + </value> + </execParameter> + </artifact> + + <artifact id="_200E62B5-0D3A-431C-A90C-481A336DC229"> + <name>SPACE.ImplementationArtifacts.Compression_Component.Compression_Component_svnt</name> + <source/> + <node/> + <location>Compression_Component_svnt</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_SPACE_Compression_Component_Factory_Servant</string> + </value> + </value> + </execParameter> + </artifact> + + <artifact id="_7EF85D5C-AE3F-4A80-8DB4-10F7C2D651D5"> + <name>SPACE.ImplementationArtifacts.Compression_Component.Compression_Component_stub</name> + <source/> + <node/> + <location>Compression_Component_stub</location> + </artifact> + + <artifact id="_3D04ECCB-692D-42C6-9743-628924E163DD"> + <name>SPACE.ImplementationArtifacts.Compression_Component.Compression_Component_exec</name> + <source/> + <node/> + <location>Compression_Component_exec</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_SPACE_Compression_Component_Factory_Impl</string> + </value> + </value> + </execParameter> + </artifact> + + <artifact id="_CE12D6F8-B71F-44A4-AE65-21E5C2F38925"> + <name>SPACE.ImplementationArtifacts.Filter_Component.Filter_Component_svnt</name> + <source/> + <node/> + <location>Filter_Component_svnt</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_SPACE_Filter_Component_Factory_Servant</string> + </value> + </value> + </execParameter> + </artifact> + + <artifact id="_26921C94-D013-4957-815B-7D2984F8224E"> + <name>SPACE.ImplementationArtifacts.Filter_Component.Filter_Component_stub</name> + <source/> + <node/> + <location>Filter_Component_stub</location> + </artifact> + + <artifact id="_55626C35-16B1-4990-BA9E-64C1836E32D8"> + <name>SPACE.ImplementationArtifacts.Filter_Component.Filter_Component_exec</name> + <source/> + <node/> + <location>Filter_Component_exec</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_SPACE_Filter_Component_Factory_Impl</string> + </value> + </value> + </execParameter> + </artifact> + + <artifact id="_C7BC8AF7-7532-4C80-A5A2-19508FF7AB32"> + <name>SPACE.ImplementationArtifacts.Gizmo1_High.Gizmo1_High_exec</name> + <source/> + <node/> + <location>Gizmo1_High_exec</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_SPACE_Gizmo1_High_Factory_Impl</string> + </value> + </value> + </execParameter> + </artifact> + + <artifact id="_E1DB4AFF-7A1F-47EF-9C17-41F9AF3B5C70"> + <name>SPACE.ImplementationArtifacts.Gizmo1_High.Gizmo1_High_stub</name> + <source/> + <node/> + <location>Gizmo1_High_stub</location> + </artifact> + + <artifact id="_9C7075AC-ED5E-427B-94F3-8212ED5ED66E"> + <name>SPACE.ImplementationArtifacts.Gizmo1_High.Gizmo1_High_svnt</name> + <source/> + <node/> + <location>Gizmo1_High_svnt</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_SPACE_Gizmo1_High_Factory_Servant</string> + </value> + </value> + </execParameter> + </artifact> + + <artifact id="_13520379-D48D-448B-A1C7-CC5A8265E4A7"> + <name>SPACE.ImplementationArtifacts.Gizmo2_High.Gizmo2_High_exec</name> + <source/> + <node/> + <location>Gizmo2_High_exec</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_SPACE_Gizmo2_High_Factory_Impl</string> + </value> + </value> + </execParameter> + </artifact> + + <artifact id="_3501F7B8-A724-44D5-B178-B66BD6AF4DD0"> + <name>SPACE.ImplementationArtifacts.Gizmo2_High.Gizmo2_High_stub</name> + <source/> + <node/> + <location>Gizmo2_High_stub</location> + </artifact> + + <artifact id="_92D4FB89-78F9-403D-84F4-31E80445F6E5"> + <name>SPACE.ImplementationArtifacts.Gizmo2_High.Gizmo2_High_svnt</name> + <source/> + <node/> + <location>Gizmo2_High_svnt</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_SPACE_Gizmo2_High_Factory_Servant</string> + </value> + </value> + </execParameter> + </artifact> + + <artifact id="_6053785F-482D-4DFC-B6A1-2678FEB98F6D"> + <name>SPACE.ImplementationArtifacts.Analysis_ComponentArtifacts.Analysis_Component_stub</name> + <source/> + <node/> + <location>Analysis_Component_stub</location> + </artifact> + + <artifact id="_26E18897-E0CF-4302-AD68-4C4186BEF1ED"> + <name>SPACE.ImplementationArtifacts.Analysis_ComponentArtifacts.Analysis_Component_svnt</name> + <source/> + <node/> + <location>Analysis_Component_svnt</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_SPACE_Analysis_Component_Home_Servant</string> + </value> + </value> + </execParameter> + </artifact> + + <artifact id="_4A6A8E09-2BB0-4120-8B93-382E49CA82E4"> + <name>SPACE.ImplementationArtifacts.Analysis_ComponentArtifacts.Analysis_Component_exec</name> + <source/> + <node/> + <location>Analysis_Component_exec</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_SPACE_Analysis_Component_Home_Impl</string> + </value> + </value> + </execParameter> + </artifact> + +</Deployment:deploymentPlan> diff --git a/CIAO/examples/space/descriptors/SPACE_4.cdp b/CIAO/examples/space/descriptors/SPACE_4.cdp new file mode 100644 index 00000000000..44d5006af7b --- /dev/null +++ b/CIAO/examples/space/descriptors/SPACE_4.cdp @@ -0,0 +1,689 @@ +<?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>4FC33490-49B5-4633-9ECB-DF1980C04843</UUID> + + <implementation id="_7CB380A7-8BCD-44C5-8D12-63AD69D753BD"> + <name>SPACE.ComponentImpl.Gizmo1_Low.Gizmo1_Low</name> + <source/> + <artifact>_A834AB4E-13EA-4F28-88B5-2FDD4589E49D</artifact> + <artifact>_8780AED5-0E0F-4C34-B2B3-05E48B9B83AF</artifact> + <artifact>_12BF8D22-06AA-49E1-89DF-4A0B34F321DC</artifact> + </implementation> + + <implementation id="_864725F9-CBB2-462E-85F2-CE44C668A394"> + <name>SPACE.ComponentImpl.Gizmo1_Medium.Gizmo1_Medium</name> + <source/> + <artifact>_CFC907DD-5AD7-4277-9116-A948BD5B5623</artifact> + <artifact>_E86E0896-4B2E-47FA-A3A4-1E19BCC2C9E9</artifact> + <artifact>_F33A4BF0-3679-4B1C-A4B7-C0D128E10F63</artifact> + </implementation> + + <implementation id="_A622DD4F-F709-479E-AEC6-80680D6B5439"> + <name>SPACE.ComponentImpl.Comm_Component.Comm_Component</name> + <source/> + <artifact>_8B2B3F58-9B5F-47A6-BECC-1E449ECC3E9A</artifact> + <artifact>_8D1B2EB6-C09E-4B06-961F-B8A98C6ADFE6</artifact> + <artifact>_38A51483-49B8-4602-BEF2-7FFFE366D194</artifact> + </implementation> + + <implementation id="_47EB0690-2A1B-42F6-AA60-B901814E884E"> + <name>SPACE.ComponentImpl.Compression_Component.Compression_Component</name> + <source/> + <artifact>_7EF85D5C-AE3F-4A80-8DB4-10F7C2D651D5</artifact> + <artifact>_200E62B5-0D3A-431C-A90C-481A336DC229</artifact> + <artifact>_3D04ECCB-692D-42C6-9743-628924E163DD</artifact> + </implementation> + + <implementation id="_DB70C55B-3312-4279-9354-73B0DF98DAAA"> + <name>SPACE.ComponentImpl.Gizmo2_Medium.Gizmo2_Medium</name> + <source/> + <artifact>_30D9EBBA-D1E3-42B1-873F-14DF3EB1D0A1</artifact> + <artifact>_DFE266D1-330C-471B-9863-C4CECB17C4A9</artifact> + <artifact>_58324120-AF86-4265-859E-609B7CEB55CF</artifact> + </implementation> + + <implementation id="_8E619279-F191-495B-86D9-8813967D73EB"> + <name>SPACE.ComponentImpl.Filter_Component.Filter_Component</name> + <source/> + <artifact>_26921C94-D013-4957-815B-7D2984F8224E</artifact> + <artifact>_CE12D6F8-B71F-44A4-AE65-21E5C2F38925</artifact> + <artifact>_55626C35-16B1-4990-BA9E-64C1836E32D8</artifact> + </implementation> + + <implementation id="_12C96C83-45D4-4F70-BE5F-74FD05037401"> + <name>SPACE.ComponentImpl.Gizmo1_High.Gizmo1_High</name> + <source/> + <artifact>_9C7075AC-ED5E-427B-94F3-8212ED5ED66E</artifact> + <artifact>_E1DB4AFF-7A1F-47EF-9C17-41F9AF3B5C70</artifact> + <artifact>_C7BC8AF7-7532-4C80-A5A2-19508FF7AB32</artifact> + </implementation> + + <implementation id="_C2969BE6-A179-4D55-BB48-03DA3C2A4D21"> + <name>SPACE.ComponentImpl.Gizmo2_High.Gizmo2_High</name> + <source/> + <artifact>_13520379-D48D-448B-A1C7-CC5A8265E4A7</artifact> + <artifact>_3501F7B8-A724-44D5-B178-B66BD6AF4DD0</artifact> + <artifact>_92D4FB89-78F9-403D-84F4-31E80445F6E5</artifact> + </implementation> + + <implementation id="_06C15E63-DC7A-4EFF-AC46-791555C755E9"> + <name>SPACE.ComponentImpl.Analysis_ComponentImplementation.Analysis_ComponentMonolithicImpl</name> + <source/> + <artifact>_6053785F-482D-4DFC-B6A1-2678FEB98F6D</artifact> + <artifact>_26E18897-E0CF-4302-AD68-4C4186BEF1ED</artifact> + <artifact>_4A6A8E09-2BB0-4120-8B93-382E49CA82E4</artifact> + </implementation> + + <instance id="SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_3.Gizmo2_Medium"> + <name>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_3.Gizmo2_Medium</name> + <node>blade36</node> + <source/> + <implementation>_DB70C55B-3312-4279-9354-73B0DF98DAAA</implementation> + </instance> + + <instance id="SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_3.Gizmo1_Low"> + <name>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_3.Gizmo1_Low</name> + <node>blade36</node> + <source/> + <implementation>_7CB380A7-8BCD-44C5-8D12-63AD69D753BD</implementation> + </instance> + + <instance id="SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_3.Gizmo1_Medium"> + <name>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_3.Gizmo1_Medium</name> + <node>blade36</node> + <source>_ZN18CIDL_Gizmo1_Medium21Gizmo1_Medium_Context21push_observation_dataEPN5SPACE10Gizmo_DataE</source> + <implementation>_864725F9-CBB2-462E-85F2-CE44C668A394</implementation> + </instance> + + <instance id="SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_3.Compression_Component"> + <name>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_3.Compression_Component</name> + <node>blade40</node> + <source/> + <implementation>_47EB0690-2A1B-42F6-AA60-B901814E884E</implementation> + </instance> + + <instance id="SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_3.Filter_Component"> + <name>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_3.Filter_Component</name> + <node>blade40</node> + <source/> + <implementation>_8E619279-F191-495B-86D9-8813967D73EB</implementation> + </instance> + + <instance id="SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_3.Comm_Component"> + <name>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_3.Comm_Component</name> + <node>blade40</node> + <source/> + <implementation>_A622DD4F-F709-479E-AEC6-80680D6B5439</implementation> + </instance> + + <instance id="SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_4.Compression_Component"> + <name>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_4.Compression_Component</name> + <node>blade39</node> + <source/> + <implementation>_47EB0690-2A1B-42F6-AA60-B901814E884E</implementation> + </instance> + + <instance id="SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_4.Comm_Component"> + <name>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_4.Comm_Component</name> + <node>blade39</node> + <source/> + <implementation>_A622DD4F-F709-479E-AEC6-80680D6B5439</implementation> + </instance> + + <instance id="SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_4.Filter_Component"> + <name>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_4.Filter_Component</name> + <node>blade39</node> + <source/> + <implementation>_8E619279-F191-495B-86D9-8813967D73EB</implementation> + </instance> + + <instance id="SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_4.Gizmo2_Medium"> + <name>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_4.Gizmo2_Medium</name> + <node>blade38</node> + <source/> + <implementation>_DB70C55B-3312-4279-9354-73B0DF98DAAA</implementation> + </instance> + + <instance id="SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_4.Gizmo1_Low"> + <name>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_4.Gizmo1_Low</name> + <node>blade38</node> + <source/> + <implementation>_7CB380A7-8BCD-44C5-8D12-63AD69D753BD</implementation> + </instance> + + <instance id="SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_4.Gizmo1_Medium"> + <name>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_4.Gizmo1_Medium</name> + <node>blade38</node> + <source>_ZN18CIDL_Gizmo1_Medium21Gizmo1_Medium_Context21push_observation_dataEPN5SPACE10Gizmo_DataE</source> + <implementation>_864725F9-CBB2-462E-85F2-CE44C668A394</implementation> + </instance> + + <connection> + <name>observation_data_recv_dataSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_3.Gizmo2_MediumSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_3.Filter_Component</name> + <internalEndpoint> + <portName>observation_data</portName> + <kind>EventEmitter</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_3.Gizmo2_Medium</instance> + </internalEndpoint> + <internalEndpoint> + <portName>recv_data</portName> + <kind>EventConsumer</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_3.Filter_Component</instance> + </internalEndpoint> + </connection> + + <connection> + <name>observation_data_recv_dataSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_3.Gizmo1_LowSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_3.Filter_Component</name> + <internalEndpoint> + <portName>observation_data</portName> + <kind>EventEmitter</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_3.Gizmo1_Low</instance> + </internalEndpoint> + <internalEndpoint> + <portName>recv_data</portName> + <kind>EventConsumer</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_3.Filter_Component</instance> + </internalEndpoint> + </connection> + + <connection> + <name>observation_data_recv_dataSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_3.Gizmo1_MediumSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_3.Filter_Component</name> + <internalEndpoint> + <portName>observation_data</portName> + <kind>EventEmitter</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_3.Gizmo1_Medium</instance> + </internalEndpoint> + <internalEndpoint> + <portName>recv_data</portName> + <kind>EventConsumer</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_3.Filter_Component</instance> + </internalEndpoint> + </connection> + + <connection> + <name>observation_data_recv_dataSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_4.Gizmo2_MediumSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_4.Filter_Component</name> + <internalEndpoint> + <portName>observation_data</portName> + <kind>EventEmitter</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_4.Gizmo2_Medium</instance> + </internalEndpoint> + <internalEndpoint> + <portName>recv_data</portName> + <kind>EventConsumer</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_4.Filter_Component</instance> + </internalEndpoint> + </connection> + + <connection> + <name>observation_data_recv_dataSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_4.Gizmo1_LowSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_4.Filter_Component</name> + <internalEndpoint> + <portName>observation_data</portName> + <kind>EventEmitter</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_4.Gizmo1_Low</instance> + </internalEndpoint> + <internalEndpoint> + <portName>recv_data</portName> + <kind>EventConsumer</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_4.Filter_Component</instance> + </internalEndpoint> + </connection> + + <connection> + <name>observation_data_recv_dataSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_4.Gizmo1_MediumSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_4.Filter_Component</name> + <internalEndpoint> + <portName>observation_data</portName> + <kind>EventEmitter</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_4.Gizmo1_Medium</instance> + </internalEndpoint> + <internalEndpoint> + <portName>recv_data</portName> + <kind>EventConsumer</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_4.Filter_Component</instance> + </internalEndpoint> + </connection> + + <connection> + <name>send_data_science_dataSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_3.Compression_ComponentSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_3.Comm_Component</name> + <internalEndpoint> + <portName>send_data</portName> + <kind>EventEmitter</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_3.Compression_Component</instance> + </internalEndpoint> + <internalEndpoint> + <portName>science_data</portName> + <kind>EventConsumer</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_3.Comm_Component</instance> + </internalEndpoint> + </connection> + + <connection> + <name>send_data_recv_dataSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_3.Filter_ComponentSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_3.Compression_Component</name> + <internalEndpoint> + <portName>send_data</portName> + <kind>EventEmitter</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_3.Filter_Component</instance> + </internalEndpoint> + <internalEndpoint> + <portName>recv_data</portName> + <kind>EventConsumer</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_3.Compression_Component</instance> + </internalEndpoint> + </connection> + + <connection> + <name>send_data_science_dataSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_4.Compression_ComponentSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_4.Comm_Component</name> + <internalEndpoint> + <portName>send_data</portName> + <kind>EventEmitter</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_4.Compression_Component</instance> + </internalEndpoint> + <internalEndpoint> + <portName>science_data</portName> + <kind>EventConsumer</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_4.Comm_Component</instance> + </internalEndpoint> + </connection> + + <connection> + <name>send_data_recv_dataSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_4.Filter_ComponentSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_4.Compression_Component</name> + <internalEndpoint> + <portName>send_data</portName> + <kind>EventEmitter</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_4.Filter_Component</instance> + </internalEndpoint> + <internalEndpoint> + <portName>recv_data</portName> + <kind>EventConsumer</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_4.Compression_Component</instance> + </internalEndpoint> + </connection> + + <artifact id="_58324120-AF86-4265-859E-609B7CEB55CF"> + <name>SPACE.ImplementationArtifacts.Gizmo2_Medium.Gizmo2_Medium_svnt</name> + <source/> + <node/> + <location>Gizmo2_Medium_svnt</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_SPACE_Gizmo2_Medium_Factory_Servant</string> + </value> + </value> + </execParameter> + </artifact> + + <artifact id="_DFE266D1-330C-471B-9863-C4CECB17C4A9"> + <name>SPACE.ImplementationArtifacts.Gizmo2_Medium.Gizmo2_Medium_exec</name> + <source/> + <node/> + <location>Gizmo2_Medium_exec</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_SPACE_Gizmo2_Medium_Factory_Impl</string> + </value> + </value> + </execParameter> + </artifact> + + <artifact id="_30D9EBBA-D1E3-42B1-873F-14DF3EB1D0A1"> + <name>SPACE.ImplementationArtifacts.Gizmo2_Medium.Gizmo2_Medium_stub</name> + <source/> + <node/> + <location>Gizmo2_Medium_stub</location> + </artifact> + + <artifact id="_F33A4BF0-3679-4B1C-A4B7-C0D128E10F63"> + <name>SPACE.ImplementationArtifacts.Gizmo1_Medium.Gizmo1_Medium_svnt</name> + <source/> + <node/> + <location>Gizmo1_Medium_svnt</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_SPACE_Gizmo1_Medium_Factory_Servant</string> + </value> + </value> + </execParameter> + </artifact> + + <artifact id="_E86E0896-4B2E-47FA-A3A4-1E19BCC2C9E9"> + <name>SPACE.ImplementationArtifacts.Gizmo1_Medium.Gizmo1_Medium_stub</name> + <source/> + <node/> + <location>Gizmo1_Medium_stub</location> + </artifact> + + <artifact id="_CFC907DD-5AD7-4277-9116-A948BD5B5623"> + <name>SPACE.ImplementationArtifacts.Gizmo1_Medium.Gizmo1_Medium_exec</name> + <source/> + <node/> + <location>Gizmo1_Medium_exec</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_SPACE_Gizmo1_Medium_Factory_Impl</string> + </value> + </value> + </execParameter> + </artifact> + + <artifact id="_8780AED5-0E0F-4C34-B2B3-05E48B9B83AF"> + <name>SPACE.ImplementationArtifacts.Gizmo1_Low.Gizmo1_Low_svnt</name> + <source/> + <node/> + <location>Gizmo1_Low_svnt</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_SPACE_Gizmo1_Low_Factory_Servant</string> + </value> + </value> + </execParameter> + </artifact> + + <artifact id="_12BF8D22-06AA-49E1-89DF-4A0B34F321DC"> + <name>SPACE.ImplementationArtifacts.Gizmo1_Low.Gizmo1_Low_exec</name> + <source/> + <node/> + <location>Gizmo1_Low_exec</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_SPACE_Gizmo1_Low_Factory_Impl</string> + </value> + </value> + </execParameter> + </artifact> + + <artifact id="_A834AB4E-13EA-4F28-88B5-2FDD4589E49D"> + <name>SPACE.ImplementationArtifacts.Gizmo1_Low.Gizmo1_Low_stub</name> + <source/> + <node/> + <location>Gizmo1_Low_stub</location> + </artifact> + + <artifact id="_8D1B2EB6-C09E-4B06-961F-B8A98C6ADFE6"> + <name>SPACE.ImplementationArtifacts.Comm_Compnent.Comm_Component_svnt</name> + <source/> + <node/> + <location>Comm_Component_svnt</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_SPACE_Comm_Component_Factory_Servant</string> + </value> + </value> + </execParameter> + </artifact> + + <artifact id="_8B2B3F58-9B5F-47A6-BECC-1E449ECC3E9A"> + <name>SPACE.ImplementationArtifacts.Comm_Compnent.Comm_Component_stub</name> + <source/> + <node/> + <location>Comm_Component_stub</location> + </artifact> + + <artifact id="_38A51483-49B8-4602-BEF2-7FFFE366D194"> + <name>SPACE.ImplementationArtifacts.Comm_Compnent.Comm_Component_exec</name> + <source/> + <node/> + <location>Comm_Component_exec</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_SPACE_Comm_Component_Factory_Impl</string> + </value> + </value> + </execParameter> + </artifact> + + <artifact id="_200E62B5-0D3A-431C-A90C-481A336DC229"> + <name>SPACE.ImplementationArtifacts.Compression_Component.Compression_Component_svnt</name> + <source/> + <node/> + <location>Compression_Component_svnt</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_SPACE_Compression_Component_Factory_Servant</string> + </value> + </value> + </execParameter> + </artifact> + + <artifact id="_7EF85D5C-AE3F-4A80-8DB4-10F7C2D651D5"> + <name>SPACE.ImplementationArtifacts.Compression_Component.Compression_Component_stub</name> + <source/> + <node/> + <location>Compression_Component_stub</location> + </artifact> + + <artifact id="_3D04ECCB-692D-42C6-9743-628924E163DD"> + <name>SPACE.ImplementationArtifacts.Compression_Component.Compression_Component_exec</name> + <source/> + <node/> + <location>Compression_Component_exec</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_SPACE_Compression_Component_Factory_Impl</string> + </value> + </value> + </execParameter> + </artifact> + + <artifact id="_CE12D6F8-B71F-44A4-AE65-21E5C2F38925"> + <name>SPACE.ImplementationArtifacts.Filter_Component.Filter_Component_svnt</name> + <source/> + <node/> + <location>Filter_Component_svnt</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_SPACE_Filter_Component_Factory_Servant</string> + </value> + </value> + </execParameter> + </artifact> + + <artifact id="_26921C94-D013-4957-815B-7D2984F8224E"> + <name>SPACE.ImplementationArtifacts.Filter_Component.Filter_Component_stub</name> + <source/> + <node/> + <location>Filter_Component_stub</location> + </artifact> + + <artifact id="_55626C35-16B1-4990-BA9E-64C1836E32D8"> + <name>SPACE.ImplementationArtifacts.Filter_Component.Filter_Component_exec</name> + <source/> + <node/> + <location>Filter_Component_exec</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_SPACE_Filter_Component_Factory_Impl</string> + </value> + </value> + </execParameter> + </artifact> + + <artifact id="_C7BC8AF7-7532-4C80-A5A2-19508FF7AB32"> + <name>SPACE.ImplementationArtifacts.Gizmo1_High.Gizmo1_High_exec</name> + <source/> + <node/> + <location>Gizmo1_High_exec</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_SPACE_Gizmo1_High_Factory_Impl</string> + </value> + </value> + </execParameter> + </artifact> + + <artifact id="_E1DB4AFF-7A1F-47EF-9C17-41F9AF3B5C70"> + <name>SPACE.ImplementationArtifacts.Gizmo1_High.Gizmo1_High_stub</name> + <source/> + <node/> + <location>Gizmo1_High_stub</location> + </artifact> + + <artifact id="_9C7075AC-ED5E-427B-94F3-8212ED5ED66E"> + <name>SPACE.ImplementationArtifacts.Gizmo1_High.Gizmo1_High_svnt</name> + <source/> + <node/> + <location>Gizmo1_High_svnt</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_SPACE_Gizmo1_High_Factory_Servant</string> + </value> + </value> + </execParameter> + </artifact> + + <artifact id="_13520379-D48D-448B-A1C7-CC5A8265E4A7"> + <name>SPACE.ImplementationArtifacts.Gizmo2_High.Gizmo2_High_exec</name> + <source/> + <node/> + <location>Gizmo2_High_exec</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_SPACE_Gizmo2_High_Factory_Impl</string> + </value> + </value> + </execParameter> + </artifact> + + <artifact id="_3501F7B8-A724-44D5-B178-B66BD6AF4DD0"> + <name>SPACE.ImplementationArtifacts.Gizmo2_High.Gizmo2_High_stub</name> + <source/> + <node/> + <location>Gizmo2_High_stub</location> + </artifact> + + <artifact id="_92D4FB89-78F9-403D-84F4-31E80445F6E5"> + <name>SPACE.ImplementationArtifacts.Gizmo2_High.Gizmo2_High_svnt</name> + <source/> + <node/> + <location>Gizmo2_High_svnt</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_SPACE_Gizmo2_High_Factory_Servant</string> + </value> + </value> + </execParameter> + </artifact> + + <artifact id="_6053785F-482D-4DFC-B6A1-2678FEB98F6D"> + <name>SPACE.ImplementationArtifacts.Analysis_ComponentArtifacts.Analysis_Component_stub</name> + <source/> + <node/> + <location>Analysis_Component_stub</location> + </artifact> + + <artifact id="_26E18897-E0CF-4302-AD68-4C4186BEF1ED"> + <name>SPACE.ImplementationArtifacts.Analysis_ComponentArtifacts.Analysis_Component_svnt</name> + <source/> + <node/> + <location>Analysis_Component_svnt</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_SPACE_Analysis_Component_Home_Servant</string> + </value> + </value> + </execParameter> + </artifact> + + <artifact id="_4A6A8E09-2BB0-4120-8B93-382E49CA82E4"> + <name>SPACE.ImplementationArtifacts.Analysis_ComponentArtifacts.Analysis_Component_exec</name> + <source/> + <node/> + <location>Analysis_Component_exec</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_SPACE_Analysis_Component_Home_Impl</string> + </value> + </value> + </execParameter> + </artifact> + +</Deployment:deploymentPlan> diff --git a/CIAO/examples/space/descriptors/SPACE_4_no_Qos.cdp b/CIAO/examples/space/descriptors/SPACE_4_no_Qos.cdp new file mode 100644 index 00000000000..e340c63ddc3 --- /dev/null +++ b/CIAO/examples/space/descriptors/SPACE_4_no_Qos.cdp @@ -0,0 +1,689 @@ +<?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>4FC33490-49B5-4633-9ECB-DF1980C04843</UUID> + + <implementation id="_7CB380A7-8BCD-44C5-8D12-63AD69D753BD"> + <name>SPACE.ComponentImpl.Gizmo1_Low.Gizmo1_Low</name> + <source/> + <artifact>_A834AB4E-13EA-4F28-88B5-2FDD4589E49D</artifact> + <artifact>_8780AED5-0E0F-4C34-B2B3-05E48B9B83AF</artifact> + <artifact>_12BF8D22-06AA-49E1-89DF-4A0B34F321DC</artifact> + </implementation> + + <implementation id="_864725F9-CBB2-462E-85F2-CE44C668A394"> + <name>SPACE.ComponentImpl.Gizmo1_Medium.Gizmo1_Medium</name> + <source/> + <artifact>_CFC907DD-5AD7-4277-9116-A948BD5B5623</artifact> + <artifact>_E86E0896-4B2E-47FA-A3A4-1E19BCC2C9E9</artifact> + <artifact>_F33A4BF0-3679-4B1C-A4B7-C0D128E10F63</artifact> + </implementation> + + <implementation id="_A622DD4F-F709-479E-AEC6-80680D6B5439"> + <name>SPACE.ComponentImpl.Comm_Component.Comm_Component</name> + <source/> + <artifact>_8B2B3F58-9B5F-47A6-BECC-1E449ECC3E9A</artifact> + <artifact>_8D1B2EB6-C09E-4B06-961F-B8A98C6ADFE6</artifact> + <artifact>_38A51483-49B8-4602-BEF2-7FFFE366D194</artifact> + </implementation> + + <implementation id="_47EB0690-2A1B-42F6-AA60-B901814E884E"> + <name>SPACE.ComponentImpl.Compression_Component.Compression_Component</name> + <source/> + <artifact>_7EF85D5C-AE3F-4A80-8DB4-10F7C2D651D5</artifact> + <artifact>_200E62B5-0D3A-431C-A90C-481A336DC229</artifact> + <artifact>_3D04ECCB-692D-42C6-9743-628924E163DD</artifact> + </implementation> + + <implementation id="_DB70C55B-3312-4279-9354-73B0DF98DAAA"> + <name>SPACE.ComponentImpl.Gizmo2_Medium.Gizmo2_Medium</name> + <source/> + <artifact>_30D9EBBA-D1E3-42B1-873F-14DF3EB1D0A1</artifact> + <artifact>_DFE266D1-330C-471B-9863-C4CECB17C4A9</artifact> + <artifact>_58324120-AF86-4265-859E-609B7CEB55CF</artifact> + </implementation> + + <implementation id="_8E619279-F191-495B-86D9-8813967D73EB"> + <name>SPACE.ComponentImpl.Filter_Component.Filter_Component</name> + <source/> + <artifact>_26921C94-D013-4957-815B-7D2984F8224E</artifact> + <artifact>_CE12D6F8-B71F-44A4-AE65-21E5C2F38925</artifact> + <artifact>_55626C35-16B1-4990-BA9E-64C1836E32D8</artifact> + </implementation> + + <implementation id="_12C96C83-45D4-4F70-BE5F-74FD05037401"> + <name>SPACE.ComponentImpl.Gizmo1_High.Gizmo1_High</name> + <source/> + <artifact>_9C7075AC-ED5E-427B-94F3-8212ED5ED66E</artifact> + <artifact>_E1DB4AFF-7A1F-47EF-9C17-41F9AF3B5C70</artifact> + <artifact>_C7BC8AF7-7532-4C80-A5A2-19508FF7AB32</artifact> + </implementation> + + <implementation id="_C2969BE6-A179-4D55-BB48-03DA3C2A4D21"> + <name>SPACE.ComponentImpl.Gizmo2_High.Gizmo2_High</name> + <source/> + <artifact>_13520379-D48D-448B-A1C7-CC5A8265E4A7</artifact> + <artifact>_3501F7B8-A724-44D5-B178-B66BD6AF4DD0</artifact> + <artifact>_92D4FB89-78F9-403D-84F4-31E80445F6E5</artifact> + </implementation> + + <implementation id="_06C15E63-DC7A-4EFF-AC46-791555C755E9"> + <name>SPACE.ComponentImpl.Analysis_ComponentImplementation.Analysis_ComponentMonolithicImpl</name> + <source/> + <artifact>_6053785F-482D-4DFC-B6A1-2678FEB98F6D</artifact> + <artifact>_26E18897-E0CF-4302-AD68-4C4186BEF1ED</artifact> + <artifact>_4A6A8E09-2BB0-4120-8B93-382E49CA82E4</artifact> + </implementation> + + <instance id="SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_3.Gizmo2_Medium"> + <name>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_3.Gizmo2_Medium</name> + <node>blade36</node> + <source/> + <implementation>_DB70C55B-3312-4279-9354-73B0DF98DAAA</implementation> + </instance> + + <instance id="SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_3.Gizmo1_Low"> + <name>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_3.Gizmo1_Low</name> + <node>blade36</node> + <source/> + <implementation>_7CB380A7-8BCD-44C5-8D12-63AD69D753BD</implementation> + </instance> + + <instance id="SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_3.Gizmo1_Medium"> + <name>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_3.Gizmo1_Medium</name> + <node>blade36</node> + <source/> + <implementation>_864725F9-CBB2-462E-85F2-CE44C668A394</implementation> + </instance> + + <instance id="SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_3.Compression_Component"> + <name>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_3.Compression_Component</name> + <node>blade40</node> + <source/> + <implementation>_47EB0690-2A1B-42F6-AA60-B901814E884E</implementation> + </instance> + + <instance id="SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_3.Filter_Component"> + <name>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_3.Filter_Component</name> + <node>blade40</node> + <source/> + <implementation>_8E619279-F191-495B-86D9-8813967D73EB</implementation> + </instance> + + <instance id="SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_3.Comm_Component"> + <name>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_3.Comm_Component</name> + <node>blade40</node> + <source/> + <implementation>_A622DD4F-F709-479E-AEC6-80680D6B5439</implementation> + </instance> + + <instance id="SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_4.Compression_Component"> + <name>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_4.Compression_Component</name> + <node>blade39</node> + <source/> + <implementation>_47EB0690-2A1B-42F6-AA60-B901814E884E</implementation> + </instance> + + <instance id="SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_4.Comm_Component"> + <name>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_4.Comm_Component</name> + <node>blade39</node> + <source/> + <implementation>_A622DD4F-F709-479E-AEC6-80680D6B5439</implementation> + </instance> + + <instance id="SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_4.Filter_Component"> + <name>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_4.Filter_Component</name> + <node>blade39</node> + <source/> + <implementation>_8E619279-F191-495B-86D9-8813967D73EB</implementation> + </instance> + + <instance id="SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_4.Gizmo2_Medium"> + <name>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_4.Gizmo2_Medium</name> + <node>blade38</node> + <source/> + <implementation>_DB70C55B-3312-4279-9354-73B0DF98DAAA</implementation> + </instance> + + <instance id="SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_4.Gizmo1_Low"> + <name>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_4.Gizmo1_Low</name> + <node>blade38</node> + <source/> + <implementation>_7CB380A7-8BCD-44C5-8D12-63AD69D753BD</implementation> + </instance> + + <instance id="SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_4.Gizmo1_Medium"> + <name>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_4.Gizmo1_Medium</name> + <node>blade38</node> + <source/> + <implementation>_864725F9-CBB2-462E-85F2-CE44C668A394</implementation> + </instance> + + <connection> + <name>observation_data_recv_dataSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_3.Gizmo2_MediumSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_3.Filter_Component</name> + <internalEndpoint> + <portName>observation_data</portName> + <kind>EventEmitter</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_3.Gizmo2_Medium</instance> + </internalEndpoint> + <internalEndpoint> + <portName>recv_data</portName> + <kind>EventConsumer</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_3.Filter_Component</instance> + </internalEndpoint> + </connection> + + <connection> + <name>observation_data_recv_dataSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_3.Gizmo1_LowSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_3.Filter_Component</name> + <internalEndpoint> + <portName>observation_data</portName> + <kind>EventEmitter</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_3.Gizmo1_Low</instance> + </internalEndpoint> + <internalEndpoint> + <portName>recv_data</portName> + <kind>EventConsumer</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_3.Filter_Component</instance> + </internalEndpoint> + </connection> + + <connection> + <name>observation_data_recv_dataSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_3.Gizmo1_MediumSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_3.Filter_Component</name> + <internalEndpoint> + <portName>observation_data</portName> + <kind>EventEmitter</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_3.Gizmo1_Medium</instance> + </internalEndpoint> + <internalEndpoint> + <portName>recv_data</portName> + <kind>EventConsumer</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_3.Filter_Component</instance> + </internalEndpoint> + </connection> + + <connection> + <name>observation_data_recv_dataSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_4.Gizmo2_MediumSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_4.Filter_Component</name> + <internalEndpoint> + <portName>observation_data</portName> + <kind>EventEmitter</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_4.Gizmo2_Medium</instance> + </internalEndpoint> + <internalEndpoint> + <portName>recv_data</portName> + <kind>EventConsumer</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_4.Filter_Component</instance> + </internalEndpoint> + </connection> + + <connection> + <name>observation_data_recv_dataSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_4.Gizmo1_LowSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_4.Filter_Component</name> + <internalEndpoint> + <portName>observation_data</portName> + <kind>EventEmitter</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_4.Gizmo1_Low</instance> + </internalEndpoint> + <internalEndpoint> + <portName>recv_data</portName> + <kind>EventConsumer</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_4.Filter_Component</instance> + </internalEndpoint> + </connection> + + <connection> + <name>observation_data_recv_dataSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_4.Gizmo1_MediumSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_4.Filter_Component</name> + <internalEndpoint> + <portName>observation_data</portName> + <kind>EventEmitter</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_4.Gizmo1_Medium</instance> + </internalEndpoint> + <internalEndpoint> + <portName>recv_data</portName> + <kind>EventConsumer</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_4.Filter_Component</instance> + </internalEndpoint> + </connection> + + <connection> + <name>send_data_science_dataSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_3.Compression_ComponentSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_3.Comm_Component</name> + <internalEndpoint> + <portName>send_data</portName> + <kind>EventEmitter</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_3.Compression_Component</instance> + </internalEndpoint> + <internalEndpoint> + <portName>science_data</portName> + <kind>EventConsumer</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_3.Comm_Component</instance> + </internalEndpoint> + </connection> + + <connection> + <name>send_data_recv_dataSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_3.Filter_ComponentSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_3.Compression_Component</name> + <internalEndpoint> + <portName>send_data</portName> + <kind>EventEmitter</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_3.Filter_Component</instance> + </internalEndpoint> + <internalEndpoint> + <portName>recv_data</portName> + <kind>EventConsumer</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_3.Compression_Component</instance> + </internalEndpoint> + </connection> + + <connection> + <name>send_data_science_dataSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_4.Compression_ComponentSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_4.Comm_Component</name> + <internalEndpoint> + <portName>send_data</portName> + <kind>EventEmitter</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_4.Compression_Component</instance> + </internalEndpoint> + <internalEndpoint> + <portName>science_data</portName> + <kind>EventConsumer</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_4.Comm_Component</instance> + </internalEndpoint> + </connection> + + <connection> + <name>send_data_recv_dataSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_4.Filter_ComponentSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_4.Compression_Component</name> + <internalEndpoint> + <portName>send_data</portName> + <kind>EventEmitter</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_4.Filter_Component</instance> + </internalEndpoint> + <internalEndpoint> + <portName>recv_data</portName> + <kind>EventConsumer</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_4.Compression_Component</instance> + </internalEndpoint> + </connection> + + <artifact id="_58324120-AF86-4265-859E-609B7CEB55CF"> + <name>SPACE.ImplementationArtifacts.Gizmo2_Medium.Gizmo2_Medium_svnt</name> + <source/> + <node/> + <location>Gizmo2_Medium_svnt</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_SPACE_Gizmo2_Medium_Factory_Servant</string> + </value> + </value> + </execParameter> + </artifact> + + <artifact id="_DFE266D1-330C-471B-9863-C4CECB17C4A9"> + <name>SPACE.ImplementationArtifacts.Gizmo2_Medium.Gizmo2_Medium_exec</name> + <source/> + <node/> + <location>Gizmo2_Medium_exec</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_SPACE_Gizmo2_Medium_Factory_Impl</string> + </value> + </value> + </execParameter> + </artifact> + + <artifact id="_30D9EBBA-D1E3-42B1-873F-14DF3EB1D0A1"> + <name>SPACE.ImplementationArtifacts.Gizmo2_Medium.Gizmo2_Medium_stub</name> + <source/> + <node/> + <location>Gizmo2_Medium_stub</location> + </artifact> + + <artifact id="_F33A4BF0-3679-4B1C-A4B7-C0D128E10F63"> + <name>SPACE.ImplementationArtifacts.Gizmo1_Medium.Gizmo1_Medium_svnt</name> + <source/> + <node/> + <location>Gizmo1_Medium_svnt</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_SPACE_Gizmo1_Medium_Factory_Servant</string> + </value> + </value> + </execParameter> + </artifact> + + <artifact id="_E86E0896-4B2E-47FA-A3A4-1E19BCC2C9E9"> + <name>SPACE.ImplementationArtifacts.Gizmo1_Medium.Gizmo1_Medium_stub</name> + <source/> + <node/> + <location>Gizmo1_Medium_stub</location> + </artifact> + + <artifact id="_CFC907DD-5AD7-4277-9116-A948BD5B5623"> + <name>SPACE.ImplementationArtifacts.Gizmo1_Medium.Gizmo1_Medium_exec</name> + <source/> + <node/> + <location>Gizmo1_Medium_exec</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_SPACE_Gizmo1_Medium_Factory_Impl</string> + </value> + </value> + </execParameter> + </artifact> + + <artifact id="_8780AED5-0E0F-4C34-B2B3-05E48B9B83AF"> + <name>SPACE.ImplementationArtifacts.Gizmo1_Low.Gizmo1_Low_svnt</name> + <source/> + <node/> + <location>Gizmo1_Low_svnt</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_SPACE_Gizmo1_Low_Factory_Servant</string> + </value> + </value> + </execParameter> + </artifact> + + <artifact id="_12BF8D22-06AA-49E1-89DF-4A0B34F321DC"> + <name>SPACE.ImplementationArtifacts.Gizmo1_Low.Gizmo1_Low_exec</name> + <source/> + <node/> + <location>Gizmo1_Low_exec</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_SPACE_Gizmo1_Low_Factory_Impl</string> + </value> + </value> + </execParameter> + </artifact> + + <artifact id="_A834AB4E-13EA-4F28-88B5-2FDD4589E49D"> + <name>SPACE.ImplementationArtifacts.Gizmo1_Low.Gizmo1_Low_stub</name> + <source/> + <node/> + <location>Gizmo1_Low_stub</location> + </artifact> + + <artifact id="_8D1B2EB6-C09E-4B06-961F-B8A98C6ADFE6"> + <name>SPACE.ImplementationArtifacts.Comm_Compnent.Comm_Component_svnt</name> + <source/> + <node/> + <location>Comm_Component_svnt</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_SPACE_Comm_Component_Factory_Servant</string> + </value> + </value> + </execParameter> + </artifact> + + <artifact id="_8B2B3F58-9B5F-47A6-BECC-1E449ECC3E9A"> + <name>SPACE.ImplementationArtifacts.Comm_Compnent.Comm_Component_stub</name> + <source/> + <node/> + <location>Comm_Component_stub</location> + </artifact> + + <artifact id="_38A51483-49B8-4602-BEF2-7FFFE366D194"> + <name>SPACE.ImplementationArtifacts.Comm_Compnent.Comm_Component_exec</name> + <source/> + <node/> + <location>Comm_Component_exec</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_SPACE_Comm_Component_Factory_Impl</string> + </value> + </value> + </execParameter> + </artifact> + + <artifact id="_200E62B5-0D3A-431C-A90C-481A336DC229"> + <name>SPACE.ImplementationArtifacts.Compression_Component.Compression_Component_svnt</name> + <source/> + <node/> + <location>Compression_Component_svnt</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_SPACE_Compression_Component_Factory_Servant</string> + </value> + </value> + </execParameter> + </artifact> + + <artifact id="_7EF85D5C-AE3F-4A80-8DB4-10F7C2D651D5"> + <name>SPACE.ImplementationArtifacts.Compression_Component.Compression_Component_stub</name> + <source/> + <node/> + <location>Compression_Component_stub</location> + </artifact> + + <artifact id="_3D04ECCB-692D-42C6-9743-628924E163DD"> + <name>SPACE.ImplementationArtifacts.Compression_Component.Compression_Component_exec</name> + <source/> + <node/> + <location>Compression_Component_exec</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_SPACE_Compression_Component_Factory_Impl</string> + </value> + </value> + </execParameter> + </artifact> + + <artifact id="_CE12D6F8-B71F-44A4-AE65-21E5C2F38925"> + <name>SPACE.ImplementationArtifacts.Filter_Component.Filter_Component_svnt</name> + <source/> + <node/> + <location>Filter_Component_svnt</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_SPACE_Filter_Component_Factory_Servant</string> + </value> + </value> + </execParameter> + </artifact> + + <artifact id="_26921C94-D013-4957-815B-7D2984F8224E"> + <name>SPACE.ImplementationArtifacts.Filter_Component.Filter_Component_stub</name> + <source/> + <node/> + <location>Filter_Component_stub</location> + </artifact> + + <artifact id="_55626C35-16B1-4990-BA9E-64C1836E32D8"> + <name>SPACE.ImplementationArtifacts.Filter_Component.Filter_Component_exec</name> + <source/> + <node/> + <location>Filter_Component_exec</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_SPACE_Filter_Component_Factory_Impl</string> + </value> + </value> + </execParameter> + </artifact> + + <artifact id="_C7BC8AF7-7532-4C80-A5A2-19508FF7AB32"> + <name>SPACE.ImplementationArtifacts.Gizmo1_High.Gizmo1_High_exec</name> + <source/> + <node/> + <location>Gizmo1_High_exec</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_SPACE_Gizmo1_High_Factory_Impl</string> + </value> + </value> + </execParameter> + </artifact> + + <artifact id="_E1DB4AFF-7A1F-47EF-9C17-41F9AF3B5C70"> + <name>SPACE.ImplementationArtifacts.Gizmo1_High.Gizmo1_High_stub</name> + <source/> + <node/> + <location>Gizmo1_High_stub</location> + </artifact> + + <artifact id="_9C7075AC-ED5E-427B-94F3-8212ED5ED66E"> + <name>SPACE.ImplementationArtifacts.Gizmo1_High.Gizmo1_High_svnt</name> + <source/> + <node/> + <location>Gizmo1_High_svnt</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_SPACE_Gizmo1_High_Factory_Servant</string> + </value> + </value> + </execParameter> + </artifact> + + <artifact id="_13520379-D48D-448B-A1C7-CC5A8265E4A7"> + <name>SPACE.ImplementationArtifacts.Gizmo2_High.Gizmo2_High_exec</name> + <source/> + <node/> + <location>Gizmo2_High_exec</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_SPACE_Gizmo2_High_Factory_Impl</string> + </value> + </value> + </execParameter> + </artifact> + + <artifact id="_3501F7B8-A724-44D5-B178-B66BD6AF4DD0"> + <name>SPACE.ImplementationArtifacts.Gizmo2_High.Gizmo2_High_stub</name> + <source/> + <node/> + <location>Gizmo2_High_stub</location> + </artifact> + + <artifact id="_92D4FB89-78F9-403D-84F4-31E80445F6E5"> + <name>SPACE.ImplementationArtifacts.Gizmo2_High.Gizmo2_High_svnt</name> + <source/> + <node/> + <location>Gizmo2_High_svnt</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_SPACE_Gizmo2_High_Factory_Servant</string> + </value> + </value> + </execParameter> + </artifact> + + <artifact id="_6053785F-482D-4DFC-B6A1-2678FEB98F6D"> + <name>SPACE.ImplementationArtifacts.Analysis_ComponentArtifacts.Analysis_Component_stub</name> + <source/> + <node/> + <location>Analysis_Component_stub</location> + </artifact> + + <artifact id="_26E18897-E0CF-4302-AD68-4C4186BEF1ED"> + <name>SPACE.ImplementationArtifacts.Analysis_ComponentArtifacts.Analysis_Component_svnt</name> + <source/> + <node/> + <location>Analysis_Component_svnt</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_SPACE_Analysis_Component_Home_Servant</string> + </value> + </value> + </execParameter> + </artifact> + + <artifact id="_4A6A8E09-2BB0-4120-8B93-382E49CA82E4"> + <name>SPACE.ImplementationArtifacts.Analysis_ComponentArtifacts.Analysis_Component_exec</name> + <source/> + <node/> + <location>Analysis_Component_exec</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_SPACE_Analysis_Component_Home_Impl</string> + </value> + </value> + </execParameter> + </artifact> + +</Deployment:deploymentPlan> diff --git a/CIAO/examples/space/descriptors/SPACE_6.cdp b/CIAO/examples/space/descriptors/SPACE_6.cdp new file mode 100644 index 00000000000..d3c20d54c5c --- /dev/null +++ b/CIAO/examples/space/descriptors/SPACE_6.cdp @@ -0,0 +1,801 @@ +<?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>4FC33490-49B5-4633-9ECB-DF1980C04843</UUID> + + <implementation id="_7CB380A7-8BCD-44C5-8D12-63AD69D753BD"> + <name>SPACE.ComponentImpl.Gizmo1_Low.Gizmo1_Low</name> + <source/> + <artifact>_A834AB4E-13EA-4F28-88B5-2FDD4589E49D</artifact> + <artifact>_8780AED5-0E0F-4C34-B2B3-05E48B9B83AF</artifact> + <artifact>_12BF8D22-06AA-49E1-89DF-4A0B34F321DC</artifact> + </implementation> + + <implementation id="_864725F9-CBB2-462E-85F2-CE44C668A394"> + <name>SPACE.ComponentImpl.Gizmo1_Medium.Gizmo1_Medium</name> + <source/> + <artifact>_CFC907DD-5AD7-4277-9116-A948BD5B5623</artifact> + <artifact>_E86E0896-4B2E-47FA-A3A4-1E19BCC2C9E9</artifact> + <artifact>_F33A4BF0-3679-4B1C-A4B7-C0D128E10F63</artifact> + </implementation> + + <implementation id="_A622DD4F-F709-479E-AEC6-80680D6B5439"> + <name>SPACE.ComponentImpl.Comm_Component.Comm_Component</name> + <source/> + <artifact>_8B2B3F58-9B5F-47A6-BECC-1E449ECC3E9A</artifact> + <artifact>_8D1B2EB6-C09E-4B06-961F-B8A98C6ADFE6</artifact> + <artifact>_38A51483-49B8-4602-BEF2-7FFFE366D194</artifact> + </implementation> + + <implementation id="_47EB0690-2A1B-42F6-AA60-B901814E884E"> + <name>SPACE.ComponentImpl.Compression_Component.Compression_Component</name> + <source/> + <artifact>_7EF85D5C-AE3F-4A80-8DB4-10F7C2D651D5</artifact> + <artifact>_200E62B5-0D3A-431C-A90C-481A336DC229</artifact> + <artifact>_3D04ECCB-692D-42C6-9743-628924E163DD</artifact> + </implementation> + + <implementation id="_DB70C55B-3312-4279-9354-73B0DF98DAAA"> + <name>SPACE.ComponentImpl.Gizmo2_Medium.Gizmo2_Medium</name> + <source/> + <artifact>_30D9EBBA-D1E3-42B1-873F-14DF3EB1D0A1</artifact> + <artifact>_DFE266D1-330C-471B-9863-C4CECB17C4A9</artifact> + <artifact>_58324120-AF86-4265-859E-609B7CEB55CF</artifact> + </implementation> + + <implementation id="_8E619279-F191-495B-86D9-8813967D73EB"> + <name>SPACE.ComponentImpl.Filter_Component.Filter_Component</name> + <source/> + <artifact>_26921C94-D013-4957-815B-7D2984F8224E</artifact> + <artifact>_CE12D6F8-B71F-44A4-AE65-21E5C2F38925</artifact> + <artifact>_55626C35-16B1-4990-BA9E-64C1836E32D8</artifact> + </implementation> + + <implementation id="_12C96C83-45D4-4F70-BE5F-74FD05037401"> + <name>SPACE.ComponentImpl.Gizmo1_High.Gizmo1_High</name> + <source/> + <artifact>_9C7075AC-ED5E-427B-94F3-8212ED5ED66E</artifact> + <artifact>_E1DB4AFF-7A1F-47EF-9C17-41F9AF3B5C70</artifact> + <artifact>_C7BC8AF7-7532-4C80-A5A2-19508FF7AB32</artifact> + </implementation> + + <implementation id="_C2969BE6-A179-4D55-BB48-03DA3C2A4D21"> + <name>SPACE.ComponentImpl.Gizmo2_High.Gizmo2_High</name> + <source/> + <artifact>_13520379-D48D-448B-A1C7-CC5A8265E4A7</artifact> + <artifact>_3501F7B8-A724-44D5-B178-B66BD6AF4DD0</artifact> + <artifact>_92D4FB89-78F9-403D-84F4-31E80445F6E5</artifact> + </implementation> + + <implementation id="_06C15E63-DC7A-4EFF-AC46-791555C755E9"> + <name>SPACE.ComponentImpl.Analysis_ComponentImplementation.Analysis_ComponentMonolithicImpl</name> + <source/> + <artifact>_6053785F-482D-4DFC-B6A1-2678FEB98F6D</artifact> + <artifact>_26E18897-E0CF-4302-AD68-4C4186BEF1ED</artifact> + <artifact>_4A6A8E09-2BB0-4120-8B93-382E49CA82E4</artifact> + </implementation> + + <instance id="SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_3.Gizmo2_Medium"> + <name>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_3.Gizmo2_Medium</name> + <node>blade36</node> + <source/> + <implementation>_DB70C55B-3312-4279-9354-73B0DF98DAAA</implementation> + </instance> + + <instance id="SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_3.Gizmo1_Low"> + <name>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_3.Gizmo1_Low</name> + <node>blade36</node> + <source/> + <implementation>_7CB380A7-8BCD-44C5-8D12-63AD69D753BD</implementation> + </instance> + + <instance id="SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_3.Gizmo1_Medium"> + <name>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_3.Gizmo1_Medium</name> + <node>blade36</node> + <source>_ZN18CIDL_Gizmo1_Medium21Gizmo1_Medium_Context21push_observation_dataEPN5SPACE10Gizmo_DataE</source> + <implementation>_864725F9-CBB2-462E-85F2-CE44C668A394</implementation> + </instance> + + <instance id="SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_3.Compression_Component"> + <name>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_3.Compression_Component</name> + <node>blade40</node> + <source/> + <implementation>_47EB0690-2A1B-42F6-AA60-B901814E884E</implementation> + </instance> + + <instance id="SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_3.Filter_Component"> + <name>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_3.Filter_Component</name> + <node>blade40</node> + <source/> + <implementation>_8E619279-F191-495B-86D9-8813967D73EB</implementation> + </instance> + + <instance id="SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_3.Comm_Component"> + <name>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_3.Comm_Component</name> + <node>blade40</node> + <source/> + <implementation>_A622DD4F-F709-479E-AEC6-80680D6B5439</implementation> + </instance> + + <instance id="SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_4.Compression_Component"> + <name>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_4.Compression_Component</name> + <node>blade39</node> + <source/> + <implementation>_47EB0690-2A1B-42F6-AA60-B901814E884E</implementation> + </instance> + + <instance id="SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_4.Comm_Component"> + <name>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_4.Comm_Component</name> + <node>blade39</node> + <source/> + <implementation>_A622DD4F-F709-479E-AEC6-80680D6B5439</implementation> + </instance> + + <instance id="SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_4.Filter_Component"> + <name>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_4.Filter_Component</name> + <node>blade39</node> + <source/> + <implementation>_8E619279-F191-495B-86D9-8813967D73EB</implementation> + </instance> + + <instance id="SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_2.Compression_Component"> + <name>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_2.Compression_Component</name> + <node>blade38</node> + <source/> + <implementation>_47EB0690-2A1B-42F6-AA60-B901814E884E</implementation> + </instance> + + <instance id="SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_2.Filter_Component"> + <name>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_2.Filter_Component</name> + <node>blade38</node> + <source/> + <implementation>_8E619279-F191-495B-86D9-8813967D73EB</implementation> + </instance> + + <instance id="SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_2.Comm_Component"> + <name>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_2.Comm_Component</name> + <node>blade38</node> + <source/> + <implementation>_A622DD4F-F709-479E-AEC6-80680D6B5439</implementation> + </instance> + + <instance id="SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_2.Gizmo2_Medium"> + <name>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_2.Gizmo2_Medium</name> + <node>blade33</node> + <source/> + <implementation>_DB70C55B-3312-4279-9354-73B0DF98DAAA</implementation> + </instance> + + <instance id="SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_2.Gizmo1_Low"> + <name>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_2.Gizmo1_Low</name> + <node>blade33</node> + <source/> + <implementation>_7CB380A7-8BCD-44C5-8D12-63AD69D753BD</implementation> + </instance> + + <instance id="SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_2.Gizmo1_Medium"> + <name>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_2.Gizmo1_Medium</name> + <node>blade33</node> + <source>_ZN18CIDL_Gizmo1_Medium21Gizmo1_Medium_Context21push_observation_dataEPN5SPACE10Gizmo_DataE</source> + <implementation>_864725F9-CBB2-462E-85F2-CE44C668A394</implementation> + </instance> + + <instance id="SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_4.Gizmo2_Medium"> + <name>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_4.Gizmo2_Medium</name> + <node>blade37</node> + <source/> + <implementation>_DB70C55B-3312-4279-9354-73B0DF98DAAA</implementation> + </instance> + + <instance id="SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_4.Gizmo1_Low"> + <name>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_4.Gizmo1_Low</name> + <node>blade37</node> + <source/> + <implementation>_7CB380A7-8BCD-44C5-8D12-63AD69D753BD</implementation> + </instance> + + <instance id="SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_4.Gizmo1_Medium"> + <name>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_4.Gizmo1_Medium</name> + <node>blade37</node> + <source>_ZN18CIDL_Gizmo1_Medium21Gizmo1_Medium_Context21push_observation_dataEPN5SPACE10Gizmo_DataE</source> + <implementation>_864725F9-CBB2-462E-85F2-CE44C668A394</implementation> + </instance> + + <connection> + <name>observation_data_recv_dataSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_3.Gizmo2_MediumSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_3.Filter_Component</name> + <internalEndpoint> + <portName>observation_data</portName> + <kind>EventEmitter</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_3.Gizmo2_Medium</instance> + </internalEndpoint> + <internalEndpoint> + <portName>recv_data</portName> + <kind>EventConsumer</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_3.Filter_Component</instance> + </internalEndpoint> + </connection> + + <connection> + <name>observation_data_recv_dataSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_3.Gizmo1_LowSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_3.Filter_Component</name> + <internalEndpoint> + <portName>observation_data</portName> + <kind>EventEmitter</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_3.Gizmo1_Low</instance> + </internalEndpoint> + <internalEndpoint> + <portName>recv_data</portName> + <kind>EventConsumer</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_3.Filter_Component</instance> + </internalEndpoint> + </connection> + + <connection> + <name>observation_data_recv_dataSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_3.Gizmo1_MediumSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_3.Filter_Component</name> + <internalEndpoint> + <portName>observation_data</portName> + <kind>EventEmitter</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_3.Gizmo1_Medium</instance> + </internalEndpoint> + <internalEndpoint> + <portName>recv_data</portName> + <kind>EventConsumer</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_3.Filter_Component</instance> + </internalEndpoint> + </connection> + + <connection> + <name>observation_data_recv_dataSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_2.Gizmo2_MediumSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_2.Filter_Component</name> + <internalEndpoint> + <portName>observation_data</portName> + <kind>EventEmitter</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_2.Gizmo2_Medium</instance> + </internalEndpoint> + <internalEndpoint> + <portName>recv_data</portName> + <kind>EventConsumer</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_2.Filter_Component</instance> + </internalEndpoint> + </connection> + + <connection> + <name>observation_data_recv_dataSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_2.Gizmo1_LowSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_2.Filter_Component</name> + <internalEndpoint> + <portName>observation_data</portName> + <kind>EventEmitter</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_2.Gizmo1_Low</instance> + </internalEndpoint> + <internalEndpoint> + <portName>recv_data</portName> + <kind>EventConsumer</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_2.Filter_Component</instance> + </internalEndpoint> + </connection> + + <connection> + <name>observation_data_recv_dataSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_2.Gizmo1_MediumSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_2.Filter_Component</name> + <internalEndpoint> + <portName>observation_data</portName> + <kind>EventEmitter</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_2.Gizmo1_Medium</instance> + </internalEndpoint> + <internalEndpoint> + <portName>recv_data</portName> + <kind>EventConsumer</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_2.Filter_Component</instance> + </internalEndpoint> + </connection> + + <connection> + <name>observation_data_recv_dataSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_4.Gizmo2_MediumSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_4.Filter_Component</name> + <internalEndpoint> + <portName>observation_data</portName> + <kind>EventEmitter</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_4.Gizmo2_Medium</instance> + </internalEndpoint> + <internalEndpoint> + <portName>recv_data</portName> + <kind>EventConsumer</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_4.Filter_Component</instance> + </internalEndpoint> + </connection> + + <connection> + <name>observation_data_recv_dataSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_4.Gizmo1_LowSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_4.Filter_Component</name> + <internalEndpoint> + <portName>observation_data</portName> + <kind>EventEmitter</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_4.Gizmo1_Low</instance> + </internalEndpoint> + <internalEndpoint> + <portName>recv_data</portName> + <kind>EventConsumer</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_4.Filter_Component</instance> + </internalEndpoint> + </connection> + + <connection> + <name>observation_data_recv_dataSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_4.Gizmo1_MediumSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_4.Filter_Component</name> + <internalEndpoint> + <portName>observation_data</portName> + <kind>EventEmitter</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_4.Gizmo1_Medium</instance> + </internalEndpoint> + <internalEndpoint> + <portName>recv_data</portName> + <kind>EventConsumer</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_4.Filter_Component</instance> + </internalEndpoint> + </connection> + + <connection> + <name>send_data_science_dataSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_3.Compression_ComponentSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_3.Comm_Component</name> + <internalEndpoint> + <portName>send_data</portName> + <kind>EventEmitter</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_3.Compression_Component</instance> + </internalEndpoint> + <internalEndpoint> + <portName>science_data</portName> + <kind>EventConsumer</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_3.Comm_Component</instance> + </internalEndpoint> + </connection> + + <connection> + <name>send_data_recv_dataSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_3.Filter_ComponentSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_3.Compression_Component</name> + <internalEndpoint> + <portName>send_data</portName> + <kind>EventEmitter</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_3.Filter_Component</instance> + </internalEndpoint> + <internalEndpoint> + <portName>recv_data</portName> + <kind>EventConsumer</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_3.Compression_Component</instance> + </internalEndpoint> + </connection> + + <connection> + <name>send_data_science_dataSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_4.Compression_ComponentSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_4.Comm_Component</name> + <internalEndpoint> + <portName>send_data</portName> + <kind>EventEmitter</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_4.Compression_Component</instance> + </internalEndpoint> + <internalEndpoint> + <portName>science_data</portName> + <kind>EventConsumer</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_4.Comm_Component</instance> + </internalEndpoint> + </connection> + + <connection> + <name>send_data_recv_dataSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_4.Filter_ComponentSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_4.Compression_Component</name> + <internalEndpoint> + <portName>send_data</portName> + <kind>EventEmitter</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_4.Filter_Component</instance> + </internalEndpoint> + <internalEndpoint> + <portName>recv_data</portName> + <kind>EventConsumer</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_4.Compression_Component</instance> + </internalEndpoint> + </connection> + + <connection> + <name>send_data_science_dataSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_2.Compression_ComponentSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_2.Comm_Component</name> + <internalEndpoint> + <portName>send_data</portName> + <kind>EventEmitter</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_2.Compression_Component</instance> + </internalEndpoint> + <internalEndpoint> + <portName>science_data</portName> + <kind>EventConsumer</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_2.Comm_Component</instance> + </internalEndpoint> + </connection> + + <connection> + <name>send_data_recv_dataSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_2.Filter_ComponentSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_2.Compression_Component</name> + <internalEndpoint> + <portName>send_data</portName> + <kind>EventEmitter</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_2.Filter_Component</instance> + </internalEndpoint> + <internalEndpoint> + <portName>recv_data</portName> + <kind>EventConsumer</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_2.Compression_Component</instance> + </internalEndpoint> + </connection> + + <artifact id="_58324120-AF86-4265-859E-609B7CEB55CF"> + <name>SPACE.ImplementationArtifacts.Gizmo2_Medium.Gizmo2_Medium_svnt</name> + <source/> + <node/> + <location>Gizmo2_Medium_svnt</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_SPACE_Gizmo2_Medium_Factory_Servant</string> + </value> + </value> + </execParameter> + </artifact> + + <artifact id="_DFE266D1-330C-471B-9863-C4CECB17C4A9"> + <name>SPACE.ImplementationArtifacts.Gizmo2_Medium.Gizmo2_Medium_exec</name> + <source/> + <node/> + <location>Gizmo2_Medium_exec</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_SPACE_Gizmo2_Medium_Factory_Impl</string> + </value> + </value> + </execParameter> + </artifact> + + <artifact id="_30D9EBBA-D1E3-42B1-873F-14DF3EB1D0A1"> + <name>SPACE.ImplementationArtifacts.Gizmo2_Medium.Gizmo2_Medium_stub</name> + <source/> + <node/> + <location>Gizmo2_Medium_stub</location> + </artifact> + + <artifact id="_F33A4BF0-3679-4B1C-A4B7-C0D128E10F63"> + <name>SPACE.ImplementationArtifacts.Gizmo1_Medium.Gizmo1_Medium_svnt</name> + <source/> + <node/> + <location>Gizmo1_Medium_svnt</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_SPACE_Gizmo1_Medium_Factory_Servant</string> + </value> + </value> + </execParameter> + </artifact> + + <artifact id="_E86E0896-4B2E-47FA-A3A4-1E19BCC2C9E9"> + <name>SPACE.ImplementationArtifacts.Gizmo1_Medium.Gizmo1_Medium_stub</name> + <source/> + <node/> + <location>Gizmo1_Medium_stub</location> + </artifact> + + <artifact id="_CFC907DD-5AD7-4277-9116-A948BD5B5623"> + <name>SPACE.ImplementationArtifacts.Gizmo1_Medium.Gizmo1_Medium_exec</name> + <source/> + <node/> + <location>Gizmo1_Medium_exec</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_SPACE_Gizmo1_Medium_Factory_Impl</string> + </value> + </value> + </execParameter> + </artifact> + + <artifact id="_8780AED5-0E0F-4C34-B2B3-05E48B9B83AF"> + <name>SPACE.ImplementationArtifacts.Gizmo1_Low.Gizmo1_Low_svnt</name> + <source/> + <node/> + <location>Gizmo1_Low_svnt</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_SPACE_Gizmo1_Low_Factory_Servant</string> + </value> + </value> + </execParameter> + </artifact> + + <artifact id="_12BF8D22-06AA-49E1-89DF-4A0B34F321DC"> + <name>SPACE.ImplementationArtifacts.Gizmo1_Low.Gizmo1_Low_exec</name> + <source/> + <node/> + <location>Gizmo1_Low_exec</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_SPACE_Gizmo1_Low_Factory_Impl</string> + </value> + </value> + </execParameter> + </artifact> + + <artifact id="_A834AB4E-13EA-4F28-88B5-2FDD4589E49D"> + <name>SPACE.ImplementationArtifacts.Gizmo1_Low.Gizmo1_Low_stub</name> + <source/> + <node/> + <location>Gizmo1_Low_stub</location> + </artifact> + + <artifact id="_8D1B2EB6-C09E-4B06-961F-B8A98C6ADFE6"> + <name>SPACE.ImplementationArtifacts.Comm_Compnent.Comm_Component_svnt</name> + <source/> + <node/> + <location>Comm_Component_svnt</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_SPACE_Comm_Component_Factory_Servant</string> + </value> + </value> + </execParameter> + </artifact> + + <artifact id="_8B2B3F58-9B5F-47A6-BECC-1E449ECC3E9A"> + <name>SPACE.ImplementationArtifacts.Comm_Compnent.Comm_Component_stub</name> + <source/> + <node/> + <location>Comm_Component_stub</location> + </artifact> + + <artifact id="_38A51483-49B8-4602-BEF2-7FFFE366D194"> + <name>SPACE.ImplementationArtifacts.Comm_Compnent.Comm_Component_exec</name> + <source/> + <node/> + <location>Comm_Component_exec</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_SPACE_Comm_Component_Factory_Impl</string> + </value> + </value> + </execParameter> + </artifact> + + <artifact id="_200E62B5-0D3A-431C-A90C-481A336DC229"> + <name>SPACE.ImplementationArtifacts.Compression_Component.Compression_Component_svnt</name> + <source/> + <node/> + <location>Compression_Component_svnt</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_SPACE_Compression_Component_Factory_Servant</string> + </value> + </value> + </execParameter> + </artifact> + + <artifact id="_7EF85D5C-AE3F-4A80-8DB4-10F7C2D651D5"> + <name>SPACE.ImplementationArtifacts.Compression_Component.Compression_Component_stub</name> + <source/> + <node/> + <location>Compression_Component_stub</location> + </artifact> + + <artifact id="_3D04ECCB-692D-42C6-9743-628924E163DD"> + <name>SPACE.ImplementationArtifacts.Compression_Component.Compression_Component_exec</name> + <source/> + <node/> + <location>Compression_Component_exec</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_SPACE_Compression_Component_Factory_Impl</string> + </value> + </value> + </execParameter> + </artifact> + + <artifact id="_CE12D6F8-B71F-44A4-AE65-21E5C2F38925"> + <name>SPACE.ImplementationArtifacts.Filter_Component.Filter_Component_svnt</name> + <source/> + <node/> + <location>Filter_Component_svnt</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_SPACE_Filter_Component_Factory_Servant</string> + </value> + </value> + </execParameter> + </artifact> + + <artifact id="_26921C94-D013-4957-815B-7D2984F8224E"> + <name>SPACE.ImplementationArtifacts.Filter_Component.Filter_Component_stub</name> + <source/> + <node/> + <location>Filter_Component_stub</location> + </artifact> + + <artifact id="_55626C35-16B1-4990-BA9E-64C1836E32D8"> + <name>SPACE.ImplementationArtifacts.Filter_Component.Filter_Component_exec</name> + <source/> + <node/> + <location>Filter_Component_exec</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_SPACE_Filter_Component_Factory_Impl</string> + </value> + </value> + </execParameter> + </artifact> + + <artifact id="_C7BC8AF7-7532-4C80-A5A2-19508FF7AB32"> + <name>SPACE.ImplementationArtifacts.Gizmo1_High.Gizmo1_High_exec</name> + <source/> + <node/> + <location>Gizmo1_High_exec</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_SPACE_Gizmo1_High_Factory_Impl</string> + </value> + </value> + </execParameter> + </artifact> + + <artifact id="_E1DB4AFF-7A1F-47EF-9C17-41F9AF3B5C70"> + <name>SPACE.ImplementationArtifacts.Gizmo1_High.Gizmo1_High_stub</name> + <source/> + <node/> + <location>Gizmo1_High_stub</location> + </artifact> + + <artifact id="_9C7075AC-ED5E-427B-94F3-8212ED5ED66E"> + <name>SPACE.ImplementationArtifacts.Gizmo1_High.Gizmo1_High_svnt</name> + <source/> + <node/> + <location>Gizmo1_High_svnt</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_SPACE_Gizmo1_High_Factory_Servant</string> + </value> + </value> + </execParameter> + </artifact> + + <artifact id="_13520379-D48D-448B-A1C7-CC5A8265E4A7"> + <name>SPACE.ImplementationArtifacts.Gizmo2_High.Gizmo2_High_exec</name> + <source/> + <node/> + <location>Gizmo2_High_exec</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_SPACE_Gizmo2_High_Factory_Impl</string> + </value> + </value> + </execParameter> + </artifact> + + <artifact id="_3501F7B8-A724-44D5-B178-B66BD6AF4DD0"> + <name>SPACE.ImplementationArtifacts.Gizmo2_High.Gizmo2_High_stub</name> + <source/> + <node/> + <location>Gizmo2_High_stub</location> + </artifact> + + <artifact id="_92D4FB89-78F9-403D-84F4-31E80445F6E5"> + <name>SPACE.ImplementationArtifacts.Gizmo2_High.Gizmo2_High_svnt</name> + <source/> + <node/> + <location>Gizmo2_High_svnt</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_SPACE_Gizmo2_High_Factory_Servant</string> + </value> + </value> + </execParameter> + </artifact> + + <artifact id="_6053785F-482D-4DFC-B6A1-2678FEB98F6D"> + <name>SPACE.ImplementationArtifacts.Analysis_ComponentArtifacts.Analysis_Component_stub</name> + <source/> + <node/> + <location>Analysis_Component_stub</location> + </artifact> + + <artifact id="_26E18897-E0CF-4302-AD68-4C4186BEF1ED"> + <name>SPACE.ImplementationArtifacts.Analysis_ComponentArtifacts.Analysis_Component_svnt</name> + <source/> + <node/> + <location>Analysis_Component_svnt</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_SPACE_Analysis_Component_Home_Servant</string> + </value> + </value> + </execParameter> + </artifact> + + <artifact id="_4A6A8E09-2BB0-4120-8B93-382E49CA82E4"> + <name>SPACE.ImplementationArtifacts.Analysis_ComponentArtifacts.Analysis_Component_exec</name> + <source/> + <node/> + <location>Analysis_Component_exec</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_SPACE_Analysis_Component_Home_Impl</string> + </value> + </value> + </execParameter> + </artifact> + +</Deployment:deploymentPlan> diff --git a/CIAO/examples/space/descriptors/multi_SPACE.cdp b/CIAO/examples/space/descriptors/multi_SPACE.cdp new file mode 100644 index 00000000000..f3ee9f5a449 --- /dev/null +++ b/CIAO/examples/space/descriptors/multi_SPACE.cdp @@ -0,0 +1,913 @@ +<?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>4FC33490-49B5-4633-9ECB-DF1980C04843</UUID> + + <implementation id="_7CB380A7-8BCD-44C5-8D12-63AD69D753BD"> + <name>SPACE.ComponentImpl.Gizmo1_Low.Gizmo1_Low</name> + <source/> + <artifact>_A834AB4E-13EA-4F28-88B5-2FDD4589E49D</artifact> + <artifact>_8780AED5-0E0F-4C34-B2B3-05E48B9B83AF</artifact> + <artifact>_12BF8D22-06AA-49E1-89DF-4A0B34F321DC</artifact> + </implementation> + + <implementation id="_864725F9-CBB2-462E-85F2-CE44C668A394"> + <name>SPACE.ComponentImpl.Gizmo1_Medium.Gizmo1_Medium</name> + <source/> + <artifact>_CFC907DD-5AD7-4277-9116-A948BD5B5623</artifact> + <artifact>_E86E0896-4B2E-47FA-A3A4-1E19BCC2C9E9</artifact> + <artifact>_F33A4BF0-3679-4B1C-A4B7-C0D128E10F63</artifact> + </implementation> + + <implementation id="_A622DD4F-F709-479E-AEC6-80680D6B5439"> + <name>SPACE.ComponentImpl.Comm_Component.Comm_Component</name> + <source/> + <artifact>_8B2B3F58-9B5F-47A6-BECC-1E449ECC3E9A</artifact> + <artifact>_8D1B2EB6-C09E-4B06-961F-B8A98C6ADFE6</artifact> + <artifact>_38A51483-49B8-4602-BEF2-7FFFE366D194</artifact> + </implementation> + + <implementation id="_47EB0690-2A1B-42F6-AA60-B901814E884E"> + <name>SPACE.ComponentImpl.Compression_Component.Compression_Component</name> + <source/> + <artifact>_7EF85D5C-AE3F-4A80-8DB4-10F7C2D651D5</artifact> + <artifact>_200E62B5-0D3A-431C-A90C-481A336DC229</artifact> + <artifact>_3D04ECCB-692D-42C6-9743-628924E163DD</artifact> + </implementation> + + <implementation id="_DB70C55B-3312-4279-9354-73B0DF98DAAA"> + <name>SPACE.ComponentImpl.Gizmo2_Medium.Gizmo2_Medium</name> + <source/> + <artifact>_30D9EBBA-D1E3-42B1-873F-14DF3EB1D0A1</artifact> + <artifact>_DFE266D1-330C-471B-9863-C4CECB17C4A9</artifact> + <artifact>_58324120-AF86-4265-859E-609B7CEB55CF</artifact> + </implementation> + + <implementation id="_8E619279-F191-495B-86D9-8813967D73EB"> + <name>SPACE.ComponentImpl.Filter_Component.Filter_Component</name> + <source/> + <artifact>_26921C94-D013-4957-815B-7D2984F8224E</artifact> + <artifact>_CE12D6F8-B71F-44A4-AE65-21E5C2F38925</artifact> + <artifact>_55626C35-16B1-4990-BA9E-64C1836E32D8</artifact> + </implementation> + + <implementation id="_12C96C83-45D4-4F70-BE5F-74FD05037401"> + <name>SPACE.ComponentImpl.Gizmo1_High.Gizmo1_High</name> + <source/> + <artifact>_9C7075AC-ED5E-427B-94F3-8212ED5ED66E</artifact> + <artifact>_E1DB4AFF-7A1F-47EF-9C17-41F9AF3B5C70</artifact> + <artifact>_C7BC8AF7-7532-4C80-A5A2-19508FF7AB32</artifact> + </implementation> + + <implementation id="_C2969BE6-A179-4D55-BB48-03DA3C2A4D21"> + <name>SPACE.ComponentImpl.Gizmo2_High.Gizmo2_High</name> + <source/> + <artifact>_13520379-D48D-448B-A1C7-CC5A8265E4A7</artifact> + <artifact>_3501F7B8-A724-44D5-B178-B66BD6AF4DD0</artifact> + <artifact>_92D4FB89-78F9-403D-84F4-31E80445F6E5</artifact> + </implementation> + + <implementation id="_06C15E63-DC7A-4EFF-AC46-791555C755E9"> + <name>SPACE.ComponentImpl.Analysis_ComponentImplementation.Analysis_ComponentMonolithicImpl</name> + <source/> + <artifact>_6053785F-482D-4DFC-B6A1-2678FEB98F6D</artifact> + <artifact>_26E18897-E0CF-4302-AD68-4C4186BEF1ED</artifact> + <artifact>_4A6A8E09-2BB0-4120-8B93-382E49CA82E4</artifact> + </implementation> + + <instance id="SPACE.ComponentImpl.SPACE.SPACE.Space_Station.Linux_1.Filter_Component"> + <name>SPACE.ComponentImpl.SPACE.SPACE.Space_Station.Linux_1.Filter_Component</name> + <node>Linux_1</node> + <source/> + <implementation>_8E619279-F191-495B-86D9-8813967D73EB</implementation> + </instance> + + <instance id="SPACE.ComponentImpl.SPACE.SPACE.Space_Station.Linux_1.Compression_Component"> + <name>SPACE.ComponentImpl.SPACE.SPACE.Space_Station.Linux_1.Compression_Component</name> + <node>Linux_1</node> + <source/> + <implementation>_47EB0690-2A1B-42F6-AA60-B901814E884E</implementation> + </instance> + + <instance id="SPACE.ComponentImpl.SPACE.SPACE.Space_Station.Linux_1.Comm_Component"> + <name>SPACE.ComponentImpl.SPACE.SPACE.Space_Station.Linux_1.Comm_Component</name> + <node>Linux_1</node> + <source/> + <implementation>_A622DD4F-F709-479E-AEC6-80680D6B5439</implementation> + </instance> + + <instance id="SPACE.ComponentImpl.SPACE.SPACE.Space_Station.VxWorks_1.Gizmo2_Medium"> + <name>SPACE.ComponentImpl.SPACE.SPACE.Space_Station.VxWorks_1.Gizmo2_Medium</name> + <node>VxWorks_1</node> + <source/> + <implementation>_DB70C55B-3312-4279-9354-73B0DF98DAAA</implementation> + </instance> + + <instance id="SPACE.ComponentImpl.SPACE.SPACE.Space_Station.VxWorks_1.Gizmo1_Low"> + <name>SPACE.ComponentImpl.SPACE.SPACE.Space_Station.VxWorks_1.Gizmo1_Low</name> + <node>VxWorks_1</node> + <source/> + <implementation>_7CB380A7-8BCD-44C5-8D12-63AD69D753BD</implementation> + </instance> + + <instance id="SPACE.ComponentImpl.SPACE.SPACE.Space_Station.VxWorks_1.Gizmo1_Medium"> + <name>SPACE.ComponentImpl.SPACE.SPACE.Space_Station.VxWorks_1.Gizmo1_Medium</name> + <node>VxWorks_1</node> + <source/> + <implementation>_864725F9-CBB2-462E-85F2-CE44C668A394</implementation> + </instance> + + <instance id="SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_3.Gizmo2_Medium"> + <name>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_3.Gizmo2_Medium</name> + <node>VxWorks_3</node> + <source/> + <implementation>_DB70C55B-3312-4279-9354-73B0DF98DAAA</implementation> + </instance> + + <instance id="SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_3.Gizmo1_Low"> + <name>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_3.Gizmo1_Low</name> + <node>VxWorks_3</node> + <source/> + <implementation>_7CB380A7-8BCD-44C5-8D12-63AD69D753BD</implementation> + </instance> + + <instance id="SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_3.Gizmo1_Medium"> + <name>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_3.Gizmo1_Medium</name> + <node>VxWorks_3</node> + <source/> + <implementation>_864725F9-CBB2-462E-85F2-CE44C668A394</implementation> + </instance> + + <instance id="SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_3.Compression_Component"> + <name>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_3.Compression_Component</name> + <node>Linux_3</node> + <source/> + <implementation>_47EB0690-2A1B-42F6-AA60-B901814E884E</implementation> + </instance> + + <instance id="SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_3.Filter_Component"> + <name>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_3.Filter_Component</name> + <node>Linux_3</node> + <source/> + <implementation>_8E619279-F191-495B-86D9-8813967D73EB</implementation> + </instance> + + <instance id="SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_3.Comm_Component"> + <name>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_3.Comm_Component</name> + <node>Linux_3</node> + <source/> + <implementation>_A622DD4F-F709-479E-AEC6-80680D6B5439</implementation> + </instance> + + <instance id="SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_4.Compression_Component"> + <name>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_4.Compression_Component</name> + <node>Linux_4</node> + <source/> + <implementation>_47EB0690-2A1B-42F6-AA60-B901814E884E</implementation> + </instance> + + <instance id="SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_4.Comm_Component"> + <name>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_4.Comm_Component</name> + <node>Linux_4</node> + <source/> + <implementation>_A622DD4F-F709-479E-AEC6-80680D6B5439</implementation> + </instance> + + <instance id="SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_4.Filter_Component"> + <name>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_4.Filter_Component</name> + <node>Linux_4</node> + <source/> + <implementation>_8E619279-F191-495B-86D9-8813967D73EB</implementation> + </instance> + + <instance id="SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_2.Compression_Component"> + <name>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_2.Compression_Component</name> + <node>Linux_2</node> + <source/> + <implementation>_47EB0690-2A1B-42F6-AA60-B901814E884E</implementation> + </instance> + + <instance id="SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_2.Filter_Component"> + <name>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_2.Filter_Component</name> + <node>Linux_2</node> + <source/> + <implementation>_8E619279-F191-495B-86D9-8813967D73EB</implementation> + </instance> + + <instance id="SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_2.Comm_Component"> + <name>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_2.Comm_Component</name> + <node>Linux_2</node> + <source/> + <implementation>_A622DD4F-F709-479E-AEC6-80680D6B5439</implementation> + </instance> + + <instance id="SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_2.Gizmo2_Medium"> + <name>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_2.Gizmo2_Medium</name> + <node>VxWorks_2</node> + <source/> + <implementation>_DB70C55B-3312-4279-9354-73B0DF98DAAA</implementation> + </instance> + + <instance id="SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_2.Gizmo1_Low"> + <name>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_2.Gizmo1_Low</name> + <node>VxWorks_2</node> + <source/> + <implementation>_7CB380A7-8BCD-44C5-8D12-63AD69D753BD</implementation> + </instance> + + <instance id="SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_2.Gizmo1_Medium"> + <name>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_2.Gizmo1_Medium</name> + <node>VxWorks_2</node> + <source/> + <implementation>_864725F9-CBB2-462E-85F2-CE44C668A394</implementation> + </instance> + + <instance id="SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_4.Gizmo2_Medium"> + <name>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_4.Gizmo2_Medium</name> + <node>VxWorks_4</node> + <source/> + <implementation>_DB70C55B-3312-4279-9354-73B0DF98DAAA</implementation> + </instance> + + <instance id="SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_4.Gizmo1_Low"> + <name>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_4.Gizmo1_Low</name> + <node>VxWorks_4</node> + <source/> + <implementation>_7CB380A7-8BCD-44C5-8D12-63AD69D753BD</implementation> + </instance> + + <instance id="SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_4.Gizmo1_Medium"> + <name>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_4.Gizmo1_Medium</name> + <node>VxWorks_4</node> + <source/> + <implementation>_864725F9-CBB2-462E-85F2-CE44C668A394</implementation> + </instance> + + <connection> + <name>observation_data_recv_dataSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_3.Gizmo2_MediumSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_3.Filter_Component</name> + <internalEndpoint> + <portName>observation_data</portName> + <kind>EventEmitter</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_3.Gizmo2_Medium</instance> + </internalEndpoint> + <internalEndpoint> + <portName>recv_data</portName> + <kind>EventConsumer</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_3.Filter_Component</instance> + </internalEndpoint> + </connection> + + <connection> + <name>observation_data_recv_dataSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_3.Gizmo1_LowSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_3.Filter_Component</name> + <internalEndpoint> + <portName>observation_data</portName> + <kind>EventEmitter</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_3.Gizmo1_Low</instance> + </internalEndpoint> + <internalEndpoint> + <portName>recv_data</portName> + <kind>EventConsumer</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_3.Filter_Component</instance> + </internalEndpoint> + </connection> + + <connection> + <name>observation_data_recv_dataSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_3.Gizmo1_MediumSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_3.Filter_Component</name> + <internalEndpoint> + <portName>observation_data</portName> + <kind>EventEmitter</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_3.Gizmo1_Medium</instance> + </internalEndpoint> + <internalEndpoint> + <portName>recv_data</portName> + <kind>EventConsumer</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_3.Filter_Component</instance> + </internalEndpoint> + </connection> + + <connection> + <name>observation_data_recv_dataSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_2.Gizmo2_MediumSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_2.Filter_Component</name> + <internalEndpoint> + <portName>observation_data</portName> + <kind>EventEmitter</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_2.Gizmo2_Medium</instance> + </internalEndpoint> + <internalEndpoint> + <portName>recv_data</portName> + <kind>EventConsumer</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_2.Filter_Component</instance> + </internalEndpoint> + </connection> + + <connection> + <name>observation_data_recv_dataSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_2.Gizmo1_LowSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_2.Filter_Component</name> + <internalEndpoint> + <portName>observation_data</portName> + <kind>EventEmitter</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_2.Gizmo1_Low</instance> + </internalEndpoint> + <internalEndpoint> + <portName>recv_data</portName> + <kind>EventConsumer</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_2.Filter_Component</instance> + </internalEndpoint> + </connection> + + <connection> + <name>observation_data_recv_dataSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_2.Gizmo1_MediumSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_2.Filter_Component</name> + <internalEndpoint> + <portName>observation_data</portName> + <kind>EventEmitter</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_2.Gizmo1_Medium</instance> + </internalEndpoint> + <internalEndpoint> + <portName>recv_data</portName> + <kind>EventConsumer</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_2.Filter_Component</instance> + </internalEndpoint> + </connection> + + <connection> + <name>observation_data_recv_dataSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_4.Gizmo2_MediumSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_4.Filter_Component</name> + <internalEndpoint> + <portName>observation_data</portName> + <kind>EventEmitter</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_4.Gizmo2_Medium</instance> + </internalEndpoint> + <internalEndpoint> + <portName>recv_data</portName> + <kind>EventConsumer</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_4.Filter_Component</instance> + </internalEndpoint> + </connection> + + <connection> + <name>observation_data_recv_dataSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_4.Gizmo1_LowSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_4.Filter_Component</name> + <internalEndpoint> + <portName>observation_data</portName> + <kind>EventEmitter</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_4.Gizmo1_Low</instance> + </internalEndpoint> + <internalEndpoint> + <portName>recv_data</portName> + <kind>EventConsumer</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_4.Filter_Component</instance> + </internalEndpoint> + </connection> + + <connection> + <name>observation_data_recv_dataSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_4.Gizmo1_MediumSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_4.Filter_Component</name> + <internalEndpoint> + <portName>observation_data</portName> + <kind>EventEmitter</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_4.Gizmo1_Medium</instance> + </internalEndpoint> + <internalEndpoint> + <portName>recv_data</portName> + <kind>EventConsumer</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_4.Filter_Component</instance> + </internalEndpoint> + </connection> + + <connection> + <name>observation_data_recv_dataSPACE.ComponentImpl.SPACE.SPACE.Space_Station.VxWorks_1.Gizmo2_MediumSPACE.ComponentImpl.SPACE.SPACE.Space_Station.Linux_1.Filter_Component</name> + <internalEndpoint> + <portName>observation_data</portName> + <kind>EventEmitter</kind> + <instance>SPACE.ComponentImpl.SPACE.SPACE.Space_Station.VxWorks_1.Gizmo2_Medium</instance> + </internalEndpoint> + <internalEndpoint> + <portName>recv_data</portName> + <kind>EventConsumer</kind> + <instance>SPACE.ComponentImpl.SPACE.SPACE.Space_Station.Linux_1.Filter_Component</instance> + </internalEndpoint> + </connection> + + <connection> + <name>observation_data_recv_dataSPACE.ComponentImpl.SPACE.SPACE.Space_Station.VxWorks_1.Gizmo1_LowSPACE.ComponentImpl.SPACE.SPACE.Space_Station.Linux_1.Filter_Component</name> + <internalEndpoint> + <portName>observation_data</portName> + <kind>EventEmitter</kind> + <instance>SPACE.ComponentImpl.SPACE.SPACE.Space_Station.VxWorks_1.Gizmo1_Low</instance> + </internalEndpoint> + <internalEndpoint> + <portName>recv_data</portName> + <kind>EventConsumer</kind> + <instance>SPACE.ComponentImpl.SPACE.SPACE.Space_Station.Linux_1.Filter_Component</instance> + </internalEndpoint> + </connection> + + <connection> + <name>observation_data_recv_dataSPACE.ComponentImpl.SPACE.SPACE.Space_Station.VxWorks_1.Gizmo1_MediumSPACE.ComponentImpl.SPACE.SPACE.Space_Station.Linux_1.Filter_Component</name> + <internalEndpoint> + <portName>observation_data</portName> + <kind>EventEmitter</kind> + <instance>SPACE.ComponentImpl.SPACE.SPACE.Space_Station.VxWorks_1.Gizmo1_Medium</instance> + </internalEndpoint> + <internalEndpoint> + <portName>recv_data</portName> + <kind>EventConsumer</kind> + <instance>SPACE.ComponentImpl.SPACE.SPACE.Space_Station.Linux_1.Filter_Component</instance> + </internalEndpoint> + </connection> + + <connection> + <name>send_data_recv_dataSPACE.ComponentImpl.SPACE.SPACE.Space_Station.Linux_1.Filter_ComponentSPACE.ComponentImpl.SPACE.SPACE.Space_Station.Linux_1.Compression_Component</name> + <internalEndpoint> + <portName>send_data</portName> + <kind>EventEmitter</kind> + <instance>SPACE.ComponentImpl.SPACE.SPACE.Space_Station.Linux_1.Filter_Component</instance> + </internalEndpoint> + <internalEndpoint> + <portName>recv_data</portName> + <kind>EventConsumer</kind> + <instance>SPACE.ComponentImpl.SPACE.SPACE.Space_Station.Linux_1.Compression_Component</instance> + </internalEndpoint> + </connection> + + <connection> + <name>send_data_science_dataSPACE.ComponentImpl.SPACE.SPACE.Space_Station.Linux_1.Compression_ComponentSPACE.ComponentImpl.SPACE.SPACE.Space_Station.Linux_1.Comm_Component</name> + <internalEndpoint> + <portName>send_data</portName> + <kind>EventEmitter</kind> + <instance>SPACE.ComponentImpl.SPACE.SPACE.Space_Station.Linux_1.Compression_Component</instance> + </internalEndpoint> + <internalEndpoint> + <portName>science_data</portName> + <kind>EventConsumer</kind> + <instance>SPACE.ComponentImpl.SPACE.SPACE.Space_Station.Linux_1.Comm_Component</instance> + </internalEndpoint> + </connection> + + <connection> + <name>send_data_science_dataSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_3.Compression_ComponentSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_3.Comm_Component</name> + <internalEndpoint> + <portName>send_data</portName> + <kind>EventEmitter</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_3.Compression_Component</instance> + </internalEndpoint> + <internalEndpoint> + <portName>science_data</portName> + <kind>EventConsumer</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_3.Comm_Component</instance> + </internalEndpoint> + </connection> + + <connection> + <name>send_data_recv_dataSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_3.Filter_ComponentSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_3.Compression_Component</name> + <internalEndpoint> + <portName>send_data</portName> + <kind>EventEmitter</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_3.Filter_Component</instance> + </internalEndpoint> + <internalEndpoint> + <portName>recv_data</portName> + <kind>EventConsumer</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_3.Compression_Component</instance> + </internalEndpoint> + </connection> + + <connection> + <name>send_data_science_dataSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_4.Compression_ComponentSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_4.Comm_Component</name> + <internalEndpoint> + <portName>send_data</portName> + <kind>EventEmitter</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_4.Compression_Component</instance> + </internalEndpoint> + <internalEndpoint> + <portName>science_data</portName> + <kind>EventConsumer</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_4.Comm_Component</instance> + </internalEndpoint> + </connection> + + <connection> + <name>send_data_recv_dataSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_4.Filter_ComponentSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_4.Compression_Component</name> + <internalEndpoint> + <portName>send_data</portName> + <kind>EventEmitter</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_4.Filter_Component</instance> + </internalEndpoint> + <internalEndpoint> + <portName>recv_data</portName> + <kind>EventConsumer</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_4.Compression_Component</instance> + </internalEndpoint> + </connection> + + <connection> + <name>send_data_science_dataSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_2.Compression_ComponentSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_2.Comm_Component</name> + <internalEndpoint> + <portName>send_data</portName> + <kind>EventEmitter</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_2.Compression_Component</instance> + </internalEndpoint> + <internalEndpoint> + <portName>science_data</portName> + <kind>EventConsumer</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_2.Comm_Component</instance> + </internalEndpoint> + </connection> + + <connection> + <name>send_data_recv_dataSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_2.Filter_ComponentSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_2.Compression_Component</name> + <internalEndpoint> + <portName>send_data</portName> + <kind>EventEmitter</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_2.Filter_Component</instance> + </internalEndpoint> + <internalEndpoint> + <portName>recv_data</portName> + <kind>EventConsumer</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_2.Compression_Component</instance> + </internalEndpoint> + </connection> + + <artifact id="_58324120-AF86-4265-859E-609B7CEB55CF"> + <name>SPACE.ImplementationArtifacts.Gizmo2_Medium.Gizmo2_Medium_svnt</name> + <source/> + <node/> + <location>Gizmo2_Medium_svnt</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_SPACE_Gizmo2_Medium_Factory_Servant</string> + </value> + </value> + </execParameter> + </artifact> + + <artifact id="_DFE266D1-330C-471B-9863-C4CECB17C4A9"> + <name>SPACE.ImplementationArtifacts.Gizmo2_Medium.Gizmo2_Medium_exec</name> + <source/> + <node/> + <location>Gizmo2_Medium_exec</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_SPACE_Gizmo2_Medium_Factory_Impl</string> + </value> + </value> + </execParameter> + </artifact> + + <artifact id="_30D9EBBA-D1E3-42B1-873F-14DF3EB1D0A1"> + <name>SPACE.ImplementationArtifacts.Gizmo2_Medium.Gizmo2_Medium_stub</name> + <source/> + <node/> + <location>Gizmo2_Medium_stub</location> + </artifact> + + <artifact id="_F33A4BF0-3679-4B1C-A4B7-C0D128E10F63"> + <name>SPACE.ImplementationArtifacts.Gizmo1_Medium.Gizmo1_Medium_svnt</name> + <source/> + <node/> + <location>Gizmo1_Medium_svnt</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_SPACE_Gizmo1_Medium_Factory_Servant</string> + </value> + </value> + </execParameter> + </artifact> + + <artifact id="_E86E0896-4B2E-47FA-A3A4-1E19BCC2C9E9"> + <name>SPACE.ImplementationArtifacts.Gizmo1_Medium.Gizmo1_Medium_stub</name> + <source/> + <node/> + <location>Gizmo1_Medium_stub</location> + </artifact> + + <artifact id="_CFC907DD-5AD7-4277-9116-A948BD5B5623"> + <name>SPACE.ImplementationArtifacts.Gizmo1_Medium.Gizmo1_Medium_exec</name> + <source/> + <node/> + <location>Gizmo1_Medium_exec</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_SPACE_Gizmo1_Medium_Factory_Impl</string> + </value> + </value> + </execParameter> + </artifact> + + <artifact id="_8780AED5-0E0F-4C34-B2B3-05E48B9B83AF"> + <name>SPACE.ImplementationArtifacts.Gizmo1_Low.Gizmo1_Low_svnt</name> + <source/> + <node/> + <location>Gizmo1_Low_svnt</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_SPACE_Gizmo1_Low_Factory_Servant</string> + </value> + </value> + </execParameter> + </artifact> + + <artifact id="_12BF8D22-06AA-49E1-89DF-4A0B34F321DC"> + <name>SPACE.ImplementationArtifacts.Gizmo1_Low.Gizmo1_Low_exec</name> + <source/> + <node/> + <location>Gizmo1_Low_exec</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_SPACE_Gizmo1_Low_Factory_Impl</string> + </value> + </value> + </execParameter> + </artifact> + + <artifact id="_A834AB4E-13EA-4F28-88B5-2FDD4589E49D"> + <name>SPACE.ImplementationArtifacts.Gizmo1_Low.Gizmo1_Low_stub</name> + <source/> + <node/> + <location>Gizmo1_Low_stub</location> + </artifact> + + <artifact id="_8D1B2EB6-C09E-4B06-961F-B8A98C6ADFE6"> + <name>SPACE.ImplementationArtifacts.Comm_Compnent.Comm_Component_svnt</name> + <source/> + <node/> + <location>Comm_Component_svnt</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_SPACE_Comm_Component_Factory_Servant</string> + </value> + </value> + </execParameter> + </artifact> + + <artifact id="_8B2B3F58-9B5F-47A6-BECC-1E449ECC3E9A"> + <name>SPACE.ImplementationArtifacts.Comm_Compnent.Comm_Component_stub</name> + <source/> + <node/> + <location>Comm_Component_stub</location> + </artifact> + + <artifact id="_38A51483-49B8-4602-BEF2-7FFFE366D194"> + <name>SPACE.ImplementationArtifacts.Comm_Compnent.Comm_Component_exec</name> + <source/> + <node/> + <location>Comm_Component_exec</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_SPACE_Comm_Component_Factory_Impl</string> + </value> + </value> + </execParameter> + </artifact> + + <artifact id="_200E62B5-0D3A-431C-A90C-481A336DC229"> + <name>SPACE.ImplementationArtifacts.Compression_Component.Compression_Component_svnt</name> + <source/> + <node/> + <location>Compression_Component_svnt</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_SPACE_Compression_Component_Factory_Servant</string> + </value> + </value> + </execParameter> + </artifact> + + <artifact id="_7EF85D5C-AE3F-4A80-8DB4-10F7C2D651D5"> + <name>SPACE.ImplementationArtifacts.Compression_Component.Compression_Component_stub</name> + <source/> + <node/> + <location>Compression_Component_stub</location> + </artifact> + + <artifact id="_3D04ECCB-692D-42C6-9743-628924E163DD"> + <name>SPACE.ImplementationArtifacts.Compression_Component.Compression_Component_exec</name> + <source/> + <node/> + <location>Compression_Component_exec</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_SPACE_Compression_Component_Factory_Impl</string> + </value> + </value> + </execParameter> + </artifact> + + <artifact id="_CE12D6F8-B71F-44A4-AE65-21E5C2F38925"> + <name>SPACE.ImplementationArtifacts.Filter_Component.Filter_Component_svnt</name> + <source/> + <node/> + <location>Filter_Component_svnt</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_SPACE_Filter_Component_Factory_Servant</string> + </value> + </value> + </execParameter> + </artifact> + + <artifact id="_26921C94-D013-4957-815B-7D2984F8224E"> + <name>SPACE.ImplementationArtifacts.Filter_Component.Filter_Component_stub</name> + <source/> + <node/> + <location>Filter_Component_stub</location> + </artifact> + + <artifact id="_55626C35-16B1-4990-BA9E-64C1836E32D8"> + <name>SPACE.ImplementationArtifacts.Filter_Component.Filter_Component_exec</name> + <source/> + <node/> + <location>Filter_Component_exec</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_SPACE_Filter_Component_Factory_Impl</string> + </value> + </value> + </execParameter> + </artifact> + + <artifact id="_C7BC8AF7-7532-4C80-A5A2-19508FF7AB32"> + <name>SPACE.ImplementationArtifacts.Gizmo1_High.Gizmo1_High_exec</name> + <source/> + <node/> + <location>Gizmo1_High_exec</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_SPACE_Gizmo1_High_Factory_Impl</string> + </value> + </value> + </execParameter> + </artifact> + + <artifact id="_E1DB4AFF-7A1F-47EF-9C17-41F9AF3B5C70"> + <name>SPACE.ImplementationArtifacts.Gizmo1_High.Gizmo1_High_stub</name> + <source/> + <node/> + <location>Gizmo1_High_stub</location> + </artifact> + + <artifact id="_9C7075AC-ED5E-427B-94F3-8212ED5ED66E"> + <name>SPACE.ImplementationArtifacts.Gizmo1_High.Gizmo1_High_svnt</name> + <source/> + <node/> + <location>Gizmo1_High_svnt</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_SPACE_Gizmo1_High_Factory_Servant</string> + </value> + </value> + </execParameter> + </artifact> + + <artifact id="_13520379-D48D-448B-A1C7-CC5A8265E4A7"> + <name>SPACE.ImplementationArtifacts.Gizmo2_High.Gizmo2_High_exec</name> + <source/> + <node/> + <location>Gizmo2_High_exec</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_SPACE_Gizmo2_High_Factory_Impl</string> + </value> + </value> + </execParameter> + </artifact> + + <artifact id="_3501F7B8-A724-44D5-B178-B66BD6AF4DD0"> + <name>SPACE.ImplementationArtifacts.Gizmo2_High.Gizmo2_High_stub</name> + <source/> + <node/> + <location>Gizmo2_High_stub</location> + </artifact> + + <artifact id="_92D4FB89-78F9-403D-84F4-31E80445F6E5"> + <name>SPACE.ImplementationArtifacts.Gizmo2_High.Gizmo2_High_svnt</name> + <source/> + <node/> + <location>Gizmo2_High_svnt</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_SPACE_Gizmo2_High_Factory_Servant</string> + </value> + </value> + </execParameter> + </artifact> + + <artifact id="_6053785F-482D-4DFC-B6A1-2678FEB98F6D"> + <name>SPACE.ImplementationArtifacts.Analysis_ComponentArtifacts.Analysis_Component_stub</name> + <source/> + <node/> + <location>Analysis_Component_stub</location> + </artifact> + + <artifact id="_26E18897-E0CF-4302-AD68-4C4186BEF1ED"> + <name>SPACE.ImplementationArtifacts.Analysis_ComponentArtifacts.Analysis_Component_svnt</name> + <source/> + <node/> + <location>Analysis_Component_svnt</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_SPACE_Analysis_Component_Home_Servant</string> + </value> + </value> + </execParameter> + </artifact> + + <artifact id="_4A6A8E09-2BB0-4120-8B93-382E49CA82E4"> + <name>SPACE.ImplementationArtifacts.Analysis_ComponentArtifacts.Analysis_Component_exec</name> + <source/> + <node/> + <location>Analysis_Component_exec</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_SPACE_Analysis_Component_Home_Impl</string> + </value> + </value> + </execParameter> + </artifact> + +</Deployment:deploymentPlan> diff --git a/CIAO/examples/space/descriptors/multi_SPACE_new.cdp b/CIAO/examples/space/descriptors/multi_SPACE_new.cdp new file mode 100644 index 00000000000..fc066baa83e --- /dev/null +++ b/CIAO/examples/space/descriptors/multi_SPACE_new.cdp @@ -0,0 +1,913 @@ +<?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>4FC33490-49B5-4633-9ECB-DF1980C04843</UUID> + + <implementation id="_7CB380A7-8BCD-44C5-8D12-63AD69D753BD"> + <name>SPACE.ComponentImpl.Gizmo1_Low.Gizmo1_Low</name> + <source/> + <artifact>_A834AB4E-13EA-4F28-88B5-2FDD4589E49D</artifact> + <artifact>_8780AED5-0E0F-4C34-B2B3-05E48B9B83AF</artifact> + <artifact>_12BF8D22-06AA-49E1-89DF-4A0B34F321DC</artifact> + </implementation> + + <implementation id="_864725F9-CBB2-462E-85F2-CE44C668A394"> + <name>SPACE.ComponentImpl.Gizmo1_Medium.Gizmo1_Medium</name> + <source/> + <artifact>_CFC907DD-5AD7-4277-9116-A948BD5B5623</artifact> + <artifact>_E86E0896-4B2E-47FA-A3A4-1E19BCC2C9E9</artifact> + <artifact>_F33A4BF0-3679-4B1C-A4B7-C0D128E10F63</artifact> + </implementation> + + <implementation id="_A622DD4F-F709-479E-AEC6-80680D6B5439"> + <name>SPACE.ComponentImpl.Comm_Component.Comm_Component</name> + <source/> + <artifact>_8B2B3F58-9B5F-47A6-BECC-1E449ECC3E9A</artifact> + <artifact>_8D1B2EB6-C09E-4B06-961F-B8A98C6ADFE6</artifact> + <artifact>_38A51483-49B8-4602-BEF2-7FFFE366D194</artifact> + </implementation> + + <implementation id="_47EB0690-2A1B-42F6-AA60-B901814E884E"> + <name>SPACE.ComponentImpl.Compression_Component.Compression_Component</name> + <source/> + <artifact>_7EF85D5C-AE3F-4A80-8DB4-10F7C2D651D5</artifact> + <artifact>_200E62B5-0D3A-431C-A90C-481A336DC229</artifact> + <artifact>_3D04ECCB-692D-42C6-9743-628924E163DD</artifact> + </implementation> + + <implementation id="_DB70C55B-3312-4279-9354-73B0DF98DAAA"> + <name>SPACE.ComponentImpl.Gizmo2_Medium.Gizmo2_Medium</name> + <source/> + <artifact>_30D9EBBA-D1E3-42B1-873F-14DF3EB1D0A1</artifact> + <artifact>_DFE266D1-330C-471B-9863-C4CECB17C4A9</artifact> + <artifact>_58324120-AF86-4265-859E-609B7CEB55CF</artifact> + </implementation> + + <implementation id="_8E619279-F191-495B-86D9-8813967D73EB"> + <name>SPACE.ComponentImpl.Filter_Component.Filter_Component</name> + <source/> + <artifact>_26921C94-D013-4957-815B-7D2984F8224E</artifact> + <artifact>_CE12D6F8-B71F-44A4-AE65-21E5C2F38925</artifact> + <artifact>_55626C35-16B1-4990-BA9E-64C1836E32D8</artifact> + </implementation> + + <implementation id="_12C96C83-45D4-4F70-BE5F-74FD05037401"> + <name>SPACE.ComponentImpl.Gizmo1_High.Gizmo1_High</name> + <source/> + <artifact>_9C7075AC-ED5E-427B-94F3-8212ED5ED66E</artifact> + <artifact>_E1DB4AFF-7A1F-47EF-9C17-41F9AF3B5C70</artifact> + <artifact>_C7BC8AF7-7532-4C80-A5A2-19508FF7AB32</artifact> + </implementation> + + <implementation id="_C2969BE6-A179-4D55-BB48-03DA3C2A4D21"> + <name>SPACE.ComponentImpl.Gizmo2_High.Gizmo2_High</name> + <source/> + <artifact>_13520379-D48D-448B-A1C7-CC5A8265E4A7</artifact> + <artifact>_3501F7B8-A724-44D5-B178-B66BD6AF4DD0</artifact> + <artifact>_92D4FB89-78F9-403D-84F4-31E80445F6E5</artifact> + </implementation> + + <implementation id="_06C15E63-DC7A-4EFF-AC46-791555C755E9"> + <name>SPACE.ComponentImpl.Analysis_ComponentImplementation.Analysis_ComponentMonolithicImpl</name> + <source/> + <artifact>_6053785F-482D-4DFC-B6A1-2678FEB98F6D</artifact> + <artifact>_26E18897-E0CF-4302-AD68-4C4186BEF1ED</artifact> + <artifact>_4A6A8E09-2BB0-4120-8B93-382E49CA82E4</artifact> + </implementation> + + <instance id="SPACE.ComponentImpl.SPACE.SPACE.Space_Station.Linux_1.Filter_Component"> + <name>SPACE.ComponentImpl.SPACE.SPACE.Space_Station.Linux_1.Filter_Component</name> + <node>blade33</node> + <source/> + <implementation>_8E619279-F191-495B-86D9-8813967D73EB</implementation> + </instance> + + <instance id="SPACE.ComponentImpl.SPACE.SPACE.Space_Station.Linux_1.Compression_Component"> + <name>SPACE.ComponentImpl.SPACE.SPACE.Space_Station.Linux_1.Compression_Component</name> + <node>blade33</node> + <source/> + <implementation>_47EB0690-2A1B-42F6-AA60-B901814E884E</implementation> + </instance> + + <instance id="SPACE.ComponentImpl.SPACE.SPACE.Space_Station.Linux_1.Comm_Component"> + <name>SPACE.ComponentImpl.SPACE.SPACE.Space_Station.Linux_1.Comm_Component</name> + <node>blade33</node> + <source/> + <implementation>_A622DD4F-F709-479E-AEC6-80680D6B5439</implementation> + </instance> + + <instance id="SPACE.ComponentImpl.SPACE.SPACE.Space_Station.VxWorks_1.Gizmo2_Medium"> + <name>SPACE.ComponentImpl.SPACE.SPACE.Space_Station.VxWorks_1.Gizmo2_Medium</name> + <node>blade41</node> + <source/> + <implementation>_DB70C55B-3312-4279-9354-73B0DF98DAAA</implementation> + </instance> + + <instance id="SPACE.ComponentImpl.SPACE.SPACE.Space_Station.VxWorks_1.Gizmo1_Low"> + <name>SPACE.ComponentImpl.SPACE.SPACE.Space_Station.VxWorks_1.Gizmo1_Low</name> + <node>blade41</node> + <source/> + <implementation>_7CB380A7-8BCD-44C5-8D12-63AD69D753BD</implementation> + </instance> + + <instance id="SPACE.ComponentImpl.SPACE.SPACE.Space_Station.VxWorks_1.Gizmo1_Medium"> + <name>SPACE.ComponentImpl.SPACE.SPACE.Space_Station.VxWorks_1.Gizmo1_Medium</name> + <node>blade41</node> + <source>_ZN18CIDL_Gizmo1_Medium21Gizmo1_Medium_Context21push_observation_dataEPN5SPACE10Gizmo_DataE</source> + <implementation>_864725F9-CBB2-462E-85F2-CE44C668A394</implementation> + </instance> + + <instance id="SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_3.Gizmo2_Medium"> + <name>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_3.Gizmo2_Medium</name> + <node>blade36</node> + <source/> + <implementation>_DB70C55B-3312-4279-9354-73B0DF98DAAA</implementation> + </instance> + + <instance id="SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_3.Gizmo1_Low"> + <name>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_3.Gizmo1_Low</name> + <node>blade36</node> + <source/> + <implementation>_7CB380A7-8BCD-44C5-8D12-63AD69D753BD</implementation> + </instance> + + <instance id="SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_3.Gizmo1_Medium"> + <name>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_3.Gizmo1_Medium</name> + <node>blade36</node> + <source>_ZN18CIDL_Gizmo1_Medium21Gizmo1_Medium_Context21push_observation_dataEPN5SPACE10Gizmo_DataE</source> + <implementation>_864725F9-CBB2-462E-85F2-CE44C668A394</implementation> + </instance> + + <instance id="SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_3.Compression_Component"> + <name>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_3.Compression_Component</name> + <node>blade40</node> + <source/> + <implementation>_47EB0690-2A1B-42F6-AA60-B901814E884E</implementation> + </instance> + + <instance id="SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_3.Filter_Component"> + <name>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_3.Filter_Component</name> + <node>blade40</node> + <source/> + <implementation>_8E619279-F191-495B-86D9-8813967D73EB</implementation> + </instance> + + <instance id="SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_3.Comm_Component"> + <name>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_3.Comm_Component</name> + <node>blade40</node> + <source/> + <implementation>_A622DD4F-F709-479E-AEC6-80680D6B5439</implementation> + </instance> + + <instance id="SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_4.Compression_Component"> + <name>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_4.Compression_Component</name> + <node>blade39</node> + <source/> + <implementation>_47EB0690-2A1B-42F6-AA60-B901814E884E</implementation> + </instance> + + <instance id="SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_4.Comm_Component"> + <name>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_4.Comm_Component</name> + <node>blade39</node> + <source/> + <implementation>_A622DD4F-F709-479E-AEC6-80680D6B5439</implementation> + </instance> + + <instance id="SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_4.Filter_Component"> + <name>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_4.Filter_Component</name> + <node>blade39</node> + <source/> + <implementation>_8E619279-F191-495B-86D9-8813967D73EB</implementation> + </instance> + + <instance id="SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_2.Compression_Component"> + <name>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_2.Compression_Component</name> + <node>blade38</node> + <source/> + <implementation>_47EB0690-2A1B-42F6-AA60-B901814E884E</implementation> + </instance> + + <instance id="SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_2.Filter_Component"> + <name>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_2.Filter_Component</name> + <node>blade38</node> + <source/> + <implementation>_8E619279-F191-495B-86D9-8813967D73EB</implementation> + </instance> + + <instance id="SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_2.Comm_Component"> + <name>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_2.Comm_Component</name> + <node>blade38</node> + <source/> + <implementation>_A622DD4F-F709-479E-AEC6-80680D6B5439</implementation> + </instance> + + <instance id="SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_2.Gizmo2_Medium"> + <name>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_2.Gizmo2_Medium</name> + <node>blade42</node> + <source/> + <implementation>_DB70C55B-3312-4279-9354-73B0DF98DAAA</implementation> + </instance> + + <instance id="SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_2.Gizmo1_Low"> + <name>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_2.Gizmo1_Low</name> + <node>blade42</node> + <source/> + <implementation>_7CB380A7-8BCD-44C5-8D12-63AD69D753BD</implementation> + </instance> + + <instance id="SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_2.Gizmo1_Medium"> + <name>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_2.Gizmo1_Medium</name> + <node>blade42</node> + <source>_ZN18CIDL_Gizmo1_Medium21Gizmo1_Medium_Context21push_observation_dataEPN5SPACE10Gizmo_DataE</source> + <implementation>_864725F9-CBB2-462E-85F2-CE44C668A394</implementation> + </instance> + + <instance id="SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_4.Gizmo2_Medium"> + <name>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_4.Gizmo2_Medium</name> + <node>blade37</node> + <source/> + <implementation>_DB70C55B-3312-4279-9354-73B0DF98DAAA</implementation> + </instance> + + <instance id="SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_4.Gizmo1_Low"> + <name>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_4.Gizmo1_Low</name> + <node>blade37</node> + <source/> + <implementation>_7CB380A7-8BCD-44C5-8D12-63AD69D753BD</implementation> + </instance> + + <instance id="SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_4.Gizmo1_Medium"> + <name>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_4.Gizmo1_Medium</name> + <node>blade37</node> + <source>_ZN18CIDL_Gizmo1_Medium21Gizmo1_Medium_Context21push_observation_dataEPN5SPACE10Gizmo_DataE</source> + <implementation>_864725F9-CBB2-462E-85F2-CE44C668A394</implementation> + </instance> + + <connection> + <name>observation_data_recv_dataSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_3.Gizmo2_MediumSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_3.Filter_Component</name> + <internalEndpoint> + <portName>observation_data</portName> + <kind>EventEmitter</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_3.Gizmo2_Medium</instance> + </internalEndpoint> + <internalEndpoint> + <portName>recv_data</portName> + <kind>EventConsumer</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_3.Filter_Component</instance> + </internalEndpoint> + </connection> + + <connection> + <name>observation_data_recv_dataSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_3.Gizmo1_LowSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_3.Filter_Component</name> + <internalEndpoint> + <portName>observation_data</portName> + <kind>EventEmitter</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_3.Gizmo1_Low</instance> + </internalEndpoint> + <internalEndpoint> + <portName>recv_data</portName> + <kind>EventConsumer</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_3.Filter_Component</instance> + </internalEndpoint> + </connection> + + <connection> + <name>observation_data_recv_dataSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_3.Gizmo1_MediumSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_3.Filter_Component</name> + <internalEndpoint> + <portName>observation_data</portName> + <kind>EventEmitter</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_3.Gizmo1_Medium</instance> + </internalEndpoint> + <internalEndpoint> + <portName>recv_data</portName> + <kind>EventConsumer</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_3.Filter_Component</instance> + </internalEndpoint> + </connection> + + <connection> + <name>observation_data_recv_dataSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_2.Gizmo2_MediumSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_2.Filter_Component</name> + <internalEndpoint> + <portName>observation_data</portName> + <kind>EventEmitter</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_2.Gizmo2_Medium</instance> + </internalEndpoint> + <internalEndpoint> + <portName>recv_data</portName> + <kind>EventConsumer</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_2.Filter_Component</instance> + </internalEndpoint> + </connection> + + <connection> + <name>observation_data_recv_dataSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_2.Gizmo1_LowSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_2.Filter_Component</name> + <internalEndpoint> + <portName>observation_data</portName> + <kind>EventEmitter</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_2.Gizmo1_Low</instance> + </internalEndpoint> + <internalEndpoint> + <portName>recv_data</portName> + <kind>EventConsumer</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_2.Filter_Component</instance> + </internalEndpoint> + </connection> + + <connection> + <name>observation_data_recv_dataSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_2.Gizmo1_MediumSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_2.Filter_Component</name> + <internalEndpoint> + <portName>observation_data</portName> + <kind>EventEmitter</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_2.Gizmo1_Medium</instance> + </internalEndpoint> + <internalEndpoint> + <portName>recv_data</portName> + <kind>EventConsumer</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_2.Filter_Component</instance> + </internalEndpoint> + </connection> + + <connection> + <name>observation_data_recv_dataSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_4.Gizmo2_MediumSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_4.Filter_Component</name> + <internalEndpoint> + <portName>observation_data</portName> + <kind>EventEmitter</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_4.Gizmo2_Medium</instance> + </internalEndpoint> + <internalEndpoint> + <portName>recv_data</portName> + <kind>EventConsumer</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_4.Filter_Component</instance> + </internalEndpoint> + </connection> + + <connection> + <name>observation_data_recv_dataSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_4.Gizmo1_LowSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_4.Filter_Component</name> + <internalEndpoint> + <portName>observation_data</portName> + <kind>EventEmitter</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_4.Gizmo1_Low</instance> + </internalEndpoint> + <internalEndpoint> + <portName>recv_data</portName> + <kind>EventConsumer</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_4.Filter_Component</instance> + </internalEndpoint> + </connection> + + <connection> + <name>observation_data_recv_dataSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_4.Gizmo1_MediumSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_4.Filter_Component</name> + <internalEndpoint> + <portName>observation_data</portName> + <kind>EventEmitter</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.VxWorks_4.Gizmo1_Medium</instance> + </internalEndpoint> + <internalEndpoint> + <portName>recv_data</portName> + <kind>EventConsumer</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_4.Filter_Component</instance> + </internalEndpoint> + </connection> + + <connection> + <name>observation_data_recv_dataSPACE.ComponentImpl.SPACE.SPACE.Space_Station.VxWorks_1.Gizmo2_MediumSPACE.ComponentImpl.SPACE.SPACE.Space_Station.Linux_1.Filter_Component</name> + <internalEndpoint> + <portName>observation_data</portName> + <kind>EventEmitter</kind> + <instance>SPACE.ComponentImpl.SPACE.SPACE.Space_Station.VxWorks_1.Gizmo2_Medium</instance> + </internalEndpoint> + <internalEndpoint> + <portName>recv_data</portName> + <kind>EventConsumer</kind> + <instance>SPACE.ComponentImpl.SPACE.SPACE.Space_Station.Linux_1.Filter_Component</instance> + </internalEndpoint> + </connection> + + <connection> + <name>observation_data_recv_dataSPACE.ComponentImpl.SPACE.SPACE.Space_Station.VxWorks_1.Gizmo1_LowSPACE.ComponentImpl.SPACE.SPACE.Space_Station.Linux_1.Filter_Component</name> + <internalEndpoint> + <portName>observation_data</portName> + <kind>EventEmitter</kind> + <instance>SPACE.ComponentImpl.SPACE.SPACE.Space_Station.VxWorks_1.Gizmo1_Low</instance> + </internalEndpoint> + <internalEndpoint> + <portName>recv_data</portName> + <kind>EventConsumer</kind> + <instance>SPACE.ComponentImpl.SPACE.SPACE.Space_Station.Linux_1.Filter_Component</instance> + </internalEndpoint> + </connection> + + <connection> + <name>observation_data_recv_dataSPACE.ComponentImpl.SPACE.SPACE.Space_Station.VxWorks_1.Gizmo1_MediumSPACE.ComponentImpl.SPACE.SPACE.Space_Station.Linux_1.Filter_Component</name> + <internalEndpoint> + <portName>observation_data</portName> + <kind>EventEmitter</kind> + <instance>SPACE.ComponentImpl.SPACE.SPACE.Space_Station.VxWorks_1.Gizmo1_Medium</instance> + </internalEndpoint> + <internalEndpoint> + <portName>recv_data</portName> + <kind>EventConsumer</kind> + <instance>SPACE.ComponentImpl.SPACE.SPACE.Space_Station.Linux_1.Filter_Component</instance> + </internalEndpoint> + </connection> + + <connection> + <name>send_data_recv_dataSPACE.ComponentImpl.SPACE.SPACE.Space_Station.Linux_1.Filter_ComponentSPACE.ComponentImpl.SPACE.SPACE.Space_Station.Linux_1.Compression_Component</name> + <internalEndpoint> + <portName>send_data</portName> + <kind>EventEmitter</kind> + <instance>SPACE.ComponentImpl.SPACE.SPACE.Space_Station.Linux_1.Filter_Component</instance> + </internalEndpoint> + <internalEndpoint> + <portName>recv_data</portName> + <kind>EventConsumer</kind> + <instance>SPACE.ComponentImpl.SPACE.SPACE.Space_Station.Linux_1.Compression_Component</instance> + </internalEndpoint> + </connection> + + <connection> + <name>send_data_science_dataSPACE.ComponentImpl.SPACE.SPACE.Space_Station.Linux_1.Compression_ComponentSPACE.ComponentImpl.SPACE.SPACE.Space_Station.Linux_1.Comm_Component</name> + <internalEndpoint> + <portName>send_data</portName> + <kind>EventEmitter</kind> + <instance>SPACE.ComponentImpl.SPACE.SPACE.Space_Station.Linux_1.Compression_Component</instance> + </internalEndpoint> + <internalEndpoint> + <portName>science_data</portName> + <kind>EventConsumer</kind> + <instance>SPACE.ComponentImpl.SPACE.SPACE.Space_Station.Linux_1.Comm_Component</instance> + </internalEndpoint> + </connection> + + <connection> + <name>send_data_science_dataSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_3.Compression_ComponentSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_3.Comm_Component</name> + <internalEndpoint> + <portName>send_data</portName> + <kind>EventEmitter</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_3.Compression_Component</instance> + </internalEndpoint> + <internalEndpoint> + <portName>science_data</portName> + <kind>EventConsumer</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_3.Comm_Component</instance> + </internalEndpoint> + </connection> + + <connection> + <name>send_data_recv_dataSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_3.Filter_ComponentSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_3.Compression_Component</name> + <internalEndpoint> + <portName>send_data</portName> + <kind>EventEmitter</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_3.Filter_Component</instance> + </internalEndpoint> + <internalEndpoint> + <portName>recv_data</portName> + <kind>EventConsumer</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_3.Compression_Component</instance> + </internalEndpoint> + </connection> + + <connection> + <name>send_data_science_dataSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_4.Compression_ComponentSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_4.Comm_Component</name> + <internalEndpoint> + <portName>send_data</portName> + <kind>EventEmitter</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_4.Compression_Component</instance> + </internalEndpoint> + <internalEndpoint> + <portName>science_data</portName> + <kind>EventConsumer</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_4.Comm_Component</instance> + </internalEndpoint> + </connection> + + <connection> + <name>send_data_recv_dataSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_4.Filter_ComponentSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_4.Compression_Component</name> + <internalEndpoint> + <portName>send_data</portName> + <kind>EventEmitter</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_4.Filter_Component</instance> + </internalEndpoint> + <internalEndpoint> + <portName>recv_data</portName> + <kind>EventConsumer</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_4.Compression_Component</instance> + </internalEndpoint> + </connection> + + <connection> + <name>send_data_science_dataSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_2.Compression_ComponentSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_2.Comm_Component</name> + <internalEndpoint> + <portName>send_data</portName> + <kind>EventEmitter</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_2.Compression_Component</instance> + </internalEndpoint> + <internalEndpoint> + <portName>science_data</portName> + <kind>EventConsumer</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_2.Comm_Component</instance> + </internalEndpoint> + </connection> + + <connection> + <name>send_data_recv_dataSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_2.Filter_ComponentSPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_2.Compression_Component</name> + <internalEndpoint> + <portName>send_data</portName> + <kind>EventEmitter</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_2.Filter_Component</instance> + </internalEndpoint> + <internalEndpoint> + <portName>recv_data</portName> + <kind>EventConsumer</kind> + <instance>SPACE.ComponentImpl.Space_Station_Assembly.Space_Station.Linux_2.Compression_Component</instance> + </internalEndpoint> + </connection> + + <artifact id="_58324120-AF86-4265-859E-609B7CEB55CF"> + <name>SPACE.ImplementationArtifacts.Gizmo2_Medium.Gizmo2_Medium_svnt</name> + <source/> + <node/> + <location>Gizmo2_Medium_svnt</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_SPACE_Gizmo2_Medium_Factory_Servant</string> + </value> + </value> + </execParameter> + </artifact> + + <artifact id="_DFE266D1-330C-471B-9863-C4CECB17C4A9"> + <name>SPACE.ImplementationArtifacts.Gizmo2_Medium.Gizmo2_Medium_exec</name> + <source/> + <node/> + <location>Gizmo2_Medium_exec</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_SPACE_Gizmo2_Medium_Factory_Impl</string> + </value> + </value> + </execParameter> + </artifact> + + <artifact id="_30D9EBBA-D1E3-42B1-873F-14DF3EB1D0A1"> + <name>SPACE.ImplementationArtifacts.Gizmo2_Medium.Gizmo2_Medium_stub</name> + <source/> + <node/> + <location>Gizmo2_Medium_stub</location> + </artifact> + + <artifact id="_F33A4BF0-3679-4B1C-A4B7-C0D128E10F63"> + <name>SPACE.ImplementationArtifacts.Gizmo1_Medium.Gizmo1_Medium_svnt</name> + <source/> + <node/> + <location>Gizmo1_Medium_svnt</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_SPACE_Gizmo1_Medium_Factory_Servant</string> + </value> + </value> + </execParameter> + </artifact> + + <artifact id="_E86E0896-4B2E-47FA-A3A4-1E19BCC2C9E9"> + <name>SPACE.ImplementationArtifacts.Gizmo1_Medium.Gizmo1_Medium_stub</name> + <source/> + <node/> + <location>Gizmo1_Medium_stub</location> + </artifact> + + <artifact id="_CFC907DD-5AD7-4277-9116-A948BD5B5623"> + <name>SPACE.ImplementationArtifacts.Gizmo1_Medium.Gizmo1_Medium_exec</name> + <source/> + <node/> + <location>Gizmo1_Medium_exec</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_SPACE_Gizmo1_Medium_Factory_Impl</string> + </value> + </value> + </execParameter> + </artifact> + + <artifact id="_8780AED5-0E0F-4C34-B2B3-05E48B9B83AF"> + <name>SPACE.ImplementationArtifacts.Gizmo1_Low.Gizmo1_Low_svnt</name> + <source/> + <node/> + <location>Gizmo1_Low_svnt</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_SPACE_Gizmo1_Low_Factory_Servant</string> + </value> + </value> + </execParameter> + </artifact> + + <artifact id="_12BF8D22-06AA-49E1-89DF-4A0B34F321DC"> + <name>SPACE.ImplementationArtifacts.Gizmo1_Low.Gizmo1_Low_exec</name> + <source/> + <node/> + <location>Gizmo1_Low_exec</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_SPACE_Gizmo1_Low_Factory_Impl</string> + </value> + </value> + </execParameter> + </artifact> + + <artifact id="_A834AB4E-13EA-4F28-88B5-2FDD4589E49D"> + <name>SPACE.ImplementationArtifacts.Gizmo1_Low.Gizmo1_Low_stub</name> + <source/> + <node/> + <location>Gizmo1_Low_stub</location> + </artifact> + + <artifact id="_8D1B2EB6-C09E-4B06-961F-B8A98C6ADFE6"> + <name>SPACE.ImplementationArtifacts.Comm_Compnent.Comm_Component_svnt</name> + <source/> + <node/> + <location>Comm_Component_svnt</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_SPACE_Comm_Component_Factory_Servant</string> + </value> + </value> + </execParameter> + </artifact> + + <artifact id="_8B2B3F58-9B5F-47A6-BECC-1E449ECC3E9A"> + <name>SPACE.ImplementationArtifacts.Comm_Compnent.Comm_Component_stub</name> + <source/> + <node/> + <location>Comm_Component_stub</location> + </artifact> + + <artifact id="_38A51483-49B8-4602-BEF2-7FFFE366D194"> + <name>SPACE.ImplementationArtifacts.Comm_Compnent.Comm_Component_exec</name> + <source/> + <node/> + <location>Comm_Component_exec</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_SPACE_Comm_Component_Factory_Impl</string> + </value> + </value> + </execParameter> + </artifact> + + <artifact id="_200E62B5-0D3A-431C-A90C-481A336DC229"> + <name>SPACE.ImplementationArtifacts.Compression_Component.Compression_Component_svnt</name> + <source/> + <node/> + <location>Compression_Component_svnt</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_SPACE_Compression_Component_Factory_Servant</string> + </value> + </value> + </execParameter> + </artifact> + + <artifact id="_7EF85D5C-AE3F-4A80-8DB4-10F7C2D651D5"> + <name>SPACE.ImplementationArtifacts.Compression_Component.Compression_Component_stub</name> + <source/> + <node/> + <location>Compression_Component_stub</location> + </artifact> + + <artifact id="_3D04ECCB-692D-42C6-9743-628924E163DD"> + <name>SPACE.ImplementationArtifacts.Compression_Component.Compression_Component_exec</name> + <source/> + <node/> + <location>Compression_Component_exec</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_SPACE_Compression_Component_Factory_Impl</string> + </value> + </value> + </execParameter> + </artifact> + + <artifact id="_CE12D6F8-B71F-44A4-AE65-21E5C2F38925"> + <name>SPACE.ImplementationArtifacts.Filter_Component.Filter_Component_svnt</name> + <source/> + <node/> + <location>Filter_Component_svnt</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_SPACE_Filter_Component_Factory_Servant</string> + </value> + </value> + </execParameter> + </artifact> + + <artifact id="_26921C94-D013-4957-815B-7D2984F8224E"> + <name>SPACE.ImplementationArtifacts.Filter_Component.Filter_Component_stub</name> + <source/> + <node/> + <location>Filter_Component_stub</location> + </artifact> + + <artifact id="_55626C35-16B1-4990-BA9E-64C1836E32D8"> + <name>SPACE.ImplementationArtifacts.Filter_Component.Filter_Component_exec</name> + <source/> + <node/> + <location>Filter_Component_exec</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_SPACE_Filter_Component_Factory_Impl</string> + </value> + </value> + </execParameter> + </artifact> + + <artifact id="_C7BC8AF7-7532-4C80-A5A2-19508FF7AB32"> + <name>SPACE.ImplementationArtifacts.Gizmo1_High.Gizmo1_High_exec</name> + <source/> + <node/> + <location>Gizmo1_High_exec</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_SPACE_Gizmo1_High_Factory_Impl</string> + </value> + </value> + </execParameter> + </artifact> + + <artifact id="_E1DB4AFF-7A1F-47EF-9C17-41F9AF3B5C70"> + <name>SPACE.ImplementationArtifacts.Gizmo1_High.Gizmo1_High_stub</name> + <source/> + <node/> + <location>Gizmo1_High_stub</location> + </artifact> + + <artifact id="_9C7075AC-ED5E-427B-94F3-8212ED5ED66E"> + <name>SPACE.ImplementationArtifacts.Gizmo1_High.Gizmo1_High_svnt</name> + <source/> + <node/> + <location>Gizmo1_High_svnt</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_SPACE_Gizmo1_High_Factory_Servant</string> + </value> + </value> + </execParameter> + </artifact> + + <artifact id="_13520379-D48D-448B-A1C7-CC5A8265E4A7"> + <name>SPACE.ImplementationArtifacts.Gizmo2_High.Gizmo2_High_exec</name> + <source/> + <node/> + <location>Gizmo2_High_exec</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_SPACE_Gizmo2_High_Factory_Impl</string> + </value> + </value> + </execParameter> + </artifact> + + <artifact id="_3501F7B8-A724-44D5-B178-B66BD6AF4DD0"> + <name>SPACE.ImplementationArtifacts.Gizmo2_High.Gizmo2_High_stub</name> + <source/> + <node/> + <location>Gizmo2_High_stub</location> + </artifact> + + <artifact id="_92D4FB89-78F9-403D-84F4-31E80445F6E5"> + <name>SPACE.ImplementationArtifacts.Gizmo2_High.Gizmo2_High_svnt</name> + <source/> + <node/> + <location>Gizmo2_High_svnt</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_SPACE_Gizmo2_High_Factory_Servant</string> + </value> + </value> + </execParameter> + </artifact> + + <artifact id="_6053785F-482D-4DFC-B6A1-2678FEB98F6D"> + <name>SPACE.ImplementationArtifacts.Analysis_ComponentArtifacts.Analysis_Component_stub</name> + <source/> + <node/> + <location>Analysis_Component_stub</location> + </artifact> + + <artifact id="_26E18897-E0CF-4302-AD68-4C4186BEF1ED"> + <name>SPACE.ImplementationArtifacts.Analysis_ComponentArtifacts.Analysis_Component_svnt</name> + <source/> + <node/> + <location>Analysis_Component_svnt</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_SPACE_Analysis_Component_Home_Servant</string> + </value> + </value> + </execParameter> + </artifact> + + <artifact id="_4A6A8E09-2BB0-4120-8B93-382E49CA82E4"> + <name>SPACE.ImplementationArtifacts.Analysis_ComponentArtifacts.Analysis_Component_exec</name> + <source/> + <node/> + <location>Analysis_Component_exec</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_SPACE_Analysis_Component_Home_Impl</string> + </value> + </value> + </execParameter> + </artifact> + +</Deployment:deploymentPlan> diff --git a/CIAO/examples/space/descriptors/run_ExecutionManager.pl b/CIAO/examples/space/descriptors/run_ExecutionManager.pl new file mode 100755 index 00000000000..fec13ce009e --- /dev/null +++ b/CIAO/examples/space/descriptors/run_ExecutionManager.pl @@ -0,0 +1,50 @@ +eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}' + & eval 'exec perl -S $0 $argv:q' + if 0; + +# run_test.pl,v 1.5 2006/01/31 21:54:08 wotte Exp +# -*- perl -*- + +use lib "$ENV{'ACE_ROOT'}/bin"; +use PerlACE::Run_Test; + +$DAnCE = "$ENV{'ACE_ROOT'}/TAO/CIAO/DAnCE"; +$CIAO_ROOT = "$ENV{'CIAO_ROOT'}"; +$TAO_ROOT = "$ENV{'TAO_ROOT'}"; +$dat_file = "NodeDetails.dat"; +$cdp_file = "RACE.cdp"; +$NS_HOST = "blade29.isislab.vanderbilt.edu"; +$NS_PORT = 60003; + + +# Set up NamingService environment +$ENV{"NameServiceIOR"} = "corbaloc:iiop:$NS_HOST:$NS_PORT/NameService"; + +# Invoke execution manager. +print "Invoking execution manager\n"; +$EM = new PerlACE::Process ("$DAnCE/ExecutionManager/Execution_Manager", + "-n -o EM.ior -i $dat_file"); +$EM->Spawn (); + +# if (PerlACE::waitforfile_timed ("EM.ior", +# $PerlACE::wait_interval_for_process_creation) == -1) { +# print STDERR +# "ERROR: The ior file of execution manager could not be found\n"; +# exit 1; +# } + +$em_running = 1; + +# Invoke executor - start the application -. +print "Invoking executor - start the application -\n"; +$E = + new PerlACE::Process ("$DAnCE/Plan_Launcher/plan_launcher", + "-p $cdp_file -n file://EM.ior"); + +$E->SpawnWaitKill (5000000); + + +print "Executor returned.\n"; +print "Shutting down rest of the processes.\n"; + +exit $status; diff --git a/CIAO/examples/space/descriptors/run_NS.pl b/CIAO/examples/space/descriptors/run_NS.pl new file mode 100755 index 00000000000..aa1833a9537 --- /dev/null +++ b/CIAO/examples/space/descriptors/run_NS.pl @@ -0,0 +1,34 @@ +eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}' + & eval 'exec perl -S $0 $argv:q' + if 0; +use lib "$ENV{'ACE_ROOT'}/bin"; +use PerlACE::Run_Test; + +$DAnCE = "$ENV{'ACE_ROOT'}/TAO/CIAO/DAnCE"; +$CIAO_ROOT = "$ENV{'CIAO_ROOT'}"; +$TAO_ROOT = "$ENV{'TAO_ROOT'}"; +$HOST = "$ENV{'HOSTNAME'}"; +$PORT = 60003; + +$ns_running = 0; +$nsior = PerlACE::LocalFile ("ns.ior"); + +unlink $nsior; + +# Invoke naming service + +$NS = new PerlACE::Process ("$TAO_ROOT/orbsvcs/Naming_Service/Naming_Service", "-m 0 -ORBEndpoint iiop://$HOST:$PORT -o ns.ior"); + +$NS->Spawn (); + +print STDERR "Starting Naming Service\n"; + +if (PerlACE::waitforfile_timed ($nsior, 10) == -1) +{ + print STDERR "ERROR: cannot find naming service IOR file\n"; + $NS->Kill (); + exit 1; +} +print STDERR "Naming Service Started at $HOST:$PORT\n"; + +sleep (99999999999); diff --git a/CIAO/examples/space/descriptors/run_NodeManager.pl b/CIAO/examples/space/descriptors/run_NodeManager.pl new file mode 100755 index 00000000000..a57218a46e1 --- /dev/null +++ b/CIAO/examples/space/descriptors/run_NodeManager.pl @@ -0,0 +1,24 @@ +eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}' + & eval 'exec perl -S $0 $argv:q' + if 0; + +$NS_HOST = "blade36.isislab.vanderbilt.edu"; +$NS_PORT = 60003; +$HOST = "$ENV{'HOSTNAME'}"; +$PORT = 30000; +use lib "$ENV{'ACE_ROOT'}/bin"; +use PerlACE::Run_Test; + +$CIAO_ROOT=$ENV{'CIAO_ROOT'}; + + +# Set up NamingService environment +$ENV{"NameServiceIOR"} = "corbaloc:iiop:$NS_HOST:$NS_PORT/NameService"; + + +$SV1 = new PerlACE::Process ("$CIAO_ROOT/DAnCE/NodeManager/NodeManager", + "-ORBEndpoint iiop://$HOST:$PORT -ORBInitRef NameService=corbaloc:iiop:$NS_HOST:$NS_PORT/NameService -c svc_node_manager.conf -s $CIAO_ROOT/DAnCE/NodeApplication/NodeApplication -d 10"); + +$SV1->Spawn (); + +sleep (99999999999); diff --git a/CIAO/examples/space/descriptors/run_test.pl b/CIAO/examples/space/descriptors/run_test.pl new file mode 100755 index 00000000000..bdbf3995e7a --- /dev/null +++ b/CIAO/examples/space/descriptors/run_test.pl @@ -0,0 +1,195 @@ +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; + +$CIAO_ROOT = "$ENV{'CIAO_ROOT'}"; +$TAO_ROOT = "$ENV{'TAO_ROOT'}"; +$DAnCE = "$ENV{'CIAO_ROOT'}/DAnCE"; +$daemons_running = 0; +$em_running = 0; +$ns_running = 0; +$daemons = 2; +@ports = ( 60001, 60002 ); +@iorfiles = ( "NodeApp1.ior", "NodeApp2.ior" ); +$status = 0; +$dat_file = "NodeManagerMap.dat"; +$cdp_file = "DeploymentPlan.cdp"; +$controller_exec = "$CIAO_ROOT/examples/Hello/Sender/starter"; + +$nsior = PerlACE::LocalFile ("ns.ior"); + +unlink $nsior; + +$E = 0; +$EM = 0; + +# Delete if there are any .ior files. +sub delete_ior_files { + for ($i = 0; $i < $daemons; ++$i) { + unlink $iorfiles[$i]; + } + unlink PerlACE::LocalFile ("EM.ior"); + unlink PerlACE::LocalFile ("Receiver.ior"); + unlink PerlACE::LocalFile ("Sender.ior"); + unlink PerlACE::LocalFile ("DAM.ior"); + unlink PerlACE::LocalFile ("ns.ior"); +} + +sub kill_node_daemons { + for ($i = 0; $i < $daemons; ++$i) { + $Daemons[$i]->Kill (); $Daemons[$i]->TimedWait (1); + } +} + +sub kill_open_processes { + if ($daemons_running == 1) { + kill_node_daemons (); + } + + if ($em_running == 1) { + $EM->Kill (); + $EM->TimedWait (1); + } + + if ($ns_running == 1) { + $NS->Kill (); + $NS->TimedWait (1); + } + +} + +sub run_node_daemons { + for ($i = 0; $i < $daemons; ++$i) + { + $iorfile = $iorfiles[$i]; + $port = $ports[$i]; + + $iiop = "iiop://localhost:$port"; + $node_app = "$CIAO_ROOT/bin/NodeApplication"; + + $d_cmd = "$CIAO_ROOT/bin/NodeManager"; + $d_param = "-ORBEndpoint $iiop -c svc_node_manager.conf -s $node_app -o $iorfile -d 30"; + + $Daemons[$i] = new PerlACE::Process ($d_cmd, $d_param); + $result = $Daemons[$i]->Spawn (); + push(@processes, $Daemons[$i]); + + if (PerlACE::waitforfile_timed ($iorfile, + $PerlACE::wait_interval_for_process_creation) == -1) { + print STDERR + "ERROR: The ior file of node daemon $i could not be found\n"; + for (; $i >= 0; --$i) { + $Daemons[$i]->Kill (); $Daemons[$i]->TimedWait (1); + } + return -1; + } + } + return 0; +} + +delete_ior_files (); + +# Invoke naming service + +$NS = new PerlACE::Process ("$TAO_ROOT/orbsvcs/Naming_Service/Naming_Service", "-m 0 -ORBEndpoint iiop://localhost:60003 -o ns.ior"); + +$NS->Spawn (); + +print STDERR "Starting Naming Service\n"; + +if (PerlACE::waitforfile_timed ($nsior, $PerlACE::wait_interval_for_process_creation) == -1) +{ + print STDERR "ERROR: cannot find naming service IOR file\n"; + $NS->Kill (); + exit 1; +} + +$ns_running = 1; + +# Set up NamingService environment +$ENV{"NameServiceIOR"} = "corbaloc:iiop:localhost:60003/NameService"; + + +# Invoke node daemons. +print "Invoking node daemons\n"; +$status = run_node_daemons (); + +if ($status != 0) { + print STDERR "ERROR: Unable to execute the node daemons\n"; + kill_open_processes (); + exit 1; +} + +$daemons_running = 1; + +# Invoke execution manager. +print "Invoking execution manager\n"; +$EM = new PerlACE::Process ("$CIAO_ROOT/bin/Execution_Manager", + "-o EM.ior -i $dat_file"); +$EM->Spawn (); + +if (PerlACE::waitforfile_timed ("EM.ior", + $PerlACE::wait_interval_for_process_creation) == -1) { + print STDERR + "ERROR: The ior file of execution manager could not be found\n"; + kill_open_processes (); + exit 1; +} + +$em_running = 1; + +# Invoke executor - start the application -. +print "Invoking executor - start the application -\n"; +$E = + new PerlACE::Process ("$CIAO_ROOT/bin/plan_launcher", + "-p SPACE.cdp -k file://EM.ior -o DAM.ior"); + +$E->SpawnWaitKill (5000); + +if (PerlACE::waitforfile_timed ( + "Receiver.ior", + $PerlACE::wait_interval_for_process_creation) == -1) { + print STDERR "ERROR: The ior file of receiver could not be found\n"; +# kill_open_processes (); +# exit 1; +} + +if (PerlACE::waitforfile_timed ("Sender.ior", + $PerlACE::wait_interval_for_process_creation) == -1) { + print STDERR "ERROR: The ior file of sender could not be found\n"; +# kill_open_processes (); +# exit 1; +} + +#wait for a character +$key = getc(STDIN); + +print "Invoking the controller\n"; +$controller = new PerlACE::Process ("$controller_exec", "-k file://Sender.ior"); +$result = $controller->SpawnWaitKill (3000); + +if ($result != 0) { + print STDERR "ERROR: The controller returned $result\n"; + $status = 1; +} + +# Invoke executor - stop the application -. +print "Invoking executor - stop the application -\n"; +$E = + new PerlACE::Process ("$CIAO_ROOT/bin/plan_launcher", + "-k file://EM.ior -i file://DAM.ior"); +$E->SpawnWaitKill (3000); + +print "Executor returned.\n"; +print "Shutting down rest of the processes.\n"; + +delete_ior_files (); +kill_open_processes (); + +exit $status; diff --git a/CIAO/examples/space/descriptors/run_test_multi.pl b/CIAO/examples/space/descriptors/run_test_multi.pl new file mode 100755 index 00000000000..529ae84d63d --- /dev/null +++ b/CIAO/examples/space/descriptors/run_test_multi.pl @@ -0,0 +1,195 @@ +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; + +$CIAO_ROOT = "$ENV{'CIAO_ROOT'}"; +$TAO_ROOT = "$ENV{'TAO_ROOT'}"; +$DAnCE = "$ENV{'CIAO_ROOT'}/DAnCE"; +$daemons_running = 0; +$em_running = 0; +$ns_running = 0; +$daemons = 8; +@ports = ( 60001, 60002, 60013, 60004, 60005, 60006, 60007, 60008); +@iorfiles = ( "NodeApp1.ior", "NodeApp2.ior", "NodeApp3.ior", "NodeApp4.ior", "NodeApp5.ior", "NodeApp6.ior", "NodeApp7.ior", "NodeApp8.ior" ); +$status = 0; +$dat_file = "NodeManagerMap.dat"; +$cdp_file = "DeploymentPlan.cdp"; +$controller_exec = "$CIAO_ROOT/examples/Hello/Sender/starter"; + +$nsior = PerlACE::LocalFile ("ns.ior"); + +unlink $nsior; + +$E = 0; +$EM = 0; + +# Delete if there are any .ior files. +sub delete_ior_files { + for ($i = 0; $i < $daemons; ++$i) { + unlink $iorfiles[$i]; + } + unlink PerlACE::LocalFile ("EM.ior"); + unlink PerlACE::LocalFile ("Receiver.ior"); + unlink PerlACE::LocalFile ("Sender.ior"); + unlink PerlACE::LocalFile ("DAM.ior"); + unlink PerlACE::LocalFile ("ns.ior"); +} + +sub kill_node_daemons { + for ($i = 0; $i < $daemons; ++$i) { + $Daemons[$i]->Kill (); $Daemons[$i]->TimedWait (1); + } +} + +sub kill_open_processes { + if ($daemons_running == 1) { + kill_node_daemons (); + } + + if ($em_running == 1) { + $EM->Kill (); + $EM->TimedWait (1); + } + + if ($ns_running == 1) { + $NS->Kill (); + $NS->TimedWait (1); + } + +} + +sub run_node_daemons { + for ($i = 0; $i < $daemons; ++$i) + { + $iorfile = $iorfiles[$i]; + $port = $ports[$i]; + + $iiop = "iiop://localhost:$port"; + $node_app = "$CIAO_ROOT/bin/NodeApplication"; + + $d_cmd = "$CIAO_ROOT/bin/NodeManager"; + $d_param = "-ORBEndpoint $iiop -c svc_node_manager.conf -s $node_app -o $iorfile -d 30"; + + $Daemons[$i] = new PerlACE::Process ($d_cmd, $d_param); + $result = $Daemons[$i]->Spawn (); + push(@processes, $Daemons[$i]); + + if (PerlACE::waitforfile_timed ($iorfile, + $PerlACE::wait_interval_for_process_creation) == -1) { + print STDERR + "ERROR: The ior file of node daemon $i could not be found\n"; + for (; $i >= 0; --$i) { + $Daemons[$i]->Kill (); $Daemons[$i]->TimedWait (1); + } + return -1; + } + } + return 0; +} + +delete_ior_files (); + +# Invoke naming service + +$NS = new PerlACE::Process ("$TAO_ROOT/orbsvcs/Naming_Service/Naming_Service", "-m 0 -ORBEndpoint iiop://localhost:60003 -o ns.ior"); + +$NS->Spawn (); + +print STDERR "Starting Naming Service\n"; + +if (PerlACE::waitforfile_timed ($nsior, $PerlACE::wait_interval_for_process_creation) == -1) +{ + print STDERR "ERROR: cannot find naming service IOR file\n"; + $NS->Kill (); + exit 1; +} + +$ns_running = 1; + +# Set up NamingService environment +$ENV{"NameServiceIOR"} = "corbaloc:iiop:localhost:60003/NameService"; + + +# Invoke node daemons. +print "Invoking node daemons\n"; +$status = run_node_daemons (); + +if ($status != 0) { + print STDERR "ERROR: Unable to execute the node daemons\n"; + kill_open_processes (); + exit 1; +} + +$daemons_running = 1; + +# Invoke execution manager. +print "Invoking execution manager\n"; +$EM = new PerlACE::Process ("$CIAO_ROOT/bin/Execution_Manager", + "-o EM.ior -i $dat_file"); +$EM->Spawn (); + +if (PerlACE::waitforfile_timed ("EM.ior", + $PerlACE::wait_interval_for_process_creation) == -1) { + print STDERR + "ERROR: The ior file of execution manager could not be found\n"; + kill_open_processes (); + exit 1; +} + +$em_running = 1; + +# Invoke executor - start the application -. +print "Invoking executor - start the application -\n"; +$E = + new PerlACE::Process ("$CIAO_ROOT/bin/plan_launcher", + "-p multi_SPACE.cdp -k file://EM.ior -o DAM.ior"); + +$E->SpawnWaitKill (5000); + +if (PerlACE::waitforfile_timed ( + "Receiver.ior", + $PerlACE::wait_interval_for_process_creation) == -1) { + print STDERR "ERROR: The ior file of receiver could not be found\n"; +# kill_open_processes (); +# exit 1; +} + +if (PerlACE::waitforfile_timed ("Sender.ior", + $PerlACE::wait_interval_for_process_creation) == -1) { + print STDERR "ERROR: The ior file of sender could not be found\n"; +# kill_open_processes (); +# exit 1; +} + +#wait for a character +$key = getc(STDIN); + +print "Invoking the controller\n"; +$controller = new PerlACE::Process ("$controller_exec", "-k file://Sender.ior"); +$result = $controller->SpawnWaitKill (3000); + +if ($result != 0) { + print STDERR "ERROR: The controller returned $result\n"; + $status = 1; +} + +# Invoke executor - stop the application -. +print "Invoking executor - stop the application -\n"; +$E = + new PerlACE::Process ("$CIAO_ROOT/bin/plan_launcher", + "-k file://EM.ior -i file://DAM.ior"); +$E->SpawnWaitKill (3000); + +print "Executor returned.\n"; +print "Shutting down rest of the processes.\n"; + +delete_ior_files (); +kill_open_processes (); + +exit $status; diff --git a/CIAO/examples/space/descriptors/svc_node_manager.conf b/CIAO/examples/space/descriptors/svc_node_manager.conf new file mode 100644 index 00000000000..6330e2b3ae1 --- /dev/null +++ b/CIAO/examples/space/descriptors/svc_node_manager.conf @@ -0,0 +1,7 @@ +# $Id$ +# +# Please see $TAO_ROOT/docs/Options.html for details on these options. +# + +static Server_Strategy_Factory "-ORBConcurrency thread-per-connection -ORBPOALock thread" + |