C# interface

Previous program made good use of the opportunities that gives us JESS, but he unfriendly to the user. This user interface has been designed in C #. Despite universal integration platform JESS JAVA on which it is based, this solution proved to be very simple to implement and effective in operation.

Download link

When you start the program, enter the parameters of the car in the left menu. Then you should save them (the program then creates a file fakty.clp).

If any information is not provided, or will be entered incorrectly the system will show an error.

After saving the data, start the console (button run). Console will appear running peugeot.clp file. After completing the application, data will be saved with the file wyniki.txt. Inference module is built into JESS and automatically (both forwards and backwards). Then, when you click (the button results) in the list on the right appear the proposed cars. Double-clicking the left mouse button to launch the Web browser booklet containing the specifications of the vehicle model. It may happen that the system will not be able to choose the right model to set requirements (manufacturer's range is limited), will show the corresponding message

To everything worked properly we must remember the appropriate paths. I solved this by changing the default path to the folder containing the engine JESS. At this point I keep a file with the facts, and the results - thanks to them communicates with the created interface.

Start method call, the library System.Diagnostics allows us to run the batch file available in the path specified in the argument. Remember the right amount of character '\'.

StreamWriter class is available in the library System.IO. I present a way to create the appropriate text file with the facts. We enclose it later in the main file of expert system instead of collecting data from the user to the console.