Erick / Mbed 2 deprecated ICE_BLE_TEST

Dependencies:   NaturalTinyShell_ice libmDot-12Sept mbed-rtos mbed

Fork of ICE by Erick

src/ConfigurationHandler/Controls/SetpointControl.h

Committer:
jmarkel44
Date:
2016-09-13
Revision:
46:4cb96ab2d1c8
Parent:
30:738359dfdab1
Child:
51:66b820f203a5

File content as of revision 46:4cb96ab2d1c8:

/******************************************************************************
 *
 * File:                SetpointControl.h
 * Desciption:          ICE Timer Control Class
 *
 *****************************************************************************/
#ifndef SETPOINTCONTROL_H
#define SETPOINTCONTROL_H

#include "MbedJSONValue.h"
#include <string>

using namespace std;

class SetpointControl
{
private:
    string          controlFile;        // name of the control file
    string          id;                 // control identifier
    string          name;               // friendly name
    int             priority;           // control priority
    string          input;              // control input
    string          output;             // control output
    double          productFactor;
    double          highAlert;
    double          lowAlert;
    double          highFailsafe;
    double          lowFailsafe;
    double          tol;

public:
    // constructor
    SetpointControl() {};
    ~SetpointControl() {
        printf("\r%s destructor invoked\n", __func__);
    }

    // Load a control from the control file
    bool load(string filename);

    string getControlFile(void) {
        return controlFile;
    }
    string getId(void) {
        return id;
    }
    string getName(void) {
        return name;
    }
    unsigned int getPriority(void) {
        return priority;
    }
    string getInput(void) {
        return input;
    }
    string getOutput(void) {
        return output;
    }
    float getProductFactor(void) {
        return productFactor;
    }
    float getHighAlert(void) {
        return highAlert;
    }
    float getLowAlert(void) {
        return lowAlert;
    }
    float getHighFailsafe(void) {
        return highFailsafe;
    }
    float getLowFailsafe(void) {
        return lowFailsafe;
    }
    float getTol(void) {
        return tol;
    }
};

#endif