<!DOCTYPE OMNotebook>
<Notebook>
 <GroupCell closed="false" >
  <TextCell style="Text" >
   <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p align='right' style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times New Roman; font-size:12pt; color:#000000;">&lt;span style=" font-style:italic;">Version 2006-05-09&lt;/span>&lt;/p>&lt;/body>&lt;/html></Text>
   <Rule name="TextAlignment" >Right</Rule>
  </TextCell>
  <GroupCell closed="false" >
   <TextCell style="Title" >
    <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Arial; font-size:38pt; font-weight:600; color:#000000;">DrModelica&lt;span style=" font-size:24pt; vertical-align:super;">Modelica Edition&lt;/span>&lt;/p>&lt;/body>&lt;/html></Text>
   </TextCell>
   <TextCell style="Text" >
    <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times New Roman; font-size:12pt; color:#000000;">&lt;span style=" font-size:14pt;">Copyright: (c) Linköping University, PELAB, 2003-2006, Wiley-IEEE Press, Modelica Association.&lt;br />Contact: OpenModelica@ida.liu.se;  OpenModelica Project web site: www.ida.liu.se/projects/OpenModelica&lt;br />Book web page: www.mathcore.com/drModelica;  Book author: Peter.Fritzson@ida.liu.se&lt;br />&lt;br />DrModelica Authors: (2003 version) Susanna Monemar, Eva-Lena Lengquist Sandelin, Peter Fritzson, Peter Bunus &lt;br />DrModelica Authors: (2005 and later updates): Peter Fritzson&lt;/span>&lt;/p>&lt;/body>&lt;/html></Text>
    <Rule name="FontSize" >14</Rule>
   </TextCell>
   <TextCell style="Text" >
    <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times New Roman; font-size:12pt; color:#000000;">&lt;span style=" font-size:14pt; font-style:italic;">This DrModelica notebook has been developed to facilitate learning the Modelica language as well as providing an introduction to object-oriented modeling and simulation. It is based on and is supplementary material to the Modelica book: Peter Fritzson:  "Principles of Object-Oriented Modeling and Simulation with Modelica" (2004), 940 pages, Wiley-IEEE Press, ISBN 0-471-471631. All of the examples and exercises in DrModelica and the page references are from that book. Most of the text in DrModelica is also based on that book.&lt;/span>&lt;/p>&lt;/body>&lt;/html></Text>
    <Rule name="TextAlignment" >Left</Rule>
    <Rule name="TextJustification" >1</Rule>
    <Rule name="FontSize" >14</Rule>
   </TextCell>
   <GroupCell closed="true" >
    <TextCell style="Subsection (no numbers)" >
     <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times; font-size:14pt; font-weight:600; color:#000000;">Detailed Copyright and Acknowledgment Information&lt;/p>&lt;/body>&lt;/html></Text>
    </TextCell>
    <TextCell style="Text" >
     <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times New Roman; font-size:12pt; color:#000000;">&lt;span style=" font-size:14pt;">A number of the examples in this document (DrModelica) and in the Modelica book are reproduced from the Modelica Language specification and Users Guide, copyrighted by the Modelica Association, and are free to use under the Modelica License (www.modelica.org). A number of examples have been published in papers and contributed by researchers (gratefully acknowledged in the book) for free use in the Modelica book and supplementary teaching material such as DrModelica. The rest of the examples in DrModelica are only from the Modelica Book, (c) by Wiley-IEEE Press, and are allowed for free usage if you and/or the teacher using this material have acquired that book.&lt;br />&lt;br />The OMNotebook plotting uses the ptplot package in the Ptolemy II system developed and copyrighted by the University of California.&lt;br />&lt;br />&lt;/span>&lt;span style=" font-size:14pt; font-weight:600;">General notice: &lt;/span>&lt;span style=" font-size:14pt;">All rights reserved. Reproduction or use of editorial or pictorial content in any manner is prohibited without expressed permission, if such content is not available by permission from another source. No patent liability is assumed with respect to the use of the information contained herein. While every precaution has been taken in the preparation of this manual, the publisher assumes no responsibility for errors or omissions. Neither is any liability assumed for damages resulting from the use of the information contained.&lt;/span>&lt;/p>&lt;/body>&lt;/html></Text>
     <Rule name="FontSize" >14</Rule>
    </TextCell>
   </GroupCell>
   <GroupCell closed="false" >
    <TextCell style="Subsection (no numbers)" >
     <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times; font-size:14pt; font-weight:600; color:#000000;">Getting Started Using OMNotebook&lt;/p>&lt;/body>&lt;/html></Text>
    </TextCell>
    <TextCell style="Text" >
     <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times New Roman; font-size:12pt; color:#000000;">&lt;span style=" font-size:14pt; font-weight:600;">IMPORTANT:&lt;/span>&lt;span style=" font-size:14pt;"> To evaluate a cell just click in the specific cell and press &lt;/span>&lt;span style=" font-size:14pt; color:#0000ff;">shift+enter&lt;/span>&lt;span style=" font-size:14pt;">. If you end a command by semicolon (;), the value of the command will not be returned in an output cell. When using or saving your own files it is useful to first change the directory to the path where your files are located. This can be done by the &lt;/span>&lt;span style=" font-size:14pt; color:#0000ff;">cd()&lt;/span>&lt;span style=" font-size:14pt;"> command. For a more extensive tutorial explanation on how to use a notebook, see the notebook chapter in the OpenModelica Users Guide. A cell containing a Modelica model, class, or function has to be evaluated before it is possible to simulate it. To do this, click inside the cell or on the cell, and push &lt;/span>&lt;span style=" font-size:14pt; color:#0000ff;">shift-enter&lt;/span>&lt;span style=" font-size:14pt;">. Then you have to evaluate a simulate command, e.g. by typing "simulate(modelname, startTime=0, stopTime=25 );&lt;br />  &lt;br />After simulating a class it is possible to plot or just look at the values of the variables in the class by using the plot command. Note that Java must be installed on your computer in order to run plot. Variable names given to the plot command refer to the most recently simulated model - you do not need to provide the modelname as a prefix. When writing Modelica code a special ModelicaInput cell must be used. New cells can be inserted from the format menu. A new ModelicaInput/Command input cell can also be created by the short-cut command &lt;/span>&lt;span style=" font-size:14pt; color:#0000ff;">Ctrl+Shift+I&lt;/span>&lt;span style=" font-size:14pt;">, whereas a new cell with the same text style as the one above can be created by the short-cut command &lt;/span>&lt;span style=" font-size:14pt; color:#0000ff;">Alt+Enter&lt;/span>&lt;span style=" font-size:14pt;">.&lt;/span>&lt;/p>&lt;/body>&lt;/html></Text>
     <Rule name="FontSize" >14</Rule>
    </TextCell>
    <TextCell style="Text" >
     <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times New Roman; font-size:12pt; color:#000000;">&lt;span style=" font-size:14pt;">To open or close (toggle) the Detailed Copyright section (above), the OpenModelica command section, other sections below, &lt;/span>&lt;span style=" font-size:14pt; color:#0000ff;">double-click&lt;/span>&lt;span style=" font-size:14pt;"> on the section cell marker (vertical bracket) to the right of the corresponding cell.&lt;/span>&lt;/p>&lt;/body>&lt;/html></Text>
     <Rule name="FontSize" >14</Rule>
    </TextCell>
   </GroupCell>
   <GroupCell closed="true" >
    <TextCell style="Subsection (no numbers)" >
     <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times; font-size:14pt; font-weight:600; color:#000000;">OpenModelica commands&lt;/p>&lt;/body>&lt;/html></Text>
    </TextCell>
    <TextCell style="Text" >
     <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times New Roman; font-size:12pt; color:#000000;">&lt;span style=" font-family:Courier New;">Exit OMShell by pressing Ctrl-d&lt;br />&lt;br />up-arrow&lt;br />    Get previously given command.&lt;br />    &lt;br />down-arrow&lt;br />    Get next command.&lt;br />&lt;br />tab&lt;br />    Command completion of these builtin commands.&lt;br />    Circulate through the commands by only using tab key.&lt;br />&lt;br />cd()&lt;br />    Return the current directory&lt;br />&lt;br />cd(dir)&lt;br />    Change directory to the directory given as a string.&lt;br />    Ex: cd("myModels/myLibrary")&lt;br />&lt;br />clear()&lt;br />    Clear everything.&lt;br />&lt;br />clearVariables()&lt;br />    Clear the variables.&lt;br />&lt;br />help()&lt;br />    Print this helptext (returned as a string).&lt;br />&lt;br />instantiateModel(modelname)&lt;br />    Instantiates a model/class and returns a string &lt;br />    containing the flat class definition.&lt;br />    Ex: instantiateModel(dcmotor)&lt;br />&lt;br />list()&lt;br />    Return a string containing all class definitions.&lt;br />&lt;br />list(modelname)&lt;br />    Return a string containing the class definition of&lt;br />    the named class.&lt;br />    Ex: list(dcmotor)&lt;br />&lt;br />listVariables()&lt;br />    Return a vector of the currently defined variable &lt;br />    names.&lt;br />&lt;br />loadFile(strFile)&lt;br />    Load modelica file given as string argument.&lt;br />    Ex: loadFile("../myLibrary/myModels.mo")&lt;br />&lt;br />loadModel(name)&lt;br />    Load model, function, or package relative to $MODELICAPATH.&lt;br />    Ex: loadModel(Modelica.Electrical)&lt;br />    Note: if e.g. loadModel(Modelica) fails, you may have&lt;br />    MODELICAPATH pointing at the wrong location.&lt;br />&lt;br />plot(var)&lt;br />    Plot a variable from the most recently simulated model.&lt;br />    Ex: plot(x)&lt;br />&lt;br />plot(vars)&lt;br />    Plot variables from the most recently simulated model&lt;br />    given as a vector.&lt;br />    Ex: plot({x,y})&lt;br />&lt;/span>&lt;/p>&lt;p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Courier New; font-size:12pt; color:#000000;">&lt;/p>&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Courier New; font-size:12pt; color:#000000;"> plotParametric(var1, var2)&lt;/p>&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Courier New; font-size:12pt; color:#000000;">    Plot var2 relative to var1 from the most recently simulated &lt;/p>&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Courier New; font-size:12pt; color:#000000;">    model.&lt;/p>&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Courier New; font-size:12pt; color:#000000;">    Ex: plotParametric(x,y)&lt;/p>&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Courier New; font-size:12pt; color:#000000;">&lt;br />readFile(str)&lt;br />    Load file given as string and return a string of the&lt;br />    file content.&lt;br />    Ex: readFile("myModel/myModelr.mo")&lt;br />&lt;br />readSimulationResultSize(strFile)&lt;br />    Return the size of the record resulting from a simulation&lt;br />    The size is read from the result file, given as a string&lt;br />    Ex:  readSimulationResultSize("dcmotor_res.plt");&lt;br />&lt;br />readSimulationResult(strFile, variables, size)&lt;br />    Read the results of a simulation from a file named by&lt;br />    the string argument strFile. &lt;br />    Here size is the size of the resulting record and&lt;br />    variables is a vector of the variables to investigate.&lt;br />    Ex: readSimulationResult("dcmotor_res.plt", {R1.i,L1.v}, 10)&lt;br />&lt;br />runScript(strFile)&lt;br />    Exectute script file (.mos) given as string argument.&lt;br />    Ex: runScript("simulation.mos")&lt;br />&lt;br />saveModel(strFile,modelname)&lt;br />    Save the model/class with name modelname in the file given &lt;br />    by the strFile string argument.&lt;br />&lt;br />simulate(modelname[,startTime=][,stopTime=][,numberOfIntervals=])&lt;br />    Translates a model and simulates it.&lt;br />    Ex: simulate(dcmotor)&lt;br />    Ex: simulate(dcmotor,startTime=0, stopTime=10, numberOfIntervals=1000)&lt;br />&lt;br />system(str)&lt;br />    Execute str as a system(shell) command, return integer&lt;br />    success value.&lt;br />    Ex: system("touch myFile")&lt;br />&lt;br />timing(expr)&lt;br />    Evaluates expression and returns the number of seconds &lt;br />    the evaluation took.&lt;br />    Ex: timing(x*4711+5)&lt;br />&lt;br />typeOf(variable)&lt;br />    Returns the type of the variable as a string.&lt;br />    Ex: typeOf(R1.v)&lt;br />&lt;br />quit()&lt;br />    Leave OpenModelica and kill the process.&lt;br />&lt;/p>&lt;/body>&lt;/html></Text>
     <Rule name="FontFamily" >Courier New</Rule>
    </TextCell>
   </GroupCell>
   <GroupCell closed="true" >
    <TextCell style="Subsection (no numbers)" >
     <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times; font-size:14pt; font-weight:600; color:#000000;">Berkeley license OpenModelica&lt;/p>&lt;/body>&lt;/html></Text>
    </TextCell>
    <TextCell style="Text" >
     <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times New Roman; font-size:12pt; color:#000000;">&lt;span style=" font-size:14pt;">Copyright (c) 1998-2006, Linköpings universitet, &lt;br />&lt;br />Department of Computer and Information Science, PELAB&lt;br />&lt;br />Contact:&lt;br />Web:  www.ida.liu.se/projects/OpenModelica&lt;br />Email OpenModelica@ida.liu.se&lt;br />&lt;br />All rights reserved.&lt;br />&lt;br />(The new BSD license, see also http://www.opensource.org/licenses/bsd-license.php)&lt;br />&lt;br />Redistribution and use in source and binary forms, with or without modification, &lt;br />are permitted provided that the following conditions are met:&lt;br />&lt;br />    * Redistributions of source code must retain the above copyright notice, &lt;br />      this list of conditions and the following disclaimer.&lt;br />    * Redistributions in binary form must reproduce the above copyright notice, &lt;br />      this list of conditions and the following disclaimer in the documentation &lt;br />      and/or other materials provided with the distribution.&lt;br />    * Neither the name of Linköpings universitet nor the names of its contributors &lt;br />      may be used to endorse or promote products derived from this software without&lt;br />      specific prior written permission.&lt;br />&lt;br />THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"&lt;br />AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, &lt;br />THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A &lt;br />PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL &lt;br />THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,&lt;br /> INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES &lt;br /> (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS &lt;br /> OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS&lt;br />INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, &lt;br />WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE&lt;br /> OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,&lt;br />  EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.&lt;/span>&lt;/p>&lt;/body>&lt;/html></Text>
     <Rule name="FontSize" >14</Rule>
    </TextCell>
   </GroupCell>
   <GroupCell closed="false" >
    <TextCell style="Section" >
     <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times; font-size:18pt; font-weight:600; color:#000000;">A Quick Tour of Modelica&lt;/p>&lt;/body>&lt;/html></Text>
    </TextCell>
    <GroupCell closed="false" >
     <TextCell style="Subsection" >
      <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times; font-size:14pt; font-weight:600; color:#000000;">Getting Started - First Basic Examples&lt;/p>&lt;/body>&lt;/html></Text>
     </TextCell>
     <TextCell style="Text" >
      <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times New Roman; font-size:12pt; color:#000000;">&lt;span style=" font-size:14pt;">There is a long tradition that the first sample program in any computer language is a trivial program printing the string "&lt;/span>&lt;a href="QuickTour\HelloWorld.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">Hello World&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;">" (p. 19 in Peter Fritzson's book). Since Modelica is an equation based language, printing a string does not make much sence. Instead, our Hello World Modelica program solves a trivial differential equation. The second example shows how you can write a model that solves a &lt;/span>&lt;a href="QuickTour\DiffEq.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">Differential Algebraic Equation System&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;"> (p. 19). In the &lt;/span>&lt;a href="Variables\VanDerPol.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">Van der Pol&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;"> (p. 22) example declaration as well as initialization and prefix usage are shown in a slightly more complicated way.&lt;/span>&lt;/p>&lt;/body>&lt;/html></Text>
      <Rule name="FontSize" >14</Rule>
     </TextCell>
    </GroupCell>
    <GroupCell closed="false" >
     <TextCell style="Subsection" >
      <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times; font-size:14pt; font-weight:600; color:#000000;">Classes and Instances &lt;/p>&lt;/body>&lt;/html></Text>
      <Rule name="FontSize" >14</Rule>
     </TextCell>
     <TextCell style="Text" >
      <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times New Roman; font-size:12pt; color:#000000;">&lt;span style=" font-size:14pt;">In Modelica objects are created implicitly just by &lt;/span>&lt;a href="QuickTour\CreateInst.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">Declaring Instances of Classes&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;"> (p. 26). Almost anything in Modelica is a class, but there are some keywords for specific use of the class concept, called &lt;/span>&lt;a href="Classes\Restricted.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">Restricted Classes&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;"> (p. 28). The concept &lt;/span>&lt;a href="Classes\ReuseMod.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">Reuse of Modeling Knowledge&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;"> (p. 28) is an important part of Modelica. Modelica has several built-in types (like &lt;/span>&lt;span style=" font-size:14pt; font-style:italic;">Real, Integer, Boolean&lt;/span>&lt;span style=" font-size:14pt;"> and &lt;/span>&lt;span style=" font-size:14pt; font-style:italic;">String&lt;/span>&lt;span style=" font-size:14pt;">), which has most of the properties a class has and it is possible to change the value of them during run-time. You can read more about classes in Chapter 3 below and in Chapter 3 in Peter Fritzson's book. Note that the chapter numbering in this electronic notebook corresponds to the numbering in Peter Fritzson's book in order to make it easy to use them together.&lt;/span>&lt;/p>&lt;/body>&lt;/html></Text>
      <Rule name="FontSize" >14</Rule>
     </TextCell>
     <GroupCell closed="false" >
      <TextCell style="Subsubsection" >
       <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times; font-size:12pt; font-weight:600; color:#000000;">Exercises&lt;/p>&lt;/body>&lt;/html></Text>
      </TextCell>
      <TextCell style="Text" >
       <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times New Roman; font-size:12pt; color:#000000;">&lt;span style=" font-size:14pt; font-weight:600;">    &lt;/span>&lt;a href="QuickTour\Exercise1classes.onb
