function [KB,KEY] = BR_KB_ACT
%
% Variable Table
%   Index   Meaning
% -------------------
KEY(1).name = 'Track1';
KEY(2).name = 'Track2';
KEY(3).name = 'Track3';
KEY(4).name = 'Track4';
KEY(5).name = 'Track5';
KEY(6).name = 'Track6';
KEY(7).name = 'Track7';
KEY(8).name = 'Track8';
KEY(9).name = 'Track9';
KEY(10).name = 'Track10';
KEY(11).name = 'Track11';
KEY(12).name = 'Track12';
KEY(13).name = 'Track13';
KEY(14).name = 'Track14';
KEY(15).name = 'Track15';
KEY(16).name = 'Track16';
KEY(17).name = 'Track17';
KEY(18).name = 'Track18';
KEY(19).name = 'Track19';
KEY(20).name = 'Track20';
KEY(21).name = 'Track21';
KEY(22).name = 'Track22';
KEY(23).name = 'Track23';
KEY(24).name = 'Track24';
KEY(25).name = 'Track25';
KEY(26).name = 'Track26';
KEY(27).name = 'Human';
KEY(28).name = 'Car';
KEY(29).name = 'Truck';
KEY(30).name = 'Bus';
KEY(31).name = 'SpeedGt0';
KEY(32).name = 'CarTravelingNorth';
KEY(33).name = 'TruckTravelingNorth';
KEY(34).name = 'BusTravelingNorth';
KEY(35).name = 'CarTravelingSouth';
KEY(36).name = 'TruckTravelingSouth';
KEY(37).name = 'BusTravelingSouth';
KEY(38).name = 'CarEnteringParking1';
KEY(39).name = 'TruckEnteringParking1';
KEY(40).name = 'BusEnteringParking1';
KEY(41).name = 'CarEnteringParking2';
KEY(42).name = 'TruckEnteringParking2';
KEY(43).name = 'BusEnteringParking2';
KEY(44).name = 'CarEnteringParking3';
KEY(45).name = 'TruckEnteringParking3';
KEY(46).name = 'BusEnteringParking3';
KEY(47).name = 'CarExitingParking1';
KEY(48).name = 'TruckExitingParking1';
KEY(49).name = 'BusExitingParking1';
KEY(50).name = 'CarExitingParking2';
KEY(51).name = 'TruckExitingParking2';
KEY(52).name = 'BusExitingParking2';
KEY(53).name = 'CarExitingParking3';
KEY(54).name = 'TruckExitingParking3';
KEY(55).name = 'BusExitingParking3';
KEY(56).name = 'HumanWalking';

Track1 = 1;
Track2 = 2;
Track3 = 3;
Track4 = 4;
Track5 = 5;
Track6 = 6;
Track7 = 7;
Track8 = 8;
Track9 = 9;
Track10 = 10;
Track11 = 11;
Track12 = 12;
Track13 = 13;
Track14 = 14;
Track15 = 15;
Track16 = 16;
Track17 = 17;
Track18 = 18;
Track19 = 19;
Track20 = 20;
Track21 = 21;
Track22 = 22;
Track23 = 23;
Track24 = 24;
Track25 = 25;
Track26 = 26;
Human = 27;
Car = 28;
Truck = 29;
Bus = 30;
SpeedGt0 = 31;
CarTravelingNorth = 32;
TruckTravelingNorth = 33;
BusTravelingNorth = 34;
CarTravelingSouth = 35;
TruckTravelingSouth = 36;
BusTravelingSouth = 37;
CarEnteringParking1 = 38;
TruckEnteringParking1 = 39;
BusEnteringParking1 = 40;
CarEnteringParking2 = 41;
TruckEnteringParking2 = 42;
BusEnteringParking2 = 43;
CarEnteringParking3 = 44;
TruckEnteringParking3 = 45;
BusEnteringParking3 = 46;
CarExitingParking1 = 47;
TruckExitingParking1 = 48;
BusExitingParking1 = 49;
CarExitingParking2 = 50;
TruckExitingParking2 = 51;
BusExitingParking2 = 52;
CarExitingParking3 = 53;
TruckExitingParking3 = 54;
BusExitingParking3 = 55;
HumanWalking = 56;

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

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

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

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

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

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

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

