aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--docs/docs/Standard/what-is-rule-package.md5
1 files changed, 3 insertions, 2 deletions
diff --git a/docs/docs/Standard/what-is-rule-package.md b/docs/docs/Standard/what-is-rule-package.md
index 84665c09..f5e4b0f2 100644
--- a/docs/docs/Standard/what-is-rule-package.md
+++ b/docs/docs/Standard/what-is-rule-package.md
@@ -13,7 +13,8 @@ from HydroRolicore import RuLe
class MyRule(Rule):
"""我的自定义规则包
- appniasal函数是必须实现的方法之一
+
+ check 函数是必须实现的方法之一
name属性是必须实现的属性之一,用来定义这个规则包的名字
priority是可选实现的属性之一,默认0
"""
@@ -21,7 +22,7 @@ class MyRule(Rule):
name = "我的自定义规则包"
priority = 0 # 优先级
- def ability(self):
+ def check(self):
"""检定方法
self.result 是需要检定时计算的结果,可以直接使用