![]() |
EPANET-RTX
1.1
real-time extension for the EPANET toolkit
|
A Time Series class that allows a single upstream TimeSeries. More...
#include <ModularTimeSeries.h>
Public Types | |
|
typedef boost::shared_ptr < ModularTimeSeries > | sharedPointer |
Public Types inherited from RTX::TimeSeries | |
|
typedef boost::shared_ptr < TimeSeries > | sharedPointer |
Public Member Functions | |
| virtual TimeSeries::sharedPointer | source () |
| Get the source of this time series. More... | |
| virtual void | setSource (TimeSeries::sharedPointer source) |
| Set the upstream TimeSeries object. More... | |
| virtual bool | doesHaveSource () |
| Does this Modular time series have an upstream source? More... | |
| virtual TimeSeries::sharedPointer | rootTimeSeries () |
| virtual Point | point (time_t time) |
| option to add lots of (un)ordered points all at once. More... | |
| virtual Point | pointBefore (time_t time) |
| virtual Point | pointAfter (time_t time) |
| virtual std::vector< Point > | points (time_t start, time_t end) |
| Get a vector of Points within a specific time range. More... | |
| virtual void | setUnits (Units newUnits) |
| virtual void | resetCache () |
| virtual std::ostream & | toStream (std::ostream &stream) |
| virtual bool | canAlterDimension () |
| virtual bool | canAlterClock () |
Public Member Functions inherited from RTX::TimeSeries | |
| virtual void | insert (Point aPoint) |
| virtual void | insertPoints (std::vector< Point >) |
| virtual Point | pointAtOrBefore (time_t time) |
| virtual Point | interpolatedPoint (time_t time) |
| virtual std::pair< Point, Point > | adjacentPoints (time_t time) |
| virtual time_t | period () |
| virtual std::string | name () |
| 1/frequency (# seconds between data points) | |
| PointRecord::sharedPointer | record () |
| TimeSeries::Statistics | summary (time_t start, time_t end) |
| TimeSeries::Statistics | gapsSummary (time_t start, time_t end) |
| std::vector< Point > | gaps (time_t start, time_t end) |
| virtual void | setName (const std::string &name) |
| void | setRecord (PointRecord::sharedPointer record) |
| virtual void | setClock (Clock::sharedPointer clock) |
| Clock::sharedPointer | clock () |
| Units | units () |
| void | setFirstTime (time_t time) |
| void | setLastTime (time_t time) |
| time_t | firstTime () |
| time_t | lastTime () |
Protected Member Functions | |
| virtual std::vector< Point > | filteredPoints (TimeSeries::sharedPointer sourceTs, time_t fromTime, time_t toTime) |
| virtual bool | isCompatibleWith (TimeSeries::sharedPointer withTimeSeries) |
A Time Series class that allows a single upstream TimeSeries.
This class generalizes some basic functionality for the "modular" design. This implementation serves as a "pass-through", performing no analysis or modification of the data, but caching requested Points in this object's PointRecord.
|
virtual |
Does this Modular time series have an upstream source?
Reimplemented in RTX::AggregatorTimeSeries.
|
virtual |
option to add lots of (un)ordered points all at once.
Get a Point at a specific time.
| time | The requested time. |
Reimplemented from RTX::TimeSeries.
Reimplemented in RTX::AggregatorTimeSeries, RTX::CurveFunction, RTX::RunTimeStatusModularTimeSeries, RTX::Resampler, RTX::TimeOffsetTimeSeries, and RTX::SinglePointFilterModularTimeSeries.
|
virtual |
Get a vector of Points within a specific time range.
| start | The beginning of the requested time range. |
| end | The end of the requested time range. |
The base class provides some brute-force logic to retrieve points, by calling Point() repeatedly. For more efficient access, you may wish to override this method.
Reimplemented from RTX::TimeSeries.
|
virtual |
Set the upstream TimeSeries object.
| source | A shared pointer to the intended upstream TimeSeries object. |
Reimplemented in RTX::StatsTimeSeries, RTX::AggregatorTimeSeries, RTX::ThresholdTimeSeries, RTX::FailoverTimeSeries, RTX::CurveFunction, RTX::CorrelatorTimeSeries, RTX::TimeGapTimeSeries, RTX::MultiplierTimeSeries, RTX::FirstDerivative, and RTX::InversionTimeSeries.
|
virtual |
Get the source of this time series.
Reimplemented in RTX::AggregatorTimeSeries.