You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create (edit) a new Python module named BaseSystemUtilTask with class name BaseSystemUtilTask. This will be in the ./programmingtheiot/cda/system package.
NOTE: The downloaded code repository will contain a shell implementation of this module for you to work with, or you can create your own if you'd prefer.
Review the README
Please see README.md for further information on, and use of, this content.
License for embedded documentation and source codes: PIOT-DOC-LIC
Estimated effort may vary greatly
The estimated level of effort for this exercise shown in the 'Estimate' section below is a very rough approximation. The actual level of effort may vary greatly depending on your development and test environment, experience with the requisite technologies, and many other factors.
Actions
NOTE: The implementation examples depicted here are only one way to implement the requirements listed. Your own implementation may vary of course.
Add a constructor that accepts a name (str) and typeID (int), and sets class-scoped variables of the same names. The defaults for each can be name = ConfigConst.NOT_SET and typeID = ConfigConst.DEFAULT_SENSOR_TYPE
Add a getter method for each of self.name and self.typeID. These two methods should simply return the values, as follows:
Description
BaseSystemUtilTask
with class nameBaseSystemUtilTask
. This will be in the ./programmingtheiot/cda/system package.Review the README
Estimated effort may vary greatly
Actions
NOTE: The implementation examples depicted here are only one way to implement the requirements listed. Your own implementation may vary of course.
name
(str) andtypeID
(int), and sets class-scoped variables of the same names. The defaults for each can bename = ConfigConst.NOT_SET
andtypeID = ConfigConst.DEFAULT_SENSOR_TYPE
self.name
andself.typeID
. These two methods should simply return the values, as follows:getTelemetryValue()
as follows:pass
? This is just a template method, and will be implemented by the sub-classEstimate
Tests
The text was updated successfully, but these errors were encountered: