Erick / Mbed 2 deprecated ICE_BLE_TEST

Dependencies:   NaturalTinyShell_ice libmDot-12Sept mbed-rtos mbed

Fork of ICE by Erick

Revision:
77:43e0a3d9e536
Parent:
74:03ccf04998b5
Child:
115:1558e01d04c6
--- a/src/OutputTask/OutputTask.h	Mon Sep 19 14:46:03 2016 +0000
+++ b/src/OutputTask/OutputTask.h	Mon Sep 19 21:03:14 2016 +0000
@@ -16,27 +16,46 @@
 
 
 /*****************************************************************************
- * Control class 
+ * Control class
+ * Contains the most pertinent control information to stack onto the output
+ * entry
  ****************************************************************************/
 class Control
 {
 private:
-    std::string          id;
-    unsigned int    priority;
-    ControlState    state;
+    std::string     id;             // control identifier 
+    unsigned int    priority;       // control priority 
+    ControlState    state;          // state (ON or OFF) 
+
 public:
+    // ctor
     Control(std::string id, unsigned int priority, ControlState state) :
         id(id), priority(priority), state(state) {}
+    // dtor
+    ~Control() {}
+    
+    // displays a control's pertinents
     void display() {
         printf("[%s | %s | %u]",
                id.c_str(), (state == CONTROL_ON) ? "ON" : "OFF", priority);
     }
-    //void setId(string id) id(id) { }
-    std::string getId() {
+
+    std::string getId() const {
         return id;
     }
+
+    unsigned int getPriority() const {
+        return priority;
+    }
+
+    ControlState getState(void) const {
+        return state;
+    }
+
     void setState(ControlState _state) {
         state = _state;
     }
 };
+
+
 #endif
\ No newline at end of file