">&lt;span style=" font-size:14pt; font-weight:600; text-decoration: underline; color:#0000ff;">Exercise 1&lt;br />    &lt;/span>&lt;/a>&lt;a href="QuickTour\Exercise2-classes.onb
">&lt;span style=" font-size:14pt; font-weight:600; text-decoration: underline; color:#0000ff;">Exercise 2&lt;/span>&lt;/a>&lt;a href="QuickTour\Exercise1classes.onb
">&lt;span style=" font-size:14pt; font-weight:600; text-decoration: underline; color:#0000ff;">&lt;br />    &lt;/span>&lt;/a>&lt;a href="QuickTour\Exercise3-classes.onb
">&lt;span style=" font-size:14pt; font-weight:600; text-decoration: underline; color:#0000ff;">Exercise 3&lt;/span>&lt;/a>&lt;/p>&lt;/body>&lt;/html></Text>
       <Rule name="FontSize" >14</Rule>
       <Rule name="FontWeight" >Bold</Rule>
      </TextCell>
     </GroupCell>
    </GroupCell>
    <GroupCell closed="false" >
     <TextCell style="Subsection" >
      <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times; font-size:14pt; font-weight:600; color:#000000;">Inheritance&lt;/p>&lt;/body>&lt;/html></Text>
     </TextCell>
     <TextCell style="Text" >
      <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times New Roman; font-size:12pt; color:#000000;">&lt;a href="QuickTour\Inheritance.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">Inheritance&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;"> (p. 29) is the ability to extend the behavior and properties of an existing class. This way the properties of a specific class can be reused. See Chapter 4 below and in Peter Fritzson's book for additional details concerning inheritance.&lt;/span>&lt;/p>&lt;/body>&lt;/html></Text>
      <Rule name="FontSize" >14</Rule>
     </TextCell>
     <GroupCell closed="false" >
      <TextCell style="Subsubsection" >
       <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times; font-size:12pt; font-weight:600; color:#000000;">Exercises&lt;/p>&lt;/body>&lt;/html></Text>
      </TextCell>
      <TextCell style="Text" >
       <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times New Roman; font-size:12pt; color:#000000;">&lt;span style=" font-size:14pt; font-weight:600;">    &lt;/span>&lt;a href="QuickTour\Exercise1inheritance.onb
">&lt;span style=" font-size:14pt; font-weight:600; text-decoration: underline; color:#0000ff;">Exercise 1&lt;br />    &lt;/span>&lt;/a>&lt;a href="QuickTour\Exercise2inheritance.onb
">&lt;span style=" font-size:14pt; font-weight:600; text-decoration: underline; color:#0000ff;">Exercise 2&lt;/span>&lt;/a>&lt;/p>&lt;/body>&lt;/html></Text>
       <Rule name="FontSize" >14</Rule>
       <Rule name="FontWeight" >Bold</Rule>
      </TextCell>
     </GroupCell>
    </GroupCell>
    <GroupCell closed="false" >
     <TextCell style="Subsection" >
      <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times; font-size:14pt; font-weight:600; color:#000000;">Generic Classes &lt;/p>&lt;/body>&lt;/html></Text>
     </TextCell>
     <TextCell style="Text" >
      <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times New Roman; font-size:12pt; color:#000000;">&lt;span style=" font-size:14pt;">In many situations it is advantageous to be able to express &lt;/span>&lt;a href="QuickTour\Generic.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">Generic Patterns&lt;/span>&lt;/a>&lt;span style=" font-size:14pt; font-weight:600;"> &lt;/span>&lt;span style=" font-size:14pt;">(p. 30) for programs. By doing so a substanitial amount of coding and software maintenance can be avoided by directly expressing the general structure of the problem and providing the special cases as parameters. In Modelica the class construct is general enough to handle generic modeling and programming. You can learn more about generic classes in Chapter 4 below and in Chapter 4 in Peter Fritzson's book .&lt;/span>&lt;/p>&lt;/body>&lt;/html></Text>
      <Rule name="FontSize" >14</Rule>
     </TextCell>
    </GroupCell>
    <GroupCell closed="false" >
     <TextCell style="Subsection" >
      <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times; font-size:14pt; font-weight:600; color:#000000;">Equations&lt;/p>&lt;/body>&lt;/html></Text>
     </TextCell>
     <TextCell style="Text" >
      <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times New Roman; font-size:12pt; color:#000000;">&lt;span style=" font-size:14pt;">Modelica is an equation-based language. The key to the physical modeling capabilities and increased reuse potential of Modelica classes is that &lt;/span>&lt;a href="QuickTour\Equations.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">Equations&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;"> (p. 32) are more flexible than assignments, since they do not prescribe a certain data flow direction. Modelica also provides repetitive equation structures, like for-loop equations. See Chapter 8 to learn more about equations.&lt;/span>&lt;/p>&lt;/body>&lt;/html></Text>
      <Rule name="FontSize" >14</Rule>
     </TextCell>
     <GroupCell closed="false" >
      <TextCell style="Subsubsection" >
       <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times; font-size:12pt; font-weight:600; color:#000000;">Exercises&lt;/p>&lt;/body>&lt;/html></Text>
      </TextCell>
      <TextCell style="Text" >
       <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times New Roman; font-size:12pt; color:#000000;">&lt;span style=" font-size:14pt; font-weight:600;">    &lt;/span>&lt;a href="QuickTour\Exercise1equations.onb
">&lt;span style=" font-size:14pt; font-weight:600; text-decoration: underline; color:#0000ff;">Exercise 1&lt;/span>&lt;/a>&lt;/p>&lt;/body>&lt;/html></Text>
       <Rule name="FontSize" >14</Rule>
       <Rule name="FontWeight" >Bold</Rule>
      </TextCell>
     </GroupCell>
    </GroupCell>
    <GroupCell closed="false" >
     <TextCell style="Subsection" >
      <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times; font-size:14pt; font-weight:600; color:#000000;">Partial Classes&lt;/p>&lt;/body>&lt;/html></Text>
     </TextCell>
     <TextCell style="Text" >
      <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times New Roman; font-size:12pt; color:#000000;">&lt;a href="QuickTour\Partial.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">Partial&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;"> (p. 39) is in Modelica the same as abstract in other object-oriented languages. A partial class is an incomplete class, i.e., not complete enough to be instantiated. Some more advanced examples concerning partial classes are presented in Chapter 3.&lt;/span>&lt;/p>&lt;/body>&lt;/html></Text>
      <Rule name="FontSize" >14</Rule>
     </TextCell>
     <GroupCell closed="false" >
      <TextCell style="Subsubsection" >
       <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times; font-size:12pt; font-weight:600; color:#000000;">Exercises&lt;/p>&lt;/body>&lt;/html></Text>
      </TextCell>
      <TextCell style="Text" >
       <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times New Roman; font-size:12pt; color:#000000;">&lt;span style=" font-size:14pt; font-weight:600;">    &lt;/span>&lt;a href="QuickTour\Exercise1partial.onb
">&lt;span style=" font-size:14pt; font-weight:600; text-decoration: underline; color:#0000ff;">Exercise 1&lt;/span>&lt;/a>&lt;/p>&lt;/body>&lt;/html></Text>
       <Rule name="FontSize" >14</Rule>
       <Rule name="FontWeight" >Bold</Rule>
      </TextCell>
     </GroupCell>
    </GroupCell>
    <GroupCell closed="false" >
     <TextCell style="Subsection" >
      <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times; font-size:14pt; font-weight:600; color:#000000;">Arrays &lt;/p>&lt;/body>&lt;/html></Text>
     </TextCell>
     <TextCell style="Text" >
      <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times New Roman; font-size:12pt; color:#000000;">&lt;span style=" font-size:14pt;">An &lt;/span>&lt;a href="QuickTour\Array.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">Array&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;"> (p. 43) is a collection of variables, all of the same type. Elements of an array are accessed through simple integer indexes, ranging from 1 to the size of the respective dimension. You can read more about arrays in Chapter 7.&lt;/span>&lt;/p>&lt;/body>&lt;/html></Text>
      <Rule name="FontSize" >14</Rule>
     </TextCell>
     <GroupCell closed="false" >
      <TextCell style="Subsubsection" >
       <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times; font-size:12pt; font-weight:600; color:#000000;">Exercises&lt;/p>&lt;/body>&lt;/html></Text>
      </TextCell>
      <TextCell style="Text" >
       <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times New Roman; font-size:12pt; color:#000000;">&lt;span style=" font-size:14pt; font-weight:600;">    &lt;/span>&lt;a href="QuickTour\Exercise1arrays.onb
