
ControllerBox directs electromechanical equipment in restaurants to display information.
Dependencies: TextLCD MbedJSONValue libMotiv picojson mbed-rtos mbed
Fork of Mbed_MotiVControllerBox by
Diff: libMotiv/Table.h
- Revision:
- 3:21c8adb97c8f
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/libMotiv/Table.h Thu Dec 04 22:26:30 2014 +0000 @@ -0,0 +1,38 @@ +#ifndef MOTIV_TABLE_H +#define MOTIV_TABLE_H + +#include "Device.h" +#include "Flower.h" +#include <stdlib.h> +#include <vector> + +using namespace std; + +class Table { + public: + Table(); + Table(int id); + ~Table(); + + + Table& operator=(const Table& tbl); + + int getId(); + + vector<MCommand> update(int dinnerStatus,int foodStatus,int drinkStatus,int serviceStatus); + int getNextCommand(); + + + private: + int id, status, fStatus, dStatus, sStatus; + int statusPrev, fStatusPrev, dStatusPrev, sStatusPrev; + + Flower mFlower; + + //"table":{"id":7,"code":"vrij","food":0,"service":0,"drink":0,"dinner_status":0} + + vector<MCommand> prepareCommands(); + + }; + +#endif \ No newline at end of file