sclass ExecutedRule { RuleWithParams rule; // may be a FailedRule LS output; LS facts; LS newInput; transient NLLogicChecker_v2 logicChecker; // logic checker used int _failureLevel; // or 0 *() {} *(RuleWithParams *rule, Collection<S> output, Collection<S> facts, Collection<S> newInput) { this.output = asList_nullIfEmpty(output); this.facts = asList_nullIfEmpty(facts); this.newInput = asList_nullIfEmpty(newInput); } int failureLevel() { if (_failureLevel != 0) ret _failureLevel; if (rule instanceof FailedRule) _failureLevel = nlLogic_failureLevel_calc(this); ret _failureLevel; } S ruleID() { ret rule.ruleID(); } bool isFailed() { ret rule instanceof FailedRule; } }
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: | 478 / 1030 |
Version history: | 16 change(s) |
Referenced in: | #1034167 - Standard Classes + Interfaces (LIVE, continuation of #1003674) |