130 likes | 494 Views
Generative Techniques for Real-Time Embedded Systems. David Sharp david.sharp@boeing.com The Boeing Company St. Louis, Missouri. ComponentFacade. Component Pattern Structure. Based on Façade Design Pattern*. ComponentConsumer. ComponentSupplier1. ComponentSupplier2.
E N D
Generative Techniques for Real-Time Embedded Systems David Sharp david.sharp@boeing.com The Boeing Company St. Louis, Missouri
ComponentFacade Component PatternStructure • Based on Façade Design Pattern* ComponentConsumer ComponentSupplier1 ComponentSupplier2 Shown in Unified Modeling Language *Gamma et al., Design Patterns: Elements of Reusable Object-Oriented Software
... ... Horizontal Sensors Vertical Sensors User API User API EGI ADC User API Configuration API Configuration API INS Configuration API Configurable Component PatternExample Reused User API Airframe ... Horiz. Substate Vertical Substate Rot. Substate Required Configuration API ... Rotational Sensors Optional Static Wiring Dependencies Project Specific
AirframeFactory Airframe CreateHorizontalSubstate () : HorizontalSubstate* CreateVerticalSubstate () : VerticalSubstate* CreateRotationalSubstate () : RotationalSubstate* Configurable Component PatternImplementation (cont) • Abstract Factory Pattern* Defines Configuration Technique HorizontalSubstate VerticalSubstate RotationalSubstate 1..* 1..* 1..* 1..* 1..* 1..* HorizontalSensor VerticalSensor RotationalSensor *Gamma et al., Design Patterns: Elements of Reusable Object-Oriented Software
Logical Architecture Overview Configurator System Configurator Layer Configurator Operator View Controller Cockpits Display Formats Display Surfaces Commands Model Real World Model Missiles Ballistic Weapons Ground Points D e p e n d e n c i e s Airframe Steering Earth Model Avionics Interfaces Radar INS GPS Building Blocks State Machines Distributors Infrastructure Services ORB Services Event Service Name Service Replication Service Persistence Service Scheduler Service I/O Service Time Service
Project Specific Components OFP Production System Reuse Library Desired Pluggable Common Components Essential Common Components Project Library OFP Configurator Essential Project Specific Plug-ins OFPs Created Via Component Selection and Wiring
Component Composition Methods • New System Development • Spreadsheet • Purdue Tool • XML-Based Tool • Model-Based Integration of Embedded Systems Program Tools (MoBIES) • Legacy System Upgrades
Spreadsheet Tool Perl Script C++ Code
Purdue Tool Graphical Viewer/Editor “Build Master” Code Generator Build Model C++ Code
XML Based Tool <config> <processor> <layer> <component> … </component> </layer> </processor> </config> Table and Graphical Based Viewers/Editors
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
Legacy Upgrades • “Incremental Upgrade of Legacy Systems” Program • Automated generation of C++ wrappers for legacy software • Using Honeywell MetaH toolset
Lessons Learned • Need both tabular and graphical views • Key issues: • Simplicity • Scalability • Configuration management