|
EPANET
3.0
EPANET Development Project
|
A Pattern where factors change at fixed time intervals. More...
#include <pattern.h>
Public Member Functions | |
| FixedPattern (std::string name_) | |
| void | init (int interval, int tstart) |
| int | nextTime (int t) |
| void | advance (int t) |
Public Member Functions inherited from Pattern | |
| Pattern (std::string name_, int type_) | |
| void | setTimeInterval (int t) |
| void | addFactor (double f) |
| int | timeInterval () |
| int | size () |
| double | factor (int i) |
| double | currentFactor () |
Public Member Functions inherited from Element | |
| Element (std::string name_) | |
Additional Inherited Members | |
Public Types inherited from Pattern | |
| enum | PatternType { FIXED_PATTERN, VARIABLE_PATTERN } |
Public Types inherited from Element | |
| enum | ElementType { NODE, LINK, PATTERN, CURVE, CONTROL } |
Static Public Member Functions inherited from Pattern | |
| static Pattern * | factory (int type_, std::string name_, MemPool *memPool) |
Public Attributes inherited from Pattern | |
| int | type |
| type of time pattern | |
Public Attributes inherited from Element | |
| std::string | name |
| element's ID name | |
| int | index |
| index in array of elements | |
Protected Attributes inherited from Pattern | |
| std::vector< double > | factors |
| sequence of multiplier factors | |
| int | currentIndex |
| index of current pattern interval | |
| int | interval |
| fixed time interval (sec) | |
A Pattern where factors change at fixed time intervals.
1.8.11