Compiling and Using Pattern Matching in Modelica
2008 (English)In: Proceedings of the 6th International Modelica Conference, March 3rd-4th, 2008, University of Applied Sciences Bielefeld, Bielefeld, Germany / [ed] Bernhard Bachmann, Modelica Website: Modelica Association , 2008, 637-645 p.Conference paper (Refereed)
Pattern matching is a well-known, powerful language feature found in functional programming languages. In this paper we present the implementation of pattern matching for Modelica. A pattern matching construct is useful for classification and decomposition of (possibly recursive) hierarchies of components such as the union type structures in the MetaModelica language extension. We argue that pattern matching not only is useful for language specification (as in the MetaModelica case) but also to write functional-style programs. One useful application is in list processing (lists are currently missing from Modelica but are part of MetaModelica). Other possible applications are in the generation of models from other models, e.g. the generation of models with uncertainty equations or models with different parameters. Another application is the generation of documentation from models and checking of guidelines or certain properties of models.
Place, publisher, year, edition, pages
Modelica Website: Modelica Association , 2008. 637-645 p.
Pattern Matching, Modelica
IdentifiersURN: urn:nbn:se:liu:diva-43732Local ID: 74624OAI: oai:DiVA.org:liu-43732DiVA: diva2:264592
The 6th International Modelica Conference, March 3rd-4th, 2008, University of Applied Sciences Bielefeld, Bielefeld, Germany