|
EPANET
3.0
EPANET Development Project
|
A class that controls pumps and valves based on a single condition. More...
#include <control.h>
Public Types | |
| enum | ControlType { TANK_LEVEL, PRESSURE_LEVEL, ELAPSED_TIME, TIME_OF_DAY, RULE_BASED } |
| enum | StatusType { CLOSED_STATUS, OPEN_STATUS, NO_STATUS } |
| enum | LevelType { LOW_LEVEL, HI_LEVEL, NO_LEVEL } |
Public Types inherited from Element | |
| enum | ElementType { NODE, LINK, PATTERN, CURVE, CONTROL } |
Public Member Functions | |
| Control (int type_, std::string name_) | |
| void | setProperties (int controlType, Link *controlLink, int linkStatus, double linkSetting, Node *controlNode, double nodeSetting, int controlLevelType, int timeSetting) |
| std::string | toStr (Network *network) |
| void | convertUnits (Network *network) |
| int | getType () |
| int | timeToActivate (Network *network, int t, int tod) |
| void | apply (Network *network, int t, int tod) |
Public Member Functions inherited from Element | |
| Element (std::string name_) | |
Static Public Member Functions | |
| static void | applyPressureControls (Network *network) |
Additional Inherited Members | |
Public Attributes inherited from Element | |
| std::string | name |
| element's ID name | |
| int | index |
| index in array of elements | |
A class that controls pumps and valves based on a single condition.
1.8.11