Libraryless. Click here for Pure Java version (11659L/81K).
sclass MultiSpaceReasoningBot > AttractorBot { new MultiSpaceReasoning1 mr; <A extends IAttractor> *(MultiMap<S, A> rulesForSpace) { this(); mr.addRules(rulesForSpace); } *() { addStandardAttractor(new DefaultAttractor { run { emitAll(extFilterByFlag answer(mr.reason_inputToAnswer(input))); } }); } MultiSpaceReasoningBot debug(bool debug) { mr.debug = debug; this; } }
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1023239 |
Snippet name: | MultiSpaceReasoningBot |
Eternal ID of this version: | #1023239/6 |
Text MD5: | a972b3f5a982e1d13e59db5fc3f83545 |
Transpilation MD5: | 6f3034146625dd4c169e860586f3ecba |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-05-19 09:58:07 |
Source code size: | 442 bytes / 18 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 280 / 734 |
Version history: | 5 change(s) |
Referenced in: | [show references] |