ENgetcontrol: ENgetcontrol

View source: R/controls.r

ENgetcontrolR Documentation

ENgetcontrol

Description

Retrieve the parameters of a simple control statement.

Usage

ENgetcontrol(controlindex)

Arguments

controlindex

An integer specifying the control statement index.

Value

list of parameters of the control statement: ctype, lindex, setting, nindex, level

Note

Controls are indexed starting from 1 in the order in which they were entered into the [CONTROLS] section of the EPANET input file.

See Also

ENsetcontrol

Examples

# path to Net1.inp example file included with this package
inp <- file.path( find.package("epanet2toolkit"), "extdata","Net1.inp")  
ENopen( inp, "Net1.rpt")
ENgetcontrol(1)
ENclose() 

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