ENaddcontrol {epanet2toolkit}R Documentation

Add a new simple control

Description

Add a new simple control

Usage

ENaddcontrol(type, linkIndex, setting, nodeIndex, level)

Arguments

type

the type of control to add (see details)

linkIndex

the index of a link to control (starting from 1)

setting

control setting applied to the link

nodeIndex

index of the node used to control the link (0 for EN_TIMER and EN_TIMEOFDAY controls).

level

action level (tank level, junction pressure, or time in seconds) that triggers the control.

Value

index index of the new control.


[Package epanet2toolkit version 1.0.4 Index]