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).

1  
sclass MultiSpaceReasoningBot > AttractorBot {
2  
  new MultiSpaceReasoning1 mr;
3  
4  
  <A extends IAttractor> *(MultiMap<S, A> rulesForSpace) {
5  
    this();
6  
    mr.addRules(rulesForSpace);
7  
  }
8  
  
9  
  *() {
10  
    addStandardAttractor(new DefaultAttractor {
11  
      run {
12  
        emitAll(extFilterByFlag answer(mr.reason_inputToAnswer(input)));
13  
      }
14  
    });
15  
  }
16  
  
17  
  MultiSpaceReasoningBot debug(bool debug) { mr.debug = debug; this; }
18  
}

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: 215 / 646
Version history: 5 change(s)
Referenced in: [show references]