SlideShare a Scribd company logo
1 of 21
Download to read offline
Asynchronous Method
Invocation through Connectors

        IDL to C++11
Why AMI4CCM?

    LwCCM has no standardized way to perform an
    asynchronous method invocation between two
    components
    Each project and developer solves this challenge
    differently
    Need a standardized solution to align
    implementations and models




2                                                  Copyright © 2013
Requirements AMI4CCM

    Pure client side solution
    Shall not extend the LwCCM specification
    Reuse the Generic Interaction Support (GIS) that
    was introduced by DDS4CCM and which is now part
    of the CCM specification




3                                               Copyright © 2013
AMI4CCM Connector (1)




4                           Copyright © 2013
AMI4CCM Connector (2)




5                           Copyright © 2013
Conversion rules

    AMI4CCM defines a set of conversion rules how to
    convert a regular interface to
     • Asynchronous invocation interface
     • Reply handler interface
     • Callback for the successful case
     • Callback for the error case
    Naming rules are based on CORBA AMI
    • Reply handler is a local interface




6                                                Copyright © 2013
Conclusion

    AMI4CCM introduces asynchronous method
    invocation for CCM
    Doesn’t extend the CCM core
    Reuses GIS from CCM




7                                            Copyright © 2013
IDL to C++11




8                  Copyright © 2013
Why a new language mapping?

    IDL to C++ language mapping is impossible to
    change because
     • Multiple implementations are on the market (open
        source and commercial)
     • A huge amount of applications have been developed
    An updated IDL to C++ language mapping would
    force vendors and users to update their products
    The standardization of a new C++ revision in 2011
    (ISO/IEC 14882:2011, called C++11) gives the
    opportunity to define a new language mapping
    • C++11 features are not backward compatible with
      C++03 or C++99
    • A new C++11 mapping leaves the existing mapping
      intact


9                                                  Copyright © 2013
Goals

     Simplify mapping for C++
     Make use of the new C++11 features to
     •   Reduce amount of application code
     •   Reduce amount of possible errors made
     •   Gain runtime performance
     •   Speedup development and testing
     •   Faster time to market
     •   Reduced costs
     •   Reduced training time




10                                               Copyright © 2013
Basic types

     IDL                  C++11         Default value
     short                int16_t       0
     long                 int32_t       0
     long long            int64_t       0
     unsigned short       uint16_t      0
     unsigned long        uint32_t      0
     unsigned long long   uint64_t      0
     float                float         0.0
     double               double        0.0
     long double          long double   0.0
     char                 char          0
     wchar                wchar_t       0
     boolean              bool          false
     octet                uint8_t       0

11                                               Copyright © 2013
String types

     No need to introduce an IDL specific type mapping but leverage
     STL
                       IDL                             C++11
     string name;                    std::string name;

     wstring w_name;                 std::wstring w_name;

                                     name = “Hello”;

                                     std::cout << name << std::endl;




12                                                                     Copyright © 2013
Sequence

     IDL unbounded sequence maps to std::vector
                    IDL                             C++11
     typedef sequence<long> LongSeq;   typedef std::vector <int32_t>
                                           LongSeq;

                                       LongSeq mysequence;

                                       // Add an element to the vector
                                       mysequence.push_back (5);

                                       // Dump using C++11 range based loop
                                       for (const int32_t& e : mysequence)
                                       {
                                         std::cout << e << “;” << std::end;
                                       }




13                                                                     Copyright © 2013
Reference types (1)

     An IDL interface maps to so called reference types
     Reference types are reference counted, given type A
      • Strong reference type behaves like std::shared_ptr
        and is available as IDL::traits<A>::ref_type
      • Weak reference type behaves like std::weak_ptr and
        is available as IDL::traits<A>::weak_ref_type
     A nil reference type is represented as nullptr
     Invoking an operation on a nil reference results in a
     INV_OBJREF exception




