1 | sclass ExecutedRule {
|
2 | RuleWithParams rule; // may be a FailedRule |
3 | LS output; |
4 | LS facts; |
5 | LS newInput; |
6 | transient NLLogicChecker_v2 logicChecker; // logic checker used |
7 | |
8 | int _failureLevel; // or 0 |
9 | |
10 | *() {}
|
11 | *(RuleWithParams *rule, Collection<S> output, Collection<S> facts, Collection<S> newInput) {
|
12 | this.output = asList_nullIfEmpty(output); |
13 | this.facts = asList_nullIfEmpty(facts); |
14 | this.newInput = asList_nullIfEmpty(newInput); |
15 | } |
16 | |
17 | int failureLevel() {
|
18 | if (_failureLevel != 0) ret _failureLevel; |
19 | if (rule instanceof FailedRule) |
20 | _failureLevel = nlLogic_failureLevel_calc(this); |
21 | ret _failureLevel; |
22 | } |
23 | |
24 | S ruleID() { ret rule.ruleID(); }
|
25 | |
26 | bool isFailed() { ret rule instanceof FailedRule; }
|
27 | } |
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1018271 |
| Snippet name: | ExecutedRule |
| Eternal ID of this version: | #1018271/17 |
| Text MD5: | 17d78d62195bfee754874eb9e37ab24d |
| Author: | stefan |
| Category: | javax / a.i. |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-09-23 18:54:31 |
| Source code size: | 771 bytes / 27 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 767 / 1292 |
| Version history: | 16 change(s) |
| Referenced in: | [show references] |