">&lt;span style=" font-size:14pt; font-weight:600; text-decoration: underline; color:#0000ff;">Exercise 1&lt;/span>&lt;/a>&lt;/p>&lt;/body>&lt;/html></Text>
       <Rule name="FontSize" >14</Rule>
       <Rule name="FontWeight" >Bold</Rule>
      </TextCell>
     </GroupCell>
    </GroupCell>
    <GroupCell closed="false" >
     <TextCell style="Subsection" >
      <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times; font-size:14pt; font-weight:600; color:#000000;">Algorithmic Constructs&lt;/p>&lt;/body>&lt;/html></Text>
     </TextCell>
     <TextCell style="Text" >
      <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times New Roman; font-size:12pt; color:#000000;">&lt;span style=" font-size:14pt;">Even though equations are eminently suitable for modeling physical systems, and for a number of other tasks, there are situations where non-declarative algorithmic constructs are needed. This is typically case for algorithms, i.e., stepwise procedural descriptions on how to carry out specific computations. In Modelica an algorithmic statement can only occur within &lt;/span>&lt;a href="QuickTour\Algorithm.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">Algorithm Sections&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;">, starting with the keyword &lt;/span>&lt;span style=" font-family:Courier New; font-size:14pt;">algorithm&lt;/span>&lt;span style=" font-size:14pt;"> (p. 44). Apart for the assignment statement, there are several kinds of &lt;/span>&lt;a href="QuickTour\Statement.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">Algorithmic Statements&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;"> (p. 44) in Modelica, including &lt;/span>&lt;span style=" font-family:Courier New; font-size:14pt;">if-then-else&lt;/span>&lt;span style=" font-size:14pt;"> statements, &lt;/span>&lt;span style=" font-family:Courier New; font-size:14pt;">for-loops, &lt;/span>&lt;span style=" font-size:14pt;">and&lt;/span>&lt;span style=" font-family:Courier New; font-size:14pt;"> while-loops&lt;/span>&lt;span style=" font-size:14pt;">.&lt;/span>&lt;span style=" font-family:Courier New; font-size:14pt;"> &lt;/span>&lt;a href="QuickTour\Functions.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">Functions&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;"> (p. 44) are a natural part of any mathematical model. You can find more about Algorithms in Chapter 9.&lt;/span>&lt;/p>&lt;/body>&lt;/html></Text>
      <Rule name="FontSize" >14</Rule>
     </TextCell>
     <GroupCell closed="false" >
      <TextCell style="Subsubsection" >
       <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times; font-size:12pt; font-weight:600; color:#000000;">Exercises&lt;/p>&lt;/body>&lt;/html></Text>
      </TextCell>
      <TextCell style="Text" >
       <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times New Roman; font-size:12pt; color:#000000;">&lt;span style=" font-size:14pt; font-weight:600;">    &lt;/span>&lt;a href="QuickTour\Exercise1algorithm.onb
">&lt;span style=" font-size:14pt; font-weight:600; text-decoration: underline; color:#0000ff;">Exercise 1&lt;/span>&lt;/a>&lt;/p>&lt;/body>&lt;/html></Text>
       <Rule name="FontSize" >14</Rule>
       <Rule name="FontWeight" >Bold</Rule>
      </TextCell>
     </GroupCell>
    </GroupCell>
    <GroupCell closed="false" >
     <TextCell style="Subsection" >
      <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times; font-size:14pt; font-weight:600; color:#000000;">Hybrid Modeling&lt;/p>&lt;/body>&lt;/html></Text>
     </TextCell>
     <TextCell style="Text" >
      <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times New Roman; font-size:12pt; color:#000000;">&lt;span style=" font-size:14pt;">In Modelica there are two different constructs for expressing hybrid models: &lt;/span>&lt;a href="QuickTour\IfClause.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">Conditional Expressions or Equations&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;"> (p. 46) and  &lt;/span>&lt;a href="QuickTour\WhenClause.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">When-Equations&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;"> (p. 46). Too read more about &lt;/span>&lt;span style=" font-family:Courier New; font-size:14pt;">if&lt;/span>&lt;span style=" font-size:14pt;">- and &lt;/span>&lt;span style=" font-family:Courier New; font-size:14pt;">when&lt;/span>&lt;span style=" font-size:14pt;">-equations see Chapter 8.&lt;/span>&lt;/p>&lt;/body>&lt;/html></Text>
      <Rule name="FontSize" >14</Rule>
     </TextCell>
     <GroupCell closed="false" >
      <TextCell style="Subsubsection" >
       <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times; font-size:12pt; font-weight:600; color:#000000;">Exercises&lt;/p>&lt;/body>&lt;/html></Text>
      </TextCell>
      <TextCell style="Text" >
       <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times New Roman; font-size:12pt; color:#000000;">&lt;a href="Hybrid\Exercise2.onb
">&lt;span style=" font-size:14pt; font-weight:600; text-decoration: underline; color:#0000ff;">    &lt;/span>&lt;/a>&lt;a href="QuickTour\Exercise1hybrid.onb
">&lt;span style=" font-size:14pt; font-weight:600; text-decoration: underline; color:#0000ff;">Exercise 1&lt;/span>&lt;/a>&lt;a href="Hybrid\Exercise2.onb
">&lt;span style=" font-size:14pt; font-weight:600; text-decoration: underline; color:#0000ff;">&lt;br />    &lt;/span>&lt;/a>&lt;a href="QuickTour\Exercise2hybrid.onb
">&lt;span style=" font-size:14pt; font-weight:600; text-decoration: underline; color:#0000ff;">Exercise 2&lt;/span>&lt;/a>&lt;/p>&lt;/body>&lt;/html></Text>
       <Rule name="FontSize" >14</Rule>
       <Rule name="FontWeight" >Bold</Rule>
      </TextCell>
     </GroupCell>
    </GroupCell>
    <GroupCell closed="false" >
     <TextCell style="Subsection" >
      <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times; font-size:14pt; font-weight:600; color:#000000;">Packages&lt;/p>&lt;/body>&lt;/html></Text>
     </TextCell>
     <TextCell style="Text" >
      <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times New Roman; font-size:12pt; color:#000000;">&lt;a href="QuickTour\Packages.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">Packages&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;"> (p. 50) in Modelica may contain definitions of constants and classes including all kinds of restricted classes, functions and subpackages. By &lt;/span>&lt;span style=" font-size:14pt; font-style:italic;">subpackage&lt;/span>&lt;span style=" font-size:14pt;"> we mean that the package is declared inside another package, not any implied inheritance relationship. Regarding inheritance we talk about parent packages and child packages or derived packages. To learn more about packages, see Chapter 10.&lt;/span>&lt;/p>&lt;/body>&lt;/html></Text>
      <Rule name="FontSize" >14</Rule>
     </TextCell>
     <GroupCell closed="false" >
      <TextCell style="Subsubsection" >
       <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times; font-size:12pt; font-weight:600; color:#000000;">Exercises&lt;/p>&lt;/body>&lt;/html></Text>
      </TextCell>
      <TextCell style="Text" >
       <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times New Roman; font-size:12pt; color:#000000;">&lt;span style=" font-size:14pt; font-weight:600;">    &lt;/span>&lt;a href="QuickTour\Exercise1package.onb
">&lt;span style=" font-size:14pt; font-weight:600; text-decoration: underline; color:#0000ff;">Exercise 1&lt;/span>&lt;/a>&lt;/p>&lt;/body>&lt;/html></Text>
       <Rule name="FontSize" >14</Rule>
       <Rule name="FontWeight" >Bold</Rule>
      </TextCell>
     </GroupCell>
    </GroupCell>
   </GroupCell>
   <GroupCell closed="false" >
    <TextCell style="Section" >
     <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times; font-size:18pt; font-weight:600; color:#000000;">Classes, Types and Declarations &lt;/p>&lt;/body>&lt;/html></Text>
     <Rule name="CellTags" >Ch.3-class</Rule>
    </TextCell>
    <GroupCell closed="false" >
     <TextCell style="Subsection" >
      <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times; font-size:14pt; font-weight:600; color:#000000;">Classes&lt;/p>&lt;/body>&lt;/html></Text>
     </TextCell>
     <TextCell style="Text" >
      <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times New Roman; font-size:12pt; color:#000000;">&lt;span style=" font-size:14pt;">The class concept is the most fundamental concept in Modelica. Different categories of class definitions, like &lt;/span>&lt;a href="Classes\Short.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">Short Class Definitions&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;"> (p. 80) &lt;/span>&lt;a href="Classes\Nested.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">Local Classes&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;">  (p. 105), &lt;/span>&lt;a href="Classes\Restricted.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">Restricted Classes&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;"> (p. 28) and &lt;/span>&lt;a href="Classes\Partial.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">Partial Classes&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;"> (p. 39) are discussed in this section. &lt;/span>&lt;/p>&lt;/body>&lt;/html></Text>
      <Rule name="FontSize" >14</Rule>
     </TextCell>
     <GroupCell closed="false" >
      <TextCell style="Subsubsection" >
       <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times; font-size:12pt; font-weight:600; color:#000000;">Exercises&lt;/p>&lt;/body>&lt;/html></Text>
      </TextCell>
      <TextCell style="Text" >
       <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times New Roman; font-size:12pt; color:#000000;">&lt;span style=" font-size:14pt; font-weight:600;">    &lt;/span>&lt;a href="Classes\Exercise1.onb
">&lt;span style=" font-size:14pt; font-weight:600; text-decoration: underline; color:#0000ff;">Exercise 1&lt;/span>&lt;/a>&lt;span style=" font-size:14pt; font-weight:600;">&lt;br />    &lt;/span>&lt;a href="Classes\Exercise2.onb
">&lt;span style=" font-size:14pt; font-weight:600; text-decoration: underline; color:#0000ff;">Exercise 2&lt;br />    &lt;/span>&lt;/a>&lt;a href="Classes\Exercise3.onb
">&lt;span style=" font-size:14pt; font-weight:600; text-decoration: underline; color:#0000ff;">Exercise 3&lt;/span>&lt;/a>&lt;span style=" font-size:14pt; font-weight:600;">&lt;br />    &lt;/span>&lt;a href="Classes\Exercise4.onb
">&lt;span style=" font-size:14pt; font-weight:600; text-decoration: underline; color:#0000ff;">Exercise 4&lt;/span>&lt;/a>&lt;/p>&lt;/body>&lt;/html></Text>
       <Rule name="FontSize" >14</Rule>
       <Rule name="FontWeight" >Bold</Rule>
      </TextCell>
     </GroupCell>
    </GroupCell>
    <GroupCell closed="false" >
     <TextCell style="Subsection" >
      <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times; font-size:14pt; font-weight:600; color:#000000;">Variables&lt;/p>&lt;/body>&lt;/html></Text>
     </TextCell>
     <TextCell style="Text" >
      <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times New Roman; font-size:12pt; color:#000000;">&lt;span style=" font-size:14pt;">A variable is a class instance, always a member of (i.e., declared in) some other class instance or function. The &lt;/span>&lt;a href="Variables\Declaration.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">Declaration of a Variable&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;"> (p. 88) states the type, access, variability, data flow and other properties of the variable. Both class and variable declarations can contain various &lt;/span>&lt;a href="Variables\VariabilityPrefixes.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">Variability Prefixes&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;"> (p. 89), which  associate certain properties with the declaration and are placed at the beginning of the declaration. A variable can be &lt;/span>&lt;a href="Variables\Initialization.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">Initialized&lt;/span>&lt;/a>&lt;span style=" font-size:14pt; font-weight:600;"> &lt;/span>&lt;span style=" font-size:14pt;">(p. 94) by using the start attribute. The variables that belong to a class are also called &lt;/span>&lt;a href="Variables\FieldVar.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">Fields&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;"> (p. 74). &lt;/span>&lt;/p>&lt;/body>&lt;/html></Text>
      <Rule name="FontSize" >14</Rule>
     </TextCell>
     <GroupCell closed="false" >
      <TextCell style="Subsubsection" >
       <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times; font-size:12pt; font-weight:600; color:#000000;">Exercises&lt;/p>&lt;/body>&lt;/html></Text>
      </TextCell>
      <TextCell style="Text" >
       <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times New Roman; font-size:12pt; color:#000000;">&lt;span style=" font-size:14pt; font-weight:600;">    &lt;/span>&lt;a href="Variables\Exercise1.onb
">&lt;span style=" font-size:14pt; font-weight:600; text-decoration: underline; color:#0000ff;">Exercise 1&lt;br />    &lt;/span>&lt;/a>&lt;a href="Variables\Exercise2.onb
">&lt;span style=" font-size:14pt; font-weight:600; text-decoration: underline; color:#0000ff;">Exercise 2&lt;/span>&lt;/a>&lt;/p>&lt;/body>&lt;/html></Text>
       <Rule name="FontSize" >14</Rule>
       <Rule name="FontWeight" >Bold</Rule>
      </TextCell>
     </GroupCell>
    </GroupCell>
    <GroupCell closed="false" >
     <TextCell style="Subsection" >
      <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times; font-size:14pt; font-weight:600; color:#000000;">Types, Supertypes and Subtypes &lt;/p>&lt;/body>&lt;/html></Text>
     </TextCell>
     <TextCell style="Text" >
      <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times New Roman; font-size:12pt; color:#000000;">&lt;span style=" font-size:14pt;">What is a Type? A &lt;/span>&lt;a href="TypeSubtype\Type.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">Type&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;"> (p. 100) can conceptually be viewed as a &lt;/span>&lt;span style=" font-size:14pt; font-style:italic;">set of values&lt;/span>&lt;span style=" font-size:14pt;">. When we say that the variable x has the type &lt;/span>&lt;span style=" font-family:Courier New; font-size:14pt;">Real&lt;/span>&lt;span style=" font-size:14pt;"> we mean that the value of x belongs to the set of values represented by the type &lt;/span>&lt;span style=" font-family:Courier New; font-size:14pt;">Real&lt;/span>&lt;span style=" font-size:14pt;">. The concepts of &lt;/span>&lt;a href="TypeSubtype\Sub-SuperType.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">Subtype and Supertype&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;"> (p. 100) are discussed further in Peter Fritzson's book.&lt;/span>&lt;/p>&lt;/body>&lt;/html></Text>
      <Rule name="FontSize" >14</Rule>
     </TextCell>
     <GroupCell closed="false" >
      <TextCell style="Subsubsection" >
       <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times; font-size:12pt; font-weight:600; color:#000000;">Exercises&lt;/p>&lt;/body>&lt;/html></Text>
      </TextCell>
      <TextCell style="Text" >
       <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times New Roman; font-size:12pt; color:#000000;">&lt;span style=" font-size:14pt; font-weight:600;">    &lt;/span>&lt;a href="TypeSubtype\Exercise1.onb