14                                                    Copyright © 2013
Reference types (2)

     Given IDL type A the mapping delivers IDL::traits<A> with type
     traits
                         IDL                         C++11
     interface A                     // Obtain a reference
     {                               IDL::traits<A>::ref_type a = // obtain a
        // definitions                                           // reference
     };                              // Obtain a weak reference
                                     IDL::traits<A>::weak_ref_type w =
                                          a.weak_reference();

                                     // Obtain a strong reference from a weak
                                     // one
                                     IDL::traits<A>::ref_type p = w.lock ();

                                     if (a == nullptr) // Legal comparisons
                                     if (a != nullptr ) // legal comparison
                                     if (a) // legal usage, true if a != nullptr
                                     if (!a) // legal usage, true if a ==
                                             // nullptr
                                     if (a == 0) // illegal, results in a
                                                  // compile error
                                     delete a; // illegal, results in a compile
                                               //error


15                                                                      Copyright © 2013
Components with C++11

     Component executors are local object
     implementations
     Implemented as C++ classes using standardized
     C++ traits
     Method signatures will be different compared to the
     IDL to C++ mapping
     Implementation can use the new C++11 features




16                                                   Copyright © 2013
Conclusion IDL to C++11

     IDL to C++11 simplifies programming
     The combination of reference counting and C++11
     move semantics make the code much safer and
     secure
     Application code is much smaller and easier to read




17                                                  Copyright © 2013
CCM Implementations




18                         Copyright © 2013
CIAO as implementation

     Open source LwCCM implementation using IDL to
     C++
      • Optional support for CCM navigation
      • Profile to disable CCM event support
     Uses TAO for all of its infrastructure
     Support for DDS4CCM using OpenDDS and RTI
     Connext DDS as underlying DDS implementations
     Support for AMI4CCM
     Available from http://download.dre.vanderbilt.edu



19                                                   Copyright © 2013
CIAOX11 as implementation

     LwCCM implementation using IDL to C++11
     Deviates from LwCCM towards UCM
     Clean separation between CORBA and the user
     component executors
     Current plan is to release CIAOX11 as open source
     LwCCM implementation using a similar license as
     CIAO
     New CIAOX11 high level architecture would also
     work with other programming languages




20                                                 Copyright © 2013
DAnCE

     Open source implementation of the OMG D&C
     standard using the IDL to C++ language mapping
     Uses TAO as CORBA implementation
     Introduces LocalityManager as component server
      • CIAOX11 will deliver its own C++11 LocalityManager
         and will reuse the other services from the C++
         DAnCE version
     Defines a set of plugins to customize its behavior




21                                                  Copyright © 2013

More Related Content

What's hot

Basic structures in vhdl
Basic structures in vhdlBasic structures in vhdl
Basic structures in vhdl
Raj Mohan
 
C++ polymorphism
C++ polymorphismC++ polymorphism
C++ polymorphism
FALLEE31188
 

What's hot (20)

VHDL Packages, Coding Styles for Arithmetic Operations and VHDL-200x Additions
VHDL Packages, Coding Styles for Arithmetic Operations and VHDL-200x AdditionsVHDL Packages, Coding Styles for Arithmetic Operations and VHDL-200x Additions
VHDL Packages, Coding Styles for Arithmetic Operations and VHDL-200x Additions
 
INTRODUCTION TO VHDL
INTRODUCTION    TO    VHDLINTRODUCTION    TO    VHDL
INTRODUCTION TO VHDL
 
Couverture erts2012
Couverture erts2012Couverture erts2012
Couverture erts2012
 
VHDL
VHDLVHDL
VHDL
 
Basic structures in vhdl
Basic structures in vhdlBasic structures in vhdl
Basic structures in vhdl
 
Introduction to-vhdl
Introduction to-vhdlIntroduction to-vhdl
Introduction to-vhdl
 
Oop l2
Oop l2Oop l2
Oop l2
 
Verilog presentation final
Verilog presentation finalVerilog presentation final
Verilog presentation final
 
Vhdl
VhdlVhdl
Vhdl
 
How to design Programs using VHDL
How to design Programs using VHDLHow to design Programs using VHDL
How to design Programs using VHDL
 
IDL to C++11 initial submission presentation
IDL to C++11 initial submission presentationIDL to C++11 initial submission presentation
IDL to C++11 initial submission presentation
 
CORBA
CORBACORBA
CORBA
 
Lecture2 vhdl refresher
Lecture2 vhdl refresherLecture2 vhdl refresher
Lecture2 vhdl refresher
 
IDL to C++11 revised submission presentation
IDL to C++11 revised submission presentationIDL to C++11 revised submission presentation
IDL to C++11 revised submission presentation
 
