ENaddcontrol: Add a new simple control

View source: R/controls.r

ENaddcontrolR 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.


epanet2toolkit documentation built on Nov. 6, 2023, 9:06 a.m.