Cbse With Embeded System

Embed Size (px)

Citation preview

  • 8/6/2019 Cbse With Embeded System

    1/21

    Explicit Connectors in

    Component Based

    Software Engineering for

    DistributedEmbedded Systems

  • 8/6/2019 Cbse With Embeded System

    2/21

    2/21

    Overview

    This talk is about Component Based Software Engineering

    components

    connectors

    contracts Embedded Systems Software

    distributed

    dependable

    resource constrained

    Software Development Process Model Driven Development

    Validation and Verification of CompositionModels

  • 8/6/2019 Cbse With Embeded System

    3/21

    3/21

    Contribution

    We show how to simplify the development of

    component based distributed embeddedapplications by introducing explicit

    component connectors within modeldriven SE (UML 2).

    how to support validation ofcommunication properties at model level.

    which types of contracts are required formodel level validation of communicationwithin composed structures.

  • 8/6/2019 Cbse With Embeded System

    4/21

    4/21

    Outline

    Overview of the Automotive EmbeddedSystems Domain.

    Component Based Software Engineeringand Model Driven Development fordistributed embedded systems.

    Contract Types in Composition Models.

    Example Composition with ExplicitConnectors and Contracts.

  • 8/6/2019 Cbse With Embeded System

    5/21

    5/21

    Automotive Embedded Systems

    Overview

    Today's vehicle networks are truly distributedelectronic systems (70+ nodes (=ECUs) [1]).

    Cars contain numerous (10+) heterogeneous time orevent driven bus systems

    CAN, LIN, FlexRay, MOST

    x-by-wire

    steering aids, ABS, ESP(DSC)

    remote window and lock control

    engine control

    airbag control

    navigation systems

    entertainment systems

    [1] P. Hansen. New s-class mercedes: Pioneering electronics. The Hansen

    Report on Automotive Electronics, 18(8):12, October 2005.

  • 8/6/2019 Cbse With Embeded System

    6/21

    6/21

    Automotive Embedded Systems

    Typical Properties

    Software is mission critical highly dependable

    hard real-time

    typically statically scheduled and bound

    Lifetime is rather long (10-14 years) modular design

    exchangeable components (modules)

    Systems are produced in high quantities(56.3 million cars in 2005) costs have to be small

    bug fixes are extremely expensive

  • 8/6/2019 Cbse With Embeded System

    7/21

    7/21

    Outline

    Overview of the Automotive EmbeddedSystems Domain.

    Component Based Software Engineeringand Model Driven Development fordistributed embedded systems.

    Contract Types in Composition Models.

    Example Composition with ExplicitConnectors and Contracts.

  • 8/6/2019 Cbse With Embeded System

    8/21

    8/21

    Component Based Software Engineering

    Overview

    Components are considered to be trusted element of execution

    with a well defined usagedescription

    contracts component contracts interface contracts

    conforming to a component model interaction standard composition standard

    deployment standard

    CBSE is a well known paradigm in classical softwareengineering. Applications are built by

    assembling components

    deploying composed structures within a system environment

  • 8/6/2019 Cbse With Embeded System

    9/21

    9/21

    Component Based Software Engineering

    Component Composition

    Association (connection) of provided and required interfaces interaction and communication implicit validation is typically an interface type check, sometimes also a protocol check

    Distributed Interaction (Communication) Fat Components Light Weight Components + Middleware

    Adapter

  • 8/6/2019 Cbse With Embeded System

    10/21

    10/21

    Component Based Software Engineering

    COMPASS[2] Metamodel

    PROCEDURAL_INTERFACE

    PORT

    id

    INTERFACE

    ersion

    id

    COMPONENT

    ersion

    id

    CONNECTOR

    id

    ASSEMBLY

    id

    DATA_INTERFACE

    P

    O

    I E

    0..*

    1

    1..*

    1

    EQ I

    E

    0..*

    1

    P

    O

    I E

    *

    *

    EQ I

    E

    *

    *

    EQ I

    E0..*

    1

    1

    1

    0..*

    1 2

    1

    P

    O

    I E

    0..*

    1

    0..* 1

    [1] COMPASS Component Based Automoti e System Software,

    http://www.infosys.tuwien.ac.at/compass

  • 8/6/2019 Cbse With Embeded System

    11/21

    11/21

    Component Based Software Engineering

    Explicit Connectors

    First class architectural entities embodyingcomponent interaction life cycle differs from that of a component

    at composition time connectors are abstract

    representations of interaction properties connectors materialize after the components

    deployment has been specified connector fragments are component like artefacts

    Hide matters of communication and distribution fromthe application components

    simplifies application components application development no longer requires detailed

    communication subsystem know-how, when using OTSconnector

    communication properties are bound to the connectors

  • 8/6/2019 Cbse With Embeded System

    12/21

    12/21

    Component Based Software Engineering

    Connector Fragmentation

    Connectors are fragmented if components are deployed over process/address space boundaries. components are deployed over different nodes.

    Separation into connector fragments is referred to as deploymentanomaly.

    Emerging contracts provide more detailed communication properties

  • 8/6/2019 Cbse With Embeded System

    13/21

    13

    /21

    Component Based Software Engineering

    Explicit Connector Example (RPCA)

  • 8/6/2019 Cbse With Embeded System

    14/21

    14

    /21

    Outline

    Overview of the Automotive EmbeddedSystems Domain.

    Component Based Software Engineeringand Model Driven Development fordistributed embedded systems.

    Contract Types in Composition Models.

    Example Composition with ExplicitConnectors and Contracts.

  • 8/6/2019 Cbse With Embeded System

    15/21

    15

    /21

    Component Based Software Engineering

    Contracts

    Specify provided and required attributes ofassociated model elements.

    Five main categories: Component Contract

    e.g. memory footprint, ECU restrictions Interface Contract

    e.g. operation signatures, temporal properties ofoperations

    Port Contract e.g. behavior protocols

    Connector Contract e.g. resource requirements, channel attributes (latency,

    )

    Platform Contract e.g. bus timing (in time-driven busses), ECU attributes

  • 8/6/2019 Cbse With Embeded System

    16/21

  • 8/6/2019 Cbse With Embeded System

    17/21

    17/21

    Outline

    Overview of the Automotive EmbeddedSystems Domain.

    Component Based Software Engineeringand Model Driven Development fordistributed embedded systems.

    Contract Types in Composition Models.

    Example Composition with ExplicitConnectors and Contracts.

  • 8/6/2019 Cbse With Embeded System

    18/21

    18/21

    Example

    CompositionComponent Contract

    Memory Usage

    ECU restrictions

    Component Contract

    Memory Usage

    ECU restrictions

    Interface Contract

    Interface Type

    Operation Signatures

    WCET

    Interface Contract

    Interface Type

    Operation Signatures

    WCET

  • 8/6/2019 Cbse With Embeded System

    19/21

    19

    /21

    Example

    Deployment Specification

    Platform Contract

    Memory Provision ECU specification

    Platform Contract

    Memory Provision

    ECU specificationPlatform Contract

  • 8/6/2019 Cbse With Embeded System

    20/21

    20/21

    Example

    Connector Transformation

    Connector Contract

    Calculated Interface Contract

    Provides properties of the server component but extends them by thecommunication subsystems constraints.

    WCET of operation at server is 0.01s WCET of connector fragments is 0.01s BusCycle length = 0.1s (has to be consumed)provided execution time = 0.12s !! Violation of Contract !

  • 8/6/2019 Cbse With Embeded System

    21/21

    21/21

    Conclusion

    The introduction of explicit connectors allows the usage of OTS embedded connectors

    encapsulating communication logic eliminates needs for heavy weight middleware

    simplifies the development of application components

    provides information on required system resources

    allows a model level validation of compositionalconstraints beyond simple type checks

    Future Work Generate custom tailored middleware from application

    models and connector building blocks. Develop a more precise meta-model for contracts.

    Thank You !