Package

Source Code of Discrete_Stress_Test

import java.io.File;
import java.io.IOException;
import java.util.List;

import edu.gmu.seor.prognos.unbbayesplugin.cps.CPSCompilerMain;
import edu.gmu.seor.prognos.unbbayesplugin.cps.datastructure.EDB;


public class Discrete_Stress_Test extends Test {
  
  public Discrete_Stress_Test() {}
   
  String shouNet = new String
    "defineNode(Speed__OBJ1_T1, 0);"+
  "{ defineState(Discrete, Medium, Stationary, Fast, VeryFast, Slow);" +
  "p( Speed__OBJ1_T1) = { Medium:0.1; Stationary:0.2; Fast:0.3; VeryFast:0.1; Slow:0.3;} }" +
 
   "defineNode(TerrainType__RGN1, 0);"+
  "{ defineState(Discrete, Road, OffRoad, VeryRough );" +
  "p( TerrainType__RGN1 ) = { Road:0.6; OffRoad:0.2; VeryRough:0.2; } }" +
 
   "defineNode(TerrainType__RGN2, 0);"+
  "{ defineState(Discrete, Road, OffRoad, VeryRough);" +
  "p( TerrainType__RGN2 ) = { Road:0.6; OffRoad:0.2; VeryRough:0.2; } }" +
 
   "defineNode(ObjectType__OBJ1, 0);"+
  "{ defineState(Discrete, Tracked, NonVehicle, Wheeled);" +
  "p( ObjectType__OBJ1 ) = { Tracked:0.6; NonVehicle:0.1; Wheeled:0.3; } }" +
   