KB(7).clauses = [-Car,-Track3,CarEnteringParking1];
KB(7).prob = 0.9;

KB(8).clauses = [-Car,-Track4,CarEnteringParking1];
KB(8).prob = 0.9;

KB(9).clauses = [-Car,-Track5,CarEnteringParking1];
KB(9).prob = 0.9;

KB(10).clauses = [-Car,-Track6,CarEnteringParking1];
KB(10).prob = 0.9;

KB(11).clauses = [-Truck,-Track3,TruckEnteringParking1];
KB(11).prob = 0.9;

KB(12).clauses = [-Truck,-Track4,TruckEnteringParking1];
KB(12).prob = 0.9;

KB(13).clauses = [-Truck,-Track5,TruckEnteringParking1];
KB(13).prob = 0.9;

KB(14).clauses = [-Truck,-Track6,TruckEnteringParking1];
KB(14).prob = 0.9;

KB(15).clauses = [-Bus,-Track3,BusEnteringParking1];
KB(15).prob = 0.9;

KB(16).clauses = [-Bus,-Track4,BusEnteringParking1];
KB(16).prob = 0.9;

KB(17).clauses = [-Bus,-Track5,BusEnteringParking1];
KB(17).prob = 0.9;

KB(18).clauses = [-Bus,-Track6,BusEnteringParking1];
KB(18).prob = 0.9;

KB(19).clauses = [-Car,-Track7,CarEnteringParking2];
KB(19).prob = 0.9;

KB(20).clauses = [-Car,-Track8,CarEnteringParking2];
KB(20).prob = 0.9;

KB(21).clauses = [-Car,-Track9,CarEnteringParking2];
KB(21).prob = 0.9;

KB(22).clauses = [-Car,-Track10,CarEnteringParking2];
KB(22).prob = 0.9;

KB(23).clauses = [-Truck,-Track7,TruckEnteringParking2];
KB(23).prob = 0.9;

KB(24).clauses = [-Truck,-Track8,TruckEnteringParking2];
KB(24).prob = 0.9;

KB(25).clauses = [-Truck,-Track9,TruckEnteringParking2];
KB(25).prob = 0.9;

KB(26).clauses = [-Truck,-Track10,TruckEnteringParking2];
KB(26).prob = 0.9;

KB(27).clauses = [-Bus,-Track7,BusEnteringParking2];
KB(27).prob = 0.9;

KB(28).clauses = [-Bus,-Track8,BusEnteringParking2];
KB(28).prob = 0.9;

KB(29).clauses = [-Bus,-Track9,BusEnteringParking2];
KB(29).prob = 0.9;

KB(30).clauses = [-Bus,-Track10,BusEnteringParking2];
KB(30).prob = 0.9;

KB(31).clauses = [-Car,-Track11,CarEnteringParking3];
KB(31).prob = 0.9;

KB(32).clauses = [-Car,-Track12,CarEnteringParking3];
KB(32).prob = 0.9;

KB(33).clauses = [-Car,-Track13,CarEnteringParking3];
KB(33).prob = 0.9;

KB(34).clauses = [-Car,-Track14,CarEnteringParking3];
KB(34).prob = 0.9;

KB(35).clauses = [-Truck,-Track11,TruckEnteringParking3];
KB(35).prob = 0.9;

KB(36).clauses = [-Truck,-Track12,TruckEnteringParking3];
KB(36).prob = 0.9;

KB(37).clauses = [-Truck,-Track13,TruckEnteringParking3];
KB(37).prob = 0.9;

KB(38).clauses = [-Truck,-Track14,TruckEnteringParking3];
KB(38).prob = 0.9;

KB(39).clauses = [-Bus,-Track11,BusEnteringParking3];
KB(39).prob = 0.9;

KB(40).clauses = [-Bus,-Track12,BusEnteringParking3];
KB(40).prob = 0.9;

KB(41).clauses = [-Bus,-Track13,BusEnteringParking3];
KB(41).prob = 0.9;

