Index
All Classes and Interfaces|All Packages
A
- addProduct(Product) - Method in class ShippingManifest
-
Adds a product the ArrayList instance object.
C
- createManifest(ArrayList<File>) - Static method in class ShippingMain
-
Reads through list of File objects provided as parameter.
- createProduct(Scanner) - Static method in class ShippingMain
-
This method loops through the fileScanner parameter provided, using the Scanner.hasNextLine() method and creates a Product object from the data being read.
- currentLocation - Variable in class ShippingManifest
-
Indicates what zipcode we are currently at, used to stop Products from being forwarded, as they should be distributed when in their destination zipcode.
D
- destination - Variable in class Product
- distributeProducts() - Method in class ShippingManifest
-
Used to "distribute" Product objects to their address instead of zip code.
F
- FileHelper - Class in Unnamed Package
-
This class is used to get the original File object which leads to a directory, the File object is then converted to an Arraylist carrying File objects that lead to each file in the directory.
- FileHelper() - Constructor for class FileHelper
- forwardProducts(int) - Method in class ShippingManifest
-
Used to "forward" Product objects to their destination.
G
- getDestination() - Method in class Product
-
Gets the destination int.
- getFileDirectory(String) - Method in class FileHelper
-
Takes a folder path as a parameter and creates a File object out of it, this File object is a directory, so it is converted to an Arraylist holding File objects.
- getFileScanner(File) - Method in class FileHelper
-
A File object is used to create a Scanner object to read from.
- getName() - Method in class Product
-
Gets the name String.
- go(Scanner, ShippingManifest) - Static method in class ShippingMain
-
This method prints the splash and reads from the provided Scanner object, using Scanner.nextLine().
M
- main(String[]) - Static method in class ShippingMain
-
This method creates an ArrayList of files from the provided "ShipmentFolder" directory, From that Arraylist a manifest is created and provided as a parameter, along with a Scanner object to our
ShippingMain#go()method.
N
P
- price - Variable in class Product
- printManifest() - Method in class ShippingManifest
-
Prints each Product objects toString().
- printSplash() - Static method in class ShippingMain
-
This method prints the "splash" or "help" screen when someone uses the program.
- Product - Class in Unnamed Package
-
This class is to be used as a container for Product data.
- Product() - Constructor for class Product
-
Default constructor for Product, all values are set to be invalid.
- Product(String, int, double, double, int, int) - Constructor for class Product
-
Overloaded constructor that requires all values for construction.
- productList - Variable in class ShippingManifest
-
ArrayList that functions as our contained for Product objects.
Q
S
- ShippingMain - Class in Unnamed Package
-
This class uses helper methods and objects to read through the ShipmentFolder directory and construct a ShippingManifest object that is populated with Product objects.
- ShippingMain() - Constructor for class ShippingMain
- ShippingManifest - Class in Unnamed Package
-
This class is used as a list of products that are being shipped.
- ShippingManifest() - Constructor for class ShippingManifest
- sku - Variable in class Product
T
- toString() - Method in class Product
-
Returns String format of a Product object.
W
A C D F G M N P Q S T WAll Classes and Interfaces|All Packages