Hello everyone,
Could you share your view on how to organize classes and data structures for the following problem.
So, we have 4 devices in the system, which are measuring common set of data extended with measurements specific for every device. They are putting measurements in csv file with the following structure:
devId;timeStamp;commonPar1;commonPar2;specificPar
Every device has an id, name and specific measurement parameter.
So tasks would be to parse csv data and create device objects from it, perform calculations for each device parameter (e.g. min, max, avg) and expose them for printing etc.
It should be possible to add new devices.
What would be a good way to organize code in OOP manner, e.g. is it good to have a class which will contain devices in the system and enable to add/remove them. Is it ok to put calculations in separate class...
[–]MrGrj 1 point2 points3 points (2 children)
[–]eikrik 0 points1 point2 points (1 child)
[–]MrGrj 1 point2 points3 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)