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

Examples of edu.gmu.seor.prognos.unbbayesplugin.cps.CPSCompilerMain.compile()


    }
 
  public void mk_poly5clg_demo_bnet_Connected_test() {
    CPSCompilerMain cpsCompiler = new CPSCompilerMain();
        cpsCompiler.InitCompiler();
        cpsCompiler.compile( mk_poly5clg_demo_bnet_Connected +
                   "defineEvidence( W, 2 );"+
                         "run(DMP);" );
       
        //Comparison
      check( EDB.This().get("ROOT.ENGINES.DMP.NODES.T.BEL").getNext("t1").getData()0.412736);   
View Full Code Here


    }
 
  public void mk_poly5clg_demo_bnet_Connected_test_2() {
    CPSCompilerMain cpsCompiler = new CPSCompilerMain();
        cpsCompiler.InitCompiler();
        cpsCompiler.compile( mk_poly5clg_demo_bnet_Connected +
                   "defineEvidence( Z, 2 );"+
                         "run(DMP);" );
       
        //Comparison
        check( EDB.This().get("ROOT.ENGINES.DMP.NODES.T.BEL").getNext("t1").getData()0.361127);   
View Full Code Here

      );

  public void test1(){
    CPSCompilerMain cpsCompiler = new CPSCompilerMain();
        cpsCompiler.InitCompiler();
        cpsCompiler.compile
                   mk_uc3_withcontinuous_no_link_bnet +
                   "run(DMP);" );
               
        check( EDB.This().get("ROOT.ENGINES.DMP.NODES.hasAggressiveBehavior.BEL").getNext().getData()0.4 );   
      check( EDB.This().get("ROOT.ENGINES.DMP.NODES.hasWeaponVisible.BEL").getNext().getData()0.31 );   
View Full Code Here

  }
 
  public void test2(){
    CPSCompilerMain cpsCompiler = new CPSCompilerMain();
        cpsCompiler.InitCompiler();
        cpsCompiler.compile
                   mk_uc3_withcontinuous_no_link_bnet +
                   "defineEvidence( cavitation, 8 );"+
                   "run(DMP);" );
               
        check( EDB.This().get("ROOT.ENGINES.DMP.NODES.hasAggressiveBehavior.BEL").getNext().getData()0.775025 );   
View Full Code Here

  }
 
  public void test3(){
    CPSCompilerMain cpsCompiler = new CPSCompilerMain();
        cpsCompiler.InitCompiler();
        cpsCompiler.compile
                   mk_uc3_withcontinuous_no_link_bnet +
                   "defineEvidence( speedChange, 6.99739 );"+
                   "run(DMP);" );
               
        check( EDB.This().get("ROOT.ENGINES.DMP.NODES.hasAggressiveBehavior.BEL").getNext().getData()0.130375 );   
View Full Code Here

  }
 
  public void test4(){
    CPSCompilerMain cpsCompiler = new CPSCompilerMain();
        cpsCompiler.InitCompiler();
        cpsCompiler.compile
                   mk_uc3_withcontinuous_no_link_bnet +
                   "defineEvidence( turnRate, 15.2426 );"+
                   "run(DMP);" );
               
        check( EDB.This().get("ROOT.ENGINES.DMP.NODES.hasAggressiveBehavior.BEL").getNext().getData()0.984716 );   
View Full Code Here

  }
 
  public void test5(){
    CPSCompilerMain cpsCompiler = new CPSCompilerMain();
        cpsCompiler.InitCompiler();
        cpsCompiler.compile
                   mk_uc3_withcontinuous_no_link_bnet +
                   "defineEvidence( shipRCSchange, 3.42548 );"+
                   "run(DMP);" );
               
        check( EDB.This().get("ROOT.ENGINES.DMP.NODES.hasAggressiveBehavior.BEL").getNext().getData()0.459848 );   
View Full Code Here

  }
 
  public void test6(){
    CPSCompilerMain cpsCompiler = new CPSCompilerMain();
        cpsCompiler.InitCompiler();
        cpsCompiler.compile
                   mk_uc3_withcontinuous_no_link_bnet +
                   "defineEvidence( propellerTurnCount, 2940.77 );"+
                   "run(DMP);" );
               
        check( EDB.This().get("ROOT.ENGINES.DMP.NODES.hasAggressiveBehavior.BEL").getNext().getData()0.000963292 );   
View Full Code Here

  }
 
  public void test7(){
    CPSCompilerMain cpsCompiler = new CPSCompilerMain();
        cpsCompiler.InitCompiler();
        cpsCompiler.compile
                   mk_uc3_withcontinuous_no_link_bnet +
                   "defineEvidence( speedChange, 6.50139 );"+
                   "defineEvidence( cavitation, 11.2331 );"+
                   "run(DMP);" );
               
View Full Code Here

  }
 
  public void test8(){
    CPSCompilerMain cpsCompiler = new CPSCompilerMain();
        cpsCompiler.InitCompiler();
        cpsCompiler.compile
                   mk_uc3_withcontinuous_no_link_bnet +
                   "defineEvidence( hasWeaponVisible, True );"+
                   "defineEvidence( cavitation, 8.80015 );"+
                   "run(DMP);" );
               
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.