List[Null, Null, Null, Null, Null, Null, Null, Notebook[List[Cell[CellGroupData[List[Cell["Exercise 4 - Instances", "Title"], Cell[CellGroupData[List[Cell["Creating Instances", "Section"], Cell[TextData[List["Consider the class ", StyleBox["Student", Rule[FontFamily, "Courier"]], " below."]], "Text"], Cell["class Student\n  constant Real legs = 2;\n  constant Real arms = 2;\n  parameter Real nrOfBooks;\n  parameter String name = \"Dummy\";\nend Student;", "ModelicaInput"], Cell[TextData[List["\n\nCreate an instance of the class ", StyleBox["Student", Rule[FontFamily, "Courier"]], ". "]], "Text"], Cell["", "ModelicaInput"], Cell["\n\nCreate another instance and give the student the name \"Alice\", who has 65 books.", "Text"], Cell["", "ModelicaInput"], Cell["\n\nYou also want to create a student called \"Burt\" with 32 books.", "Text"], Cell["", "ModelicaInput"], Cell[CellGroupData[List[Cell["Answer", "Subsection"], Cell["class StudentInst\n  Student s;\nend StudentInst;", "ModelicaInput"], Cell["", "Text"], Cell["class StudentAlice\n  Student stud(name = \"Alice\", nrOfBooks = 65);\nend StudentAlice;", "ModelicaInput"], Cell["", "Text"], Cell["class StudentBurt\n  Student stud(name = \"Burt\", nrOfBooks = 32);\nend StudentBurt;", "ModelicaInput"], Cell["", "Text"], Cell[CellGroupData[List[Cell["Simulation of Student, StudentAlice and StudentBurt", "Subsubsection"], Cell["simulate( StudentInst );", "ModelicaInput"], Cell[BoxData["\"<SimulationData: \\!\\(StudentInst\\) : 2004-1-30 10:42:1.5441989 : \\!\\({0.`, 1.`}\\) : 502 data points : 1 events : 5 variables>\\n\\!\\({\\*TagBox[\\\"\[UnderBracket]derdummy\\\", HoldForm], \\*TagBox[\\\"\[UnderBracket]dummy\\\", HoldForm], \\*TagBox[\\(s . arms\\), HoldForm], \\*TagBox[\\(s . legs\\), HoldForm], \\*TagBox[\\(s . nrOfBooks\\), HoldForm]}\\)\""], "Output"], Cell["simulate( StudentAlice );", "ModelicaInput"], Cell[BoxData["\"<SimulationData: \\!\\(StudentAlice\\) : 2004-1-30 10:42:7.4347862 : \\!\\({0.`, 1.`}\\) : 502 data points : 1 events : 5 variables>\\n\\!\\({\\*TagBox[\\\"\[UnderBracket]derdummy\\\", HoldForm], \\*TagBox[\\\"\[UnderBracket]dummy\\\", HoldForm], \\*TagBox[\\(stud . arms\\), HoldForm], \\*TagBox[\\(stud . legs\\), HoldForm], \\*TagBox[\\(stud . nrOfBooks\\), HoldForm]}\\)\""], "Output"], Cell["simulate( StudentBurt );", "ModelicaInput"], Cell[BoxData["\"<SimulationData: \\!\\(StudentBurt\\) : 2004-1-30 10:42:12.9191261 : \\!\\({0.`, 1.`}\\) : 502 data points : 1 events : 5 variables>\\n\\!\\({\\*TagBox[\\\"\[UnderBracket]derdummy\\\", HoldForm], \\*TagBox[\\\"\[UnderBracket]dummy\\\", HoldForm], \\*TagBox[\\(stud . arms\\), HoldForm], \\*TagBox[\\(stud . legs\\), HoldForm], \\*TagBox[\\(stud . nrOfBooks\\), HoldForm]}\\)\""], "Output"]], Closed]]], Closed]]], Open]]], Open]]], Rule[FrontEndVersion, "5.1 for Microsoft Windows"], Rule[ScreenRectangle, List[List[0, 1280], List[0, 951]]], Rule[WindowSize, List[853, 924]], Rule[WindowMargins, List[List[57, Automatic], List[Automatic, 0]]], Rule[StyleDefinitions, "MathModelica.nb"]], Null, Null, Null, Null, Null]