diff --git a/Uebungen/Blatt03/Exercise03-Task1a-de.sbv b/Uebungen/Blatt03/Exercise03-Task1a-de.sbv index 0d31fac..13c6e48 100644 --- a/Uebungen/Blatt03/Exercise03-Task1a-de.sbv +++ b/Uebungen/Blatt03/Exercise03-Task1a-de.sbv @@ -11,7 +11,7 @@ aus der Vorlesung kennen, um eine weitere Operation erweitern, die ein solches, wie 0:00:12.900,0:00:15.879 -hier unten dargestellt, regelmäßiges Vieleck +hier unten dargestelltes, regelmäßiges Vieleck zeichnen kann. 0:00:15.879,0:00:23.029 @@ -19,7 +19,7 @@ Wir sollen uns dafür nicht mit der eigentlichen Implementierung beschäftigen, das macht die 0:00:23.029,0:00:27.010 -Vektorgraphik-Operation aus der Vorlesung +Vektorgraphik-Operationen-Sammlung aus der Vorlesung ja auch nicht, sondern wir sollen einfach 0:00:27.010,0:00:35.070 @@ -131,7 +131,7 @@ alle Seiten dieselbe Länge. 0:02:38.340,0:02:42.969 Also, warum geben wir nicht einfach als Parameter -an, die Länge dieser Seite zum Beispiel? +die Länge dieser Seite zum Beispiel an? 0:02:42.969,0:02:45.849 Das wäre auch vollkommen möglich. @@ -179,7 +179,7 @@ Das ist natürlich dann für uns ein bisschen einfacher. 0:03:24.950,0:03:29.989 -So oder so, wie dieser ... wahrscheinlich +So oder so, dieser Wert wird wahrscheinlich keine ganze Zahl sein, wir können ja auch 0:03:29.989,0:03:33.319 diff --git a/Uebungen/Blatt03/Exercise03-Task1b-de.sbv b/Uebungen/Blatt03/Exercise03-Task1b-de.sbv index fa92de8..abd1e87 100644 --- a/Uebungen/Blatt03/Exercise03-Task1b-de.sbv +++ b/Uebungen/Blatt03/Exercise03-Task1b-de.sbv @@ -41,7 +41,7 @@ Am Ende bekommen wir daraus ein Picture. Jetzt sollen wir das Ganze in die Praxis umsetzen. 0:00:51.560,0:00:57.020 -Dafür werden wir die Codewort Webseite benutzen +Dafür werden wir die "CodeWorld" Webseite benutzen und sehen, wie das richtig funktioniert und 0:00:57.020,0:00:59.710 @@ -58,7 +58,7 @@ Der Radius beträgt 2, wie wir hier sehen. 0:01:09.750,0:01:27.280 Dann gehen wir jetzt hierhin und schreiben: -vieleck (13,2) als Radiuslänge. +vieleck (13,2) mit 13 Kanten, 2 als Radiuslänge. 0:01:27.280,0:01:31.230 Jetzt sehen wir, dass es funktioniert. @@ -84,7 +84,8 @@ Deswegen müssen wir diesen Operator benutzen, den ihr ja schon in der Vorlesung kennengelernt 0:02:00.509,0:02:01.719 -habt. +habt. Der Operator verbindet zwei +Objekte vom Typ Picture. 0:02:01.719,0:02:10.720 & vieleck (7,1). @@ -108,8 +109,8 @@ schon in der Vorlesung vorgekommen ist. Die heißt Move. 0:02:34.430,0:02:50.099 -Wir brauchen Argumente, die für die X- und -die Y-Achse stehen. +Move nimmt ein Picture und noch zwei Float- +Argumente, die für die X- und die Y-Achse stehen. 0:02:50.099,0:02:58.629 Zuerst sollen wir angeben, um wie viele Einheiten diff --git a/Uebungen/Blatt03/Exercise03-Task2-de.sbv b/Uebungen/Blatt03/Exercise03-Task2-de.sbv index 31a0cce..686f224 100644 --- a/Uebungen/Blatt03/Exercise03-Task2-de.sbv +++ b/Uebungen/Blatt03/Exercise03-Task2-de.sbv @@ -3,10 +3,10 @@ In dieser Aufgabe beschäftigen wir uns mit Klassen und Objekten und ganz spezifisch mit 0:00:07.130,0:00:10.820 -dem Anfang von OML, hier in Form eines OML-Klassendiagramms. +dem Anfang von UML, hier in Form eines UML-Klassendiagramms. 0:00:10.820,0:00:14.650 -Wir haben hier dieses OML-Klassendiagramm +Wir haben hier dieses UML-Klassendiagramm schon vorgegeben. 0:00:14.650,0:00:20.269 @@ -32,7 +32,7 @@ Also, es heißt, MotorizedVehicle vererbt an Motorcycle, beziehungsweise, umgekehrt 0:00:40.030,0:00:46.320 -gelesen, Motorcycle erbt von auf der Pfeilseite, +gelesen, Motorcycle erbt von, auf der Pfeilseite, MotorizedVehicle und MotorizedVehicle erbt 0:00:46.320,0:00:47.370 @@ -237,7 +237,7 @@ jetzt DU-101. 0:05:07.280,0:05:16.659 Jetzt haben wir ja das MotorizedVehicle, wovon -der Transporter erbt, aber MotorizedVehicle +der Transporter direkt erbt, aber MotorizedVehicle 0:05:16.659,0:05:18.139 erbt auch nochmal von RentableVehicle. diff --git a/Uebungen/Blatt03/Exercise03-Task2-en.sbv b/Uebungen/Blatt03/Exercise03-Task2-en.sbv index 356ce32..27fd23b 100644 --- a/Uebungen/Blatt03/Exercise03-Task2-en.sbv +++ b/Uebungen/Blatt03/Exercise03-Task2-en.sbv @@ -17,7 +17,7 @@ class. So, we have to define for each one of those. 0:00:36.530,0:00:44.120 -Now, I know this task side here and open the +Now, I move this task aside here and open a blank page. 0:00:44.120,0:00:52.840 @@ -25,37 +25,37 @@ So, now we have to consider each of these mentioned classes. 0:00:52.840,0:00:57.800 -And yeah, we start on the top one. +And yeah, we start on the top one, 0:00:57.800,0:01:01.780 -We have a rental vehicle. +with RentableVehicle. 0:01:01.780,0:01:09.640 So, let’s say we have a scooter which we want to represent. 0:01:09.640,0:01:14.009 -And this is a rentable vehicle. +And this is a RentableVehicle. 0:01:14.009,0:01:22.910 We are using the syntax that was introduced in the lecture as well. 0:01:22.910,0:01:28.329 -For trying those objects. +For drawing those objects. 0:01:28.329,0:01:30.610 Or representing those objects. 0:01:30.610,0:01:39.340 -And now we have- First of all, the top of +And now first of all, we have the top of the object which is the name of the object 0:01:39.340,0:01:42.220 and which class it belongs to. 0:01:42.220,0:01:47.479 -So, the text is under line. +So, the text is underlined. 0:01:47.479,0:01:53.110 This is important for the object in objects @@ -69,11 +69,11 @@ And then, we have to define all the parameters that are required for this class. 0:02:07.659,0:02:15.480 -And these are- well, giving here in this case -it’s just a model. +And these are given here, in this case +it’s just model. 0:02:15.480,0:02:23.140 -We can’t ignore the methods that are given, +We can ignore the methods that are given, we just have to look at the attributes. 0:02:23.140,0:02:27.879 @@ -82,7 +82,7 @@ here. 0:02:27.879,0:02:37.750 So, we can say the model is something and -we can define any (?String) here. +we can define any String here. 0:02:37.750,0:02:47.730 So, we can say for instance that our scooter @@ -95,7 +95,7 @@ And that’s the model’s name. Now we are done. 0:02:54.080,0:02:57.879 -We have a rentable vehicle, and we can continue +We have a RentableVehicle, and we can continue with the other classes. 0:02:57.879,0:03:01.380 @@ -105,7 +105,7 @@ So, we need another one for bicycle. So, let’s define the bicycle. 0:03:10.970,0:03:16.730 -This one, let’s just call it B for bicycle. +This one, let’s just call it b for bicycle. 0:03:16.730,0:03:19.140 How we call it depends on ourselves. @@ -118,8 +118,8 @@ we can choose the name ourselves. The bicycle is a rentable vehicle. 0:03:31.890,0:03:38.650 -That’s why we have to consider both as…#00:03:34# -types of rentable vehicle and those of bicycle +That’s why we have to consider both attributes, +those of RentableVehicle and those of Bicycle 0:03:38.650,0:03:41.040 because of the inheritance. @@ -129,11 +129,11 @@ That’s why we have to give a model name here as well. 0:03:45.500,0:04:00.180 -And we can say- this is also- some special +And we can say this is also some special bike, let’s say it’s the “Ubari Deluxe”. 0:04:00.180,0:04:04.530 -And we require to fill the attributes here +And we require further attributes here for the bicycle. 0:04:04.530,0:04:12.959 @@ -141,11 +141,11 @@ Because the bicycle has also lights or may have lights and the size is relevant. 0:04:12.959,0:04:28.470 -So, let’s say for the lights- we say it’s +So, let’s say for hasLights we say it’s true. 0:04:28.470,0:04:34.190 -So, our bike has lights and the size it’s +So, our bike has lights and the size is 28. 0:04:34.190,0:04:42.229 @@ -155,7 +155,7 @@ So, just as reminder. We have to give a size here just as an “Int”. 0:04:45.600,0:04:50.530 -Because it’s stays, so here we cannot write +Because it’s stated so here, we cannot write something like 28 inches. 0:04:50.530,0:04:56.850 @@ -175,25 +175,25 @@ So, that’s up to ourselves in this case, so, just 28 for instance. 0:05:18.150,0:05:20.510 -Now we continue with the other class. +Now we continue with the other classes. 0:05:20.510,0:05:24.380 -We have motorized vehicle. +We have a MotorizedVehicle. 0:05:24.380,0:05:30.710 -This one it’s also a rentable vehicle. +This one it’s also a RentableVehicle. 0:05:30.710,0:05:43.310 -But I copied the bicycle here, so templated +But I copied the bicycle here, as a template just to start with- let’s just say it’s 0:05:43.310,0:05:49.259 -a “escooter” that we want to construct -to have here. +an “escooter” that we want +to construct here. 0:05:49.259,0:06:04.470 -And this is the motorized vehicle and precise -a bit. +And this is a MotorizedVehicle and increase +the size a bit. 0:06:04.470,0:06:06.530 We can give any model name here. @@ -207,27 +207,27 @@ But we can use a model name which is “Pure Air” here for instance. 0:06:23.120,0:06:25.850 -We recreated the model’s name here as well. +We require the model’s name here as well. 0:06:25.850,0:06:31.229 -Because our motorized vehicle it’s also -a rentable vehicle. +Because our MotorizedVehicle is also +a RentableVehicle. 0:06:31.229,0:06:36.820 And we also require a license plate. 0:06:36.820,0:06:37.820 -Please note that, we do not do that. +Please note, that 0:06:37.820,0:06:44.810 -We do not require the attributes of bicycle -of course, just the attributes where motorized +we do not require the attributes of bicycle +of course, just the attributes where 0:06:44.810,0:06:52.160 -vehicles- yeah. +MotorizedVehicle is. 0:06:52.160,0:06:56.470 -Because motorized vehicles are rentable vehicles. +Because MotorizedVehicles are RentableVehicles. 0:06:56.470,0:06:58.310 Because it’s inheriting. @@ -243,28 +243,28 @@ So, that’s why I removed those attributes here and instead I added the license plate 0:07:11.250,0:07:23.039 -and for our license plate, we can choose any- -well which it’s String for instance we could +and for our license plate, we can choose any +value that is String, for instance we could 0:07:23.039,0:07:25.500 -say our license plate. +say our license plate 0:07:25.500,0:07:34.730 -Or look something like this, it contains numbers -and letters, and yeah. +could look something like this, it contains numbers +and letters. 0:07:34.730,0:07:39.160 -Maybe this is also a license plate but yeah. +Maybe this is also a valid license plate but yeah. 0:07:39.160,0:07:49.430 -The important thing is that we fill the requirements -of the types given…#00:07:45# that’s by +The important thing is that we fulfill the requirements +of the types given within the class diagram by 0:07:49.430,0:07:51.530 -having “String”. +having a “String”. 0:07:51.530,0:07:56.150 -Okay now, another motorized vehicle. +Okay now, another MotorizedVehicle. 0:07:56.150,0:07:57.580 That is the motorcycle. @@ -301,8 +301,8 @@ Because the task says that we have to choose a different value. 0:08:47.040,0:09:02.630 -So, we could say for instance, we say our -motorcycle as “DU-AB14”. +So, we could say for instance, our +motorcycle has the license plate "DU-AB14". 0:09:02.630,0:09:08.550 And the maximum speed needs to be defined @@ -312,20 +312,20 @@ for the motorcycle. And let’s just say it’s 205. 0:09:12.530,0:09:15.480 -This is important to consider it. +This is important to consider. 0:09:15.480,0:09:17.830 -MaxSpeed it’s of type “Int”. +MaxSpeed is of type “Int”. 0:09:17.830,0:09:21.240 That’s why we have to choose an Int value. 0:09:21.240,0:09:24.600 -And it’s up to ourselves again. +And it’s up to ourselves again, 0:09:24.600,0:09:34.899 -If we want to say we want to give, if we think -about kilometers per hour or miles per hour, +which value we want to give and if we think +about it as kilometers per hour or miles per hour, 0:09:34.899,0:09:42.769 doesn’t matter in this regard for this task. @@ -341,7 +341,7 @@ So, we have a car here. We require the model, the license plate. 0:09:57.800,0:10:05.250 -And another word which is new here, which +And another value which is new here, which is the weight. 0:10:05.250,0:10:12.830 @@ -351,7 +351,7 @@ Again, we have to choose different values. So, let’s give our car a name. 0:10:27.029,0:10:39.470 -So, it’s just a car, that’s the name and +So, it’s just "acar", that’s the name and the model. 0:10:39.470,0:10:49.230 @@ -369,11 +369,11 @@ And the weight can be defined as any valid Float value in this case. 0:11:07.960,0:11:17.560 -So, - was introduced in the lecture like this -could say the value is like this or we stated +So, as what was introduced in the lecture like this +could say the value is like this or we actually state 0:11:17.560,0:11:20.720 -this float by adding a dot here. +that this is a float by adding a dot here. 0:11:20.720,0:11:32.339 And saying it’s 2500.0 so, that’s clearer, @@ -390,7 +390,7 @@ So, this is the last one. And yeah, we have to have a model again. 0:11:51.709,0:11:55.790 -Because have a rentable vehicle. +Because have a RentableVehicle. 0:11:55.790,0:11:59.380 We got to have to have a license plate. @@ -406,11 +406,11 @@ and we can have a weight and height. Please note. 0:12:16.910,0:12:22.060 -We have a weight for the transporter as well -and all tough, we do not inherit from the +We have a weight for the transporter as well, +altough we do not inherit from the 0:12:22.060,0:12:23.970 -motorized vehicle. +MotorizedVehicle. 0:12:23.970,0:12:31.540 This is because the transporter has his own @@ -420,7 +420,7 @@ weight defined luckily. So, we have weight for transporter and car. 0:12:35.080,0:12:38.160 -But not in general for motorized vehicles. +But not in general for MotorizedVehicles. 0:12:38.160,0:12:46.750 For instance, the motorcycle has no weight @@ -440,25 +440,25 @@ And well, we can choose a model. Let’s say this is the “T5”. 0:13:10.820,0:13:16.180 -And we call it VW. +And we call it "vw". 0:13:16.180,0:13:28.290 So, now we have got 6 classes, 6 objects for our 6 classes. 0:13:28.290,0:13:36.980 -And important to note it’s that when we -inherence from another class. +And important to note is that when we +inherit from another class, 0:13:36.980,0:13:40.420 -We have to fill all this attributes. +we have to fill all its attributes. 0:13:40.420,0:13:47.230 -We can’t completely ignore the methods that +We can completely ignore the methods that are defined. 0:13:47.230,0:13:53.000 -And of course, we have to also to the attributes +And of course, we have to acknowledge also the attributes that are defined for the class that we are 0:13:53.000,0:13:54.000 @@ -466,7 +466,7 @@ actually having. 0:13:54.000,0:14:00.070 So, for instance, for car we have to give -the weight and yeah. +the weight. 0:14:00.070,0:14:04.680 That’s simply what we have to do for this diff --git a/Uebungen/Blatt03/Exercise03-Task3-de.sbv b/Uebungen/Blatt03/Exercise03-Task3-de.sbv index 0adbe2a..676ba49 100644 --- a/Uebungen/Blatt03/Exercise03-Task3-de.sbv +++ b/Uebungen/Blatt03/Exercise03-Task3-de.sbv @@ -76,7 +76,7 @@ Klasse, Person, und zwei Klassen, Student, und eine Klasse Prüfer. 0:01:24.500,0:01:38.650 -Und diesen beiden Klassen, Student und Prüfer, +Und diese beiden Klassen, Student und Prüfer, sind Personen, das heißt, beide erben von 0:01:38.650,0:01:39.650 @@ -305,7 +305,7 @@ Das Alter bei Student ist drin, der Kursname bei Prüfer ist auch drin. 0:06:22.680,0:06:24.380 -Anzahl bei Prüfungsamt ist auch drin. +AnzahlMitarbeiter bei Prüfungsamt ist auch drin. 0:06:24.380,0:06:27.770 Jetzt müssen wir noch gucken, ob es irgendwelche diff --git a/Uebungen/Blatt03/Exercise03-Task3-en.sbv b/Uebungen/Blatt03/Exercise03-Task3-en.sbv index 85421c0..4689ab6 100644 --- a/Uebungen/Blatt03/Exercise03-Task3-en.sbv +++ b/Uebungen/Blatt03/Exercise03-Task3-en.sbv @@ -8,14 +8,14 @@ scenario. 0:00:16.440,0:00:21.980 Which we have to consider in order to create -simple class diagram. +a simple class diagram. 0:00:21.980,0:00:30.240 Also, we should think about the properties that the actors and institutions in this model 0:00:30.240,0:00:33.750 -must have and yeah. +must have. 0:00:33.750,0:00:41.520 And then, give an appropriate class diagram @@ -26,7 +26,7 @@ And we also have to define the types of the attributes. 0:00:46.050,0:00:51.930 -For this class I want to read the little scenario. +For this task I want to read the little scenario. 0:00:51.930,0:00:54.570 Different persons appear in our model. @@ -69,10 +69,10 @@ which tell us a lot about this class diagram. 0:01:49.680,0:02:04.540 It tell us that are different persons in our -model, (?the A), differently aged students. +model. There are differently aged students. 0:02:04.540,0:02:09.899 -So, first of all, we have students in our +So, first of all, we have student as a class. 0:02:09.899,0:02:19.459 @@ -83,7 +83,7 @@ And we have the examination office. 0:02:30.640,0:02:36.790 We write those classes in Camel Case which -means that the person let us uppercase letters +means that the first letters are uppercase letters 0:02:36.790,0:02:40.000 and all the other letters are lowercase. @@ -101,7 +101,7 @@ So, like we did here with the examination office. 0:02:56.600,0:03:00.620 -And if you use singular forms for our classes. +And we use singular forms for our classes. 0:03:00.620,0:03:08.520 So, we have the examiner class, the student @@ -112,14 +112,14 @@ And we have another class given in the next sentence. 0:03:16.170,0:03:21.150 -Where stayed of course students and examiners +Where it states that of course students and examiners as persons. 0:03:21.150,0:03:28.950 So, we have another class called “person”. 0:03:28.950,0:03:34.780 -And (?the states) that every person has a +And there it states that every person has a name. 0:03:34.780,0:03:38.610 @@ -138,21 +138,21 @@ persons. 0:04:02.819,0:04:09.819 But we also have info about the students which -was the (?A), age. +was, that they are aged. 0:04:09.819,0:04:21.610 So, we also have the age for the students. 0:04:21.610,0:04:43.770 -And now, we have the examiners and they have -not the aged stored. +And now, we have the examiners and they do not +have their ages stored. 0:04:43.770,0:04:45.110 This is important. 0:04:45.110,0:04:51.330 -Because if they would have the aged then we -would have to define the age in person. +Because if they would have the age then we +would have to define the age within person. 0:04:51.330,0:05:00.160 But the ages are only stored for the students, @@ -166,19 +166,19 @@ course. So, we should store the course name. 0:05:07.840,0:05:14.310 -I didn’t read the matriculation number and -I typed “Int” here. +I have written the matriculation number and +age as “Int” here. 0:05:14.310,0:05:20.380 Because I think it should be quite clear that -the age It’s of course an Int value. +the age is of course an Int value. 0:05:20.380,0:05:24.520 And the matriculation number is usually an Int. 0:05:24.520,0:05:28.030 -So, we have it in this book as well. +So, we have it in Duisburg-Essen as well. 0:05:28.030,0:05:36.479 So, we use just an Int value here and the @@ -202,15 +202,15 @@ And the examination office has the number of employees. 0:06:00.800,0:06:08.850 -So, as we talk about a number or, well, we +So, as we talk about a number, we should use “Int” as a type here. 0:06:08.850,0:06:21.490 So, we can say, the examination office has -the number of employees as Int so we can for +the number of employees as Int so we can call it, 0:06:21.490,0:06:29.270 -instance, “employees” and say that it’s +for instance, “employees” and say there is an Int value for that. 0:06:29.270,0:06:40.270 @@ -233,13 +233,13 @@ This implies that we should have an inheritance here. 0:07:09.440,0:07:13.460 -So, students should inherit from a person. +So, students should inherit from person. 0:07:13.460,0:07:14.919 But also, the examiners. 0:07:14.919,0:07:23.050 -So, we can draw an inheritance to persons +So, we can draw an inheritance to person from both of them. 0:07:23.050,0:07:32.800