">&lt;span style=" font-size:14pt; font-weight:600; text-decoration: underline; color:#0000ff;">Exercise 1&lt;/span>&lt;/a>&lt;span style=" font-size:14pt; font-weight:600;">&lt;br />    &lt;/span>&lt;a href="TypeSubtype\Exercise2.onb
">&lt;span style=" font-size:14pt; font-weight:600; text-decoration: underline; color:#0000ff;">Exercise 2&lt;/span>&lt;/a>&lt;/p>&lt;/body>&lt;/html></Text>
       <Rule name="FontSize" >14</Rule>
       <Rule name="FontWeight" >Bold</Rule>
      </TextCell>
     </GroupCell>
    </GroupCell>
    <GroupCell closed="false" >
     <TextCell style="Subsection" >
      <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times; font-size:14pt; font-weight:600; color:#000000;">Access control        &lt;/p>&lt;/body>&lt;/html></Text>
     </TextCell>
     <TextCell style="Text" >
      <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times New Roman; font-size:12pt; color:#000000;">&lt;span style=" font-size:14pt;">Here &lt;/span>&lt;a href="AccessControl\AccessDemo.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">Access Control&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;"> (p. 88) of variables are discussed. Both variables that are declared public and protected are used in the &lt;/span>&lt;a href="AccessControl\MoonLanding.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">Moon Landing&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;"> (p. 78) example.&lt;/span>&lt;/p>&lt;/body>&lt;/html></Text>
      <Rule name="FontSize" >14</Rule>
     </TextCell>
     <GroupCell closed="false" >
      <TextCell style="Subsubsection" >
       <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times; font-size:12pt; font-weight:600; color:#000000;">Exercises&lt;/p>&lt;/body>&lt;/html></Text>
      </TextCell>
      <TextCell style="Text" >
       <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times New Roman; font-size:12pt; color:#000000;">&lt;span style=" font-size:14pt; font-weight:600;">    &lt;/span>&lt;a href="AccessControl\Exercise1.onb
">&lt;span style=" font-size:14pt; font-weight:600; text-decoration: underline; color:#0000ff;">Exercise 1&lt;/span>&lt;/a>&lt;/p>&lt;/body>&lt;/html></Text>
       <Rule name="FontSize" >14</Rule>
       <Rule name="FontWeight" >Bold</Rule>
      </TextCell>
     </GroupCell>
    </GroupCell>
   </GroupCell>
   <GroupCell closed="false" >
    <TextCell style="Section" >
     <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times; font-size:18pt; font-weight:600; color:#000000;">Inheritance, Modifications and Generics&lt;/p>&lt;/body>&lt;/html></Text>
     <Rule name="CellTags" >Ch.4-inheritance</Rule>
    </TextCell>
    <GroupCell closed="false" >
     <TextCell style="Subsection" >
      <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times; font-size:14pt; font-weight:600; color:#000000;">Inheritance&lt;/p>&lt;/body>&lt;/html></Text>
     </TextCell>
     <TextCell style="Text" >
      <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times New Roman; font-size:12pt; color:#000000;">&lt;span style=" font-size:14pt;">One of the major benefits of object-orientation is &lt;/span>&lt;a href="Inheritance\Inheritance.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">Inheritance&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;"> &lt;/span>&lt;span style=" font-size:14pt; font-weight:600;"> &lt;/span>&lt;span style=" font-size:14pt;">(p. 29), i.e., the ability to extend the behavior and properties of an existing class. A class can inherit from several classes, this is called &lt;/span>&lt;a href="Inheritance\Multiple.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">Multiple Inheritance&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;"> (p. 113). How are &lt;/span>&lt;a href="Inheritance\ProtectedElements.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">Public Respectively Protected Elements&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;"> (p. 117) inherited? All these concepts are used in the &lt;/span>&lt;a href="Inheritance\MoonLandingInher.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">Moon Landing&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;"> (p. 115) example using inheritance.&lt;/span>&lt;/p>&lt;/body>&lt;/html></Text>
      <Rule name="FontSize" >14</Rule>
     </TextCell>
     <GroupCell closed="false" >
      <TextCell style="Subsubsection" >
       <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times; font-size:12pt; font-weight:600; color:#000000;">Exercises&lt;/p>&lt;/body>&lt;/html></Text>
      </TextCell>
      <TextCell style="Text" >
       <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times New Roman; font-size:12pt; color:#000000;">&lt;a href="Inheritance\Exercise1.onb
">&lt;span style=" font-size:14pt; font-weight:600; text-decoration: underline; color:#0000ff;">    Exercise 1&lt;br />    &lt;/span>&lt;/a>&lt;a href="Inheritance\Exercise2.onb
">&lt;span style=" font-size:14pt; font-weight:600; text-decoration: underline; color:#0000ff;">Exercise 2&lt;/span>&lt;/a>&lt;a href="InherMod\Exercise1.onb
">&lt;span style=" font-size:14pt; font-weight:600; text-decoration: underline; color:#0000ff;">&lt;br />    &lt;/span>&lt;/a>&lt;a href="Inheritance\Exercise3.onb
">&lt;span style=" font-size:14pt; font-weight:600; text-decoration: underline; color:#0000ff;">Exercise 3&lt;/span>&lt;/a>&lt;/p>&lt;/body>&lt;/html></Text>
       <Rule name="FontSize" >14</Rule>
       <Rule name="FontWeight" >Bold</Rule>
      </TextCell>
     </GroupCell>
    </GroupCell>
    <GroupCell closed="false" >
     <TextCell style="Subsection" >
      <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times; font-size:14pt; font-weight:600; color:#000000;">Inheritance Through Modification    &lt;/p>&lt;/body>&lt;/html></Text>
     </TextCell>
     <TextCell style="Text" >
      <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times New Roman; font-size:12pt; color:#000000;">&lt;span style=" font-size:14pt;">There are three kinds of constructs in the Modelica language in which &lt;/span>&lt;a href="InherMod\Modification.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">Modifications&lt;/span>&lt;/a>&lt;span style=" font-size:14pt; font-weight:600;"> *försök att ändra protected borde ge fel* &lt;/span>&lt;span style=" font-size:14pt;">(p. 119) can occur: variable declarations, &lt;/span>&lt;a href="InherMod\Short.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">Short Class Definitions&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;"> (p. 120) and &lt;/span>&lt;a href="InherMod\Extend.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">Extends Clauses&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;"> (p. 122). &lt;/span>&lt;a href="InherMod\Hierachical.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">Hierarchical Modification&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;"> (p. 124) means that elements one or more levels down in the instantiation hierarchy are modified.&lt;/span>&lt;/p>&lt;/body>&lt;/html></Text>
      <Rule name="FontSize" >14</Rule>
     </TextCell>
     <GroupCell closed="false" >
      <TextCell style="Subsubsection" >
       <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times; font-size:12pt; font-weight:600; color:#000000;">Exercises&lt;/p>&lt;/body>&lt;/html></Text>
      </TextCell>
      <TextCell style="Text" >
       <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times New Roman; font-size:12pt; color:#000000;">&lt;span style=" font-size:14pt; font-weight:600;">    &lt;/span>&lt;a href="InherMod\Exercise1.onb
">&lt;span style=" font-size:14pt; font-weight:600; text-decoration: underline; color:#0000ff;">Exercise 1&lt;br />    &lt;/span>&lt;/a>&lt;a href="InherMod\Exercise2.onb
">&lt;span style=" font-size:14pt; font-weight:600; text-decoration: underline; color:#0000ff;">Exercise 2&lt;/span>&lt;/a>&lt;a href="InherMod\Exercise1.onb
">&lt;span style=" font-size:14pt; font-weight:600; text-decoration: underline; color:#0000ff;">&lt;br />    &lt;/span>&lt;/a>&lt;a href="InherMod\Exercise3.onb
">&lt;span style=" font-size:14pt; font-weight:600; text-decoration: underline; color:#0000ff;">Exercise 3&lt;/span>&lt;/a>&lt;/p>&lt;/body>&lt;/html></Text>
       <Rule name="FontSize" >14</Rule>
       <Rule name="FontWeight" >Bold</Rule>
      </TextCell>
     </GroupCell>
    </GroupCell>
    <GroupCell closed="false" >
     <TextCell style="Subsection" >
      <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times; font-size:14pt; font-weight:600; color:#000000;">Redeclaration&lt;/p>&lt;/body>&lt;/html></Text>
     </TextCell>
     <TextCell style="Text" >
      <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times New Roman; font-size:12pt; color:#000000;">&lt;span style=" font-size:14pt;">A more dramatic change, than just changing the default value in a declaration, is to modify the type and/or the prefixes of a declared element. The original declaration is replaced by the "new declaration", by using the &lt;/span>&lt;a href="Redeclaration\ReplRed.onb#Redeclare
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">Prefix redeclare&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;"> (p. 127), merged with the modifiers of the original declaration. &lt;/span>&lt;a href="Redeclaration\Redeclaration.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">Redeclarations&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;"> (p. 125) usually require the modified element to be declared with the &lt;/span>&lt;a href="Redeclaration\ReplRed.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">replaceable Prefix&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;"> (p. 127), but there are also kinds of redeclarations that do &lt;/span>&lt;a href="Redeclaration\RedNotRepl.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">not need the Prefix replaceable&lt;/span>&lt;/a>&lt;span style=" font-size:14pt; font-weight:600;"> &lt;/span>&lt;span style=" font-size:14pt;">(p. 126). In order to prevent certain modifications the &lt;/span>&lt;a href="Redeclaration\Final.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">final Prefix&lt;/span>&lt;/a>&lt;span style=" font-size:14pt; font-weight:600;"> &lt;/span>&lt;span style=" font-size:14pt;">(p. 128) can be used. The rules concerning the &lt;/span>&lt;a href="Redeclaration\Replaceable.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">Constraining Type of Replaceable Elements&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;"> (p. 129). Apart from textual Modelica programming, redeclarations may also be specified through a graphical user interface (GUI) of a Modelica modeling tool, e.g. via menu choices, in order to achieve this &lt;/span>&lt;a href="Redeclaration\Annotation.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">Annotation Choices&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;"> (s. 132)  are used.&lt;/span>&lt;/p>&lt;/body>&lt;/html></Text>
      <Rule name="FontSize" >14</Rule>
     </TextCell>
     <GroupCell closed="false" >
      <TextCell style="Subsubsection" >
       <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times; font-size:12pt; font-weight:600; color:#000000;">Exercises&lt;/p>&lt;/body>&lt;/html></Text>
      </TextCell>
      <TextCell style="Text" >
       <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times New Roman; font-size:12pt; color:#000000;">&lt;span style=" font-size:14pt; font-weight:600;">    &lt;/span>&lt;a href="Redeclaration\Exercise1.onb
">&lt;span style=" font-size:14pt; font-weight:600; text-decoration: underline; color:#0000ff;">Exercise 1&lt;/span>&lt;/a>&lt;span style=" font-size:14pt; font-weight:600;">&lt;br />    &lt;/span>&lt;a href="Redeclaration\Exercise2.onb
">&lt;span style=" font-size:14pt; font-weight:600; text-decoration: underline; color:#0000ff;">Exercise 2&lt;br />    &lt;/span>&lt;/a>&lt;a href="Redeclaration\Exercise3.onb
">&lt;span style=" font-size:14pt; font-weight:600; text-decoration: underline; color:#0000ff;">Exercise 3&lt;/span>&lt;/a>&lt;span style=" font-size:14pt; font-weight:600;">&lt;br />    &lt;/span>&lt;a href="Redeclaration\Exercise4.onb
">&lt;span style=" font-size:14pt; font-weight:600; text-decoration: underline; color:#0000ff;">Exercise 4&lt;/span>&lt;/a>&lt;/p>&lt;/body>&lt;/html></Text>
       <Rule name="FontSize" >14</Rule>
       <Rule name="FontWeight" >Bold</Rule>
      </TextCell>
     </GroupCell>
    </GroupCell>
    <GroupCell closed="false" >
     <TextCell style="Subsection" >
      <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times; font-size:14pt; font-weight:600; color:#000000;">Parameterized Generic Classes&lt;/p>&lt;/body>&lt;/html></Text>
      <Rule name="CellTags" >ch.4.4-generic</Rule>
     </TextCell>
     <TextCell style="Text" >
      <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times New Roman; font-size:12pt; color:#000000;">&lt;span style=" font-size:14pt;">By expressing generic patterns for models or programs a large amount of coding and software maintenance can be avoided. This is done using &lt;/span>&lt;a href="Generic\Parameterized.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">Parameterized Generic Classes&lt;/span>&lt;/a>&lt;span style=" font-size:14pt; font-weight:600;"> &lt;/span>&lt;span style=" font-size:14pt;">(p. 133). &lt;/span>&lt;a href="Generic\ParamInterfaces.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">Parameterization and extension of Interfaces&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;"> (p. 136).&lt;/span>&lt;/p>&lt;/body>&lt;/html></Text>
      <Rule name="FontSize" >14</Rule>
     </TextCell>
     <GroupCell closed="false" >
      <TextCell style="Subsubsection" >
       <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times; font-size:12pt; font-weight:600; color:#000000;">Exercises&lt;/p>&lt;/body>&lt;/html></Text>
      </TextCell>
      <TextCell style="Text" >
       <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times New Roman; font-size:12pt; color:#000000;">&lt;span style=" font-size:14pt; font-weight:600;">    &lt;/span>&lt;a href="Generic\Exercise1.onb
