svoid nlLogic_fillBattleSpace_withFailed(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)); }; VF3<IfThen, NLLogicChecker_v2.Matching, Exp> onRuleFailed = voidfunc(IfThen rule, NLLogicChecker_v2.Matching m, Exp remaining) { battleSpace.add(new FailedRule(rule, m.matches, remaining)); }; if (c.useIterate) { print("Iterating over " + n2(c.rules, "rule")); applyNLLogicFacts_v4_iterate_withFailed_verbose.set(debug); applyNLLogicFacts_v4_iterate_withFailed(c, onRuleFired, onRuleFailed, c.rules); } else { applyNLLogicFacts_v4_verbose.set(debug); applyNLLogicFacts_v4(c, onRuleFired, c.rules); } }
Began life as a copy of #1018153
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: | #1018320 |
Snippet name: | nlLogic_fillBattleSpace_withFailed - also collects failed rules |
Eternal ID of this version: | #1018320/1 |
Text MD5: | 3623060956a19209a8c1fbdc1dafb85c |
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 17:52:27 |
Source code size: | 840 bytes / 17 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 304 / 337 |
Referenced in: | [show references] |