Package edu.gmu.seor.prognos.unbbayesplugin.cps.datastructure

Examples of edu.gmu.seor.prognos.unbbayesplugin.cps.datastructure.EDBUnit.removeAllChildren()


   * @param X the x
   * @return the eDB unit
   */
  public EDBUnit convert( EDBUnit sTree, String X ){
    EDBUnit dTree = new EDBUnit();
    dTree.removeAllChildren();
    dTree.setName(X);
    dTree.setData(X);
   
    EDBUnit r = convertOperation( sTree.getOne().getOne(), dTree, X );
       
View Full Code Here


   *
   * @param p the e unit
   */
  public void deletAllSTATES(EDBUnit p){
    EDBUnit states   = p.get("STATES");
    states.removeAllChildren();
  }
 
  /**
   * Removes the all evidences.
   */
 
View Full Code Here

   
    for( String str : ISA.getMap().keySet() ){
      EDBUnit node = ISA.map.get(str)
      EDBUnit evidence = node.get("EVIDENCE");
      if( evidence != null )
        evidence.removeAllChildren();
    }
  }
  
  /**
   * Creates the parent.
View Full Code Here

   * @return the eDB unit
   */
  public EDBUnit createCPT(EDBUnit curNode){
    EDBUnit parents = curNode.get("PARENTS");
    EDBUnit CPT = curNode.get("CPT");
    CPT.removeAllChildren();
   
    //1. create parent states    //EX) mid.one.sour
    createParentStateOnCPT( CPT, parents.getNext() );
    //curNode.print("");
    //2. create current states    //EX) mid.one.sour.green
View Full Code Here

    if( strCurrent.equalsIgnoreCase("run") ){
     
      if( strChild1.equalsIgnoreCase("DMP") ){
        EDB.This().get("ROOT.NET_INFO.CURRENT_ENGINE").setData("DMP");
        EDBUnit e = EDB.This().get("ROOT.ENGINES.DMP");
        e.removeAllChildren();
        EDBUnit nodesE = e.create("NODES");
        nodesE.copy(EDB.This().get("ROOT.NODES"));
       
        DirectMessagePassing DMP =  new DirectMessagePassing();
        DMP.run();
View Full Code Here

        DMP.run();
      }else     
      if( strChild1.equalsIgnoreCase("LW") ){
        EDB.This().get("ROOT.NET_INFO.CURRENT_ENGINE").setData("LW");
        EDBUnit e = EDB.This().get("ROOT.ENGINES.LW");
        e.removeAllChildren();
        EDBUnit nodesE = e.create("NODES");
        nodesE.copy(EDB.This().get("ROOT.NODES"));
       
        LikelihoodWeighting LW =  new LikelihoodWeighting();
        LW.run(strChild2);
View Full Code Here

        LW.run(strChild2);
      }else     
      if( strChild1.equalsIgnoreCase("JT") ){
        EDB.This().get("ROOT.NET_INFO.CURRENT_ENGINE").setData("JT");
        EDBUnit e = EDB.This().get("ROOT.ENGINES.JT");
        e.removeAllChildren();
        EDBUnit nodesE = e.create("NODES");
        nodesE.copy(EDB.This().get("ROOT.NODES"));
       
        JunctionTreeEngine JT =  new JunctionTreeEngine();
        JT.run(strChild2);
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.