Package unbbayes.prs.mebn.ssbn

Examples of unbbayes.prs.mebn.ssbn.ContextFatherSSBNNode


          throw new ImplementationRestrictionException(
              ImplementationRestrictionException.MORE_THAN_ONE_CTXT_NODE_SEARCH);
        }else{
          //We have only one context node father
          ContextNode contextNode = simpleContextNodeList.get(0).getContextNode();
          ContextFatherSSBNNode contextFather = mapContextNode.get(contextNode);
          if(contextFather == null){
            contextFather = new ContextFatherSSBNNode(pn, contextNode);
           
            List<LiteralEntityInstance> possibleValueList = new ArrayList<LiteralEntityInstance>();
            for(String entity: simpleContextNodeList.get(0).getPossibleValues()){
              possibleValueList.add(LiteralEntityInstance.getInstance(entity, simpleContextNodeList.get(0).getOvProblematic().getValueType()));
            }
           
            for(LiteralEntityInstance lei: possibleValueList){
              contextFather.addPossibleValue(lei);
            }
           
            contextFather.setOvProblematic(simpleContextNodeList.get(0).getOvProblematic());
            mapContextNode.put(contextNode, contextFather);
          }
         
          try {
            ssbnNode.setContextFatherSSBNNode(contextFather);
View Full Code Here

TOP

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

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.