Integrating Simulink Stateflow into a System Development by cali0998

VIEWS: 21 PAGES: 15

									                            Integrating Simulink /
                               Stateflow into a
                            System Development
                                Environment

Frank Altheide, Heiko Dörr, RIC/SM
{frank.altheide | heiko.doerr}@daimlerchrysler.com
Typical Application
    Scenarios
 Sample Tool Environment for
 System Development

                      Analysis of
                                                                       System integration
                        system
                                                                            and test
                     requirements
                                          Test case elicitation
RM data base
                        Design of
                    system architecture
                                                                         Software
                                                                        integration        Hardware in
                                               Model test                 and test          the Loop
Dynamic modelling
                           Software design
                                                                              Test of communication
                                              Configuration
                                                                  and test

            Code Generation           Software
                                      implementation
                                                                                           SW test
  ToolNet                                                Code checking          20.04.04             3
Application Scenario
Modelling Components

   Stepwise construction of model
    accompanied by simultaneous
    documentation of requirements

   Characteristics
         Model creation within Simulink
         Requirements specification within
          RM tool (e.g. Doors)
         Assign requirements to model
          elements
         Trace between requirements and
          model elements



ToolNet                                       20.04.04   4
                                            User                   TopLevelRequirements                   Abstract Test Cases




Application Scenario                        System
                                                       System Requirements
                                                                                 Context Diagram


                                                                                       System Behaviour
                                                                                                                  Concrete Test Cases




                                                                                                                     Abstract Test Cases




Model Documentation                         Software   Software Requirements          Function Block Diagr.




                                                                               Parameter / Interface
                                                                                                                    Concrete Test Cases




   Relation “REALISES”
    Function Blocks x Software
    Requirements




                                 REALISES




ToolNet                                     20.04.04                                                                                5
Tool Integration
     Goals
Tool Integration Goals
w.r.t. Data

   Data integration
         Typical EAI-application: transparent access on distributed data
          bases via separate (web-)client
         Realised by 3-layer architecture incorporating integrated data
          model
   Data / model exchange
         Exchange of data with common semantics (e.g. XMI for UML
          models, STEP AP233)
         Assumes common semantics implemented by each of the tools
   Data / model transformation
         Simple for data with simple semantics
         High efforts for models with elaborated semantics (e.g. statecharts)
ToolNet                                                        20.04.04     7
Tool Integration Goals
w.r.t. Functionality

   Establish fixed work flow connecting the functions provided
    by the tools (e.g. make, Unix pipes, stepwise model
    transformation)

   User driven work flow calling fixed, additional data
    transformation (e.g. MTest)

   Concurrent operation of tools (e.g. co-simulation)

   Provide common and additional functionality for integrated
    tools
ToolNet                                               20.04.04    8
Tool Integration Goals
w.r.t. Presentation

   Application of common widget libraries (e.g. Swing, Athena
    Widgets)

   Common look-and-feel




ToolNet                                            20.04.04      9
Tool Integration Goals of ToolNet


                                                                                                                     Common look-and-feel
Tool Integration Goals
w.r.t. Data                                                                                                          Provide common and additional
   Data integration
         Typical EAI-application: transparent access on distributed data bases via
                                                                                                                      functionality for integrated tools
          separate (web-)client


                  by 3-layer architecture incorporating integrated data model
          Realised Tool Integration Goals
    Data / model exchange
              w.r.t. Functionality
                                                                                                                     Simple data integration
         Exchange of data with common semantics (e.g. XMI for UML models,
          STEP AP233)
                  Establish fixed work flow connecting the functions provided by the
         Assumes common semantics implemented by each of the tools
                 tools (e.g. make, Unix pipes, stepwise model transformation)
   Data / model transformation

                                                                                                                       ... based on tracing information
         Simple for data with simple semantics
                                   Tool Integration Goals
         High effortsUser driven work flow calling fixed, additional data transformation
                    for models with elaborated semantics (e.g. statecharts)
                      (e.g. MTest)w.r.t. Presentation

                                                                                                                        as THE essence of integration
ToolNet                                                             20.04.04      1


                   Concurrent  Application of common widget libraries (e.g. Swing, Athena
                               operation of tools (e.g. co-simulation)
                                       Widgets)
                     Provide common and additional functionality for integrated tools
                                  Common look-and-feel

                   ToolNet                                                            20.04.04   8




                                    ToolNet                                                          20.04.04   9




ToolNet                                                                                                                                    20.04.04        10
The ToolNet
 Approach
System Architecture
Information Backbone

                                                                      Link         ToolNet
                          ...                            ...
                                                                     Manager
                                                                                    Server
                                    ToolNet - Backbone
                      MS             Test             Project        Session
                      Word           Director         Manager        Manager



   Specific characteristics                       Roles of tools within integration
         Data remains in tools instead of              Project management
          exchanging it                                 Editor
         Capture common behaviour of                   Presentation
          tools by specific group of services           Data source
         Encapsulate functionality relevant            Link management
          for integration by Facade pattern
         Concentrate on inter-operation

ToolNet                                                                 20.04.04        12
Detailed System Architecture – Interfaces


                          Tool
                                               Tool
                        Extension
                                                                ToolNet
                                  Tool API Wrapper              enabled
                        Service                        Client
                                                                Tool
                                      ID Mapper
                        Implem.                       Implem.


                                    Service Wrapper


                                               Session-         Communication
          Webservices     Messaging
                                              Management
                                                                layer
                                     Protocol layer
                                    (SOAP-Gateway)




ToolNet                                                          20.04.04   13
How it looks




ToolNet        20.04.04   14
Conclusion


 ToolNet V1.0 is a framework for the low-cost integration of
  system development tools
 As a sample Simulink / Stateflow has been integrated with
         Doors for requirements management and
         CTE for test case elicitation
 At present, pilot applications are executed
 Seeking for co-operation with external partners
         to exploit the framework capabilities
         to extend the set of supported tools and integration functionality



ToolNet                                                         20.04.04       15

								
To top