diff --git a/assesment/code/rule_dir/example.txt b/assesment/code/rule_dir/example.txt index 8b779ca..22ddcb3 100644 --- a/assesment/code/rule_dir/example.txt +++ b/assesment/code/rule_dir/example.txt @@ -23,5 +23,5 @@ small 50 50 50 50 moderate 100 100 50 50 big 150 150 50 50 -journey_time = 9 -driving = 65 +journey_time = 20 +driving = 90 diff --git a/assesment/code/rule_dir/gearbox.txt b/assesment/code/rule_dir/gearbox.txt deleted file mode 100644 index b46a360..0000000 --- a/assesment/code/rule_dir/gearbox.txt +++ /dev/null @@ -1,49 +0,0 @@ -gearbox rulebase - -Rule 1 If the RPM is critical then change_gear is up -Rule 2 If the RPM is high and throttle is middle and profile is smooth then change_gear is up -Rule 3 If the RPM is medium and throttle is low and profile is sharp then change_gear is up -Rule 4 If the RPM is low and throttle is low then change_gear is down -Rule 5 If the RPM is medium and throttle is low and profile is sharp then change_gear is down -Rule 6 If the RPM is medium and throttle is floor then change_gear is down -Rule 7 If the RPM is medium and throttle is low and profile is sharp then change_gear is down -Rule 8 If the RPM is high and throttle is low and profile is smooth then change_gear is up -Rule 9 If the RPM is high and throttle is low and profile is sharp then change_gear is no_change -Rule 10 If the RPM is high and throttle is floor then change_gear is no_change -Rule 11 If the RPM is medium and throttle is middle then change_gear is up -Rule 12 If the RPM is high and throttle is middle then change_gear is up -Rule 13 If the RPM is high and profile is sharp then change_gear is no_change -Rule 14 If the RPM is medium and throttle is low and profile is smooth then change_gear is no_change -Rule 15 If the RPM is low and throttle is up then change_gear is down -Rule 16 If the RPM is medium and throttle is up and profile is smooth then change_gear is no_change -Rule 17 If the RPM is medium and throttle is up and profile is sharp then change_gear is down -Rule 18 If the RPM is medium and throttle is low then change_gear is no_change - -RPM - -low 1000 2000 0 500 -medium 3000 4000 1000 1000 -high 5000 6000 1000 1000 -critical 7000 12000 500 0 - -throttle - -up 0 20 0 25 -middle 40 60 10 10 -low 70 85 10 10 -floor 100 100 15 0 - -profile - -smooth 0 0 0 10 -sharp 10 10 10 0 - -change_gear - -down -1 -1 1 1 -no_change 0 0 1 1 -up 1 1 1 1 - -RPM = 5500 -throttle = 80 -profile = 8 diff --git a/assesment/code/rule_dir/washing_machine.txt b/assesment/code/rule_dir/washing_machine.txt index 6534777..c218d0d 100644 --- a/assesment/code/rule_dir/washing_machine.txt +++ b/assesment/code/rule_dir/washing_machine.txt @@ -21,20 +21,20 @@ heavy 4000 5000 800 0 dirt -low 0 500 0 500 -medium 500 1500 500 1000 -high 3000 5000 200 0 +low 0 500 0 1000 +medium 1000 1500 500 2000 +high 4000 5000 500 0 program -eco 0 0 0 5 -fast 5 5 5 0 +eco 0 0 0 4 +fast 4 4 4 0 detergent -little 0 20 0 15 -normal 50 50 15 20 +little 0 20 0 10 +normal 50 50 20 10 -dirt = 5000 -weight = 5000 -program = 5 +weight = 3000 +dirt = 3000 +program = 4