PPT ON VHDL subprogram,package,alias,use,generate and concurrent statments an...
PPT ON VHDL subprogram,package,alias,use,generate and concurrent statments an...PPT ON VHDL subprogram,package,alias,use,generate and concurrent statments an...
PPT ON VHDL subprogram,package,alias,use,generate and concurrent statments an...
 
Basics of kotlin ASJ
Basics of kotlin ASJBasics of kotlin ASJ
Basics of kotlin ASJ
 
C++ polymorphism
C++ polymorphismC++ polymorphism
C++ polymorphism
 
Verilog overview
Verilog overviewVerilog overview
Verilog overview
 
VHDL CODES
VHDL CODES VHDL CODES
VHDL CODES
 
Short.course.introduction.to.vhdl for beginners
Short.course.introduction.to.vhdl for beginners Short.course.introduction.to.vhdl for beginners
Short.course.introduction.to.vhdl for beginners
 

Viewers also liked

Easy gis tutorial (2)
Easy gis tutorial (2)Easy gis tutorial (2)
Easy gis tutorial (2)
mohavalencia
 

Viewers also liked (6)

Evolution from LwCCM to UCM
Evolution from LwCCM to UCMEvolution from LwCCM to UCM
Evolution from LwCCM to UCM
 
CV-FINAL
CV-FINALCV-FINAL
CV-FINAL
 
Easy gis tutorial (2)
Easy gis tutorial (2)Easy gis tutorial (2)
Easy gis tutorial (2)
 
UCM Initial Submission presentation
UCM Initial Submission presentationUCM Initial Submission presentation
UCM Initial Submission presentation
 
Clonage
ClonageClonage
Clonage
 
The Now and Next of Learning and Technology
The Now and Next of Learning and TechnologyThe Now and Next of Learning and Technology
The Now and Next of Learning and Technology
 

Similar to AMI4CCM_IDL2CPP

3 Open-Source-SYCL-Intel-Khronos-EVS-Workshop_May19.pdf
3 Open-Source-SYCL-Intel-Khronos-EVS-Workshop_May19.pdf3 Open-Source-SYCL-Intel-Khronos-EVS-Workshop_May19.pdf
3 Open-Source-SYCL-Intel-Khronos-EVS-Workshop_May19.pdf
JunZhao68
 

Similar to AMI4CCM_IDL2CPP (20)

AMI4CCM, custom DDS connectors, and IDL to C++11
AMI4CCM, custom DDS connectors, and IDL to C++11AMI4CCM, custom DDS connectors, and IDL to C++11
AMI4CCM, custom DDS connectors, and IDL to C++11
 
CORBA Programming with TAOX11/C++11 tutorial
CORBA Programming with TAOX11/C++11 tutorialCORBA Programming with TAOX11/C++11 tutorial
CORBA Programming with TAOX11/C++11 tutorial
 
CORBA Programming with TAOX11/C++11 tutorial
CORBA Programming with TAOX11/C++11 tutorialCORBA Programming with TAOX11/C++11 tutorial
CORBA Programming with TAOX11/C++11 tutorial
 
Comparing IDL to C++ with IDL to C++11
Comparing IDL to C++ with IDL to C++11Comparing IDL to C++ with IDL to C++11
Comparing IDL to C++ with IDL to C++11
 
Comparing IDL to C++ with IDL to C++11
Comparing IDL to C++ with IDL to C++11Comparing IDL to C++ with IDL to C++11
Comparing IDL to C++ with IDL to C++11
 
Common Object Request Broker Architecture - CORBA
Common Object Request Broker Architecture - CORBACommon Object Request Broker Architecture - CORBA
Common Object Request Broker Architecture - CORBA
 
IDL to C++11 OMG RTWS presentations
IDL to C++11 OMG RTWS presentationsIDL to C++11 OMG RTWS presentations
IDL to C++11 OMG RTWS presentations
 
Modernizing SCA through new Object Management Group (OMG) standards
Modernizing SCA through new Object Management Group (OMG) standardsModernizing SCA through new Object Management Group (OMG) standards
Modernizing SCA through new Object Management Group (OMG) standards
 