  "defineNode(Speed__OBJ1_T2, 0);"+
  "{ defineState( Discrete ,Medium, Stationary, Fast, VeryFast, Slow);" +
  "p( Speed__OBJ1_T2 | Speed__OBJ1_T1 , TerrainType__RGN1 , TerrainType__RGN2 , ObjectType__OBJ1 ) = "+
  "if( Speed__OBJ1_T1 == Medium && TerrainType__RGN1 == VeryRough && TerrainType__RGN2 == VeryRough && ObjectType__OBJ1 == Wheeled){ Stationary:0.0;Slow:0.1;Medium:0.8;Fast:0.05;VeryFast:0.05; }"+
  "if( Speed__OBJ1_T1 == Stationary && TerrainType__RGN1 == VeryRough && TerrainType__RGN2 == VeryRough && ObjectType__OBJ1 == Wheeled){ Stationary:0.0;Slow:0.1;Medium:0.8;Fast:0.05;VeryFast:0.05; }"+
  "if( Speed__OBJ1_T1 == Fast && TerrainType__RGN1 == VeryRough && TerrainType__RGN2 == VeryRough && ObjectType__OBJ1 == Wheeled){ Stationary:0.0;Slow:0.1;Medium:0.8;Fast:0.05;VeryFast:0.05; }"+
  "if( Speed__OBJ1_T1 == VeryFast && TerrainType__RGN1 == VeryRough && TerrainType__RGN2 == VeryRough && ObjectType__OBJ1 == Wheeled){ Stationary:0.0;Slow:0.1;Medium:0.8;Fast:0.05;VeryFast:0.05; }"+
  "if( Speed__OBJ1_T1 == Slow && TerrainType__RGN1 == VeryRough && TerrainType__RGN2 == VeryRough && ObjectType__OBJ1 == Wheeled){ Stationary:0.0;Slow:0.1;Medium:0.8;Fast:0.05;VeryFast:0.05; }"+
  "if( Speed__OBJ1_T1 == Medium && TerrainType__RGN1 == OffRoad && TerrainType__RGN2 == VeryRough && ObjectType__OBJ1 == Wheeled){ Stationary:0.0;Slow:0.1;Medium:0.8;Fast:0.05;VeryFast:0.05; }"+
  "if( Speed__OBJ1_T1 == Stationary && TerrainType__RGN1 == OffRoad && TerrainType__RGN2 == VeryRough && ObjectType__OBJ1 == Wheeled){ Stationary:0.0;Slow:0.1;Medium:0.8;Fast:0.05;VeryFast:0.05; }"+
  "if( Speed__OBJ1_T1 == Fast && TerrainType__RGN1 == OffRoad && TerrainType__RGN2 == VeryRough && ObjectType__OBJ1 == Wheeled){ Stationary:0.0;Slow:0.1;Medium:0.8;Fast:0.05;VeryFast:0.05; }"+
  "if( Speed__OBJ1_T1 == VeryFast && TerrainType__RGN1 == OffRoad && TerrainType__RGN2 == VeryRough && ObjectType__OBJ1 == Wheeled){ Stationary:0.0;Slow:0.1;Medium:0.8;Fast:0.05;VeryFast:0.05; }"+
  "if( Speed__OBJ1_T1 == Slow && TerrainType__RGN1 == OffRoad && TerrainType__RGN2 == VeryRough && ObjectType__OBJ1 == Wheeled){ Stationary:0.0;Slow:0.1;Medium:0.8;Fast:0.05;VeryFast:0.05; }"+
  "if( Speed__OBJ1_T1 == Medium && TerrainType__RGN1 == Road && TerrainType__RGN2 == VeryRough && ObjectType__OBJ1 == Wheeled){ Stationary:0.0;Slow:0.05;Medium:0.85;Fast:0.05;VeryFast:0.05; }"+
  "if( Speed__OBJ1_T1 == Stationary && TerrainType__RGN1 == Road && TerrainType__RGN2 == VeryRough && ObjectType__OBJ1 == Wheeled){ Stationary:0.0;Slow:0.05;Medium:0.85;Fast:0.05;VeryFast:0.05; }"+
  "if( Speed__OBJ1_T1 == Fast && TerrainType__RGN1 == Road && TerrainType__RGN2 == VeryRough && ObjectType__OBJ1 == Wheeled){ Stationary:0.0;Slow:0.05;Medium:0.85;Fast:0.05;VeryFast:0.05; }"+
  "if( Speed__OBJ1_T1 == VeryFast && TerrainType__RGN1 == Road && TerrainType__RGN2 == VeryRough && ObjectType__OBJ1 == Wheeled){ Stationary:0.0;Slow:0.05;Medium:0.85;Fast:0.05;VeryFast:0.05; }"+
  "if( Speed__OBJ1_T1 == Slow && TerrainType__RGN1 == Road && TerrainType__RGN2 == VeryRough && ObjectType__OBJ1 == Wheeled){ Stationary:0.0;Slow:0.05;Medium:0.85;Fast:0.05;VeryFast:0.05; }"+
  "if( Speed__OBJ1_T1 == Medium && TerrainType__RGN1 == VeryRough && TerrainType__RGN2 == OffRoad && ObjectType__OBJ1 == Wheeled){ Stationary:0.0;Slow:0.1;Medium:0.8;Fast:0.05;VeryFast:0.05; }"+
  "if( Speed__OBJ1_T1 == Stationary && TerrainType__RGN1 == VeryRough && TerrainType__RGN2 == OffRoad && ObjectType__OBJ1 == Wheeled){ Stationary:0.0;Slow:0.1;Medium:0.8;Fast:0.05;VeryFast:0.05; }"+
  "if( Speed__OBJ1_T1 == Fast && TerrainType__RGN1 == VeryRough && TerrainType__RGN2 == OffRoad && ObjectType__OBJ1 == Wheeled){ Stationary:0.0;Slow:0.1;Medium:0.8;Fast:0.05;VeryFast:0.05; }"+
  "if( Speed__OBJ1_T1 == VeryFast && TerrainType__RGN1 == VeryRough && TerrainType__RGN2 == OffRoad && ObjectType__OBJ1 == Wheeled){ Stationary:0.0;Slow:0.1;Medium:0.8;Fast:0.05;VeryFast:0.05; }"+
  "if( Speed__OBJ1_T1 == Slow && TerrainType__RGN1 == VeryRough && TerrainType__RGN2 == OffRoad && ObjectType__OBJ1 == Wheeled){ Stationary:0.0;Slow:0.1;Medium:0.8;Fast:0.05;VeryFast:0.05; }"+
  "if( Speed__OBJ1_T1 == Medium && TerrainType__RGN1 == OffRoad && TerrainType__RGN2 == OffRoad && ObjectType__OBJ1 == Wheeled){ Stationary:0.0;Slow:0.1;Medium:0.8;Fast:0.05;VeryFast:0.05; }"+
  "if( Speed__OBJ1_T1 == Stationary && TerrainType__RGN1 == OffRoad && TerrainType__RGN2 == OffRoad && ObjectType__OBJ1 == Wheeled){ Stationary:0.0;Slow:0.1;Medium:0.8;Fast:0.05;VeryFast:0.05; }"+
  "if( Speed__OBJ1_T1 == Fast && TerrainType__RGN1 == OffRoad && TerrainType__RGN2 == OffRoad && ObjectType__OBJ1 == Wheeled){ Stationary:0.0;Slow:0.1;Medium:0.8;Fast:0.05;VeryFast:0.05; }"+
  "if( Speed__OBJ1_T1 == VeryFast && TerrainType__RGN1 == OffRoad && TerrainType__RGN2 == OffRoad && ObjectType__OBJ1 == Wheeled){ Stationary:0.0;Slow:0.1;Medium:0.8;Fast:0.05;VeryFast:0.05; }"+
  "if( Speed__OBJ1_T1 == Slow && TerrainType__RGN1 == OffRoad && TerrainType__RGN2 == OffRoad && ObjectType__OBJ1 == Wheeled){ Stationary:0.0;Slow:0.1;Medium:0.8;Fast:0.05;VeryFast:0.05; }"+
  "if( Speed__OBJ1_T1 == Medium && TerrainType__RGN1 == Road && TerrainType__RGN2 == OffRoad && ObjectType__OBJ1 == Wheeled){ Stationary:0.0;Slow:0.05;Medium:0.85;Fast:0.05;VeryFast:0.05; }"+
  "if( Speed__OBJ1_T1 == Stationary && TerrainType__RGN1 == Road && TerrainType__RGN2 == OffRoad && ObjectType__OBJ1 == Wheeled){ Stationary:0.0;Slow:0.05;Medium:0.85;Fast:0.05;VeryFast:0.05; }"+
  "if( Speed__OBJ1_T1 == Fast && TerrainType__RGN1 == Road && TerrainType__RGN2 == OffRoad && ObjectType__OBJ1 == Wheeled){ Stationary:0.0;Slow:0.05;Medium:0.85;Fast:0.05;VeryFast:0.05; }"+
  "if( Speed__OBJ1_T1 == VeryFast && TerrainType__RGN1 == Road && TerrainType__RGN2 == OffRoad && ObjectType__OBJ1 == Wheeled){ Stationary:0.0;Slow:0.05;Medium:0.85;Fast:0.05;VeryFast:0.05; }"+
  "if( Speed__OBJ1_T1 == Slow && TerrainType__RGN1 == Road && TerrainType__RGN2 == OffRoad && ObjectType__OBJ1 == Wheeled){ Stationary:0.0;Slow:0.05;Medium:0.85;Fast:0.05;VeryFast:0.05; }"+
  "if( Speed__OBJ1_T1 == Medium && TerrainType__RGN1 == VeryRough && TerrainType__RGN2 == Road && ObjectType__OBJ1 == Wheeled){ Stationary:0.0;Slow:0.05;Medium:0.85;Fast:0.05;VeryFast:0.05; }"+
  "if( Speed__OBJ1_T1 == Stationary && TerrainType__RGN1 == VeryRough && TerrainType__RGN2 == Road && ObjectType__OBJ1 == Wheeled){ Stationary:0.0;Slow:0.05;Medium:0.85;Fast:0.05;VeryFast:0.05; }"+
  "if( Speed__OBJ1_T1 == Fast && TerrainType__RGN1 == VeryRough && TerrainType__RGN2 == Road && ObjectType__OBJ1 == Wheeled){ Stationary:0.0;Slow:0.05;Medium:0.85;Fast:0.05;VeryFast:0.05; }"+
  "if( Speed__OBJ1_T1 == VeryFast && TerrainType__RGN1 == VeryRough && TerrainType__RGN2 == Road && ObjectType__OBJ1 == Wheeled){ Stationary:0.0;Slow:0.05;Medium:0.85;Fast:0.05;VeryFast:0.05; }"+
  "if( Speed__OBJ1_T1 == Slow && TerrainType__RGN1 == VeryRough && TerrainType__RGN2 == Road && ObjectType__OBJ1 == Wheeled){ Stationary:0.0;Slow:0.05;Medium:0.85;Fast:0.05;VeryFast:0.05; }"+
  "if( Speed__OBJ1_T1 == Medium && TerrainType__RGN1 == OffRoad && TerrainType__RGN2 == Road && ObjectType__OBJ1 == Wheeled){ Stationary:0.0;Slow:0.05;Medium:0.85;Fast:0.05;VeryFast:0.05; }"+
  "if( Speed__OBJ1_T1 == Stationary && TerrainType__RGN1 == OffRoad && TerrainType__RGN2 == Road && ObjectType__OBJ1 == Wheeled){ Stationary:0.0;Slow:0.05;Medium:0.85;Fast:0.05;VeryFast:0.05; }"+
  "if( Speed__OBJ1_T1 == Fast && TerrainType__RGN1 == OffRoad && TerrainType__RGN2 == Road && ObjectType__OBJ1 == Wheeled){ Stationary:0.0;Slow:0.05;Medium:0.85;Fast:0.05;VeryFast:0.05; }"+
  "if( Speed__OBJ1_T1 == VeryFast && TerrainType__RGN1 == OffRoad && TerrainType__RGN2 == Road && ObjectType__OBJ1 == Wheeled){ Stationary:0.0;Slow:0.05;Medium:0.85;Fast:0.05;VeryFast:0.05; }"+
  "if( Speed__OBJ1_T1 == Slow && TerrainType__RGN1 == OffRoad && TerrainType__RGN2 == Road && ObjectType__OBJ1 == Wheeled){ Stationary:0.0;Slow:0.05;Medium:0.85;Fast:0.05;VeryFast:0.05; }"+
  "if( Speed__OBJ1_T1 == Medium && TerrainType__RGN1 == Road && TerrainType__RGN2 == Road && ObjectType__OBJ1 == Wheeled){ Stationary:0.0;Slow:0.05;Medium:0.85;Fast:0.05;VeryFast:0.05; }"+
  "if( Speed__OBJ1_T1 == Stationary && TerrainType__RGN1 == Road && TerrainType__RGN2 == Road && ObjectType__OBJ1 == Wheeled){ Stationary:0.0;Slow:0.05;Medium:0.85;Fast:0.05;VeryFast:0.05; }"+
  "if( Speed__OBJ1_T1 == Fast && TerrainType__RGN1 == Road && TerrainType__RGN2 == Road && ObjectType__OBJ1 == Wheeled){ Stationary:0.0;Slow:0.05;Medium:0.85;Fast:0.05;VeryFast:0.05; }"+
  "if( Speed__OBJ1_T1 == VeryFast && TerrainType__RGN1 == Road && TerrainType__RGN2 == Road && ObjectType__OBJ1 == Wheeled){ Stationary:0.0;Slow:0.05;Medium:0.85;Fast:0.05;VeryFast:0.05; }"+
  "if( Speed__OBJ1_T1 == Slow && TerrainType__RGN1 == Road && TerrainType__RGN2 == Road && ObjectType__OBJ1 == Wheeled){ Stationary:0.0;Slow:0.05;Medium:0.85;Fast:0.05;VeryFast:0.05; }"+
  "if( Speed__OBJ1_T1 == Medium && TerrainType__RGN1 == VeryRough && TerrainType__RGN2 == VeryRough && ObjectType__OBJ1 == NonVehicle){ Stationary:0.0;Slow:0.2;Medium:0.8;Fast:0.0;VeryFast:0.0; }"+
  "if( Speed__OBJ1_T1 == Stationary && TerrainType__RGN1 == VeryRough && TerrainType__RGN2 == VeryRough && ObjectType__OBJ1 == NonVehicle){ Stationary:0.0;Slow:0.2;Medium:0.8;Fast:0.0;VeryFast:0.0; }"+
  "if( Speed__OBJ1_T1 == Fast && TerrainType__RGN1 == VeryRough && TerrainType__RGN2 == VeryRough && ObjectType__OBJ1 == NonVehicle){ Stationary:0.0;Slow:0.2;Medium:0.8;Fast:0.0;VeryFast:0.0; }"+
  "if( Speed__OBJ1_T1 == VeryFast && TerrainType__RGN1 == VeryRough && TerrainType__RGN2 == VeryRough && ObjectType__OBJ1 == NonVehicle){ Stationary:0.0;Slow:0.2;Medium:0.8;Fast:0.0;VeryFast:0.0; }"+
  "if( Speed__OBJ1_T1 == Slow && TerrainType__RGN1 == VeryRough && TerrainType__RGN2 == VeryRough && ObjectType__OBJ1 == NonVehicle){ Stationary:0.0;Slow:0.2;Medium:0.8;Fast:0.0;VeryFast:0.0; }"+
  "if( Speed__OBJ1_T1 == Medium && TerrainType__RGN1 == OffRoad && TerrainType__RGN2 == VeryRough && ObjectType__OBJ1 == NonVehicle){ Stationary:0.0;Slow:0.8;Medium:0.2;Fast:0.0;VeryFast:0.0; }"+
  "if( Speed__OBJ1_T1 == Stationary && TerrainType__RGN1 == OffRoad && TerrainType__RGN2 == VeryRough && ObjectType__OBJ1 == NonVehicle){ Stationary:0.0;Slow:0.8;Medium:0.2;Fast:0.0;VeryFast:0.0; }"+
  "if( Speed__OBJ1_T1 == Fast && TerrainType__RGN1 == OffRoad && TerrainType__RGN2 == VeryRough && ObjectType__OBJ1 == NonVehicle){ Stationary:0.0;Slow:0.8;Medium:0.2;Fast:0.0;VeryFast:0.0; }"+
  "if( Speed__OBJ1_T1 == VeryFast && TerrainType__RGN1 == OffRoad && TerrainType__RGN2 == VeryRough && ObjectType__OBJ1 == NonVehicle){ Stationary:0.0;Slow:0.8;Medium:0.2;Fast:0.0;VeryFast:0.0; }"+
  "if( Speed__OBJ1_T1 == Slow && TerrainType__RGN1 == OffRoad && TerrainType__RGN2 == VeryRough && ObjectType__OBJ1 == NonVehicle){ Stationary:0.0;Slow:0.8;Medium:0.2;Fast:0.0;VeryFast:0.0; }"+
  "if( Speed__OBJ1_T1 == Medium && TerrainType__RGN1 == Road && TerrainType__RGN2 == VeryRough && ObjectType__OBJ1 == NonVehicle){ Stationary:0.0;Slow:0.0;Medium:0.2;Fast:0.8;VeryFast:0.0; }"+
  "if( Speed__OBJ1_T1 == Stationary && TerrainType__RGN1 == Road && TerrainType__RGN2 == VeryRough && ObjectType__OBJ1 == NonVehicle){ Stationary:0.0;Slow:0.0;Medium:0.2;Fast:0.8;VeryFast:0.0; }"+
  "if( Speed__OBJ1_T1 == Fast && TerrainType__RGN1 == Road && TerrainType__RGN2 == VeryRough && ObjectType__OBJ1 == NonVehicle){ Stationary:0.0;Slow:0.0;Medium:0.2;Fast:0.8;VeryFast:0.0; }"+
  "if( Speed__OBJ1_T1 == VeryFast && TerrainType__RGN1 == Road && TerrainType__RGN2 == VeryRough && ObjectType__OBJ1 == NonVehicle){ Stationary:0.0;Slow:0.0;Medium:0.2;Fast:0.8;VeryFast:0.0; }"+
  "if( Speed__OBJ1_T1 == Slow && TerrainType__RGN1 == Road && TerrainType__RGN2 == VeryRough && ObjectType__OBJ1 == NonVehicle){ Stationary:0.0;Slow:0.0;Medium:0.2;Fast:0.8;VeryFast:0.0; }"+
  "if( Speed__OBJ1_T1 == Medium && TerrainType__RGN1 == VeryRough && TerrainType__RGN2 == OffRoad && ObjectType__OBJ1 == NonVehicle){ Stationary:0.0;Slow:0.8;Medium:0.2;Fast:0.0;VeryFast:0.0; }"+
  "if( Speed__OBJ1_T1 == Stationary && TerrainType__RGN1 == VeryRough && TerrainType__RGN2 == OffRoad && ObjectType__OBJ1 == NonVehicle){ Stationary:0.0;Slow:0.8;Medium:0.2;Fast:0.0;VeryFast:0.0; }"+
  "if( Speed__OBJ1_T1 == Fast && TerrainType__RGN1 == VeryRough && TerrainType__RGN2 == OffRoad && ObjectType__OBJ1 == NonVehicle){ Stationary:0.0;Slow:0.8;Medium:0.2;Fast:0.0;VeryFast:0.0; }"+
  "if( Speed__OBJ1_T1 == VeryFast && TerrainType__RGN1 == VeryRough && TerrainType__RGN2 == OffRoad && ObjectType__OBJ1 == NonVehicle){ Stationary:0.0;Slow:0.8;Medium:0.2;Fast:0.0;VeryFast:0.0; }"+
  "if( Speed__OBJ1_T1 == Slow && TerrainType__RGN1 == VeryRough && TerrainType__RGN2 == OffRoad && ObjectType__OBJ1 == NonVehicle){ Stationary:0.0;Slow:0.8;Medium:0.2;Fast:0.0;VeryFast:0.0; }"+
  "if( Speed__OBJ1_T1 == Medium && TerrainType__RGN1 == OffRoad && TerrainType__RGN2 == OffRoad && ObjectType__OBJ1 == NonVehicle){ Stationary:0.0;Slow:0.8;Medium:0.2;Fast:0.0;VeryFast:0.0; }"+
  "if( Speed__OBJ1_T1 == Stationary && TerrainType__RGN1 == OffRoad && TerrainType__RGN2 == OffRoad && ObjectType__OBJ1 == NonVehicle){ Stationary:0.0;Slow:0.8;Medium:0.2;Fast:0.0;VeryFast:0.0; }"+
  "if( Speed__OBJ1_T1 == Fast && TerrainType__RGN1 == OffRoad && TerrainType__RGN2 == OffRoad && ObjectType__OBJ1 == NonVehicle){ Stationary:0.0;Slow:0.8;Medium:0.2;Fast:0.0;VeryFast:0.0; }"+
  "if( Speed__OBJ1_T1 == VeryFast && TerrainType__RGN1 == OffRoad && TerrainType__RGN2 == OffRoad && ObjectType__OBJ1 == NonVehicle){ Stationary:0.0;Slow:0.8;Medium:0.2;Fast:0.0;VeryFast:0.0; }"+
  "if( Speed__OBJ1_T1 == Slow && TerrainType__RGN1 == OffRoad && TerrainType__RGN2 == OffRoad && ObjectType__OBJ1 == NonVehicle){ Stationary:0.0;Slow:0.8;Medium:0.2;Fast:0.0;VeryFast:0.0; }"+
  "if( Speed__OBJ1_T1 == Medium && TerrainType__RGN1 == Road && TerrainType__RGN2 == OffRoad && ObjectType__OBJ1 == NonVehicle){ Stationary:0.0;Slow:0.0;Medium:0.2;Fast:0.8;VeryFast:0.0; }"+
  "if( Speed__OBJ1_T1 == Stationary && TerrainType__RGN1 == Road && TerrainType__RGN2 == OffRoad && ObjectType__OBJ1 == NonVehicle){ Stationary:0.0;Slow:0.0;Medium:0.2;Fast:0.8;VeryFast:0.0; }"+
  "if( Speed__OBJ1_T1 == Fast && TerrainType__RGN1 == Road && TerrainType__RGN2 == OffRoad && ObjectType__OBJ1 == NonVehicle){ Stationary:0.0;Slow:0.0;Medium:0.2;Fast:0.8;VeryFast:0.0; }"+
  "if( Speed__OBJ1_T1 == VeryFast && TerrainType__RGN1 == Road && TerrainType__RGN2 == OffRoad && ObjectType__OBJ1 == NonVehicle){ Stationary:0.0;Slow:0.0;Medium:0.2;Fast:0.8;VeryFast:0.0; }"+
  "if( Speed__OBJ1_T1 == Slow && TerrainType__RGN1 == Road && TerrainType__RGN2 == OffRoad && ObjectType__OBJ1 == NonVehicle){ Stationary:0.0;Slow:0.0;Medium:0.2;Fast:0.8;VeryFast:0.0; }"+
  "if( Speed__OBJ1_T1 == Medium && TerrainType__RGN1 == VeryRough && TerrainType__RGN2 == Road && ObjectType__OBJ1 == NonVehicle){ Stationary:0.0;Slow:0.0;Medium:0.2;Fast:0.8;VeryFast:0.0; }"+
  "if( Speed__OBJ1_T1 == Stationary && TerrainType__RGN1 == VeryRough && TerrainType__RGN2 == Road && ObjectType__OBJ1 == NonVehicle){ Stationary:0.0;Slow:0.0;Medium:0.2;Fast:0.8;VeryFast:0.0; }"+
  "if( Speed__OBJ1_T1 == Fast && TerrainType__RGN1 == VeryRough && TerrainType__RGN2 == Road && ObjectType__OBJ1 == NonVehicle){ Stationary:0.0;Slow:0.0;Medium:0.2;Fast:0.8;VeryFast:0.0; }"+
  "if( Speed__OBJ1_T1 == VeryFast && TerrainType__RGN1 == VeryRough && TerrainType__RGN2 == Road && ObjectType__OBJ1 == NonVehicle){ Stationary:0.0;Slow:0.0;Medium:0.2;Fast:0.8;VeryFast:0.0; }"+
  "if( Speed__OBJ1_T1 == Slow && TerrainType__RGN1 == VeryRough && TerrainType__RGN2 == Road && ObjectType__OBJ1 == NonVehicle){ Stationary:0.0;Slow:0.0;Medium:0.2;Fast:0.8;VeryFast:0.0; }"+
  "if( Speed__OBJ1_T1 == Medium && TerrainType__RGN1 == OffRoad && TerrainType__RGN2 == Road && ObjectType__OBJ1 == NonVehicle){ Stationary:0.0;Slow:0.0;Medium:0.2;Fast:0.8;VeryFast:0.0; }"+
  "if( Speed__OBJ1_T1 == Stationary && TerrainType__RGN1 == OffRoad && TerrainType__RGN2 == Road && ObjectType__OBJ1 == NonVehicle){ Stationary:0.0;Slow:0.0;Medium:0.2;Fast:0.8;VeryFast:0.0; }"+
  "if( Speed__OBJ1_T1 == Fast && TerrainType__RGN1 == OffRoad && TerrainType__RGN2 == Road && ObjectType__OBJ1 == NonVehicle){ Stationary:0.0;Slow:0.0;Medium:0.2;Fast:0.8;VeryFast:0.0; }"+
  "if( Speed__OBJ1_T1 == VeryFast && TerrainType__RGN1 == OffRoad && TerrainType__RGN2 == Road && ObjectType__OBJ1 == NonVehicle){ Stationary:0.0;Slow:0.0;Medium:0.2;Fast:0.8;VeryFast:0.0; }"+
  "if( Speed__OBJ1_T1 == Slow && TerrainType__RGN1 == OffRoad && TerrainType__RGN2 == Road && ObjectType__OBJ1 == NonVehicle){ Stationary:0.0;Slow:0.0;Medium:0.2;Fast:0.8;VeryFast:0.0; }"+
  "if( Speed__OBJ1_T1 == Medium && TerrainType__RGN1 == Road && TerrainType__RGN2 == Road && ObjectType__OBJ1 == NonVehicle){ Stationary:0.0;Slow:0.0;Medium:0.2;Fast:0.8;VeryFast:0.0; }"+
  "if( Speed__OBJ1_T1 == Stationary && TerrainType__RGN1 == Road && TerrainType__RGN2 == Road && ObjectType__OBJ1 == NonVehicle){ Stationary:0.0;Slow:0.0;Medium:0.2;Fast:0.8;VeryFast:0.0; }"+
  "if( Speed__OBJ1_T1 == Fast && TerrainType__RGN1 == Road && TerrainType__RGN2 == Road && ObjectType__OBJ1 == NonVehicle){ Stationary:0.0;Slow:0.0;Medium:0.2;Fast:0.8;VeryFast:0.0; }"+
  "if( Speed__OBJ1_T1 == VeryFast && TerrainType__RGN1 == Road && TerrainType__RGN2 == Road && ObjectType__OBJ1 == NonVehicle){ Stationary:0.0;Slow:0.0;Medium:0.2;Fast:0.8;VeryFast:0.0; }"+
  "if( Speed__OBJ1_T1 == Slow && TerrainType__RGN1 == Road && TerrainType__RGN2 == Road && ObjectType__OBJ1 == NonVehicle){ Stationary:0.0;Slow:0.0;Medium:0.2;Fast:0.8;VeryFast:0.0; }"+
  "if( Speed__OBJ1_T1 == Medium && TerrainType__RGN1 == VeryRough && TerrainType__RGN2 == VeryRough && ObjectType__OBJ1 == Tracked){ Stationary:0.1;Slow:0.85;Medium:0.05;Fast:0.0;VeryFast:0.0; }"+
  "if( Speed__OBJ1_T1 == Stationary && TerrainType__RGN1 == VeryRough && TerrainType__RGN2 == VeryRough && ObjectType__OBJ1 == Tracked){ Stationary:0.1;Slow:0.85;Medium:0.05;Fast:0.0;VeryFast:0.0; }"+
  "if( Speed__OBJ1_T1 == Fast && TerrainType__RGN1 == VeryRough && TerrainType__RGN2 == VeryRough && ObjectType__OBJ1 == Tracked){ Stationary:0.1;Slow:0.85;Medium:0.05;Fast:0.0;VeryFast:0.0; }"+
  "if( Speed__OBJ1_T1 == VeryFast && TerrainType__RGN1 == VeryRough && TerrainType__RGN2 == VeryRough && ObjectType__OBJ1 == Tracked){ Stationary:0.1;Slow:0.85;Medium:0.05;Fast:0.0;VeryFast:0.0; }"+
  "if( Speed__OBJ1_T1 == Slow && TerrainType__RGN1 == VeryRough && TerrainType__RGN2 == VeryRough && ObjectType__OBJ1 == Tracked){ Stationary:0.1;Slow:0.85;Medium:0.05;Fast:0.0;VeryFast:0.0; }"+
  "if( Speed__OBJ1_T1 == Medium && TerrainType__RGN1 == OffRoad && TerrainType__RGN2 == VeryRough && ObjectType__OBJ1 == Tracked){ Stationary:0.1;Slow:0.9;Medium:0.0;Fast:0.0;VeryFast:0.0; }"+
  "if( Speed__OBJ1_T1 == Stationary && TerrainType__RGN1 == OffRoad && TerrainType__RGN2 == VeryRough && ObjectType__OBJ1 == Tracked){ Stationary:0.1;Slow:0.9;Medium:0.0;Fast:0.0;VeryFast:0.0; }"+
  "if( Speed__OBJ1_T1 == Fast && TerrainType__RGN1 == OffRoad && TerrainType__RGN2 == VeryRough && ObjectType__OBJ1 == Tracked){ Stationary:0.1;Slow:0.9;Medium:0.0;Fast:0.0;VeryFast:0.0; }"+
  "if( Speed__OBJ1_T1 == VeryFast && TerrainType__RGN1 == OffRoad && TerrainType__RGN2 == VeryRough && ObjectType__OBJ1 == Tracked){ Stationary:0.1;Slow:0.9;Medium:0.0;Fast:0.0;VeryFast:0.0; }"+
  "if( Speed__OBJ1_T1 == Slow && TerrainType__RGN1 == OffRoad && TerrainType__RGN2 == VeryRough && ObjectType__OBJ1 == Tracked){ Stationary:0.1;Slow:0.9;Medium:0.0;Fast:0.0;VeryFast:0.0; }"+
  "if( Speed__OBJ1_T1 == Medium && TerrainType__RGN1 == Road && TerrainType__RGN2 == VeryRough && ObjectType__OBJ1 == Tracked){ Stationary:0.1;Slow:0.8;Medium:0.1;Fast:0.0;VeryFast:0.0; }"+
  "if( Speed__OBJ1_T1 == Stationary && TerrainType__RGN1 == Road && TerrainType__RGN2 == VeryRough && ObjectType__OBJ1 == Tracked){ Stationary:0.1;Slow:0.8;Medium:0.1;Fast:0.0;VeryFast:0.0; }"+
  "if( Speed__OBJ1_T1 == Fast && TerrainType__RGN1 == Road && TerrainType__RGN2 == VeryRough && ObjectType__OBJ1 == Tracked){ Stationary:0.1;Slow:0.8;Medium:0.1;Fast:0.0;VeryFast:0.0; }"+
  "if( Speed__OBJ1_T1 == VeryFast && TerrainType__RGN1 == Road && TerrainType__RGN2 == VeryRough && ObjectType__OBJ1 == Tracked){ Stationary:0.1;Slow:0.8;Medium:0.1;Fast:0.0;VeryFast:0.0; }"+
  "if( Speed__OBJ1_T1 == Slow && TerrainType__RGN1 == Road && TerrainType__RGN2 == VeryRough && ObjectType__OBJ1 == Tracked){ Stationary:0.1;Slow:0.8;Medium:0.1;Fast:0.0;VeryFast:0.0; }"+
  "if( Speed__OBJ1_T1 == Medium && TerrainType__RGN1 == VeryRough && TerrainType__RGN2 == OffRoad && ObjectType__OBJ1 == Tracked){ Stationary:0.1;Slow:0.9;Medium:0.0;Fast:0.0;VeryFast:0.0; }"+
  "if( Speed__OBJ1_T1 == Stationary && TerrainType__RGN1 == VeryRough && TerrainType__RGN2 == OffRoad && ObjectType__OBJ1 == Tracked){ Stationary:0.1;Slow:0.9;Medium:0.0;Fast:0.0;VeryFast:0.0; }"+
  "if( Speed__OBJ1_T1 == Fast && TerrainType__RGN1 == VeryRough && TerrainType__RGN2 == OffRoad && ObjectType__OBJ1 == Tracked){ Stationary:0.1;Slow:0.9;Medium:0.0;Fast:0.0;VeryFast:0.0; }"+
  "if( Speed__OBJ1_T1 == VeryFast && TerrainType__RGN1 == VeryRough && TerrainType__RGN2 == OffRoad && ObjectType__OBJ1 == Tracked){ Stationary:0.1;Slow:0.9;Medium:0.0;Fast:0.0;VeryFast:0.0; }"+
  "if( Speed__OBJ1_T1 == Slow && TerrainType__RGN1 == VeryRough && TerrainType__RGN2 == OffRoad && ObjectType__OBJ1 == Tracked){ Stationary:0.1;Slow:0.9;Medium:0.0;Fast:0.0;VeryFast:0.0; }"+
  "if( Speed__OBJ1_T1 == Medium && TerrainType__RGN1 == OffRoad && TerrainType__RGN2 == OffRoad && ObjectType__OBJ1 == Tracked){ Stationary:0.1;Slow:0.9;Medium:0.0;Fast:0.0;VeryFast:0.0; }"+
  "if( Speed__OBJ1_T1 == Stationary && TerrainType__RGN1 == OffRoad && TerrainType__RGN2 == OffRoad && ObjectType__OBJ1 == Tracked){ Stationary:0.1;Slow:0.9;Medium:0.0;Fast:0.0;VeryFast:0.0; }"+
  "if( Speed__OBJ1_T1 == Fast && TerrainType__RGN1 == OffRoad && TerrainType__RGN2 == OffRoad && ObjectType__OBJ1 == Tracked){ Stationary:0.1;Slow:0.9;Medium:0.0;Fast:0.0;VeryFast:0.0; }"+
  "if( Speed__OBJ1_T1 == VeryFast && TerrainType__RGN1 == OffRoad && TerrainType__RGN2 == OffRoad && ObjectType__OBJ1 == Tracked){ Stationary:0.1;Slow:0.9;Medium:0.0;Fast:0.0;VeryFast:0.0; }"+
  "if( Speed__OBJ1_T1 == Slow && TerrainType__RGN1 == OffRoad && TerrainType__RGN2 == OffRoad && ObjectType__OBJ1 == Tracked){ Stationary:0.1;Slow:0.9;Medium:0.0;Fast:0.0;VeryFast:0.0; }"+
  "if( Speed__OBJ1_T1 == Medium && TerrainType__RGN1 == Road && TerrainType__RGN2 == OffRoad && ObjectType__OBJ1 == Tracked){ Stationary:0.1;Slow:0.8;Medium:0.1;Fast:0.0;VeryFast:0.0; }"+
  "if( Speed__OBJ1_T1 == Stationary && TerrainType__RGN1 == Road && TerrainType__RGN2 == OffRoad && ObjectType__OBJ1 == Tracked){ Stationary:0.1;Slow:0.8;Medium:0.1;Fast:0.0;VeryFast:0.0; }"+
  "if( Speed__OBJ1_T1 == Fast && TerrainType__RGN1 == Road && TerrainType__RGN2 == OffRoad && ObjectType__OBJ1 == Tracked){ Stationary:0.1;Slow:0.8;Medium:0.1;Fast:0.0;VeryFast:0.0; }"+
  "if( Speed__OBJ1_T1 == VeryFast && TerrainType__RGN1 == Road && TerrainType__RGN2 == OffRoad && ObjectType__OBJ1 == Tracked){ Stationary:0.1;Slow:0.8;Medium:0.1;Fast:0.0;VeryFast:0.0; }"+
  "if( Speed__OBJ1_T1 == Slow && TerrainType__RGN1 == Road && TerrainType__RGN2 == OffRoad && ObjectType__OBJ1 == Tracked){ Stationary:0.1;Slow:0.8;Medium:0.1;Fast:0.0;VeryFast:0.0; }"+
  "if( Speed__OBJ1_T1 == Medium && TerrainType__RGN1 == VeryRough && TerrainType__RGN2 == Road && ObjectType__OBJ1 == Tracked){ Stationary:0.1;Slow:0.8;Medium:0.1;Fast:0.0;VeryFast:0.0; }"+
  "if( Speed__OBJ1_T1 == Stationary && TerrainType__RGN1 == VeryRough && TerrainType__RGN2 == Road && ObjectType__OBJ1 == Tracked){ Stationary:0.1;Slow:0.8;Medium:0.1;Fast:0.0;VeryFast:0.0; }"+
  "if( Speed__OBJ1_T1 == Fast && TerrainType__RGN1 == VeryRough && TerrainType__RGN2 == Road && ObjectType__OBJ1 == Tracked){ Stationary:0.1;Slow:0.8;Medium:0.1;Fast:0.0;VeryFast:0.0; }"+
  "if( Speed__OBJ1_T1 == VeryFast && TerrainType__RGN1 == VeryRough && TerrainType__RGN2 == Road && ObjectType__OBJ1 == Tracked){ Stationary:0.1;Slow:0.8;Medium:0.1;Fast:0.0;VeryFast:0.0; }"+
  "if( Speed__OBJ1_T1 == Slow && TerrainType__RGN1 == VeryRough && TerrainType__RGN2 == Road && ObjectType__OBJ1 == Tracked){ Stationary:0.1;Slow:0.8;Medium:0.1;Fast:0.0;VeryFast:0.0; }"+
  "if( Speed__OBJ1_T1 == Medium && TerrainType__RGN1 == OffRoad && TerrainType__RGN2 == Road && ObjectType__OBJ1 == Tracked){ Stationary:0.1;Slow:0.8;Medium:0.1;Fast:0.0;VeryFast:0.0; }"+
  "if( Speed__OBJ1_T1 == Stationary && TerrainType__RGN1 == OffRoad && TerrainType__RGN2 == Road && ObjectType__OBJ1 == Tracked){ Stationary:0.1;Slow:0.8;Medium:0.1;Fast:0.0;VeryFast:0.0; }"+
  "if( Speed__OBJ1_T1 == Fast && TerrainType__RGN1 == OffRoad && TerrainType__RGN2 == Road && ObjectType__OBJ1 == Tracked){ Stationary:0.1;Slow:0.8;Medium:0.1;Fast:0.0;VeryFast:0.0; }"+
  "if( Speed__OBJ1_T1 == VeryFast && TerrainType__RGN1 == OffRoad && TerrainType__RGN2 == Road && ObjectType__OBJ1 == Tracked){ Stationary:0.1;Slow:0.8;Medium:0.1;Fast:0.0;VeryFast:0.0; }"+
  "if( Speed__OBJ1_T1 == Slow && TerrainType__RGN1 == OffRoad && TerrainType__RGN2 == Road && ObjectType__OBJ1 == Tracked){ Stationary:0.1;Slow:0.8;Medium:0.1;Fast:0.0;VeryFast:0.0; }"+
  "if( Speed__OBJ1_T1 == Medium && TerrainType__RGN1 == Road && TerrainType__RGN2 == Road && ObjectType__OBJ1 == Tracked){ Stationary:0.1;Slow:0.8;Medium:0.1;Fast:0.0;VeryFast:0.0; }"+
  "if( Speed__OBJ1_T1 == Stationary && TerrainType__RGN1 == Road && TerrainType__RGN2 == Road && ObjectType__OBJ1 == Tracked){ Stationary:0.1;Slow:0.8;Medium:0.1;Fast:0.0;VeryFast:0.0; }"+
  "if( Speed__OBJ1_T1 == Fast && TerrainType__RGN1 == Road && TerrainType__RGN2 == Road && ObjectType__OBJ1 == Tracked){ Stationary:0.1;Slow:0.8;Medium:0.1;Fast:0.0;VeryFast:0.0; }"+
  "if( Speed__OBJ1_T1 == VeryFast && TerrainType__RGN1 == Road && TerrainType__RGN2 == Road && ObjectType__OBJ1 == Tracked){ Stationary:0.1;Slow:0.8;Medium:0.1;Fast:0.0;VeryFast:0.0; }"+
  "if( Speed__OBJ1_T1 == Slow && TerrainType__RGN1 == Road && TerrainType__RGN2 == Road && ObjectType__OBJ1 == Tracked){ Stationary:0.1;Slow:0.8;Medium:0.1;Fast:0.0;VeryFast:0.0; }"+
  "}"
  );
 
    //*** This works well at 12/12/2011 ***  
  public void shouNet_test ()
  {
    CPSCompilerMain cpsCompiler = new CPSCompilerMain();
        cpsCompiler.InitCompiler();
       
        cpsCompiler.compile( shouNet +
            "defineEvidence( ObjectType__OBJ1, Tracked );"+
          "run(DMP);"
       );
       
        //EDB.This().print("ROOT");
     }
  
  
 
  /**
   * @param args
   */
  public static void main(String[] args) {
    Discrete_Stress_Test T = new Discrete_Stress_Test();
    T.shouNet_test();
  }

}
TOP

Related Classes of Discrete_Stress_Test

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.