From 6995c5d23bcd24a3a0c5902802159504991a7739 Mon Sep 17 00:00:00 2001 From: Harald Mueller Date: Thu, 16 Dec 2021 09:27:55 +0100 Subject: [PATCH] muh --- .../03-Vererbung/uebung_vererbung_Sensor/ReadMe.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/m226ab/2-Unterlagen/03-Vererbung/uebung_vererbung_Sensor/ReadMe.md b/m226ab/2-Unterlagen/03-Vererbung/uebung_vererbung_Sensor/ReadMe.md index 8a2bc04..2ee6f14 100644 --- a/m226ab/2-Unterlagen/03-Vererbung/uebung_vererbung_Sensor/ReadMe.md +++ b/m226ab/2-Unterlagen/03-Vererbung/uebung_vererbung_Sensor/ReadMe.md @@ -67,20 +67,20 @@ It should implement the following methods and define the following fields: 6) **_Implementation:_** - **--> ** Implement 2 concrete classes for two models of the abstract class you specified in task 5. + ** --> ** Implement 2 concrete classes for two models of the abstract class you specified in task 5. 7) **_Using polymorphism:_** - **--> ** Now write a class CsvWriter that reads readings from one of these sensors at a given time interval and writes them to a file. (File name, interval and sensor should be configurable). + ** --> ** Now write a class CsvWriter that reads readings from one of these sensors at a given time interval and writes them to a file. (File name, interval and sensor should be configurable). - Tip: Create an object of a child class of Sensor and pass it to the constructor of CsvWriter as a parameter together with the interval and the filename. File format: each line is Comma Separated Value (CSV) i.e. something like _time stamp_,_name of sensor_,_unit_,_measurement_. Each line corresponds to one measurement. - Implement a method "public void run()" which you then call to actually take the measurements and write them to the file. -8) **--> ** **_Create the CsvWriter in a main class_** and allow the user to select the sensor, the interval and the file name. +8) ** --> ** **_Create the CsvWriter in a main class_** and allow the user to select the sensor, the interval and the file name. -9) **--> ** **_Optional:_** Think about how you would write the same data into a database. +9) ** --> ** **_Optional:_** Think about how you would write the same data into a database or into a .json format file.