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, 2009-09-20 - 2009-09-22, Como, Italien. ISBN 978-91-7393-513-5. ISSN 1650-3740.
|
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: |
| ||||||||||||||||||||
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: |
| ||||||||||||||||||||
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 | ||||||||||||||||||||
Veranstaltungsbeginn: | 20 September 2009 | ||||||||||||||||||||
Veranstaltungsende: | 22 September 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: | 24 Apr 2024 19:27 |
Nur für Mitarbeiter des Archivs: Kontrollseite des Eintrags