namespace Yw.Epanet
{
///
/// 错误代码
///
internal class ErrorCode
{
///
/// 无错误
///
public const int OK = 0;
///
/// 系统水力不平衡 - 在允许的试验次数内未能收敛到水力解
/// System hydraulically unbalanced - convergence to a hydraulic solution was not achieved in the allowed number of trials
///
public const int Warn1 = 1;
///
/// 系统可能水力不稳定 - 仅在所有连接状态固定后才实现水力收敛
/// System may be hydraulically unstable - hydraulic convergence was only achieved after the status of all links was held fixed
///
public const int Warn2 = 2;
///
/// 系统断开连接 - 一个或多个有正需求的节点与所有供水源断开连接
/// System disconnected - one or more nodes with positive demands were disconnected from all supply sources
///
public const int Warn3 = 3;
///
/// 水泵无法提供足够的流量或扬程 - 一个或多个水泵被迫关闭(由于扬程不足)或超过最大额定流量运行
/// Pumps cannot deliver enough flow or head - one or more pumps were forced to either shut down (due to insufficient head) or operate beyond the maximum rated flow
///
public const int Warn4 = 4;
///
/// 阀门无法提供足够的流量 - 一个或多个流量控制阀即使完全打开也无法提供所需流量
/// Valves cannot deliver enough flow - one or more flow control valves could not deliver the required flow even when fully open
///
public const int Warn5 = 5;
///
/// 系统存在负压 - 一个或多个有正需求的节点处出现负压
/// System has negative pressures - negative pressures occurred at one or more junctions with positive demand
///
public const int Warn6 = 6;
///
/// 可用内存不足
/// Insufficient memory available
///
public const int Err101 = 101;
///
/// 没有可用的网络数据
/// No network data available
///
public const int Err102 = 102;
///
/// 水力求解器未打开
/// Hydraulic solver not opened
///
public const int Err103 = 103;
///
/// 水质分析没有可用的水力数据
/// No hydraulics for water quality analysis
///
public const int Err104 = 104;
///
/// 水质求解器未打开
/// Water quality solver not opened
///
public const int Err105 = 105;
///
/// 没有保存可供报告的结果
/// No results saved to report on
///
public const int Err106 = 106;
///
/// 水力数据由外部文件提供
/// Hydraulics supplied from external file
///
public const int Err107 = 107;
///
/// 水力求解器打开时无法使用外部文件
/// Cannot use external file while hydraulics solver is open
///
public const int Err108 = 108;
///
/// 无法求解管网水力方程
/// Cannot solve network hydraulic equations
///
public const int Err110 = 110;
///
/// 无法求解水质输运方程
/// Cannot solve water quality transport equations
///
public const int Err120 = 120;
///
/// 输入文件存在一个或多个错误
/// One or more errors in an input file
///
public const int Err200 = 200;
///
/// 语法错误
/// Syntax error
///
public const int Err201 = 201;
///
/// 函数调用包含非法数值
/// Function call contains an illegal numeric value
///
public const int Err202 = 202;
///
/// 函数调用引用了未定义的节点
/// Function call refers to an undefined node
///
public const int Err203 = 203;
///
/// 函数调用引用了未定义的连接
/// Function call refers to an undefined link
///
public const int Err204 = 204;
///
/// 函数调用引用了未定义的时间模式
/// Function call refers to an undefined time pattern
///
public const int Err205 = 205;
///
/// 函数调用引用了未定义的曲线
/// Function call refers to an undefined curve
///
public const int Err206 = 206;
///
/// 函数调用尝试控制止回阀、管道或 GPV 阀
/// Function call attempts to control a check valve pipe or a GPV valve
///
public const int Err207 = 207;
///
/// 函数调用包含非法的 PDA 压力限制
/// Function call contains illegal PDA pressure limits
///
public const int Err208 = 208;
///
/// 函数调用包含非法的节点属性值
/// Function call contains an illegal node property value
///
public const int Err209 = 209;
///
/// 函数调用包含非法的连接属性值
/// Function call contains an illegal link property value
///
public const int Err211 = 211;
///
/// 函数调用引用了未定义的追踪节点
/// Function call refers to an undefined Trace Node
///
public const int Err212 = 212;
///
/// 函数调用包含无效的选项值
/// Function call contains an invalid option value
///
public const int Err213 = 213;
///
/// 输入文件中某一行的字符过多
/// Too many characters in a line of an input file
///
public const int Err214 = 214;
///
/// 函数调用包含重复的 ID 标签
/// Function call contains a duplicate ID label
///
public const int Err215 = 215;
///
/// 函数调用引用了未定义的水泵
/// Function call refers to an undefined pump
///
public const int Err216 = 216;
///
/// 无效的水泵能量数据
/// Invalid pump energy data
///
public const int Err217 = 217;
///
/// 阀门与水箱节点的连接不合法
/// Illegal valve connection to tank node
///
public const int Err219 = 219;
///
/// 阀门与另一个阀门的连接不合法
/// Illegal valve connection to another valve
///
public const int Err220 = 220;
///
/// 基于规则的控制中存在错误放置的子句
/// Mis-placed clause in rule-based control
///
public const int Err221 = 221;
///
/// 连接被分配了相同的起始和结束节点
/// Link assigned same start and end nodes
///
public const int Err222 = 222;
///
/// 网络中的节点数量不足
/// Not enough nodes in network
///
public const int Err223 = 223;
///
/// 网络中没有水箱或水库
/// No tanks or reservoirs in network
///
public const int Err224 = 224;
///
/// 水箱的上下水位限制无效
/// Invalid lower/upper levels for tank
///
public const int Err225 = 225;
///
/// 水泵没有水头曲线或功率额定值
/// No head curve or power rating for pump
///
public const int Err226 = 226;
///
/// 水泵的水头曲线无效
/// Invalid head curve for pump
///
public const int Err227 = 227;
///
/// 曲线的 x 值非递增
/// Nonincreasing x-values for curve
///
public const int Err230 = 230;
///
/// 网络中有未连接的节点
/// Network has unconnected node
///
public const int Err233 = 233;
///
/// 函数调用引用了不存在的水质源
/// Function call refers to nonexistent water quality source
///
public const int Err240 = 240;
///
/// 函数调用引用了不存在的控制
/// Function call refers to nonexistent control
///
public const int Err241 = 241;
///
/// 函数调用包含无效的格式(例如 ID 名称过长)
/// Function call contains invalid format(e.g.too long an ID name)
///
public const int Err250 = 250;
///
/// 函数调用包含无效的参数代码
/// Function call contains invalid parameter code
///
public const int Err251 = 251;
///
/// 函数调用引用了不存在的需求类别
/// Function call refers to nonexistent demand category
///
public const int Err253 = 253;
///
/// 函数调用引用了没有坐标的节点
/// Function call refers to node with no coordinates
///
public const int Err254 = 254;
///
/// 函数调用引用了不存在的规则
/// Function call refers to nonexistent rule
///
public const int Err257 = 257;
///
/// 函数调用引用了不存在的规则子句
/// Function call refers to nonexistent rule clause
///
public const int Err258 = 258;
///
/// 函数调用尝试删除仍有连接的节点
/// Function call attempts to delete a node that still has links connected to it
///
public const int Err259 = 259;
///
/// 函数调用尝试删除被指定为追踪节点的节点
/// Function call attempts to delete node assigned as a Trace Node
///
public const int Err260 = 260;
///
/// 函数调用尝试删除控制中包含的节点或连接
/// Function call attempts to delete a node or link contained in a control
///
public const int Err261 = 261;
///
/// 函数调用尝试在求解器打开时修改网络结构
/// Function call attempts to modify network structure while a solver is open
///
public const int Err262 = 262;
///
/// 不同类型的文件使用了相同的文件名
/// Identical file names used for different types of files
///
public const int Err301 = 301;
///
/// 无法打开输入文件
/// Cannot open input file
///
public const int Err302 = 302;
///
/// 无法打开报告文件
/// Cannot open report file
///
public const int Err303 = 303;
///
/// 无法打开输出文件
/// Cannot open output file
///
public const int Err304 = 304;
///
/// 无法打开水力文件
/// Cannot open hydraulics file
///
public const int Err305 = 305;
///
/// 水力文件与网络数据不匹配
/// Hydraulics file does not match network data
///
public const int Err306 = 306;
///
/// 无法读取水力文件
/// Cannot read hydraulics file
///
public const int Err307 = 307;
///
/// 无法将结果保存到二进制文件
/// Cannot save results to binary file
///
public const int Err308 = 308;
///
/// 无法将结果保存到报告文件
/// Cannot save results to report file
///
public const int Err309 = 309;
}
}