">&lt;span style=" font-size:14pt; font-weight:600; text-decoration: underline; color:#0000ff;">Exercise 1&lt;/span>&lt;/a>&lt;/p>&lt;/body>&lt;/html></Text>
       <Rule name="FontSize" >14</Rule>
       <Rule name="FontWeight" >Bold</Rule>
      </TextCell>
     </GroupCell>
    </GroupCell>
    <GroupCell closed="false" >
     <TextCell style="Subsection" >
      <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times; font-size:14pt; font-weight:600; color:#000000;">Extended&lt;/p>&lt;/body>&lt;/html></Text>
      <Rule name="CellTags" >ch.4.4-generic</Rule>
     </TextCell>
     <TextCell style="Text" >
      <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times New Roman; font-size:12pt; color:#000000;">&lt;span style=" font-size:14pt;">It is important to &lt;/span>&lt;a href="Generic\Extended.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">Design a Class to be Extended&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;"> (p. 137), otherwise inheritance might lead to errors.&lt;/span>&lt;/p>&lt;/body>&lt;/html></Text>
      <Rule name="FontSize" >14</Rule>
     </TextCell>
    </GroupCell>
   </GroupCell>
   <GroupCell closed="false" >
    <TextCell style="Section" >
     <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times; font-size:18pt; font-weight:600; color:#000000;">Components, Connectors and Connections&lt;/p>&lt;/body>&lt;/html></Text>
     <Rule name="CellTags" >Ch.5-component</Rule>
    </TextCell>
    <GroupCell closed="false" >
     <TextCell style="Subsection" >
      <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times; font-size:14pt; font-weight:600; color:#000000;">Connectors and Connector Classes&lt;/p>&lt;/body>&lt;/html></Text>
     </TextCell>
     <TextCell style="Text" >
      <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times New Roman; font-size:12pt; color:#000000;">&lt;span style=" font-size:14pt;">Modelica &lt;/span>&lt;a href="CompConn\Connectors.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">Connectors are instances of Connector Classes&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;"> (p. 146). Connectors specify the interface for interaction between a component and its surroundings.&lt;/span>&lt;/p>&lt;/body>&lt;/html></Text>
      <Rule name="FontSize" >14</Rule>
     </TextCell>
    </GroupCell>
    <GroupCell closed="false" >
     <TextCell style="Subsection" >
      <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times; font-size:14pt; font-weight:600; color:#000000;">Connections&lt;/p>&lt;/body>&lt;/html></Text>
     </TextCell>
     <TextCell style="Text" >
      <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times New Roman; font-size:12pt; color:#000000;">&lt;a href="CompConn\Connections.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">Connections&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;"> (p. 148) between components can only be established between connectors of equivalent type. &lt;/span>&lt;/p>&lt;/body>&lt;/html></Text>
      <Rule name="FontSize" >14</Rule>
     </TextCell>
    </GroupCell>
    <GroupCell closed="false" >
     <TextCell style="Subsection" >
      <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times; font-size:14pt; font-weight:600; color:#000000;">Connectors, Components and coordinate systems&lt;/p>&lt;/body>&lt;/html></Text>
     </TextCell>
     <TextCell style="Text" >
      <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times New Roman; font-size:12pt; color:#000000;">&lt;span style=" font-size:14pt;">Each &lt;/span>&lt;a href="CompConn\MechTrans.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">Mechanical Component&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;"> (p. 153) has an associated &lt;/span>&lt;span style=" font-size:14pt; font-style:italic;">coordinate system&lt;/span>&lt;span style=" font-size:14pt;">, called &lt;/span>&lt;span style=" font-size:14pt; font-style:italic;">frame&lt;/span>&lt;span style=" font-size:14pt;">. It is possible to connect several connections to one connector, this is called &lt;/span>&lt;a href="CompConn\MultToSingle.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">Multiple Connections to a Single Connector&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;"> (p. 155). The model of an &lt;/span>&lt;a href="CompConn\Oscillator.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">Oscillating Mass Connected to a Spring&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;"> (p. 156) gives rise to some dynamic movement when simulated. &lt;/span>&lt;/p>&lt;/body>&lt;/html></Text>
      <Rule name="FontSize" >14</Rule>
     </TextCell>
    </GroupCell>
    <GroupCell closed="false" >
     <TextCell style="Subsection" >
      <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times; font-size:14pt; font-weight:600; color:#000000;">Detailed Connection Semantics&lt;/p>&lt;/body>&lt;/html></Text>
     </TextCell>
     <TextCell style="Text" >
      <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times New Roman; font-size:12pt; color:#000000;">&lt;span style=" font-size:14pt;">A &lt;/span>&lt;a href="CompConn\MultDCmotor.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">DC Motor Model&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;"> (p. 162) is one of the simplest examples illustrating the ease of constructing multi-domain models i Modelica by simply connecting components from different domains. The point of a &lt;/span>&lt;a href="CompConn\PartDCmotor.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">Partial DC Motor&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;"> (p. 162) is to get a structured library component with inside and outside connectors that can be reused. The restrictions on how to Connect &lt;/span>&lt;a href="CompConn\In-Output.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">Input and Output Connectors&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;"> (p. 164) are also handled. &lt;/span>&lt;a href="CompConn\ConnConstraints.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">Connection constraints regarding Array, Subscripts and Constants&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;"> (p. 166) are different from other connected connectors. By  &lt;/span>&lt;a href="CompConn\ConnEq.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">Generating Connection Equations&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;"> (p. 169) we mean the conversion of connect equations to the two different forms of equations to be used for non-flow and flow variables respectively. The process of converting connect-equations can be divided into two steps, the first is building connections sets from connect-equations and the second is generating connection equations for the complete model. In certain cases there is a need to let the behavior of a model be dependent on the number of connections to certain connectors of the model. This can be achieved by using a built-in function &lt;/span>&lt;a href="CompConn\CardEq.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">cardinality&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;"> (p. 173) that returns the number of connections that have been made to a connector.&lt;/span>&lt;/p>&lt;/body>&lt;/html></Text>
      <Rule name="FontSize" >14</Rule>
     </TextCell>
     <GroupCell closed="false" >
      <TextCell style="Subsubsection" >
       <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times; font-size:12pt; font-weight:600; color:#000000;">Exercises&lt;/p>&lt;/body>&lt;/html></Text>
      </TextCell>
      <TextCell style="Text" >
       <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times New Roman; font-size:12pt; color:#000000;">&lt;span style=" font-size:14pt; font-weight:600;">    &lt;/span>&lt;a href="CompConn\Exercise1.onb
">&lt;span style=" font-size:14pt; font-weight:600; text-decoration: underline; color:#0000ff;">Exercise 1&lt;/span>&lt;/a>&lt;/p>&lt;/body>&lt;/html></Text>
       <Rule name="FontSize" >14</Rule>
       <Rule name="FontWeight" >Bold</Rule>
      </TextCell>
     </GroupCell>
    </GroupCell>
   </GroupCell>
   <GroupCell closed="false" >
    <TextCell style="Section" >
     <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times; font-size:18pt; font-weight:600; color:#000000;">Literals, Operators and Expressions&lt;/p>&lt;/body>&lt;/html></Text>
     <Rule name="CellTags" >Ch.6-litopex</Rule>
    </TextCell>
    <TextCell style="Text" >
     <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times New Roman; font-size:12pt; color:#000000;">&lt;span style=" font-size:14pt;">The &lt;/span>&lt;a href="LitOpExp\EvalOrder.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">Order of Evaluation&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;"> (p. 188) (e.g. regarding variable references and function calls in expressions) is not specified, since a Modelica tool is free to solve equations, to reorder expressions, and to avoid evaluating expressions if their values do not influence the result. The rules for &lt;/span>&lt;a href="LitOpExp\VariaSubt.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">Subtyping and Variability&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;"> (p. 194) for declaration equations and normal equations are illustrated. All declared variables are functions of the independent variable &lt;/span>&lt;a href="LitOpExp\VarTime.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">time&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;">, which is a built-in variable (p. 198) available in all kinds of classes. The variable time is treated as an input variable.&lt;/span>&lt;/p>&lt;/body>&lt;/html></Text>
     <Rule name="FontSize" >14</Rule>
    </TextCell>
    <GroupCell closed="false" >
     <TextCell style="Subsubsection" >
      <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times; font-size:12pt; font-weight:600; color:#000000;">Exercises&lt;/p>&lt;/body>&lt;/html></Text>
     </TextCell>
     <TextCell style="Text" >
      <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times New Roman; font-size:12pt; color:#000000;">&lt;span style=" font-size:14pt; font-weight:600;">    &lt;/span>&lt;a href="LitOpExp\Exercise1.onb
">&lt;span style=" font-size:14pt; font-weight:600; text-decoration: underline; color:#0000ff;">Exercise 1&lt;br />    &lt;/span>&lt;/a>&lt;a href="LitOpExp\Exercise2.onb
">&lt;span style=" font-size:14pt; font-weight:600; text-decoration: underline; color:#0000ff;">Exercise 2&lt;/span>&lt;/a>&lt;/p>&lt;/body>&lt;/html></Text>
      <Rule name="FontSize" >14</Rule>
      <Rule name="FontWeight" >Bold</Rule>
     </TextCell>
    </GroupCell>
   </GroupCell>
   <GroupCell closed="false" >
    <TextCell style="Section" >
     <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times; font-size:18pt; font-weight:600; color:#000000;">Arrays&lt;/p>&lt;/body>&lt;/html></Text>
     <Rule name="CellTags" >Ch.7-array</Rule>
    </TextCell>
    <GroupCell closed="false" >
     <TextCell style="Subsection" >
      <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times; font-size:14pt; font-weight:600; color:#000000;">Array Declarations and Types&lt;/p>&lt;/body>&lt;/html></Text>
     </TextCell>
     <TextCell style="Text" >
      <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times New Roman; font-size:12pt; color:#000000;">&lt;span style=" font-size:14pt;">An &lt;/span>&lt;a href="Arrays\Declaration.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">Array Variable can be Declared&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;"> (p. 207) by appending dimensions within square brackets after a type name or after a variable name. An &lt;/span>&lt;a href="Arrays\FlexSize.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">Unspecified Dimension Size&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;"> (p. 209) is stated by using a colon (:) instead of the usual integer expression for dimension size. For the purpose of &lt;/span>&lt;a href="Arrays\TypeCheck.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">Type Checking&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;"> (p. 209) and selecting the right version of overloaded array operators and functions it is important to determine the expanded type of a variable.  &lt;/span>&lt;/p>&lt;/body>&lt;/html></Text>
      <Rule name="FontSize" >14</Rule>
     </TextCell>
     <GroupCell closed="false" >
      <TextCell style="Subsubsection" >
       <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times; font-size:12pt; font-weight:600; color:#000000;">Exercises&lt;/p>&lt;/body>&lt;/html></Text>
      </TextCell>
      <TextCell style="Text" >
       <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times New Roman; font-size:12pt; color:#000000;">&lt;span style=" font-size:14pt; font-weight:600;">    &lt;/span>&lt;a href="Arrays\Exercise1.onb
">&lt;span style=" font-size:14pt; font-weight:600; text-decoration: underline; color:#0000ff;">Exercise 1&lt;/span>&lt;/a>&lt;span style=" font-size:14pt; font-weight:600;">&lt;br />    &lt;/span>&lt;a href="Arrays\Exercise2.onb
">&lt;span style=" font-size:14pt; font-weight:600; text-decoration: underline; color:#0000ff;">Exercise 2&lt;/span>&lt;/a>&lt;/p>&lt;/body>&lt;/html></Text>
       <Rule name="FontSize" >14</Rule>
       <Rule name="FontWeight" >Bold</Rule>
      </TextCell>
     </GroupCell>
    </GroupCell>
    <GroupCell closed="false" >
     <TextCell style="Subsection" >
      <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times; font-size:14pt; font-weight:600; color:#000000;">General Array Construction&lt;/p>&lt;/body>&lt;/html></Text>
     </TextCell>
     <TextCell style="Text" >
      <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times New Roman; font-size:12pt; color:#000000;">&lt;span style=" font-size:14pt;">An &lt;/span>&lt;a href="Arrays\Construction.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">Array Constructor&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;"> provides a convenient way of constructing array values, giving concise and readable code (p. 210). &lt;/span>&lt;/p>&lt;/body>&lt;/html></Text>
     </TextCell>
     <GroupCell closed="false" >
      <TextCell style="Subsubsection" >
       <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times; font-size:12pt; font-weight:600; color:#000000;">Exercises&lt;/p>&lt;/body>&lt;/html></Text>
      </TextCell>
      <TextCell style="Text" >
       <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times New Roman; font-size:12pt; color:#000000;">&lt;span style=" font-size:14pt; font-weight:600;">    &lt;/span>&lt;a href="Arrays\Exercise1-7-2.onb
">&lt;span style=" font-size:14pt; font-weight:600; text-decoration: underline; color:#0000ff;">Exercise 1&lt;/span>&lt;/a>&lt;/p>&lt;/body>&lt;/html></Text>
       <Rule name="FontSize" >14</Rule>
       <Rule name="FontWeight" >Bold</Rule>
      </TextCell>
     </GroupCell>
    </GroupCell>
    <GroupCell closed="false" >
     <TextCell style="Subsection" >
      <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times; font-size:14pt; font-weight:600; color:#000000;">Array Concatenation and Construction &lt;/p>&lt;/body>&lt;/html></Text>
     </TextCell>
     <TextCell style="Text" >
      <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times New Roman; font-size:12pt; color:#000000;">&lt;a href="Arrays\ConcatConstruct.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">General Array concatenation&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;"> can be done through the array concatenation operator &lt;/span>&lt;span style=" font-family:Courier New; font-size:14pt;">cat&lt;/span>&lt;span style=" font-size:14pt;">(k,A,B,C,...) that concatenates the arrays A,B,C,... along the k:th dimension (p. 213).&lt;/span>&lt;/p>&lt;/body>&lt;/html></Text>
      <Rule name="FontSize" >14</Rule>
     </TextCell>
     <GroupCell closed="false" >
      <TextCell style="Subsubsection" >
       <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times; font-size:12pt; font-weight:600; color:#000000;">Exercises&lt;/p>&lt;/body>&lt;/html></Text>
      </TextCell>
      <TextCell style="Text" >
       <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times New Roman; font-size:12pt; color:#000000;">&lt;span style=" font-size:14pt; font-weight:600;">    &lt;/span>&lt;a href="Arrays\Exercise1-7-3.onb
