fr.inria.corese.kgram.core.Query.addInfo()方法的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(2.3k)|赞(0)|评价(0)|浏览(131)

本文整理了Java中fr.inria.corese.kgram.core.Query.addInfo方法的一些代码示例,展示了Query.addInfo的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Query.addInfo方法的具体详情如下:
包路径:fr.inria.corese.kgram.core.Query
类名称:Query
方法名:addInfo

Query.addInfo介绍

暂无

代码示例

代码示例来源:origin: fr.inria.corese/corese-core

void info(String str, Object obj){
  query.addInfo(str, obj);
}

代码示例来源:origin: Wimmics/corese

void info(String str, Object obj){
  query.addInfo(str, obj);
}

代码示例来源:origin: fr.inria.corese/kgram

void report(Edge edge, boolean exist, boolean match){
  query.addInfo(edge.toString(), " exist: " + exist + " match: " + match);
  logger.info("Edge: " + edge + ": " + exist + " " + match);
}

代码示例来源:origin: fr.inria.corese/kgram

void report(Edge edge, boolean exist, boolean match, boolean define){
  query.addInfo(edge.toString(),  
      " defined:" + define + " exist: " + exist + " match: " + match );
  logger.info("Edge: " + edge + ": " + exist + " " + match + " " + define);
}

代码示例来源:origin: fr.inria.corese/kgram

void check(Query q, Exp exp, List<Node> list) {
  if (!(exp.isEdge() || exp.isPath())) {
    return;
  }
  boolean connect = false;
  for (int i = 0; i < exp.nbNode(); i++) {
    Node n = exp.getNode(i);
    if (list.contains(n)) {
      connect = true;
      break;
    }
  }
  if (!connect) {
    q.addInfo("Disconnected: ", exp);
    System.out.println("Disconnect: " + exp);
  }
}

代码示例来源:origin: fr.inria.corese/kgram

void log(Expr ee, String mes){
  
  if (isPattern(ee) && ee.oper() == AND){
    query.addInfo(mes + ": " , ee.getExp(0) + " && " + ee.getExp(1));
    
    log(mes + " " + ee.getExp(0) + " && " + ee.getExp(1));
    if (mes.equals(AFALSE)){
      query.addFailure(ee.getExp(0).getFilter());
      query.addFailure(ee.getExp(1).getFilter());
    }                
  }
  else {
    query.addInfo(mes + ": ", ee);
    
    log(mes + " " + ee);
    if (mes.equals(AFALSE)){
      query.addFailure(ee.getFilter());
    }
  }
}

代码示例来源:origin: fr.inria.corese/compiler

query.addInfo("AST:\n", ast);
query.addInfo(help(), null);

代码示例来源:origin: fr.inria.corese/kgram

addInfo("Expensive pattern: \n", exp.get(i) + "\n" + exp.get(i + 1));
addInfo("Alternative: \n", union);

代码示例来源:origin: Wimmics/corese

query.addInfo("AST:\n", ast);
query.addInfo(help(), null);

代码示例来源:origin: fr.inria.corese/corese-core

query.addInfo(help(), null);

代码示例来源:origin: Wimmics/corese

query.addInfo(help(), null);

相关文章