elib
DLR-Header
DLR-Logo -> http://www.dlr.de
DLR Portal Home | Impressum | Datenschutz | Kontakt | English
Schriftgröße: [-] Text [+]

Operator Overloading in Modelica 3.1

Olsson, Hans und Otter, Martin und Elmqvist, Hilding und Brück, Dag (2009) Operator Overloading in Modelica 3.1. In: Proceedings of the 7th International Modelica Conference, Seiten 219-224. Linköping University Electronic Press. 7th Modelica Conference, 20.-22. Sept. 2009, Como, Italien. ISBN 978-91-7393-513-5. ISSN 1650-3740.

[img]
Vorschau
PDF
309kB

Offizielle URL: http://www.ep.liu.se/ecp/043/

Kurzfassung

The constructor and operator overloading introduced in Modelica 3.1 is discussed. The goal is that elementary operators like “+” or “*” can be overloaded for records. This makes it possible to define and use, in a convenient way, complex numbers, polynomials, transfer functions, state space systems, etc. The chosen approach is different to other languages: (a) Only scalar operations need to be overloaded. Array operations are then automatically available, so the growth of the number of overloaded functions is avoided. (b) Automatic type casts between different data types is performed using overloaded constructor functions. Again this reduces the number of overloaded functions. (c) The approach is conservative and only allows overloading if no ambiguity is present, in order to not introduce pitfalls into the language. This is reached by basing the overloading on disjoint sets of matching functions and not on a priority match.

elib-URL des Eintrags:https://elib.dlr.de/62366/
Dokumentart:Konferenzbeitrag (Vortrag, Paper)
Titel:Operator Overloading in Modelica 3.1
Autoren:
AutorenInstitution oder E-Mail-AdresseAutoren-ORCID-iDORCID Put Code
Olsson, HansDynasimNICHT SPEZIFIZIERTNICHT SPEZIFIZIERT
Otter, MartinMartin.Otter (at) DLR.deNICHT SPEZIFIZIERTNICHT SPEZIFIZIERT
Elmqvist, HildingDynasimNICHT SPEZIFIZIERTNICHT SPEZIFIZIERT
Brück, DagDynasimNICHT SPEZIFIZIERTNICHT SPEZIFIZIERT
Datum:2009
Erschienen in:Proceedings of the 7th International Modelica Conference
Referierte Publikation:Ja
Open Access:Ja
Gold Open Access:Nein
In SCOPUS:Nein
In ISI Web of Science:Nein
Seitenbereich:Seiten 219-224
Herausgeber:
HerausgeberInstitution und/oder E-Mail-Adresse der HerausgeberHerausgeber-ORCID-iDORCID Put Code
Casella, FrancescoNICHT SPEZIFIZIERTNICHT SPEZIFIZIERTNICHT SPEZIFIZIERT
Verlag:Linköping University Electronic Press
ISSN:1650-3740
ISBN:978-91-7393-513-5
Status:veröffentlicht
Stichwörter:overloading, automatic overloading of arrays, overloading without ambiguities
Veranstaltungstitel:7th Modelica Conference
Veranstaltungsort:Como, Italien
Veranstaltungsart:internationale Konferenz
Veranstaltungsdatum:20.-22. Sept. 2009
Veranstalter :The Modelica Association
HGF - Forschungsbereich:Luftfahrt, Raumfahrt und Verkehr
HGF - Programm:Verkehr
HGF - Programmthema:Bodengebundener Verkehr (alt)
DLR - Schwerpunkt:Verkehr
DLR - Forschungsgebiet:V BF - Bodengebundene Fahrzeuge
DLR - Teilgebiet (Projekt, Vorhaben):V - Assistenz für Verkehrsteilnehmer (alt)
Standort: Oberpfaffenhofen
Institute & Einrichtungen:Institut für Robotik und Mechatronik (bis 2012) > Systemdynamik und Regelungstechnik (war Entwurfsorientierte Regelungstechnik)
Hinterlegt von: Klauer, Monika
Hinterlegt am:08 Jan 2010 15:14
Letzte Änderung:31 Jul 2019 19:26

Nur für Mitarbeiter des Archivs: Kontrollseite des Eintrags

Blättern
Suchen
Hilfe & Kontakt
Informationen
electronic library verwendet EPrints 3.3.12
Gestaltung Webseite und Datenbank: Copyright © Deutsches Zentrum für Luft- und Raumfahrt (DLR). Alle Rechte vorbehalten.