svoid nlLogic_fillBattleSpace_withFailed2(NLLogicChecker_v2 c, final L<RuleWithParams> battleSpace, bool debug) { VF2<IfThen, NLLogicChecker_v2.Matching> onRuleFired = voidfunc(IfThen rule, NLLogicChecker_v2.Matching m) { battleSpace.add(new RuleWithParams(rule, m.matches)); }; VF4<IfThen, NLLogicChecker_v2.Matching, L<Exp>, Exp> onRuleFailed = voidfunc(IfThen rule, NLLogicChecker_v2.Matching m, L<Exp> satisfiedConditions, Exp remaining) { //print("satisfied conditions: " + satisfiedConditions); battleSpace.add(new FailedRule(rule, m.matches, cloneListOrNull(nullIfEmpty(satisfiedConditions)), remaining)); }; print("Iterating over " + n2(c.rules, "rule")); applyNLLogicFacts_v4_iterate_withFailed2_verbose.set(debug); applyNLLogicFacts_v4_iterate_withFailed2(c, onRuleFired, onRuleFailed, c.rules); }
Began life as a copy of #1018320
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: | #1018334 |
| Snippet name: | nlLogic_fillBattleSpace_withFailed2 - also collects failed rules & satisfied conditions |
| Eternal ID of this version: | #1018334/6 |
| Text MD5: | 94414af0c6adf57dc3fba7d92fa20b16 |
| 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-19 23:02:14 |
| Source code size: | 848 bytes / 13 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 587 / 614 |
| Version history: | 5 change(s) |
| Referenced in: | [show references] |