">&lt;span style=" font-size:14pt; font-weight:600; text-decoration: underline; color:#0000ff;">Exercise 1&lt;/span>&lt;/a>&lt;/p>&lt;/body>&lt;/html></Text>
       <Rule name="FontSize" >14</Rule>
       <Rule name="FontWeight" >Bold</Rule>
      </TextCell>
     </GroupCell>
    </GroupCell>
    <GroupCell closed="false" >
     <TextCell style="Subsection" >
      <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times; font-size:14pt; font-weight:600; color:#000000;">Array Indexing &lt;/p>&lt;/body>&lt;/html></Text>
     </TextCell>
     <TextCell style="Text" >
      <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times New Roman; font-size:12pt; color:#000000;">&lt;span style=" font-size:14pt;">The &lt;/span>&lt;a href="Arrays\Indexing.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">Array Indexing&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;"> operator (p. 216) is used to access array elements for retrieval of their values or for updating these values. When at least one of the index expressions in an array indexing operation is a vector expression, a slice or subsection of the array is accessed rather than a single element. &lt;/span>&lt;/p>&lt;/body>&lt;/html></Text>
     </TextCell>
     <GroupCell closed="false" >
      <TextCell style="Subsubsection" >
       <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times; font-size:12pt; font-weight:600; color:#000000;">Exercises&lt;/p>&lt;/body>&lt;/html></Text>
      </TextCell>
      <TextCell style="Text" >
       <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times New Roman; font-size:12pt; color:#000000;">&lt;span style=" font-size:14pt; font-weight:600;">    &lt;/span>&lt;a href="Arrays\Exercise1-7-4.onb
">&lt;span style=" font-size:14pt; font-weight:600; text-decoration: underline; color:#0000ff;">Exercise 1&lt;/span>&lt;/a>&lt;/p>&lt;/body>&lt;/html></Text>
       <Rule name="FontSize" >14</Rule>
       <Rule name="FontWeight" >Bold</Rule>
      </TextCell>
     </GroupCell>
    </GroupCell>
    <GroupCell closed="false" >
     <TextCell style="Subsection" >
      <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times; font-size:14pt; font-weight:600; color:#000000;">Using Array Concatenation and Slices&lt;/p>&lt;/body>&lt;/html></Text>
     </TextCell>
     <TextCell style="Text" >
      <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times New Roman; font-size:12pt; color:#000000;">&lt;span style=" font-size:14pt;">The Modelica &lt;/span>&lt;a href="Arrays\ConcatSlice.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">Array Concatenation and Slice Operations&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;"> (p. 219) have been designed for multidimensional arrays and can therefore produce arrays of various dimensions, from one-dimensional vectors to matrices and multidimensional arrays. &lt;/span>&lt;/p>&lt;/body>&lt;/html></Text>
      <Rule name="FontSize" >14</Rule>
     </TextCell>
     <GroupCell closed="false" >
      <TextCell style="Subsubsection" >
       <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times; font-size:12pt; font-weight:600; color:#000000;">Exercises&lt;/p>&lt;/body>&lt;/html></Text>
      </TextCell>
      <TextCell style="Text" >
       <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times New Roman; font-size:12pt; color:#000000;">&lt;span style=" font-size:14pt; font-weight:600;">    &lt;/span>&lt;a href="Arrays\Exercise1-7-5.onb
">&lt;span style=" font-size:14pt; font-weight:600; text-decoration: underline; color:#0000ff;">Exercise 1&lt;/span>&lt;/a>&lt;/p>&lt;/body>&lt;/html></Text>
       <Rule name="FontSize" >14</Rule>
       <Rule name="FontWeight" >Bold</Rule>
      </TextCell>
     </GroupCell>
    </GroupCell>
    <GroupCell closed="false" >
     <TextCell style="Subsection" >
      <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times; font-size:14pt; font-weight:600; color:#000000;">Arithmetic Array Operators &lt;/p>&lt;/body>&lt;/html></Text>
     </TextCell>
     <TextCell style="Text" >
      <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times New Roman; font-size:12pt; color:#000000;">&lt;a href="Arrays\ArithmeticOp.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">Arithmetic Array Operators&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;"> (p. 223) on arrays and certain combinations of arrays and scalars are available through the standard arithmetic operators.&lt;/span>&lt;/p>&lt;/body>&lt;/html></Text>
      <Rule name="FontSize" >14</Rule>
     </TextCell>
     <GroupCell closed="true" >
      <TextCell style="Subsubsection" >
       <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times; font-size:12pt; font-weight:600; color:#000000;">Exercises&lt;/p>&lt;/body>&lt;/html></Text>
      </TextCell>
      <TextCell style="Text" >
       <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times New Roman; font-size:12pt; color:#000000;">&lt;span style=" font-size:14pt; font-weight:600;">    &lt;/span>&lt;a href="Arrays\Exercise1-7-6.onb
">&lt;span style=" font-size:14pt; font-weight:600; text-decoration: underline; color:#0000ff;">Exercise 1(går ej plotta)&lt;/span>&lt;/a>&lt;/p>&lt;/body>&lt;/html></Text>
       <Rule name="FontSize" >14</Rule>
       <Rule name="FontWeight" >Bold</Rule>
      </TextCell>
     </GroupCell>
    </GroupCell>
    <GroupCell closed="false" >
     <TextCell style="Subsection" >
      <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times; font-size:14pt; font-weight:600; color:#000000;">Built-in Array Functions &lt;/p>&lt;/body>&lt;/html></Text>
     </TextCell>
     <TextCell style="Text" >
      <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times New Roman; font-size:12pt; color:#000000;">&lt;span style=" font-size:14pt;">A number of  &lt;/span>&lt;a href="Arrays\Built-inFunc.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">Built-in Functions&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;"> (p. 225) for array expressions are provided in Modelica. These functions are directly available and need not be imported from some package in the standard library before being used. &lt;/span>&lt;/p>&lt;/body>&lt;/html></Text>
     </TextCell>
    </GroupCell>
    <GroupCell closed="false" >
     <TextCell style="Subsection" >
      <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times; font-size:14pt; font-weight:600; color:#000000;">Application of Scalar Functions to Arrays &lt;/p>&lt;/body>&lt;/html></Text>
     </TextCell>
     <TextCell style="Text" >
      <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times New Roman; font-size:12pt; color:#000000;">&lt;span style=" font-size:14pt;">In certain situations it is useful to be able to apply a function to array values even if it has not been defined for such arguments. Modelica functions with one scalar return value can be &lt;/span>&lt;a href="Arrays\ScalarFunc.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">Applied to Arrays&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;">  element-wise (p. 229).&lt;/span>&lt;/p>&lt;/body>&lt;/html></Text>
      <Rule name="FontSize" >14</Rule>
     </TextCell>
    </GroupCell>
    <GroupCell closed="false" >
     <TextCell style="Subsection" >
      <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times; font-size:14pt; font-weight:600; color:#000000;">Empty Arrays&lt;/p>&lt;/body>&lt;/html></Text>
     </TextCell>
     <TextCell style="Text" >
      <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times New Roman; font-size:12pt; color:#000000;">&lt;a href="Arrays\Empty.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">Empty Arrays&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;"> are sometimes used as a kind of null element (p. 231).&lt;/span>&lt;/p>&lt;/body>&lt;/html></Text>
     </TextCell>
    </GroupCell>
   </GroupCell>
   <GroupCell closed="false" >
    <TextCell style="Section" >
     <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times; font-size:18pt; font-weight:600; color:#000000;">Equations &lt;/p>&lt;/body>&lt;/html></Text>
     <Rule name="CellTags" >Ch.8-equation</Rule>
    </TextCell>
    <GroupCell closed="false" >
     <TextCell style="Subsection" >
      <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times; font-size:14pt; font-weight:600; color:#000000;">Equations in Declarations&lt;/p>&lt;/body>&lt;/html></Text>
     </TextCell>
     <TextCell style="Text" >
      <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times New Roman; font-size:12pt; color:#000000;">&lt;span style=" font-size:14pt;">That are two kinds of &lt;/span>&lt;a href="Equations\EqDeclarations.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">Equations that occur as Parts of Declarations&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;">: (p. 239) declaration equations and modifier equations. &lt;/span>&lt;/p>&lt;/body>&lt;/html></Text>
      <Rule name="FontSize" >14</Rule>
     </TextCell>
    </GroupCell>
    <GroupCell closed="false" >
     <TextCell style="Subsection" >
      <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times; font-size:14pt; font-weight:600; color:#000000;">Equations in Equation Sections&lt;/p>&lt;/body>&lt;/html></Text>
     </TextCell>
     <TextCell style="Text" >
      <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times New Roman; font-size:12pt; color:#000000;">&lt;span style=" font-size:14pt;">The following kinds of equations can be present in equation sections: &lt;/span>&lt;a href="Equations\SimpleEquality.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">Simple Equality Equations&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;"> (p. 240), &lt;/span>&lt;a href="Equations\RepStruct.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">Repetitive Equation Structures with for-Equations&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;"> (p. 241), &lt;/span>&lt;a href="Equations\RepConnStruct.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">connect equations&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;"> (p. 244), &lt;/span>&lt;a href="Equations\IfEq.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">Conditional Equations with if-Equations&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;"> (p. 245), &lt;/span>&lt;a href="Equations\WhenEq.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">Conditional Equations with when-Equations&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;"> (p. 246)  &lt;/span>&lt;a href="Equations\Assert.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">Assert&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;"> (p. 249) and &lt;/span>&lt;a href="Equations\MoonLandingTerminate.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">Terminate&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;"> &lt;/span>&lt;span style=" font-size:14pt; font-weight:600;"> &lt;/span>&lt;span style=" font-size:14pt;">(p. 249). Terminate is described using the Moon Landing Example. Polynomial Equations using for-Equations is shown in &lt;/span>&lt;a href="Equations\Polynomial.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">XPowers&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;"> (p. 242) and &lt;/span>&lt;a href="Equations\PolynomialEvaluator.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">Polynomial Evaluator&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;"> (p. 242). The class &lt;/span>&lt;a href="Equations\Step.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">Step&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;"> (p. 244) includes a repetitive equation structure in the form of a &lt;/span>&lt;span style=" font-family:Courier New; font-size:14pt;">for&lt;/span>&lt;span style=" font-size:14pt;">-equation. &lt;/span>&lt;a href="QuickTour\WhenClause.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">Reinit&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;"> (p. 249) is described in the Bouncing Ball model.&lt;/span>&lt;/p>&lt;/body>&lt;/html></Text>
      <Rule name="FontSize" >14</Rule>
     </TextCell>
     <GroupCell closed="false" >
      <TextCell style="Subsubsection" >
       <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times; font-size:12pt; font-weight:600; color:#000000;">Exercises&lt;/p>&lt;/body>&lt;/html></Text>
      </TextCell>
      <TextCell style="Text" >
       <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times New Roman; font-size:12pt; color:#000000;">&lt;span style=" font-size:14pt; font-weight:600;">    &lt;/span>&lt;a href="Equations\Exercise1.onb
