Package edu.gmu.seor.prognos.unbbayesplugin.jt.prs

Examples of edu.gmu.seor.prognos.unbbayesplugin.jt.prs.Edge


     
    }
  }
 
  public void createEdge( ProbabilisticNetwork rede, Node uNodeSrs, Node uNodeDes ){
    Edge edge = new Edge(uNodeSrs, uNodeDes);
    try {
      rede.addEdge(edge);
    } catch (InvalidParentException e) {
      e.printStackTrace();
    }
View Full Code Here


  for(Edge ed:tempArcs){
    if (ed.getDestinationNode().getType()==Node.CONTINUOUS_NODE_TYPE)
      makeDecomposition(start,ed.getDestinationNode(),true);
    else if (ed.getDestinationNode().getType()==Node.PROBABILISTIC_NODE_TYPE && hasCont==true){
    // add the edge between start and destination node
    Edge temp = new Edge(start,ed.getDestinationNode());
    if(ifContainsedge(arcosMarkov,temp) || ifContainsedge(edgeList,temp) )
      System.out.println("Arc already exists and hence wont be added \n")
    else{
    arcosMarkov.add(temp);
    // set the adjacent nodes
    ArrayList<Node> n = new ArrayList<Node>();
    n= temp.getOriginNode().getAdjacents();
    n.add(temp.getDestinationNode());
    n=temp.getDestinationNode().getAdjacents();
    n.add(temp.getOriginNode());
    System.out.println(temp.toString()+" has been added to set of arcs \n");
    }
    }
    else if (ed.getDestinationNode().getType()==Node.PROBABILISTIC_NODE_TYPE) return;
  }
  }
View Full Code Here

TOP

Related Classes of edu.gmu.seor.prognos.unbbayesplugin.jt.prs.Edge

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.