Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

18
LINES

< > BotCompany Repo | #1023239 // MultiSpaceReasoningBot

JavaX fragment (include) [tags: use-pretranspiled]

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: 282 / 736
Version history: 5 change(s)
Referenced in: #1034167 - Standard Classes + Interfaces (LIVE, continuation of #1003674)