Package unbbayes.prs.mebn.ssbn

Examples of unbbayes.prs.mebn.ssbn.LiteralEntityInstance


    //2) FIND THE PREVIOUS ELEMENT.
    ObjectEntity objectEntityOrdereable = residentNode.getMFrag().
                        getMultiEntityBayesianNetwork().getObjectEntityContainer().
                        getObjectEntityByType(ovOrdereable.getValueType());
 
    LiteralEntityInstance ovOrdereableActualValue = node.getEntityForOv(ovOrdereable);
    OVInstance ovInstanceOrdereable = OVInstance.getInstance(ovOrdereable, ovOrdereableActualValue);
   
    if(ovInstanceOrdereable == null){
      throw new SSBNNodeGeneralException();
    }
   
    String nameEntity = ovInstanceOrdereable.getEntity().getInstanceName();
   
    ObjectEntityInstanceOrdereable objectEntityInstanceOrdereable =
      (ObjectEntityInstanceOrdereable)objectEntityOrdereable.getInstanceByName(nameEntity);
   
    if(objectEntityInstanceOrdereable == null){
      throw new SSBNNodeGeneralException();
    }
   
    ObjectEntityInstanceOrdereable prev = objectEntityInstanceOrdereable.getPrev();

    if(prev != null){

      level5 = new IdentationLevel(level4);
      if (ssbn.getLogManager() != null) {
        ssbn.getLogManager().printText(level5, false, "Previous node = " + prev + " (" + objectEntityInstanceOrdereable + ")");
      }
     
      LiteralEntityInstance ovOrdereablePreviusValue =
        LiteralEntityInstance.getInstance(prev.getName(), ovOrdereable.getValueType());

      //3) Mount the father

      /*
 
View Full Code Here


         
          ObjectEntityInstance arguments[] = finding.getArguments();
          List<OVInstance> ovInstanceList = new ArrayList<OVInstance>();
          for(int i = 0; i < arguments.length ; i++){
            OrdinaryVariable ov = residentNode.getArgumentNumber(i + 1).getOVariable();
            LiteralEntityInstance lei = LiteralEntityInstance.getInstance(arguments[i].getName() , ov.getValueType());
            ovInstanceList.add(OVInstance.getInstance(ov, lei));
          }
         
          SimpleSSBNNode ssbnNode = SimpleSSBNNode.getInstance(residentNode);
         
View Full Code Here

TOP

Related Classes of unbbayes.prs.mebn.ssbn.LiteralEntityInstance

Copyright © 2018 www.massapicom. 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.