This is our group project, which was worked on the other group’s code base. Actually, it was not easy to work on other’s code since we had to look through the entire program and tried to understand their design and the purpose of every single function, as well as their integration. Also, we can’t change the original design to facilitate our needs.
For this project, we added three features based on the original code:
SetBaseline: the baseline of power consumed for monitor the goal of power consumed;
MonitorPower: monitor the current power of given source;
MonitorGoal: monitor the current power consumed to see if it reach the given goal;