AXCIOMA, the internals, the component framework for distributed, real-time, a...
AXCIOMA, the internals, the component framework for distributed, real-time, a...AXCIOMA, the internals, the component framework for distributed, real-time, a...
AXCIOMA, the internals, the component framework for distributed, real-time, a...
 
Modernizing SCA through new Object Management Group (OMG) standards
Modernizing SCA through new Object Management Group (OMG) standardsModernizing SCA through new Object Management Group (OMG) standards
Modernizing SCA through new Object Management Group (OMG) standards
 
AXCIOMA, the internals, the component framework for distributed, real-time, a...
AXCIOMA, the internals, the component framework for distributed, real-time, a...AXCIOMA, the internals, the component framework for distributed, real-time, a...
AXCIOMA, the internals, the component framework for distributed, real-time, a...
 
Component Based DDS with C++11 and R2DDS
Component Based DDS with C++11 and R2DDSComponent Based DDS with C++11 and R2DDS
Component Based DDS with C++11 and R2DDS
 
Integrating DDS into AXCIOMA, the component approach
Integrating DDS into AXCIOMA, the component approachIntegrating DDS into AXCIOMA, the component approach
Integrating DDS into AXCIOMA, the component approach
 
Integrating DDS into AXCIOMA, the component approach
Integrating DDS into AXCIOMA, the component approachIntegrating DDS into AXCIOMA, the component approach
Integrating DDS into AXCIOMA, the component approach
 
Integrating DDS into AXCIOMA - The Component Approach
Integrating DDS into AXCIOMA - The Component ApproachIntegrating DDS into AXCIOMA - The Component Approach
Integrating DDS into AXCIOMA - The Component Approach
 
Model Driven, Component Based Development for CBDDS and IDL to C++11
Model Driven, Component Based Development for CBDDS and IDL to C++11Model Driven, Component Based Development for CBDDS and IDL to C++11
Model Driven, Component Based Development for CBDDS and IDL to C++11
 
3 Open-Source-SYCL-Intel-Khronos-EVS-Workshop_May19.pdf
3 Open-Source-SYCL-Intel-Khronos-EVS-Workshop_May19.pdf3 Open-Source-SYCL-Intel-Khronos-EVS-Workshop_May19.pdf
3 Open-Source-SYCL-Intel-Khronos-EVS-Workshop_May19.pdf
 
DCOM Comparison
DCOM ComparisonDCOM Comparison
DCOM Comparison
 
DDS Programming with IDL to C++11 tutorial
DDS Programming with IDL to C++11 tutorialDDS Programming with IDL to C++11 tutorial
DDS Programming with IDL to C++11 tutorial
 
Android ndk: Entering the native world
Android ndk: Entering the native worldAndroid ndk: Entering the native world
Android ndk: Entering the native world
 

More from Remedy IT

F6COM: A Case Study in Extending Container Services through Connectors
F6COM: A Case Study in Extending Container Services through ConnectorsF6COM: A Case Study in Extending Container Services through Connectors
F6COM: A Case Study in Extending Container Services through Connectors
Remedy IT
 
Test What Matters Most
Test What Matters MostTest What Matters Most
Test What Matters Most
Remedy IT
 

More from Remedy IT (16)

AXCIOMA, the component framework for distributed, real-time and embedded systems
AXCIOMA, the component framework for distributed, real-time and embedded systemsAXCIOMA, the component framework for distributed, real-time and embedded systems
AXCIOMA, the component framework for distributed, real-time and embedded systems
 
Remedy IT Company presentation
Remedy IT Company presentationRemedy IT Company presentation
Remedy IT Company presentation
 
ACE/TAO/CIAO/DAnCE Maintenance overview
ACE/TAO/CIAO/DAnCE Maintenance overviewACE/TAO/CIAO/DAnCE Maintenance overview
ACE/TAO/CIAO/DAnCE Maintenance overview
 