">&lt;span style=" font-size:14pt; font-weight:600; text-decoration: underline; color:#0000ff;">Exercise 1&lt;/span>&lt;/a>&lt;span style=" font-size:14pt; font-weight:600;">&lt;br />    &lt;/span>&lt;a href="Equations\Exercise2.onb
">&lt;span style=" font-size:14pt; font-weight:600; text-decoration: underline; color:#0000ff;">Exercise 2&lt;/span>&lt;/a>&lt;span style=" font-size:14pt; font-weight:600;">&lt;br />    &lt;/span>&lt;a href="Equations\Exercise3.onb
">&lt;span style=" font-size:14pt; font-weight:600; text-decoration: underline; color:#0000ff;">Exercise 3&lt;/span>&lt;/a>&lt;span style=" font-size:14pt; font-weight:600;">&lt;br />    &lt;/span>&lt;a href="Equations\Exercise4.onb
">&lt;span style=" font-size:14pt; font-weight:600; text-decoration: underline; color:#0000ff;">Exercise 4&lt;/span>&lt;/a>&lt;/p>&lt;/body>&lt;/html></Text>
       <Rule name="FontSize" >14</Rule>
       <Rule name="FontWeight" >Bold</Rule>
      </TextCell>
     </GroupCell>
    </GroupCell>
   </GroupCell>
   <GroupCell closed="false" >
    <TextCell style="Section" >
     <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times; font-size:18pt; font-weight:600; color:#000000;">Algorithms and Functions&lt;/p>&lt;/body>&lt;/html></Text>
     <Rule name="CellTags" >Ch.9-algfunc</Rule>
    </TextCell>
    <GroupCell closed="false" >
     <TextCell style="Subsection" >
      <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times; font-size:14pt; font-weight:600; color:#000000;">Algorithms &lt;/p>&lt;/body>&lt;/html></Text>
     </TextCell>
     <TextCell style="Text" >
      <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times New Roman; font-size:12pt; color:#000000;">&lt;span style=" font-size:14pt;">In Modelica, algorithmic statements can only occur within &lt;/span>&lt;a href="Algorithms\Sections.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">Algorithm Sections&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;"> (p. 285), starting with the keyword &lt;/span>&lt;span style=" font-family:Courier New; font-size:14pt;">algorithm&lt;/span>&lt;span style=" font-size:14pt;">. &lt;/span>&lt;a href="Algorithms\AssignStat.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">Simple Assignment Statements&lt;/span>&lt;/a>&lt;span style=" font-size:14pt; font-weight:600;"> &lt;/span>&lt;span style=" font-size:14pt;">(p. 287) is the most common kind of statements in algorithm sections. There is a special form of assignment statement that is only used when the right hand side contains a call to a &lt;/span>&lt;a href="Algorithms\MultRes.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">Function with Multiple Results&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;"> (p. 287). &lt;br />&lt;br />The &lt;/span>&lt;a href="Algorithms\ForStat.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">for-Statement&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;"> (also called &lt;/span>&lt;span style=" font-family:Courier New; font-size:14pt;">for&lt;/span>&lt;span style=" font-size:14pt;">-loop) is a convenient way of expressing iteration (p. 288). When using the &lt;/span>&lt;span style=" font-family:Courier New; font-size:14pt;">for&lt;/span>&lt;span style=" font-size:14pt;">-loop for iteration we must be able to express the range of values over which the iteration variable should iterate in a clo&lt;/span>&lt;span style=" font-size:14pt; font-style:italic;">sed&lt;/span>&lt;span style=" font-size:14pt;"> form as an iteration expression. For cases where this is not feasible there is also a w&lt;/span>&lt;a href="Algorithms\WhileStat.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">hile-loop&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;"> iteration construct in Modelica (p. 290). For conditional expressions the &lt;/span>&lt;a href="Algorithms\IfStat.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">if-Statement&lt;/span>&lt;/a>&lt;span style=" font-size:14pt; font-weight:600;"> &lt;/span>&lt;span style=" font-size:14pt;">(p. 292) is used.  &lt;/span>&lt;a href="Algorithms\WhenStat.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">When-Statements&lt;/span>&lt;/a>&lt;span style=" font-size:14pt; font-weight:600;"> &lt;/span>&lt;span style=" font-size:14pt;">(p. 293)  are used to express &lt;/span>&lt;span style=" font-size:14pt; font-style:italic;">actions at event instants&lt;/span>&lt;span style=" font-size:14pt;"> and are closely related to &lt;/span>&lt;span style=" font-family:Courier New; font-size:14pt;">when&lt;/span>&lt;span style=" font-size:14pt;">-equations. The &lt;/span>&lt;a href="Algorithms\Reinit.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">reinit&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;"> (p. 296) statement (se also &lt;/span>&lt;span style=" font-size:14pt; color:#0000ff;">reinit&lt;/span>&lt;span style=" font-size:14pt;"> equations) can be used in &lt;/span>&lt;span style=" font-family:Courier New; font-size:14pt;">when&lt;/span>&lt;span style=" font-size:14pt;">-statements&lt;/span>&lt;span style=" font-size:14pt; font-style:italic;"> &lt;/span>&lt;span style=" font-size:14pt;">to define new values for continuous-time &lt;/span>&lt;span style=" font-size:14pt; font-style:italic;">state variables&lt;/span>&lt;span style=" font-size:14pt;"> of a model at an event. &lt;br />&lt;br />The &lt;/span>&lt;a href="Algorithms\Assert.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">assert&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;"> (p. 298) statement provides a convenient means for specifying checks on model validity within a model. &lt;br />The most common usage of &lt;/span>&lt;a href="Algorithms\Terminate.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">terminate&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;"> (p. 298) is to give more appropriate stopping criteria for terminating a simulation than a fixed point in time.&lt;/span>&lt;/p>&lt;/body>&lt;/html></Text>
      <Rule name="FontSize" >14</Rule>
     </TextCell>
     <GroupCell closed="false" >
      <TextCell style="Subsubsection" >
       <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times; font-size:12pt; font-weight:600; color:#000000;">Exercises&lt;/p>&lt;/body>&lt;/html></Text>
      </TextCell>
      <TextCell style="Text" >
       <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times New Roman; font-size:12pt; color:#000000;">&lt;span style=" font-size:14pt; font-weight:600;">    &lt;/span>&lt;a href="Algorithms\Exercise1.onb
">&lt;span style=" font-size:14pt; font-weight:600; text-decoration: underline; color:#0000ff;">Exercise 1&lt;/span>&lt;/a>&lt;span style=" font-size:14pt; font-weight:600;">&lt;br />    &lt;/span>&lt;a href="Algorithms\Exercise2.onb
">&lt;span style=" font-size:14pt; font-weight:600; text-decoration: underline; color:#0000ff;">Exercise 2&lt;br />    &lt;/span>&lt;/a>&lt;a href="Algorithms\Exercise3.onb
">&lt;span style=" font-size:14pt; font-weight:600; text-decoration: underline; color:#0000ff;">Exercise 3&lt;br />    &lt;/span>&lt;/a>&lt;a href="Algorithms\Exercise4.onb
">&lt;span style=" font-size:14pt; font-weight:600; text-decoration: underline; color:#0000ff;">Exercise 4&lt;/span>&lt;/a>&lt;a href="Algorithms\Exercise3.onb
">&lt;span style=" font-size:14pt; font-weight:600; text-decoration: underline; color:#0000ff;">&lt;br />    &lt;/span>&lt;/a>&lt;a href="Algorithms\Exercise5.onb
">&lt;span style=" font-size:14pt; font-weight:600; text-decoration: underline; color:#0000ff;">Exercise 5&lt;/span>&lt;/a>&lt;/p>&lt;/body>&lt;/html></Text>
       <Rule name="FontSize" >14</Rule>
       <Rule name="FontWeight" >Bold</Rule>
      </TextCell>
     </GroupCell>
    </GroupCell>
    <GroupCell closed="false" >
     <TextCell style="Subsection" >
      <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times; font-size:14pt; font-weight:600; color:#000000;">Functions&lt;/p>&lt;/body>&lt;/html></Text>
     </TextCell>
     <TextCell style="Text" >
      <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times New Roman; font-size:12pt; color:#000000;">&lt;span style=" font-size:14pt;">The body of a Modelica function is a kind of algorithm section that contains procedural algorithmic code to be executed when the function is &lt;/span>&lt;a href="Functions\Call.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">called&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;"> (p. 300). Since a function is a restricted and enhanced kind of class, it is possible to inherit an existing function declaration in the declaration of a new function. In this way we can declare the common structure of a set of functions as a &lt;/span>&lt;a href="Functions\Extending.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">Partial Base Function&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;"> (p. 308) which can be inherited into the functions we want to define. A function with more than one output formal parameter has &lt;/span>&lt;a href="Functions\MultipleRes.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">Multiple Results&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;"> (p. 302). It is possible to call functions defined outside of the Modelica language, so called &lt;/span>&lt;a href="Functions\External.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">External Functions&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;"> (p. 311).&lt;/span>&lt;/p>&lt;/body>&lt;/html></Text>
      <Rule name="FontSize" >14</Rule>
     </TextCell>
     <GroupCell closed="false" >
      <TextCell style="Subsubsection" >
       <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times; font-size:12pt; font-weight:600; color:#000000;">Exercises&lt;/p>&lt;/body>&lt;/html></Text>
      </TextCell>
      <TextCell style="Text" >
       <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times New Roman; font-size:12pt; color:#000000;">&lt;span style=" font-size:14pt; font-weight:600;">    &lt;/span>&lt;a href="Functions\Exercise1.onb
">&lt;span style=" font-size:14pt; font-weight:600; text-decoration: underline; color:#0000ff;">Exercise 1&lt;/span>&lt;/a>&lt;span style=" font-size:14pt; font-weight:600;">&lt;br />    &lt;/span>&lt;a href="Functions\Exercise2.onb
">&lt;span style=" font-size:14pt; font-weight:600; text-decoration: underline; color:#0000ff;">Exercise 2&lt;/span>&lt;/a>&lt;span style=" font-size:14pt; font-weight:600;">&lt;br />    &lt;/span>&lt;a href="Functions\Exercise3.onb
">&lt;span style=" font-size:14pt; font-weight:600; text-decoration: underline; color:#0000ff;">Exercise 3&lt;/span>&lt;/a>&lt;/p>&lt;/body>&lt;/html></Text>
       <Rule name="FontSize" >14</Rule>
       <Rule name="FontWeight" >Bold</Rule>
      </TextCell>
     </GroupCell>
    </GroupCell>
   </GroupCell>
   <GroupCell closed="false" >
    <TextCell style="Section" >
     <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times; font-size:18pt; font-weight:600; color:#000000;">Packages&lt;/p>&lt;/body>&lt;/html></Text>
     <Rule name="CellTags" >Ch.10-package</Rule>
    </TextCell>
    <TextCell style="Text" >
     <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times New Roman; font-size:12pt; color:#000000;">&lt;span style=" font-size:14pt;">What is a &lt;/span>&lt;a href="QuickTour\Packages.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">Package&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;">?&lt;/span>&lt;/p>&lt;/body>&lt;/html></Text>
     <Rule name="FontSize" >14</Rule>
    </TextCell>
    <GroupCell closed="false" >
     <TextCell style="Subsection" >
      <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times; font-size:14pt; font-weight:600; color:#000000;">Packages as Abstract Datatypes&lt;/p>&lt;/body>&lt;/html></Text>
     </TextCell>
     <TextCell style="Text" >
      <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times New Roman; font-size:12pt; color:#000000;">&lt;span style=" font-size:14pt;">The notion of a package partly originates from the notion of &lt;/span>&lt;a href="Packages\PackasADTs.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">Abstract Data Type&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;"> (p. 333).&lt;/span>&lt;/p>&lt;/body>&lt;/html></Text>
      <Rule name="FontSize" >14</Rule>
     </TextCell>
     <GroupCell closed="false" >
      <TextCell style="Subsubsection" >
       <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times; font-size:12pt; font-weight:600; color:#000000;">Exercises&lt;/p>&lt;/body>&lt;/html></Text>
      </TextCell>
      <TextCell style="Text" >
       <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times New Roman; font-size:12pt; color:#000000;">&lt;span style=" font-size:14pt; font-weight:600;">    &lt;/span>&lt;a href="Packages\Exercise1ADT.onb
">&lt;span style=" font-size:14pt; font-weight:600; text-decoration: underline; color:#0000ff;">Exercise 1&lt;/span>&lt;/a>&lt;/p>&lt;/body>&lt;/html></Text>
       <Rule name="FontSize" >14</Rule>
       <Rule name="FontWeight" >Bold</Rule>
      </TextCell>
     </GroupCell>
    </GroupCell>
    <GroupCell closed="false" >
     <TextCell style="Subsection" >
      <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times; font-size:14pt; font-weight:600; color:#000000;">Package Access&lt;/p>&lt;/body>&lt;/html></Text>
     </TextCell>
     <TextCell style="Text" >
      <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times New Roman; font-size:12pt; color:#000000;">&lt;span style=" font-size:14pt;">There are essentially two ways of &lt;/span>&lt;a href="Packages\PackAccess.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">Accessing&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;"> (p. 335) the definitions of a package: direct reference by prefixing the package name to definition names or importing definitions from the package.&lt;/span>&lt;/p>&lt;/body>&lt;/html></Text>
      <Rule name="FontSize" >14</Rule>
     </TextCell>
    </GroupCell>
    <GroupCell closed="false" >
     <TextCell style="Subsection" >
      <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times; font-size:14pt; font-weight:600; color:#000000;">Package and Library Structuring &lt;/p>&lt;/body>&lt;/html></Text>
     </TextCell>
     <TextCell style="Text" >
      <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times New Roman; font-size:12pt; color:#000000;">&lt;span style=" font-size:14pt;">A well-designed &lt;/span>&lt;a href="Packages\PackLibrStruct.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">Package Structure&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;"> (p. 338) is one the most important aspects that influences the complexity, understandability, and maintainability of a large software systems. &lt;/span>&lt;/p>&lt;/body>&lt;/html></Text>
      <Rule name="FontSize" >14</Rule>
     </TextCell>
     <GroupCell closed="false" >
      <TextCell style="Subsubsection" >
       <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times; font-size:12pt; font-weight:600; color:#000000;">Exercises&lt;/p>&lt;/body>&lt;/html></Text>
      </TextCell>
      <TextCell style="Text" >
       <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times New Roman; font-size:12pt; color:#000000;">&lt;span style=" font-size:14pt; font-weight:600;">    &lt;/span>&lt;a href="Packages\Exercise1LibrStruct.onb
">&lt;span style=" font-size:14pt; font-weight:600; text-decoration: underline; color:#0000ff;">Exercise 1&lt;/span>&lt;/a>&lt;/p>&lt;/body>&lt;/html></Text>
       <Rule name="FontSize" >14</Rule>
       <Rule name="FontWeight" >Bold</Rule>
      </TextCell>
     </GroupCell>
    </GroupCell>
    <GroupCell closed="false" >
     <TextCell style="Subsection" >
      <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times; font-size:14pt; font-weight:600; color:#000000;">Package Variants and Operations &lt;/p>&lt;/body>&lt;/html></Text>
     </TextCell>
     <TextCell style="Text" >
      <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times New Roman; font-size:12pt; color:#000000;">&lt;span style=" font-size:14pt;">In the following sections we will examine certain variants of packages that can be created through operations such as instantiation of &lt;/span>&lt;a href="Packages\Generic.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">Generic Packages&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;"> (p. 346), &lt;/span>&lt;a href="Packages\Inherited.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">Inheritance of Packages&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;"> (p. 347), and manual editing. In addition will examine two special types of packages: &lt;/span>&lt;a href="Packages\Local.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">Local Packages&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;"> (p. 348) and &lt;/span>&lt;a href="Packages\Nonencapsulated.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">Nonencapsulated Packages&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;"> (p. 349). Also Copying or &lt;/span>&lt;a href="Packages\Moving.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">Moving Packages&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;"> (p. 350) is discussed here.&lt;/span>&lt;/p>&lt;/body>&lt;/html></Text>
      <Rule name="FontSize" >14</Rule>
     </TextCell>
     <GroupCell closed="false" >
      <TextCell style="Subsubsection" >
       <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times; font-size:12pt; font-weight:600; color:#000000;">Exercises&lt;/p>&lt;/body>&lt;/html></Text>
      </TextCell>
      <TextCell style="Text" >
       <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times New Roman; font-size:12pt; color:#000000;">&lt;a href="Packages\Exercise2.onb
