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