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

24
LINES

< > BotCompany Repo | #1008910 // CtxContext - context for evaluating ctx conditions

JavaX fragment (include)

sclass CtxContext {
  // general for bot
  SS regexpMacros, globals;

  // per session
  S activeRule, activeAnalyzer;
  SS vars = new HashMap;
  
  S input;
  new StringBuilder newOutput;
  
  int conversationLength;
  bool jumpaway, thinkagain;
  S nextRule;
  int safetyCounter; // number of rules applied in step
  new L<S> rulesFired;
  new L<S> urlsToOpen;
  new L<S> matches; // MATCH1...
  
  void setActiveRule(S rule) {
    activeRule = rule;
    print("New active rule: " + rule);
  }
}

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1008910
Snippet name: CtxContext - context for evaluating ctx conditions
Eternal ID of this version: #1008910/23
Text MD5: 0eeb80c7ff1e3b11e96e9e0e6dc50a19
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-07-04 18:10:46
Source code size: 520 bytes / 24 lines
Pitched / IR pitched: No / No
Views / Downloads: 620 / 1501
Version history: 22 change(s)
Referenced in: #1034167 - Standard Classes + Interfaces (LIVE, continuation of #1003674)