Docstoc

sharp

Document Sample
sharp Powered By Docstoc
					                                                                  Bold Stroke




               Generative Techniques for
              Real-Time Embedded Systems

                                                David Sharp
                                         david.sharp@boeing.com

                                          The Boeing Company
                                           St. Louis, Missouri



First Software Product Line Conference                               1
                                                                                                                  Bold Stroke
 Component Pattern

 Structure
             Based on Façade Design Pattern*
                                         ComponentConsumer




                                                             ComponentFacade




                                            ComponentSupplier1           ComponentSupplier2




                                                                                         Shown in Unified Modeling Language

 *Gamma et al., Design Patterns: Elements of Reusable Object-Oriented Software

First Software Product Line Conference                                                                                 2
                                                                                                          Bold Stroke
 Configurable Component Pattern

 Example
                                                                                                     Reused


    User API




    Airframe                              Horiz.              Vertical           Rot.              ...
                                         Substate             Substate         Substate
                                                                                                         Required

    Configuration
    API
                         Horizontal
                         Sensors
                                                    ...   Vertical
                                                          Sensors
                                                                         ...   Rotational
                                                                               Sensors
                                                                                                          ...
     Static Wiring                                                                                         Optional
     Dependencies
     User API                                  User API                        User API

     INS                                       EGI                             ADC
     Configuration API                         Configuration API               Configuration API


                                                                                                    Project Specific


First Software Product Line Conference                                                                          3
                                                                                                              Bold Stroke
 Configurable Component Pattern

 Implementation (cont)
             Abstract Factory Pattern* Defines
              Configuration Technique
                                                                                 AirframeFactory
                                            Airframe
                                                                 CreateHorizontalSubstate () : HorizontalSubstate*
                                                                 CreateVerticalSubstate () : VerticalSubstate*
                                                                 CreateRotationalSubstate () : RotationalSubstate*



   HorizontalSubstate                VerticalSubstate     RotationalSubstate




                 1..*                             1..*               1..*
    HorizontalSensor                     VerticalSensor   RotationalSensor




 *Gamma et al., Design Patterns: Elements of Reusable Object-Oriented Software

First Software Product Line Conference                                                                               4
                                                                                                                          Bold Stroke



  Logical Architecture Overview
                                                           System          Layer
Configurator
                                                         Configurator   Configurator

                                                            Display        Display
Operator          View                        Cockpits                                      Controller     Commands               D
                                                            Formats        Surfaces
                                                                                                                                  e
                                                                                                                                  p
                                                                                                                                  e
                                                                              Ballistic       Ground                              n
                                                             Missiles                                                             d
                                                                              Weapons         Points
                  Real World Model                                                                                                e
                                                                                               Earth                              n
                                                             Airframe         Steering
                                                                                               Model                              c
Model                                                                                                                             i
                                                                                                                                  e
                  Avionics Interfaces                         Radar             INS             GPS                               s


                                                             State
                  Building Blocks                                            Distributors
                                                            Machines


Infrastructure  ORB                  Event        Name       Replication     Persistence      Scheduler     I/O      Time
Services       Services             Service      Service      Service         Service          Service    Service   Service



 First Software Product Line Conference                                                                                       5
                                                                                            Bold Stroke



  OFP Production System
             Reuse Library




           Essential                     Desired
           Common                        Pluggable
           Components                    Common
                                                      Project Specific
                                         Components
                                                      Components          Project Library


       OFP Configurator

                                                       Essential
                                                       Project Specific
                                                       Plug-ins



            OFPs Created Via Component Selection and Wiring

First Software Product Line Conference                                                         6
                                                             Bold Stroke



 Component Composition Methods
             New System Development
                 •    Spreadsheet
                 •    Purdue Tool
                 •    XML-Based Tool
                 •    Model-Based Integration of Embedded Systems
                      Program Tools (MoBIES)
             Legacy System Upgrades




First Software Product Line Conference                          7
                                                                                         Bold Stroke



          Spreadsheet Tool
                  ComponentType      Identifier   PersistenceEnabled   …
Processor1
Layer1
   ComponentA          Class1          1101               Y
   ComponentB          Class2          1102               Y
   ComponentC          Class3          1103               N
Layer2
   ComponentD          Class2          1201               Y
                                                                           Perl Script
   ComponentE          Class4          1202               N
Processor2
Layer1
   ComponentF          Class5          2101               N
   ComponentG          Class5          2102               N
Layer2
   ComponentH          Class1          2201               Y
    ComponentI         Class6          2202               Y




                                                                           C++ Code



         First Software Product Line Conference                                             8
                                                          Bold Stroke



 Purdue Tool
                                           Graphical
       “Build Master”                    Viewer/Editor




          Build Model                    Code Generator




                                           C++ Code

First Software Product Line Conference                       9
                                                             Bold Stroke



 XML Based Tool
<config>
<processor>
<layer>
<component>
…                                         Table and Graphical
</component>                             Based Viewers/Editors
</layer>
</processor>
</config>




First Software Product Line Conference                           10
                                                                Bold Stroke



 MoBIES
             New DARPA Program
             Composition technologies for real-time
              systems
                 • Multi-view modeling of cross-cutting properties
                    – Scheduling, concurrency, distribution...
                 • Meta-code generation
                 • Framework integration
                                        Also “Program Composition
                                        for Embedded Systems”
                                        (PCES)-
                                         AOP for real-time systems
First Software Product Line Conference                               11
                                                            Bold Stroke



 Legacy Upgrades
             “Incremental Upgrade of Legacy Systems”
              Program
                 • Automated generation of C++ wrappers for legacy
                   software
                 • Using Honeywell MetaH toolset




First Software Product Line Conference                         12
                                                      Bold Stroke



 Lessons Learned
             Need both tabular and graphical views
             Key issues:
                 • Simplicity
                 • Scalability
                 • Configuration management




First Software Product Line Conference                   13

				
DOCUMENT INFO
Shared By:
Categories:
Tags:
Stats:
views:3
posted:8/26/2012
language:English
pages:13