Skip to content

jbpayne/TechTalentInfiniti

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

149 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tech Talent Infiniti - current release: v0.17.1

Tech Talent Infiniti Car Dealership Sale Request Creation And Management Tool

Created by Jonathan Payne, Jordan Mor and Teague O'Connor
Copyright © 2019. All Rights Reserved®

Developed using Eclipse version: 2019-03 (4.11.0) Java SDK 12.0.1 jUnit testing provided by jUnit5

Welcome to the Tech Talent Infiniti User Reference and Design Manual

A Java command line program designed to read user entry from a menu prompt, create a sale request ticket, and place it into the appropriate queue in order. The sale request tickets are then retrieved from each queue and serviced in the order received.

The Program takes entry as the "Front Desk." The Front Desk is then able to place the entries into three distinct queues, Full Sale, Lease, and Finance. Each category receives its own queue, into which requests are stored, and from which they are gathered. Requests for vehicles are then stored and matched with existing vehicles that are hard coded into our program. Vehicles are stored in a HashMap within the VehicleInventory class, paired with a unique key that matches the stock number.

Running The Program

You will need to download the self-contained Java jar file named tti.jar.

To run on command line, change to the directory containing tti.jar and run:

java -jar tti.jar

Please visit the Release page for details.

Individual Program Structure:

Program files reside in the com.tti package within src/com/tti
IVehicle.java Interface
Contains methods implemented by Vehicle.java Class
Vehicle.java Class
The Vehicle class implements the IVehicle.java interface. The Vehicle Class constructs the Vehicle object, in which the vehicle information is stored. Getter and Setter functions are created within the class in order to make the data available within the package.
VehicleInventory.java Class
Creates a hashmap to store the vehicles with int key. Provides a way to list the vehicles in the hashmap, with filters for lease vehicles and inactive vehicles. Provide a method to remove a vehicle from inventory.
ILightTruck Interface
Contains methods implemented by LightTruck.java Class
LightTruck.java Class
Vehicles are broken into two types: vehicle and light truck. The LightTruck class extends the Vehicle class and implements IVehicle and ILightTruck interfaces. Getter and Setter functions are created within the class in order to make the data available within the package.
IClient.java Interface
Contains Methods implemented by Client.java Class
Client.java Class
Client.java class implements the IClient.java interface. The Client Class then constructs the Client Object, which is used to store Client information. Client information (Full Name, Address, Phone, Number and id number) is then stored in the Client object. Getter and Setter functions are created within the class in order to make the data available within the package.
ISaleRequest.java Interface
Contains Methods implemented by SaleRequest.java Class
SaleRequest.java Class
SalesRequest Class implements the ISaleRequest.java Class, which abstracts the corresponding variables and methods. The SalesRequest.java class constructs the SalesRequest object, with parameters (Vehicle Object, Type of Sale String and Client Object). The SalesRequest Object will then be used to match a customer to a vehicle.
FrontDeskMenu.java
Imports libraries java.util.Scanner; Takes user input, stored as Client object, then creates a SaleRequest object, in which it stores the Client object along with a selected Vehicle object, finally placing the SaleRequest object in the appropriate queue.
Queues.java class
Data Structures used to store the SaleRequest objects and return them in the same order they were stored. Imports Libraries: java.util.ArrayDeque java.util.Queue
  • Instantiates a new instance of the FullSale queue.
  • Instantiates a new instance of the Finance queue.
  • Instantiate a new instance of Lease queue.

About

TTI is a Java program for creating and managing sale request tickets at a car dealership.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages