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

11
LINES

< > BotCompany Repo | #1022400 - dm_gazelle_matchStep_additionalInput

JavaX fragment (include)

svoid dm_gazelle_matchStep_additionalInput(GazelleTree t, SS inputsByType, O... _) {
  if (t.rule() == null) ret;
  bool debug = boolPar debug(_);
  TextAndType next = get(t.rule().insWithType, t.mr.iCond);
  if (next == null || !startsWith(next.type, "history-")) ret;
  if (ai_ruleEngine2_matchStep(t.mr, inputsByType, true, _)) {
    if (debug) print("Input match OK. new map: " + t.mr.map + ". Updating prediction.");
    gazelle_addPredictionToTreeNode(t);
  } else
    if (debug) print("Input match failed");
}

Author comment

Began life as a copy of #1022069

download  show line numbers  debug dex   

Travelled to 5 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pzhvpgtvlbxg, tvejysmllsmz

No comments. add comment

Snippet ID: #1022400
Snippet name: dm_gazelle_matchStep_additionalInput
Eternal ID of this version: #1022400/7
Text MD5: c74bc245bc9b1ca21f3c694264b3a4e7
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-03-16 21:28:32
Source code size: 526 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 79 / 93
Version history: 6 change(s)
Referenced in: [show references]

Formerly at http://tinybrain.de/1022400 & http://1022400.tinybrain.de