Skip to content

oliver-pham/AssemblyLineSimulator

Repository files navigation

Assembly Line Simulator

About

This project simulates an assembly line that fills customer orders from inventory. Each customer order consists of a list of items that need to be filled. The line consists of a set of stations. Each station holds an inventory of items for filling customer orders and a queue of orders to be filled. Each station fills the next order in the queue if that order requests its item and that item is still in stock. A line manager moves the customer orders from station to station until all orders have been processed. Any station that has used all of the items in stock cannot fill any more orders. Orders become incomplete due to a lack of inventory at one or more stations. At the end of all processing, the line manager lists the completed orders and the orders that are incomplete.

Getting Started

Build

  1. G++ Compiler:
g++ --std=c++17 Utilities.cpp Station.cpp CustomerOrder.cpp Workstation.cpp LineManager.cpp tests/test.cpp -o cmake-build-debug/AssemblyLineSimulator
  1. CMake:
cmake --build cmake-build-debug/

Run

cd tests/
../cmake-build-debug/AssemblyLineSimulator Stations1.txt Stations2.txt CustomerOrders.txt AssemblyLine.txt

Sample Output

The first snapshot of the output of a sample test

The second snapshot of the output of a sample test

The third snapshot of the output of a sample test

The fourth snapshot of the output of a sample test

About

A console application that simulates an assembly line

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published