Remedy IT Revised Submission Presentation for the Unified Component Model (UC...
Remedy IT Revised Submission Presentation for the Unified Component Model (UC...Remedy IT Revised Submission Presentation for the Unified Component Model (UC...
Remedy IT Revised Submission Presentation for the Unified Component Model (UC...
 
Revised submission for Unified Component Model (UCM) for Distributed, Real-Ti...
Revised submission for Unified Component Model (UCM) for Distributed, Real-Ti...Revised submission for Unified Component Model (UCM) for Distributed, Real-Ti...
Revised submission for Unified Component Model (UCM) for Distributed, Real-Ti...
 
AXCIOMA, the component framework for distributed, real-time and embedded systems
AXCIOMA, the component framework for distributed, real-time and embedded systemsAXCIOMA, the component framework for distributed, real-time and embedded systems
AXCIOMA, the component framework for distributed, real-time and embedded systems
 
Component Technologies for Fractionated Satellites
Component Technologies for Fractionated SatellitesComponent Technologies for Fractionated Satellites
Component Technologies for Fractionated Satellites
 
Remedy IT Initial Submission for the Unified Component Model (UCM) for Distri...
Remedy IT Initial Submission for the Unified Component Model (UCM) for Distri...Remedy IT Initial Submission for the Unified Component Model (UCM) for Distri...
Remedy IT Initial Submission for the Unified Component Model (UCM) for Distri...
 
Unified Component Model for Distributed, Real- Time and Embedded Systems Requ...
Unified Component Model for Distributed, Real- Time and Embedded Systems Requ...Unified Component Model for Distributed, Real- Time and Embedded Systems Requ...
Unified Component Model for Distributed, Real- Time and Embedded Systems Requ...
 
Request For Proposal Unified Component Model for Distributed, Real-Time and E...
Request For Proposal Unified Component Model for Distributed, Real-Time and E...Request For Proposal Unified Component Model for Distributed, Real-Time and E...
Request For Proposal Unified Component Model for Distributed, Real-Time and E...
 
Test What Matters Most
Test What Matters MostTest What Matters Most
Test What Matters Most
 
IDL to C++03 RFC
IDL to C++03 RFCIDL to C++03 RFC
IDL to C++03 RFC
 
F6COM: A Case Study in Extending Container Services through Connectors
F6COM: A Case Study in Extending Container Services through ConnectorsF6COM: A Case Study in Extending Container Services through Connectors
F6COM: A Case Study in Extending Container Services through Connectors
 
Draft Request For Proposal Unified Component Model for Distributed, Real-Time...
Draft Request For Proposal Unified Component Model for Distributed, Real-Time...Draft Request For Proposal Unified Component Model for Distributed, Real-Time...
Draft Request For Proposal Unified Component Model for Distributed, Real-Time...
 
Test What Matters Most
Test What Matters MostTest What Matters Most
Test What Matters Most
 
Component Based Model Driven Development of Mission Critical Defense Applicat...
Component Based Model Driven Development of Mission Critical Defense Applicat...Component Based Model Driven Development of Mission Critical Defense Applicat...
Component Based Model Driven Development of Mission Critical Defense Applicat...
 

Recently uploaded

Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Recently uploaded (20)

Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUKSpring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 

AMI4CCM_IDL2CPP

  • 1. Asynchronous Method Invocation through Connectors IDL to C++11
  • 2. Why AMI4CCM? LwCCM has no standardized way to perform an asynchronous method invocation between two components Each project and developer solves this challenge differently Need a standardized solution to align implementations and models 2 Copyright © 2013
  • 3. Requirements AMI4CCM Pure client side solution Shall not extend the LwCCM specification Reuse the Generic Interaction Support (GIS) that was introduced by DDS4CCM and which is now part of the CCM specification 3 Copyright © 2013
  • 4. AMI4CCM Connector (1) 4 Copyright © 2013
  • 5. AMI4CCM Connector (2) 5 Copyright © 2013
  • 6. Conversion rules AMI4CCM defines a set of conversion rules how to convert a regular interface to • Asynchronous invocation interface • Reply handler interface • Callback for the successful case • Callback for the error case Naming rules are based on CORBA AMI • Reply handler is a local interface 6 Copyright © 2013
  • 7. Conclusion AMI4CCM introduces asynchronous method invocation for CCM Doesn’t extend the CCM core Reuses GIS from CCM 7 Copyright © 2013
  • 8. IDL to C++11 8 Copyright © 2013
  • 9. Why a new language mapping? IDL to C++ language mapping is impossible to change because • Multiple implementations are on the market (open source and commercial) • A huge amount of applications have been developed An updated IDL to C++ language mapping would force vendors and users to update their products The standardization of a new C++ revision in 2011 (ISO/IEC 14882:2011, called C++11) gives the opportunity to define a new language mapping • C++11 features are not backward compatible with C++03 or C++99 • A new C++11 mapping leaves the existing mapping intact 9 Copyright © 2013
  • 10. Goals Simplify mapping for C++ Make use of the new C++11 features to • Reduce amount of application code • Reduce amount of possible errors made • Gain runtime performance • Speedup development and testing • Faster time to market • Reduced costs • Reduced training time 10 Copyright © 2013
  • 11. Basic types IDL C++11 Default value short int16_t 0 long int32_t 0 long long int64_t 0 unsigned short uint16_t 0 unsigned long uint32_t 0 unsigned long long uint64_t 0 float float 0.0 double double 0.0 long double long double 0.0 char char 0 wchar wchar_t 0 boolean bool false octet uint8_t 0 11 Copyright © 2013
  • 12. String types No need to introduce an IDL specific type mapping but leverage STL IDL C++11 string name; std::string name; wstring w_name; std::wstring w_name; name = “Hello”; std::cout << name << std::endl; 12 Copyright © 2013
  • 13. Sequence IDL unbounded sequence maps to std::vector IDL C++11 typedef sequence<long> LongSeq; typedef std::vector <int32_t> LongSeq; LongSeq mysequence; // Add an element to the vector mysequence.push_back (5); // Dump using C++11 range based loop for (const int32_t& e : mysequence) { std::cout << e << “;” << std::end; } 13 Copyright © 2013
  • 14. Reference types (1) An IDL interface maps to so called reference types Reference types are reference counted, given type A • Strong reference type behaves like std::shared_ptr and is available as IDL::traits<A>::ref_type • Weak reference type behaves like std::weak_ptr and is available as IDL::traits<A>::weak_ref_type A nil reference type is represented as nullptr Invoking an operation on a nil reference results in a INV_OBJREF exception 14 Copyright © 2013
  • 15. Reference types (2) Given IDL type A the mapping delivers IDL::traits<A> with type traits IDL C++11 interface A // Obtain a reference { IDL::traits<A>::ref_type a = // obtain a // definitions // reference }; // Obtain a weak reference IDL::traits<A>::weak_ref_type w = a.weak_reference(); // Obtain a strong reference from a weak // one IDL::traits<A>::ref_type p = w.lock (); if (a == nullptr) // Legal comparisons if (a != nullptr ) // legal comparison if (a) // legal usage, true if a != nullptr if (!a) // legal usage, true if a == // nullptr if (a == 0) // illegal, results in a // compile error delete a; // illegal, results in a compile //error 15 Copyright © 2013
  • 16. Components with C++11 Component executors are local object implementations Implemented as C++ classes using standardized C++ traits Method signatures will be different compared to the IDL to C++ mapping Implementation can use the new C++11 features 16 Copyright © 2013
  • 17. Conclusion IDL to C++11 IDL to C++11 simplifies programming The combination of reference counting and C++11 move semantics make the code much safer and secure Application code is much smaller and easier to read 17 Copyright © 2013
  • 18. CCM Implementations 18 Copyright © 2013
  • 19. CIAO as implementation Open source LwCCM implementation using IDL to C++ • Optional support for CCM navigation • Profile to disable CCM event support Uses TAO for all of its infrastructure Support for DDS4CCM using OpenDDS and RTI Connext DDS as underlying DDS implementations Support for AMI4CCM Available from http://download.dre.vanderbilt.edu 19 Copyright © 2013
  • 20. CIAOX11 as implementation LwCCM implementation using IDL to C++11 Deviates from LwCCM towards UCM Clean separation between CORBA and the user component executors Current plan is to release CIAOX11 as open source LwCCM implementation using a similar license as CIAO New CIAOX11 high level architecture would also work with other programming languages 20 Copyright © 2013
  • 21. DAnCE Open source implementation of the OMG D&C standard using the IDL to C++ language mapping Uses TAO as CORBA implementation Introduces LocalityManager as component server • CIAOX11 will deliver its own C++11 LocalityManager and will reuse the other services from the C++ DAnCE version Defines a set of plugins to customize its behavior 21 Copyright © 2013