ENsetpremise {epanet2toolkit}R Documentation

Sets the properties of a premise in a rule-based control.

Description

Sets the properties of a premise in a rule-based control.

Usage

ENsetpremise(
  ruleIndex,
  premiseIndex,
  logop,
  object,
  objIndex,
  variable,
  relop,
  status,
  value
)

Arguments

ruleIndex

the rule's index (starting from 1).

premiseIndex

the position of the premise in the rule's list of premises.

logop

the premise's logical operator ( IF = 1, AND = 2, OR = 3 ).

object

the type of object the premise refers to

objIndex

the index of the object (e.g. the index of a tank)

variable

the object's variable being compared

relop

the premise's comparison operator

status

the status that the object's status is compared to

value

the value that the object's variable is compared to.

Value

null


[Package epanet2toolkit version 1.0.4 Index]