">&lt;span style=" font-size:14pt; font-weight:600; text-decoration: underline; color:#0000ff;">    &lt;/span>&lt;/a>&lt;a href="Packages\Exercise1VarOp.onb
">&lt;span style=" font-size:14pt; font-weight:600; text-decoration: underline; color:#0000ff;">Exercise 1&lt;/span>&lt;/a>&lt;span style=" font-size:14pt; font-weight:600;">&lt;br />    &lt;/span>&lt;a href="Packages\Exercise2VarOp.onb
">&lt;span style=" font-size:14pt; font-weight:600; text-decoration: underline; color:#0000ff;">Exercise 2&lt;/span>&lt;/a>&lt;/p>&lt;/body>&lt;/html></Text>
       <Rule name="FontSize" >14</Rule>
       <Rule name="FontWeight" >Bold</Rule>
      </TextCell>
     </GroupCell>
    </GroupCell>
   </GroupCell>
   <GroupCell closed="false" >
    <TextCell style="Section" >
     <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times; font-size:18pt; font-weight:600; color:#000000;">Annotations, Units and Quantities&lt;/p>&lt;/body>&lt;/html></Text>
     <Rule name="CellTags" >Ch.11-annotation</Rule>
    </TextCell>
    <GroupCell closed="false" >
     <TextCell style="Subsection" >
      <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times; font-size:14pt; font-weight:600; color:#000000;">Annotations&lt;/p>&lt;/body>&lt;/html></Text>
     </TextCell>
     <TextCell style="Text" >
      <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times New Roman; font-size:12pt; color:#000000;">&lt;a href="AnnUnitsQuant\Annotations.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">Annotations&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;"> (p. 11.) are attributes that are not really part of the Modelica core language but still belongs to Modelica in a broad sense, and therefore are part of the Modelica language definition. Since annotations need to have a certain &lt;/span>&lt;a href="AnnUnitsQuant\SynPlac.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">Syntax and Placement&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;"> (p. 358) in classes, rules about this are discussed here. &lt;/span>&lt;a href="AnnUnitsQuant\Graphical.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">Graphical Annotations&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;"> (p. 361) is the most common form of annotation in typical Modelica models. &lt;/span>&lt;a href="AnnUnitsQuant\FuncAnn.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">Function Annotations&lt;/span>&lt;/a>&lt;span style=" font-size:14pt; font-weight:600;"> &lt;/span>&lt;span style=" font-size:14pt;">(p. 372).&lt;/span>&lt;/p>&lt;/body>&lt;/html></Text>
      <Rule name="FontSize" >14</Rule>
     </TextCell>
    </GroupCell>
    <GroupCell closed="false" >
     <TextCell style="Subsection" >
      <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times; font-size:14pt; font-weight:600; color:#000000;">Units and Quantities&lt;/p>&lt;/body>&lt;/html></Text>
     </TextCell>
     <TextCell style="Text" >
      <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times New Roman; font-size:12pt; color:#000000;">&lt;a href="AnnUnitsQuant\UnitsQuant.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">Units and Quantities&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;"> (p. 374) are constructs that are also not part of the Modelica language, but are for the same reason as Annotations part of the Modelica definition.&lt;/span>&lt;/p>&lt;/body>&lt;/html></Text>
      <Rule name="FontSize" >14</Rule>
     </TextCell>
    </GroupCell>
   </GroupCell>
   <GroupCell closed="false" >
    <TextCell style="Section" >
     <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times; font-size:18pt; font-weight:600; color:#000000;">System Modeling Methodology and Continuous Model Representation&lt;/p>&lt;/body>&lt;/html></Text>
     <Rule name="CellTags" >Ch.12-annunitquant</Rule>
    </TextCell>
    <GroupCell closed="false" >
     <TextCell style="Subsection" >
      <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times; font-size:14pt; font-weight:600; color:#000000;">Modeling a Tank System&lt;/p>&lt;/body>&lt;/html></Text>
     </TextCell>
     <TextCell style="Text" >
      <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times New Roman; font-size:12pt; color:#000000;">&lt;span style=" font-size:14pt;">So far we have primarily discussed, and shown examples of, the principles of object-oriented mathematical modeling, a number of Modelica language constructs to support high-level model representations and a high degree of model reuse. But in this chapter we will instead present a systematic method on how to create system models.&lt;br />&lt;br />To begin with, a tank system will be modeled, and there are different approaches. The &lt;/span>&lt;a href="SystemMod\FlatTank.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">Traditional Methodology&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;"> (p. 385) for physical modeling can be roughly divided into three phases: basic structuring in terms of variables, stating equations and formulas, and converting the model to state space form. When using the &lt;/span>&lt;a href="SystemMod\PIControl.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">Object Oriented Component-based&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;"> (p. 386) approach to modeling we first try to understand the system structure and decomposition in an hierarchical top-down manner. When the system components and interactions between these components have been roughly identified, we can apply the first two traditional modeling phases of identifying variables and equations on each of these model components.&lt;/span>&lt;/p>&lt;/body>&lt;/html></Text>
      <Rule name="FontSize" >14</Rule>
     </TextCell>
    </GroupCell>
   </GroupCell>
   <GroupCell closed="false" >
    <TextCell style="Section" >
     <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times; font-size:18pt; font-weight:600; color:#000000;">Modeling Discrete Events and Hybrid Systems&lt;/p>&lt;/body>&lt;/html></Text>
     <Rule name="CellTags" >Ch.13-eventhybrid</Rule>
    </TextCell>
    <GroupCell closed="false" >
     <TextCell style="Subsection" >
      <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times; font-size:14pt; font-weight:600; color:#000000;">Events&lt;/p>&lt;/body>&lt;/html></Text>
     </TextCell>
     <TextCell style="Text" >
      <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times New Roman; font-size:12pt; color:#000000;">&lt;span style=" font-size:14pt;">An event is simply &lt;/span>&lt;span style=" font-size:14pt; font-style:italic;">something that happens&lt;/span>&lt;span style=" font-size:14pt;">, using everyday language. This is true in the real world as well as in the mathematical sense. Modelica provides a number of built-in functions and operators related to events and time. One function that can be used for generating repeated events is &lt;/span>&lt;a href="DiscreteHybrid\SampleClock.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">sample&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;"> (p. 415). &lt;br />&lt;br />Events arise naturally external to a simulated system or are generated internally in the simulation model. These events should be handled, i.e. some &lt;/span>&lt;a href="DiscreteHybrid\EventBeh.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">Behavior&lt;/span>&lt;/a>&lt;span style=" font-size:14pt; font-weight:600;"> &lt;/span>&lt;span style=" font-size:14pt;">(p. 421) should be executed  associated with each event. We also describe how to &lt;/span>&lt;a href="DiscreteHybrid\EventPriority.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">Use Event Priority to Avoid Erroneous Multiple Definitions&lt;/span>&lt;/a>&lt;span style=" font-size:14pt; font-weight:600;"> &lt;/span>&lt;span style=" font-size:14pt;">(p. 424). Events often need to be &lt;/span>&lt;a href="DiscreteHybrid\Synchronization.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">Synchronized&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;"> (p. 425) and propagated, though Modelica gives no guarantee of exact synchronization. Also discussed are &lt;/span>&lt;a href="DiscreteHybrid\MultEvents.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">Multiple Events at the Same Point in Time and Event Internation&lt;/span>&lt;/a>&lt;span style=" font-size:14pt; font-weight:600;"> &lt;/span>&lt;span style=" font-size:14pt;">(p. 427).&lt;/span>&lt;/p>&lt;/body>&lt;/html></Text>
     </TextCell>
    </GroupCell>
    <GroupCell closed="false" >
     <TextCell style="Subsection" >
      <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times; font-size:14pt; font-weight:600; color:#000000;">Discrete Model Examples and Related Formalisms&lt;/p>&lt;/body>&lt;/html></Text>
     </TextCell>
     <TextCell style="Text" >
      <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times New Roman; font-size:12pt; color:#000000;">&lt;span style=" font-size:14pt;">This section provides you with a number of model examples of different kinds of discrete systems, for example &lt;/span>&lt;a href="DiscreteHybrid\SampledSystems.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">Sampled Systems&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;"> (p. 429), &lt;/span>&lt;a href="DiscreteHybrid\Automata.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">Finite State Automata&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;"> (p. 433) and &lt;/span>&lt;a href="DiscreteHybrid\ModStochProc.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">Models for Event Based Stochastic Processes&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;"> (p. 441). The &lt;/span>&lt;a href="DiscreteHybrid\WatchDog.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">WatchDog&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;"> System. (p. 435).&lt;br />&lt;br />The Discrete Event System Specification, abbreviated DEVS, is a modeling style and mathematical formalism. Examples of how DEVS models can be represented in Modelica is shown &lt;/span>&lt;a href="DiscreteHybrid\DEVS.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">here&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;"> (p. 444). &lt;br />&lt;br />Petri Nets is a widely used formalism for modeling and analyzing discrete event systems, with an associated intuitive visual representation. The nets can be thought of as a graph containing two kinds of nodes, &lt;/span>&lt;a href="DiscreteHybrid\ClassesforCPT.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">Places and Transitions&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;"> (p. 453). This section is completed with an example of a cellular automata&lt;/span>&lt;span style=" font-size:14pt; font-weight:600;">,&lt;/span>&lt;span style=" font-size:14pt;"> &lt;/span>&lt;a href="DiscreteHybrid\GameOfLife.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">Game of Life&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;"> (p. 438).&lt;/span>&lt;/p>&lt;/body>&lt;/html></Text>
     </TextCell>
    </GroupCell>
    <GroupCell closed="false" >
     <TextCell style="Subsection" >
      <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times; font-size:14pt; font-weight:600; color:#000000;">Hybrid System Modeling and Simulation&lt;/p>&lt;/body>&lt;/html></Text>
     </TextCell>
     <TextCell style="Text" >
      <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times New Roman; font-size:12pt; color:#000000;">&lt;span style=" font-size:14pt;">Hybrid Systems, systems that contain both continuous-time and discrete-time subsystems. This section describes an example of a Hybrid System, the &lt;/span>&lt;a href="DiscreteHybrid\HybridTank.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">Hybrid Tank Model with a Discrete Controller&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;"> (p. 460). We end with an example of &lt;/span>&lt;a href="DiscreteHybrid\DCMotorwithBacklash.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">A Mode Switching Model&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;"> (p. 464).&lt;/span>&lt;/p>&lt;/body>&lt;/html></Text>
     </TextCell>
    </GroupCell>
   </GroupCell>
   <GroupCell closed="false" >
    <TextCell style="Section" >
     <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times; font-size:18pt; font-weight:600; color:#000000;">Basic Laws of Nature&lt;/p>&lt;/body>&lt;/html></Text>
     <Rule name="CellTags" >Ch.14-nature</Rule>
    </TextCell>
    <TextCell style="Text" >
     <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times New Roman; font-size:12pt; color:#000000;">&lt;a href="LawsOfNature\TransformerEMF.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">Emf-Transformer&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;">(p. 478)&lt;/span>&lt;/p>&lt;/body>&lt;/html></Text>
    </TextCell>
   </GroupCell>
   <GroupCell closed="false" >
    <TextCell style="Section" >
     <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times; font-size:18pt; font-weight:600; color:#000000;">Application Examples&lt;/p>&lt;/body>&lt;/html></Text>
     <Rule name="CellTags" >Ch.15-applex</Rule>
    </TextCell>
    <TextCell style="Text" >
     <Text>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Times New Roman; font-size:12pt; color:#000000;">&lt;a href="ApplicationEx\Mechatronic.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">Mechatronic Systems - A DC Motor&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;"> (p. 553)&lt;/span>&lt;a href="ApplicationEx\3DDoublePendulum.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">&lt;br />&lt;/span>&lt;/a>&lt;a href="ApplicationEx\DesignOptimization.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">Design Optimization&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;"> (p. 582)&lt;/span>&lt;a href="ApplicationEx\3DDoublePendulum.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">&lt;br />&lt;/span>&lt;/a>&lt;a href="ApplicationEx\FourierAnalysis.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">Frequency Analysis of Simulation Data&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;"> (p. 578)&lt;/span>&lt;a href="ApplicationEx\3DDoublePendulum.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">&lt;br />&lt;/span>&lt;/a>&lt;a href="ApplicationEx\PressureDynamics.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">Pressure Dynamics in 1D Ducts - Solving Wave Equations by Discretized PDEs&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;"> (p. 587)&lt;/span>&lt;a href="ApplicationEx\3DDoublePendulum.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">&lt;br />A 3D Double Pendulum&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;"> (p. 587)&lt;br />&lt;/span>&lt;a href="ApplicationEx\KinematicLoops.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">Kinematic Loops&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;"> (p. 587)&lt;br />&lt;/span>&lt;a href="ApplicationEx\InterfacingtoNonMechModComp.onb
">&lt;span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">Interfacing to Non-Mechanical Model Components&lt;/span>&lt;/a>&lt;span style=" font-size:14pt;"> (p. 587)&lt;br />&lt;/span>&lt;/p>&lt;/body>&lt;/html></Text>
     <Rule name="FontSize" >14</Rule>
    </TextCell>
   </GroupCell>
  </GroupCell>
 </GroupCell>
</Notebook>
