Article | Proceedings of the 7th International Modelica Conference; Como; Italy; 20-22 September 2009 | An OpenModelica Java External Function Interface Supporting MetaProgramming
Göm menyn

Title:
An OpenModelica Java External Function Interface Supporting MetaProgramming
Author:
Martin Sjölund: PELAB Programming Environment Lab, Dept. Computer Science, Link√∂ping University, Sweden Peter Fritzson: PELAB Programming Environment Lab, Dept. Computer Science, Link√∂ping University, Sweden
DOI:
10.3384/ecp09430121
Download:
Full text (pdf)
Year:
2009
Conference:
Proceedings of the 7th International Modelica Conference; Como; Italy; 20-22 September 2009
Issue:
43
Article no.:
20,
Pages:
184-192
No. of pages:
9
Publication type:
Abstract and Fulltext
Published:
2009-12-29
ISBN:
978-91-7393-513-5
Series:
Linköping Electronic Conference Proceedings
ISSN (print):
1650-3686
ISSN (online):
1650-3740
Publisher:
Linköping University Electronic Press; Linköpings universitet


Export in BibTex, RIS or text

A complete Java interface to OpenModelica has been created; supporting both standard Modelica and the metamodeling extensions in MetaModelica. It is bidirectional; and capable of passing both standard Modelica data types; as well as abstract syntax trees and list structures to and from Java and process them in either Java or the OpenModelica Compiler. It currently uses the existing CORBA interface as well as JNI for standard Modelica. It is also capable of automatically generating the Java classes corresponding to MetaModelica code. This interface opens up increased possibilities for tool integration between OpenModelica and Java-based tools; since for example models or model fragments can be extracted from OpenModelica; processed in a Java tool; and put back into the main model representation in OpenModelica.

Keywords: Java; OpenModelica; MetaModelica; external function; abstract syntax

Proceedings of the 7th International Modelica Conference; Como; Italy; 20-22 September 2009

Author:
Martin Sjölund, Peter Fritzson
Title:
An OpenModelica Java External Function Interface Supporting MetaProgramming
DOI:
http://dx.doi.org/10.3384/ecp09430121
References:

[1] Björklén S. Extending Modelica with High-Level Data Structures: Design and Implementation in OpenModelica. Linköping; Sweden: Master’s thesis; Department of Computer and Information Science; Linköping University; 2008.


[2] Fritzson P. Principles of Object-Oriented Modeling and Simulation with Modelica 2.1; 940 pages. Wiley-IEEE Press; 2004. doi: 10.1109/9780470545669.


[3] Fritzson P. MetaModelica Programming Guide; June 2007 draft. http://openmodelica.org/.


[4] Modelica Association. The Modelica Language Specification Version 3.0; September 2007. http://www.modelica.org/.


[5] López J.D.; Olsson H. Dymola interface to Java - A Case Study: Distributed Simulations. In: Proceedings of the 5th International Modelica Conference; Vienna; Austria; 4-5 September 2006.


[6] Olsson H. External Interface to Modelica in Dymola. Proceedings of the 4th International Modelica Conference; Hamburg; Germany; 7-8 March 2005.


[7] OpenModelica. OpenModelica System Documentation; January 2009. http://openmodelica.org/.


[8] Parr T. ANTLR Parser Generator. http://antlr.org/.


[9] Parr T. StringTemplate Template Engine. http://stringtemplate.org/.

Proceedings of the 7th International Modelica Conference; Como; Italy; 20-22 September 2009

Author:
Martin Sjölund, Peter Fritzson
Title:
An OpenModelica Java External Function Interface Supporting MetaProgramming
DOI:
http://dx.doi.org/10.3384/ecp09430121
Note: the following are taken directly from CrossRef
Citations:
No citations available at the moment


Responsible for this page: Peter Berkesand
Last updated: 2017-02-21