Disaggregate
Disaggregate Smart Meter data
|
#include <PowerStateSequence.h>
Public Member Functions | |
void | dumpToFile (const std::string details="") const |
Dump the contents of powerStateSequence to a data file ready for gnuplot to plot using the 'boxxyerrorbars' style (see p42 of the gnuplot 4.4 documentation PDF). | |
void | setDeviceName (const std::string &_deviceName) |
void | plotGraph () const |
const std::string | getBaseFilename () const |
Private Attributes | |
std::string | deviceName |
Definition at line 26 of file PowerStateSequence.h.
void PowerStateSequence::dumpToFile | ( | const std::string | details = "" | ) | const |
Dump the contents of powerStateSequence to a data file ready for gnuplot to plot using the 'boxxyerrorbars'
style (see p42 of the gnuplot 4.4 documentation PDF).
details | Base filename. Excluding path and suffix. |
Definition at line 64 of file PowerStateSequence.cpp.
References DATA_OUTPUT_PATH, Utils::openFile(), and Utils::todaysDateAndTime().
const string PowerStateSequence::getBaseFilename | ( | ) | const |
Definition at line 53 of file PowerStateSequence.cpp.
void PowerStateSequence::plotGraph | ( | ) | const |
Definition at line 24 of file PowerStateSequence.cpp.
References GNUplot::PlotVars::data, GNUplot::PlotVars::inFilename, GNUplot::PlotVars::outFilename, GNUplot::plot(), GNUplot::PlotVars::plotArgs, GNUplot::PlotVars::title, GNUplot::PlotVars::xlabel, and GNUplot::PlotVars::ylabel.
Referenced by Signature::updatePowerStateSequence().
void PowerStateSequence::setDeviceName | ( | const std::string & | _deviceName | ) |
_deviceName | e.g. "Washer" or "Washer sigID1" |
Definition at line 17 of file PowerStateSequence.cpp.
Referenced by Signature::Signature().
std::string PowerStateSequence::deviceName [private] |
Definition at line 33 of file PowerStateSequence.h.