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

12
LINES

< > BotCompany Repo | #1021852 // dm_gazelle_statementsForRule

JavaX fragment (include)

1  
static Set<S> dm_gazelle_statementsForRule(S ruleID) {
2  
  L concepts = cloneList((L) dm_requireAndCall("#1021413/AppliedRules", 'feedbackForRule, ruleID));
3  
  new TreeSet<S> statements;
4  
  for (O c : concepts) pcall {
5  
    S judgement = getString judgement(c);
6  
    S struct = getString matchedRuleStruct(c);
7  
    RuleEngine2_MatchedRule mr = cast unstructureUnlessContainsAnonymousClasses(struct);
8  
    if (mr == null) continue;
9  
    statements.addAll(ai_gazelle_statementsFromAppliedRule(mr, judgement));
10  
  }
11  
  ret statements;
12  
}

Author comment

Began life as a copy of #1021432

download  show line numbers  debug dex  old transpilations   

Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, whxojlpjdney

No comments. add comment

Snippet ID: #1021852
Snippet name: dm_gazelle_statementsForRule
Eternal ID of this version: #1021852/2
Text MD5: 3133d369b94eb48eebf6a6533dbf2b22
Author: stefan
Category: javax / stefan's os / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-03-02 15:37:10
Source code size: 533 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 271 / 314
Version history: 1 change(s)
Referenced in: [show references]