EPANET-RTX  1.1
real-time extension for the EPANET toolkit
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Friends | List of all members
RTX::Point Class Reference

A Point Class to store data tuples (date, value, quality, confidence) More...

#include <Point.h>

Public Types

enum  Qual_t {
  good = 1 << 0, questionable = 1 << 1, bad = 1 << 2, missing = 1 << 3,
  constant = 1 << 4, interpolated = 1 << 5, lastKnown = 1 << 6, averaged = 1 << 7,
  forecasted = 1 << 8, estimated = 1 << 9
}
 

Public Member Functions

 Point ()
 quality flag More...
 
 Point (time_t time, double value=0., Qual_t qual=good, double confidence=0.)
 Full Constructor, for explicitly setting all internal data within the point object.
 
Point operator+ (const Point &point) const
 
Pointoperator+= (const Point &point)
 
Point operator* (const double factor) const
 
Pointoperator*= (const double factor)
 
Point operator/ (const double factor) const
 
const bool hasQual (Qual_t qual) const
 
void addQualFlag (Qual_t qual)
 
Point inverse ()
 

Static Public Member Functions

static Point convertPoint (const Point &point, const Units &fromUnits, const Units &toUnits)
 
static bool comparePointTime (const Point &left, const Point &right)
 
static Point linearInterpolate (const Point &p1, const Point &p2, const time_t &t)
 

Public Attributes

time_t time
 
double value
 
Qual_t quality
 
double confidence
 
bool isValid
 

Friends

std::ostream & operator<< (std::ostream &outputStream, const Point &p)
 

Detailed Description

A Point Class to store data tuples (date, value, quality, confidence)

The point class keeps track of a piece of measurement data; time, value, and quality.

Constructor & Destructor Documentation

Point::Point ( )

quality flag

Empty Constructor, equivalent to Point(0,0,Point::missing,0)


The documentation for this class was generated from the following files: