The goal of this, Java coded, project was to create an orders processor using both single threaded and multithreaded programming. In our class we were given data files in set sizes from 20 -1,000 as well as a file that listed the different types of items. We were to save our order summaries in a results file.
The project was unrestricted in its design, other than an OrdersProcessor class with a main method to be run. I designed my project with 5 classes.
The Item class was created for an item's name, cost and quantity.
The Order class represented the order's id and list of items.
The Processor, which extended the java Thread class, read the files and changes objects accordingly.
The OrderSummary organized all orders into a cohesive summary string.
Finally, the OrdersProcessor class ran a main method to initiate all threads and keep track of the time and results file.
After the processing was finished the summary string is created from the bottom up, starting with the item's creating their strings, then the orders, then the summary of the orders.
In this particular school project I was completely successful, passing all of the required test for the class. Given more time I would probably improve the user interface, including adding a GUI, which was not required from my class. Below is an example of the input output from the main method, as well as an example of the order summary.