liu.seSearch for publications in DiVA
Change search
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • oxford
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf
FrontWay PaperFront to OpenModelica Translator
Linköping University, Department of Computer and Information Science, PELAB - Programming Environment Laboratory.
Linköping University, Department of Computer and Information Science, PELAB - Programming Environment Laboratory.
2011 (English)Independent thesis Advanced level (degree of Master (Two Years)), 30 credits / 45 HE creditsStudent thesis
Abstract [en]

Many companies in the domain of modeling and simulation are showing interest in the new emerging OpenModelica, an object oriented modeling and simulation platform based on Modelica language.

The purpose of this thesis is to study if and how simulation libraries written in ExtendSim such as PaperFront, can be semi-automatically converted to equivalent Modelica libraries. The ExtendSim tool is based upon a C like language called ModL that is used for designing models. A prototype translator is developed for translating ModL to Modelica. One difficulty that had to be overcome was the fact that ExtendSim is a commercial tool which hides part of its model information in a binary format. The generated code from prototype translator can be viewed using any text editor or using the textual view of Modelica graphical editors such as OMEdit or Dymola.

The implementation of the prototype translator is done using the Java based ANTLR tool, which generates a parser and a lexer from the defined grammar rules. Moreover, a set of templates is written using the StringTemplate language for the code generation. The prototype translator takes ModL code of an ExtendSim library file and generates an Abstract Syntax Tree (AST), which is then converted to an equivalent Modelica AST. This Modelica AST is later converted to textual Modelica code. Subject to limited resource availability and time constraints of the thesis work, the basic constructs of ModL language are supported by the translator e.g. data types, if-else statements, loops, procedures etc. The enhancements in the translator can be made in the future by adding support for remaining language features such as support for tracing and additional ModL built-in functions etc.

Place, publisher, year, edition, pages
2011. , p. 70
Keywords [en]
OpenModelica, ExtendSim, Translator, ANTLR, AST, StringTemplate, Parser
National Category
Software Engineering
Identifiers
URN: urn:nbn:se:liu:diva-72085ISRN: LIU-IDA/LITH-EX-A--11/040--SEOAI: oai:DiVA.org:liu-72085DiVA, id: diva2:456828
Subject / course
Computer and information science at the Institute of Technology
Uppsok
Technology
Available from: 2011-11-16 Created: 2011-11-16 Last updated: 2018-01-12Bibliographically approved

Open Access in DiVA

FrontWay PaperFront to OpenModelica Translator(2156 kB)668 downloads
File information
File name FULLTEXT01.pdfFile size 2156 kBChecksum SHA-512
5a394ee4576a09aef83e5a542c95e312f08421e8993fc7751a88ddbe28325569c212f270292d6555b92e8bab540c6bb09ee62351b75b7c0961d4d95b05f41b22
Type fulltextMimetype application/pdf

By organisation
PELAB - Programming Environment Laboratory
Software Engineering

Search outside of DiVA

GoogleGoogle Scholar
Total: 668 downloads
The number of downloads is the sum of all downloads of full texts. It may include eg previous versions that are now no longer available

urn-nbn

Altmetric score

urn-nbn
Total: 4301 hits
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • oxford
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf