Disaggregate
Disaggregate Smart Meter data

PowerStateSequence Class Reference

#include <PowerStateSequence.h>

Inheritance diagram for PowerStateSequence:
Collaboration diagram for PowerStateSequence:

List of all members.

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

Detailed Description

Definition at line 26 of file PowerStateSequence.h.


Member Function Documentation

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).

Parameters:
detailsBase filename. Excluding path and suffix.

Definition at line 64 of file PowerStateSequence.cpp.

References DATA_OUTPUT_PATH, Utils::openFile(), and Utils::todaysDateAndTime().

Here is the call graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

void PowerStateSequence::setDeviceName ( const std::string &  _deviceName)
Parameters:
_deviceNamee.g. "Washer" or "Washer sigID1"

Definition at line 17 of file PowerStateSequence.cpp.

Referenced by Signature::Signature().

Here is the caller graph for this function:


Member Data Documentation

std::string PowerStateSequence::deviceName [private]

Definition at line 33 of file PowerStateSequence.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Friends