KB(42).clauses = [-Bus,-Track14,BusEnteringParking3];
KB(42).prob = 0.9;

KB(43).clauses = [-Car,-Track15,CarExitingParking1];
KB(43).prob = 0.9;

KB(44).clauses = [-Car,-Track16,CarExitingParking1];
KB(44).prob = 0.9;

KB(45).clauses = [-Car,-Track17,CarExitingParking1];
KB(45).prob = 0.9;

KB(46).clauses = [-Car,-Track18,CarExitingParking1];
KB(46).prob = 0.9;

KB(47).clauses = [-Truck,-Track15,TruckExitingParking1];
KB(47).prob = 0.9;

KB(48).clauses = [-Truck,-Track16,TruckExitingParking1];
KB(48).prob = 0.9;

KB(49).clauses = [-Truck,-Track17,TruckExitingParking1];
KB(49).prob = 0.9;

KB(50).clauses = [-Truck,-Track18,TruckExitingParking1];
KB(50).prob = 0.9;

KB(51).clauses = [-Bus,-Track15,BusExitingParking1];
KB(51).prob = 0.9;

KB(52).clauses = [-Bus,-Track16,BusExitingParking1];
KB(52).prob = 0.9;

KB(53).clauses = [-Bus,-Track17,BusExitingParking1];
KB(53).prob = 0.9;

KB(54).clauses = [-Bus,-Track18,BusExitingParking1];
KB(54).prob = 0.9;

KB(55).clauses = [-Car,-Track19,CarExitingParking2];
KB(55).prob = 0.9;

KB(56).clauses = [-Car,-Track20,CarExitingParking2];
KB(56).prob = 0.9;

KB(57).clauses = [-Car,-Track21,CarExitingParking2];
KB(57).prob = 0.9;

KB(58).clauses = [-Car,-Track22,CarExitingParking2];
KB(58).prob = 0.9;

KB(59).clauses = [-Truck,-Track19,TruckExitingParking2];
KB(59).prob = 0.9;

KB(60).clauses = [-Truck,-Track20,TruckExitingParking2];
KB(60).prob = 0.9;

KB(61).clauses = [-Truck,-Track21,TruckExitingParking2];
KB(61).prob = 0.9;

KB(62).clauses = [-Truck,-Track22,TruckExitingParking2];
KB(62).prob = 0.9;

KB(63).clauses = [-Bus,-Track19,BusExitingParking2];
KB(63).prob = 0.9;

KB(64).clauses = [-Bus,-Track20,BusExitingParking2];
KB(64).prob = 0.9;

KB(65).clauses = [-Bus,-Track21,BusExitingParking2];
KB(65).prob = 0.9;

KB(66).clauses = [-Bus,-Track22,BusExitingParking2];
KB(66).prob = 0.9;

KB(67).clauses = [-Car,-Track23,CarExitingParking3];
KB(67).prob = 0.9;

KB(68).clauses = [-Car,-Track24,CarExitingParking3];
KB(68).prob = 0.9;

KB(69).clauses = [-Car,-Track25,CarExitingParking3];
KB(69).prob = 0.9;

KB(70).clauses = [-Car,-Track26,CarExitingParking3];
KB(70).prob = 0.9;

KB(71).clauses = [-Truck,-Track23,TruckExitingParking3];
KB(71).prob = 0.9;

KB(72).clauses = [-Truck,-Track24,TruckExitingParking3];
KB(72).prob = 0.9;

KB(73).clauses = [-Truck,-Track25,TruckExitingParking3];
KB(73).prob = 0.9;

KB(74).clauses = [-Truck,-Track26,TruckExitingParking3];
KB(74).prob = 0.9;

KB(75).clauses = [-Bus,-Track23,BusExitingParking3];
KB(75).prob = 0.9;

KB(76).clauses = [-Bus,-Track24,BusExitingParking3];
KB(76).prob = 0.9;

KB(77).clauses = [-Bus,-Track25,BusExitingParking3];
KB(77).prob = 0.9;

KB(78).clauses = [-Bus,-Track26,BusExitingParking3];
KB(78).prob = 0.9;

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