Package unbbayes.io.log

Examples of unbbayes.io.log.ISSBNLogManager.printText()


    //Consider that the only ordinary variables filled are the alread know OV
    List<OVInstance> ovInstances = mFragInstance.getOVInstanceList();
   
    ISSBNLogManager logManager = ssbn.getLogManager();
    if (logManager != null) {
      logManager.printText(level4, false, "1) Loop for evaluate context nodes.");
    }
    for(ContextNode contextNode: mFragInstance.getContextNodeList()){
     
      if (logManager != null) {
        logManager.printText(level4, false, "Context Node: " + contextNode);
View Full Code Here


      logManager.printText(level4, false, "1) Loop for evaluate context nodes.");
    }
    for(ContextNode contextNode: mFragInstance.getContextNodeList()){
     
      if (logManager != null) {
        logManager.printText(level4, false, "Context Node: " + contextNode);
      }
     
      //---> 1) Verify if the context node is soluted only with the know arguments.
      List<OrdinaryVariable> ovInstancesFault = contextNode.getOVFaultForOVInstanceSet(ovInstances);
     
View Full Code Here

     
      level5 = new IdentationLevel(level4);
      if(ovInstancesFault.size() == 0){
       
        if (logManager != null) {
          logManager.printText(level5, false, "All ov's of the context node are setted");
        }
        boolean result = kb.evaluateContextNodeFormula(contextNode, ovInstances);
        if(result){
          mFragInstance.setStateEvaluationOfContextNode(contextNode,
              ContextNodeEvaluationState.EVALUATION_OK);
View Full Code Here

        boolean result = kb.evaluateContextNodeFormula(contextNode, ovInstances);
        if(result){
          mFragInstance.setStateEvaluationOfContextNode(contextNode,
              ContextNodeEvaluationState.EVALUATION_OK);
          if (logManager != null) {
            logManager.printText(level5, false, "Node evaluated OK");
          }
          continue;
        }else{
          mFragInstance.setStateEvaluationOfContextNode(contextNode,
              ContextNodeEvaluationState.EVALUATION_FAIL);
View Full Code Here

        }else{
          mFragInstance.setStateEvaluationOfContextNode(contextNode,
              ContextNodeEvaluationState.EVALUATION_FAIL);
          mFragInstance.setUseDefaultDistribution(true);
          if (logManager != null) {
            logManager.printText(level5, false, "Node evaluated FALSE");
          }
          continue; //The MFragInstance continue to be evaluated only
                    //to show to the user a network more complete.
        }
      }else{
View Full Code Here

                    //to show to the user a network more complete.
        }
      }else{
     
        if (logManager != null) {
          logManager.printText(level5, false, "Some ov's of the context node aren't filled");
          logManager.printText(level5, false, "Try 1: Use the search strategy");
        }
       
       
        //---> 2) Use the Entity Tree Strategy.
View Full Code Here

        }
      }else{
     
        if (logManager != null) {
          logManager.printText(level5, false, "Some ov's of the context node aren't filled");
          logManager.printText(level5, false, "Try 1: Use the search strategy");
        }
       
       
        //---> 2) Use the Entity Tree Strategy.
        SearchResult searchResult = kb.evaluateSearchContextNodeFormula(contextNode, ovInstances);
View Full Code Here

        SearchResult searchResult = kb.evaluateSearchContextNodeFormula(contextNode, ovInstances);

        if(searchResult!= null){ 

          if (logManager != null) {
            logManager.printText(level5, false, "Search Result: ");
            for(String[] result: searchResult.getValuesResultList()){
              String resultOv = " > ";
              for(int i = 0; i < result.length; i++){
                resultOv += result[i] + " ";
              }
View Full Code Here

            for(String[] result: searchResult.getValuesResultList()){
              String resultOv = " > ";
              for(int i = 0; i < result.length; i++){
                resultOv += result[i] + " ";
              }
              logManager.printText(level5, false, resultOv);
            }
          }
         
          //Result valid results: Add the result to the tree of result.
          try {
View Full Code Here

                searchResult.getValuesResultList());

            mFragInstance.setStateEvaluationOfContextNode(contextNode, ContextNodeEvaluationState.EVALUATION_OK);
           
            if (logManager != null) {
              logManager.printText(level5, false, "Node evaluated OK");
            }
           
          } catch (MFragContextFailException e) {
           
            e.printStackTrace();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.