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 } |
![]() | |
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) |
![]() | |
Element (std::string name_) | |
Static Public Member Functions | |
static void | applyPressureControls (Network *network) |
Additional Inherited Members | |
![]() | |
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.