wntr.network.controls#

The wntr.network.controls module includes methods to define network controls and control actions. These controls modify parameters in the network during simulation.

Classes

AndCondition

Combine two WNTR Conditions with an AND

BaseControlAction

A base class for deriving new control actions.

Comparison

An enum class for comparison operators.

Control

A class for controls.

ControlAction

A general class for specifying a control action that simply modifies the attribute of an object (target).

ControlBase

This is the base class for all control objects.

ControlChangeTracker

ControlChecker

ControlCondition

A base class for control conditions

ControlPriority

An enum class for control priorities.

FunctionCondition

A ControlCondition which calls a function to determine if the control needs activated or not.

Observer

A base class for observers in the observer design pattern.

OrCondition

Combine two WNTR Conditions with an OR.

RelativeCondition

Compare attributes of two different objects (e.g., levels from tanks 1 and 2) This type of condition does not work with the EpanetSimulator, only the WNTRSimulator.

Rule

A very general and flexible class for defining both controls rules.

SimTimeCondition

Condition based on time since start of the simulation.

Subject

A subject base class for the observer design pattern

TankLevelCondition

A special type of ValueCondition for tank levels/heads/pressures.

TimeOfDayCondition

Time-of-day or "clocktime" based condition statement.

ValueCondition

Compare a network element attribute to a set value.