Rule Base Documentation

Michael Wales - NeedMoreHP@yahoo.com
EEL 5874 - Expert Systems and Knowledge Engineering

Modification history:

VersionDateWhoComment
Version 1.0April 17, 2002Michael WalesInitial document

Purchase-Med-Hardware
This rule purchases the components that have their need labeld as MED.
purchasing-standard-hardware
This rule purchases the components that have their need labeld as STD.
eliminate-mouse-rule2
This rule is fired if there are facts stating that the system should need a wireless mouse, plus a regular mouse. The system only needs 1 mouse, so the standard mouse fact is eliminated in favor of the wireless mouse.

eliminate-mouse-rule1
This rule is fired if there are facts stating that the system should need an optical mouse, plus a regular mouse. The system only needs 1 mouse, so the standard mouse fact is eliminated in favor of the optical mouse.
graphics-rule
This rule is fired when the user states that they want a computer sytem for graphics development applications. This rule then asserts facts that will get JESS to purchase the hardware components that are critical to this applications performance.
DDR-Ram-med-max-rule
This rule will cause any systems with a MED motherboard need, and a MAX CPU need, to require DDR high speed RAM because it is much faster than the slower PC133 RAM.

ask-for-budget-rule
This rule asks the user how much they expect to spend on their new computer system. This rule is fired after the hardware characteristics have been developed, and before any hardware is purchased.
DDR-Ram-max-med-rule
This rule will cause any systems with a MAX motherboard need, and a MED CPU need, to require DDR high speed RAM because it is much faster than the slower PC133 RAM.
all-in-wonder-med-rule
This rule is fired when the hardware characterization calls for both a capture card and a graphics card. The All-In-Wonder series is a graphics card with built in capture, TV tuner capabilities, and MPEG2 decoding. The med importance of this component comes from the importance of the video card. This rule also erases the facts for the capture card and video card.

videoediting-rule
This rule is fired when the user states that they want a computer sytem for video-editing applications. This rule then asserts facts that will get JESS to purchase the hardware components that are critical to this applications performance.
Purchase-Max-Hardware-Second-State
This rule purchases the components that have their need labeld as MAX for the second time during the purchasing loop.
gaming-rule
This rule is fired when the user states that they want a computer sytem for gaming applications. This rule then asserts facts that will get JESS to purchase the hardware components that are critical to this applications performance.

eliminate-med-rule
This rule is used to eliminate redundant hardware characteristic information. If a piece of hardware has a need of both MED and MAX, the need for the computer system as a whole is MAX, and the fact pertaining to the MED need can be erased.
wireless-optical-mouse-rule
This rule is fired if there are facts stating that the system should need a wireless mouse, plus an optical mouse. The system only needs 1 mouse, so a fact is asserted stating the mouse should be an optical wireless mouse. The facts for a plain wireless mouse, and a plain optical mouse are deleted.
audiophile-rule
This rule is fired when the user states that they want a computer sytem with the best audio periphereals. This rule then asserts facts that will get JESS to purchase the hardware components that are critical audio quality.

print-system-info
This rule is fired after JESS decides than it cannot afford to upgrade the build sheet anymore. This rule gets the ComputerAdvice java program to print out a list of the components that JESS has put on the build sheet.
development-rule
This rule is fired when the user states that they want a computer sytem for software development applications. This rule then asserts facts that will get JESS to purchase the hardware components that are critical to this applications performance.
eliminate-std2-rule
This rule is used to eliminate redundant hardware characteristic information. If a piece of hardware has a need of both STD and MED, the need for the computer system as a whole is MED, and the fact pertaining to the STD need can be erased.

purchase-hardware
This rule is fired when the purchasing loop (max, med, max, loop) is at the same state of a hardware need fact. So if there is a fact like (HWNeed RAM med) and the Puchase-Med-Hardware just fired, JESS will tell the ComputerAdvice program that the RAM needs to be upgraded to the next level.
internet-rule
This rule is fired when the user states that they want a computer sytem for basic Internet surfing. This rule then asserts facts that will get JESS to purchase the hardware components that are critical to this applications performance.
ddr-motherboard-med-rule
This rule fires when there is hardware need for both a PC133 and DDR motherboard. This rule will then eliminate the PC133 motherboard need.

choose-a-monitor-rule
This rule is fired when the user selects that they would like to purchase a new monitor with their new computer system. The rule simple asks the user if they would like a standard monitor, or if the system should try to upgrade them to a nicer monitor.
DDR-Ram-max-max-rule
This rule will cause any systems with a MAX motherboard need, and a MAX CPU need, to require DDR high speed RAM because it is much faster than the slower PC133 RAM.
eliminate-kb-rule
This rule is fired when there is hardware characteristic needs for both a standard keyboard and a wireless keyboard. This rule eliminates the fact that there is a need for the standard keyboard since the wireless keyboard will replace it.

all-in-wonder-max-rule
This rule is fired when the hardware characterization calls for both a capture card and a graphics card. The All-In-Wonder series is a graphics card with built in capture, TV tuner capabilities, and MPEG2 decoding. The max importance of this component comes from the importance of the video card. This rule also erases the facts for the capture card and video card.
webserver-rule
This rule is fired when the user states that they want a computer sytem for web-server applications. This rule then asserts facts that will get JESS to purchase the hardware components that are critical to this applications performance.
Purchase-Max-Hardware-First-State
This rule purchases the components that have their need labeld as MAX for the first time during the purchasing loop.

eliminate-pc128ram-rule
This rule is fired when there are hardware characteristic needs for both PC133 and DDR ram. This rule eliminates the fact for the PC133 ram, in favor of the superior DDR ram.
printer-fax-scanner-rule
This rule is used when there is a need for a nice scanner and a nice printer. Those rules are replaced with a single rule for an all-in-one machine that has built in printer/scanner/fax/copier functionality.
multimediaserver-rule
This rule is fired when the user states that they want a computer sytem for multimedia server applications. This rule then asserts facts that will get JESS to purchase the hardware components that are critical to this applications performance.

all-in-wonder-std-rule
This rule is fired when the hardware characterization calls for both a capture card and a graphics card. The All-In-Wonder series is a graphics card with built in capture, TV tuner capabilities, and MPEG2 decoding. The std importance of this component comes from the importance of the video card. This rule also erases the facts for the capture card and video card.
more-purchases
This rule is fired after a complete hardware upgrading cycle (max, med, max). It determines if any money was spent to upgrade the hardware. If no money was spent on upgrading hardware, JESS has run out of money, and the build sheet will be printed. If money was spent, the cycle is restarted another time.
DDR-Ram-med-med-rule
This rule will cause any systems with a MED motherboard need, and a MED CPU need, to require DDR high speed RAM because it is much faster than the slower PC133 RAM.

office-rule
This rule is fired when the user states that they want a computer sytem for home office applications. This rule then asserts facts that will get JESS to purchase the hardware components that are critical to this applications performance.
startup-rule
This is the first rule that is fired. This rule signals to JESS that the ComputerAdvice program has a user ready to use the system. It then asks the user what applications they would mainly be using on their computer system (and asserts a fact for each "yes" answer). It also asserts the hardware needs for the bare minimum computer system.
ddr-motherboard-max-rule
This rule fires when there is hardware need for both a PC133 and DDR motherboard. This rule will then eliminate the PC133 motherboard need.

eliminate-std-rule
This rule is used to eliminate redundant hardware characteristic information. If a piece of hardware has a need of both STD and MAX, the need for the computer system as a whole is MAX, and the fact pertaining to the STD need can be erased.