function [KB,KEY] = BR_KB_ACT0
%
% Variable Table
%   Index   Meaning
% -------------------
KEY(1).name = 'Human';
KEY(2).name = 'Car';
KEY(3).name = 'Truck';
KEY(4).name = 'Bus';
KEY(5) = 'North';
KEY(6) = 'South';
KEY(7) = 'East';
KEY(8) = 'West';
KEY(9) = 'CarNorth';
KEY(10) = 'CarSouth';
KEY(11) = 'CarEast';
KEY(12) = 'CarWest';
KEY(13) = 'TruckNorth';
KEY(14) = 'TruckSouth';
KEY(15) = 'TruckEast';
KEY(16) = 'TruckWest';
KEY(17) = 'BusNorth';
KEY(18) = 'BusSouth';
KEY(19) = 'BusEast';
KEY(20) = 'BusWest';
KEY(21) = 'SpeedGt0';
KEY(22).name = 'TurnedEastin6';
KEY(23).name = 'TurnedEastin5';
KEY(24).name = 'TurnedWestin6';
KEY(25).name = 'TurnedWestin5';
KEY(26).name = 'TurnedNorthin6';
KEY(27).name = 'TurnedNorthin5';
KEY(28).name = 'TurnedSouthin6';
KEY(29).name = 'TurnedSouthin5';
KEY(30).name = 'EnterParking1';
KEY(31).name = 'EnterParking2';
KEY(32).name = 'EnterParking3';
KEY(33).name = 'ExitParking1';
KEY(34).name = 'ExitParking2';
KEY(35).name = 'ExitParking3';

Human = 1;
Car = 2;
Truck = 3;
Bus = 4;
North = 5;
South = 6;
East = 7;
West = 8;
TruckNorth = 9;
TruckSouth = 10;
TruckEast = 11;
TruckWest = 12;
BusNorth = 13;
BusSouth = 14;
BusEast = 15;
BusWest = 16;
SpeedGt0 = 17;
TurnedEastin6 = 18;
TurnedEastin5 = 19;
TurnedWestin6 = 20;
TurnedWestin5 = 21;
TurnedNorthin6 = 22;
TurnedNorthin5 = 23;
TurnedSouthin6 = 24;
TurnedSouthin5 = 25;
EnterParking1 = 26;
EnterParking2 = 27;
EnterParking3 = 28;
ExitParking1 = 29;
ExitParking2 = 30;
ExitParking3 = 31;
CarTravelingNorth = 32;
CarTravelingSouth = 33;
HumanWalking = 34;
TruckTravelingNorth = 35;
TruckTravelingSouth = 36;
BusTravelingNorth = 37;
BusTravelingSouth = 38;
CarEnteringParking1 = 39;
CarEnteringParking2 = 40;
CarEnteringParking3 = 41;
CarExitingParking1 = 42;
CarExitingParking2 = 43;
CarExitingParking3 = 44;
TruckEnteringParking1 = 45;
TruckEnteringParking2 = 46;
TruckEnteringParking3 = 47;
TruckExitingParking1 = 48;
TruckExitingParking2 = 49;
TruckExitingParking3 = 50;
BusEnteringParking1 = 51;
BusEnteringParking2 = 52;
BusEnteringParking3 = 53;
BusExitingParking1 = 54;
BusExitingParking2 = 55;
BusExitingParking3 = 56;
HumanWalking = 57;
CarEast = 58;
CarWest = 59;

KB(1).clauses = [-Car,-North,CarTravelingNorth];
KB(1).prob = 0.9;

KB(2).clauses = [-Car,-South,CarTravelingSouth];
KB(2).prob = 0.9;

KB(3).clauses = [-Human,-SpeedGt0,HumanWalking];
KB(3).prob = 0.9;

KB(4).clauses = [-Truck,-North,TruckTravelingNorth];
KB(4).prob = 0.9;

KB(5).clauses = [-Truck,-South,TruckTravelingSouth];
KB(5).prob = 0.9;

KB(6).clauses = [-Bus,-North,BusTravelingNorth];
KB(6).prob = 0.9;

KB(6).clauses = [-Bus,-South,BusTravelingSouth];
KB(6).prob = 0.9;

KB(7).clauses = [-Car,-East,CarEast];
KB(7).prob = 0.9;

KB(8).clauses = [-Car,-West,CarWest];
KB(8).prob = 0.9;

KB(7).clauses = [-Car,-North,CarNorth];
KB(7).prob = 0.9;

KB(8).clauses = [-Car,-South,CarSouth];
KB(8).prob = 0.9;

KB(9).clauses = [-North,-TurnedNorthin6,CarEnteringParking1];
KB(9).prob = 0.9;

KB(8).clauses = [-East,-TurnedEastin5,CarEnteringParking2];
KB(8).prob = 0.9;

KB(9).clauses = [-West,-TurnedWestin6,CarEnteringParking3];
KB(9).prob = 0.9;
