OpenModelica Development Environment with Eclipse Integration - - PowerPoint PPT Presentation

openmodelica development environment with eclipse
SMART_READER_LITE
LIVE PREVIEW

OpenModelica Development Environment with Eclipse Integration - - PowerPoint PPT Presentation

OpenModelica Development Environment with Eclipse Integration Adrian Pop, Peter Fritzson, Andreas Remar, Elmir Jagudin, David Akhvlediani Programming Environment Laboratory Department of Computer and Information S cience Linkping University


slide-1
SLIDE 1

OpenModelica Development Environment with Eclipse Integration

Adrian Pop, Peter Fritzson, Andreas Remar, Elmir Jagudin, David Akhvlediani

Programming Environment Laboratory Department of Computer and Information S cience Linköping University 2006-09-05 Modelica’ 2006, S eptember 4-5, Vienna, Austria

slide-2
SLIDE 2

2

Outline

Introduction

OpenModelica

Eclipse Environment for Modelica/ MetaModelica

Overview Examples

Conclusions and Future Work Demo

slide-3
SLIDE 3

3

OpenModelica Context

Parse Client: Eclipse Plugin Corba Client: OMShell Interactive Session Handler Server: Main Program Including Compiler, Interpreter, etc. Interactive SCode Inst Ceval plot system etc.

Untyped API Typed Checked Command API

Client: Graphic Model Editor

slide-4
SLIDE 4

4

Modelica Development Tooling (MDT)

S

upports textual editing of Modelica/ MetaModelica code

Was created to ease the development of the

OpenModelica development (114232 lines of code) and to support advanced Modelica library development

It has most of the functionality expected from a

Development Environment

code browsing code assistance code indentation code highlighting error detection automated build of Modelica/ MetaModelica proj ects debugging

slide-5
SLIDE 5

5

Modelica Perspective

The MDT Eclipse Environment

Modelica Editor Modelica Browser Modelica Code Assistant MetaModelica Debugging

slide-6
SLIDE 6

6

The MDT Eclipse Environment (II)

.mo file

OMC Compiler Small Modelica Parser

Eclipse Modelica model

AST Information

Modelica Browser Modelica Code Assistant Modelica Editor MetaModelica Builder MetaModelica Build console MMC Compiler MetaModelica Debugging

slide-7
SLIDE 7

7

The MDT Eclipse Environment (III)

.mo file

MMC Compiler

Eclipse

MetaModelica Debugging Modelica Editor Executable + Debugging runtime

slide-8
SLIDE 8

8

Creating Modelica proj ects (I)

Creation of Modelica proj ects using wizards

slide-9
SLIDE 9

9

Creating Modelica proj ects (II)

Modelica proj ect

slide-10
SLIDE 10

10

Creating Modelica packages

Creation of Modelica packages using wizards

slide-11
SLIDE 11

11

Creating Modelica classes

Creation of Modelica classes, models, etc, using wizards

slide-12
SLIDE 12

12

Code browsing

Code Browsing for

easy navigation within Modelica files. Automatic update on file save.

slide-13
SLIDE 13

13

Error detection (I)

Parse error detection on file save

slide-14
SLIDE 14

14

Error detection (II)

S emantic error detection on file save

slide-15
SLIDE 15

15

Code assistance (I)

Code Assistance on imports.

slide-16
SLIDE 16

16

Code assistance (II)

Code Assistance on assignments.

slide-17
SLIDE 17

17

Code assistance (III)

Code Assistance on function calling.

slide-18
SLIDE 18

18

Code indentation

Code Indentation

slide-19
SLIDE 19

19

Code folding

Code Folding

slide-20
SLIDE 20

20

Conclusions and Future work

Conclusions

advanced Modelica/ MetaModelica Eclipse Environment proj ect, package, class, model management code browsing and assistance integrated debugging

Future Work

support refactorings better code checking better code navigation (hyperlinks, go to definition) faster debugging more code assistance code templates UML view of Modelica/ MetaModelica Code

slide-21
SLIDE 21

21

MDT Eclipse Environment Demo

Demo

slide-22
SLIDE 22

22

End

Thank you! Questions?

http://www.ida.liu.se/labs/pelab/modelica/OpenModelica.html