Examples of printText()


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

            e.printStackTrace();
           
            mFragInstance.setStateEvaluationOfContextNode(contextNode, ContextNodeEvaluationState.EVALUATION_FAIL);
            mFragInstance.setUseDefaultDistribution(true);
            if (logManager != null) {
              logManager.printText(level5, false,"Context Node FAIL: use the default distribution");
            }
           
            //Here, the context node fail adding the values for a ordinary variable
            //fault. This fail impossibilite the evaluation of the rest of the MFragInstance,
            //because, this node, used to recover the possible values, fail.
View Full Code Here

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

//            }
//          }

          //---> 4) Use the uncertainty Strategy.
          if (logManager != null) {
            logManager.printText(level5, false,
              "Try 2: Use the uncertain reference strategy");
          }
         
          //Utilized only in the specific case z = RandomVariable(x),
          //where z is the unknow variable. (Should have only one unknow variable)
View Full Code Here

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

              }
            }
            catch(ImplementationRestrictionException e){
              mFragInstance.setUseDefaultDistribution(true);
              if (logManager != null) {
                logManager.printText(level5, false, "Fail: " + e.getMessage());
              }
            }
          }
         
          //--> 5) Nothing more to try... context fail
View Full Code Here

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

            }
          }
         
          //--> 5) Nothing more to try... context fail
          if (logManager != null) {
            logManager.printText(level4, false,"Still ov fault... nothing more to do. " +
              "Use default distribution");
          }
          mFragInstance.setStateEvaluationOfContextNode(contextNode,
              ContextNodeEvaluationState.EVALUATION_FAIL);
          mFragInstance.setUseDefaultDistribution(true);
View Full Code Here

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

     
    }
   
   
    if (logManager != null) {
      logManager.printText(level4, false,"2) Loop for evaluate the IsA nodes");
    }
   
    //Return a list of ordinary variables of the MFrag that don't are evaluated yet.
    List<OrdinaryVariable> ovDontFoundYetList = new ArrayList<OrdinaryVariable>();
    for(OrdinaryVariable ov: mFragInstance.getMFragOrigin().getOrdinaryVariableList()){
View Full Code Here

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

    for(OrdinaryVariable ov: ovDontFoundYetList){
      //no context node about this ov... the value is unknown, we should
      //consider all the possible values. Note the use of the Closed Word
      //Asspetion.
      if (logManager != null) {
        logManager.printText(level4, false,"Evaluate IsA for OV " + ov.getName());
      }
     
      List<String> possibleValues = kb.getEntityByType(ov.getValueType().getName());
     
      if (logManager != null) {
View Full Code Here

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

     
      List<String> possibleValues = kb.getEntityByType(ov.getValueType().getName());
     
      if (logManager != null) {
        for(String possibleValue: possibleValues){
          logManager.printText(level4, false, "  > " + possibleValue);
        }
      }
     
      String possibleValuesArray[] = possibleValues.toArray(new String[possibleValues.size()]);
      List<String[]> entityValuesArray = new ArrayList<String[]>();
View Full Code Here

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

        logManager.skipLine();
      }
     
      // Generating the SSBN network.
      if (logManager != null) {
        logManager.printText(level1, false, "Generating the SSBN network");
      }
      pn =  new ProbabilisticNetwork(this.getHybridResource().getString("DefaultNetworkName"));
//      if(listForQuery!=null){
//        List<SSBNNode> listSSBNNode = this.getSimpleSSBNNodeTranslator().translateSimpleSSBNNodeListToSSBNNodeList(listForQuery, pn);
//          ssbn.setSsbnNodeList(listSSBNNode);
View Full Code Here

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

      e.printStackTrace();
      throw new RuntimeException(e.getMessage());
    }
   
    if (logManager != null) {
      logManager.printText(level2, false, "Simple Nodes translated to SSBNNodes");
    }
   
    // clearing simple ssbn nodes
    if (isClearSimpleSSBNNodeListAfterLPD()) {
      ssbn.getSimpleSsbnNodeList().clear();
View Full Code Here

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

      CPTForSSBNNodeGenerator build = this.getCptForSSBNNodeGeneratorBuilder().buildCPTForSSBNNodeGenerator(logManager);
     
      if(ssbn.getSsbnNodeList().size() > 0){
        if (logManager != null) {
        logManager.printText(level2, false, "Generate CPT for the SSBNNodes");
        }
        build.generateCPTForAllSSBNNodes(ssbn);
      }else{
        throw new SSBNNodeGeneralException(getHybridResource().getString("NotNodeInSSBN"));
      }
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.