From fe2db10f233ec26c87b24c8c5208c2ac6e020595 Mon Sep 17 00:00:00 2001 From: Caleb Fontenot Date: Tue, 21 Mar 2023 06:50:57 -0500 Subject: [PATCH] update --- .../Printed HTMLs/Bicycle.html | 298 ++++++++++++++++++ .../Printed HTMLs/BikeStores.html | 298 ++++++++++++++++++ .../Printed HTMLs/ChildBike.html | 84 +++++ .../Printed HTMLs/Details.html | 81 +++++ .../Printed HTMLs/MountainBike.html | 86 +++++ .../Printed HTMLs/SpeedBike.html | 94 ++++++ .../mp4_calebfontenot/BikeStores.java | 6 +- Semester 2/ZIPs/MP4_CalebFontenot.zip | Bin 9028 -> 22014 bytes 8 files changed, 944 insertions(+), 3 deletions(-) create mode 100644 Semester 2/Assignments/MP4_CalebFontenot/Printed HTMLs/Bicycle.html create mode 100644 Semester 2/Assignments/MP4_CalebFontenot/Printed HTMLs/BikeStores.html create mode 100644 Semester 2/Assignments/MP4_CalebFontenot/Printed HTMLs/ChildBike.html create mode 100644 Semester 2/Assignments/MP4_CalebFontenot/Printed HTMLs/Details.html create mode 100644 Semester 2/Assignments/MP4_CalebFontenot/Printed HTMLs/MountainBike.html create mode 100644 Semester 2/Assignments/MP4_CalebFontenot/Printed HTMLs/SpeedBike.html diff --git a/Semester 2/Assignments/MP4_CalebFontenot/Printed HTMLs/Bicycle.html b/Semester 2/Assignments/MP4_CalebFontenot/Printed HTMLs/Bicycle.html new file mode 100644 index 0000000..c219a7d --- /dev/null +++ b/Semester 2/Assignments/MP4_CalebFontenot/Printed HTMLs/Bicycle.html @@ -0,0 +1,298 @@ + + + +BikeStores.java + + + + +
/home/caleb/ASDV-Java/Semester 2/Assignments/MP4_CalebFontenot/src/main/java/com/calebfontenot/mp4_calebfontenot/BikeStores.java
+
+/*
+ * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
+ * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
+ */
+package com.calebfontenot.mp4_calebfontenot;
+
+import java.util.ArrayList;
+import java.util.Collection;
+
+/**
+ *
+ * @author caleb
+ */
+public class BikeStores {
+
+    ArrayList<ArrayList<Bicycle>> storesOfBikes = new ArrayList<ArrayList<Bicycle>>();
+
+    /**
+     * Add a bike at storeNumber ( i.e. the storeNumber indicates the store)
+     *
+     * @param storeNumber which store
+     * @param b the bike to add
+     * @return true if the bike added, false if the storeNumber is invalid or b is null.
+     */
+    public BikeStores() {
+        for (int i = 0; i < 3; i++) {
+            storesOfBikes.add(new ArrayList<Bicycle>());
+        }
+    }
+
+    public boolean addBike(int storeNumber, Bicycle b) {
+        if (storeNumber < 0 || storeNumber > this.storesOfBikes.size() - 1) {
+            return false;
+        }
+        if (b == null) {
+            return false;
+        }
+        System.out.println("Attempting to add " + b + " to store at index " + storeNumber);
+        //Unpack array
+        ArrayList<Bicycle> bikesInInventory = storesOfBikes.get(storeNumber);
+        bikesInInventory.add(b);
+
+        // Repack array
+        storesOfBikes.set(storeNumber, bikesInInventory);
+        System.out.println("success!");
+        return true;
+    }
+
+    /**
+     * Removes a bike at a specific store.
+     *
+     * @param storeNumber the store that has the bike
+     * @param b the bike to be removed
+     * @return true of the bike is removed, false if the bike does not exist, or bike is null.
+     */
+    public boolean removeBike(int storeNumber, Bicycle b) {
+        if (storeNumber < 0 || storeNumber > this.storesOfBikes.size() - 1) {
+            return false;
+        }
+        if (b == null) {
+            return false;
+        }
+        System.out.println("Attempting to remove " + b + " to store at index " + storeNumber);
+        // Remove bike from array.
+        ArrayList<Bicycle> bikesInInventory = storesOfBikes.get(storeNumber);
+        bikesInInventory.remove(b); //YEET
+        System.out.println("success!");
+        return true;
+    }
+
+    /**
+     * Prints the indexes before each bike , one store per line
+     *
+     * @param stores stores of bikes
+     */
+    public static void print(ArrayList<ArrayList<Bicycle>> stores) {
+        for (int i = 0; i < stores.size(); ++i) {
+            System.out.println("---------- " + "printing row " + (i + 1) + " ----------");
+            for (int j = 0; j < stores.get(i).size(); ++j) {
+                System.out.println(stores.get(i).get(j) + " ");
+
+            }
+        }
+    }
+
+    public static void printSingle(ArrayList<Bicycle> stores) {
+        System.out.println("----------" + "printSingle" + "----------");
+        for (int j = 0; j < stores.size(); ++j) {
+            System.out.println(stores.get(j) + " ");
+        }
+
+    }
+
+    public static void printRank(ArrayList<Bicycle> stores) {
+        System.out.println("----------" + "printRank" + "----------");
+        for (int j = 0; j < stores.size(); ++j) {
+            System.out.println(stores.get(j) + " " + stores.get(j).calculatedDetails().getRank());
+        }
+
+    }
+
+    /**
+     * Groups bikes by type ans sorts them by the ranking of Details. There will be three groups and each group stored in descending order by rank.
+     *
+     * @param stores the stores of bikes
+     * @return a newly created ArrayList<ArrayList<Bicycle>> with the bikes sorted.
+     */
+    public static ArrayList<ArrayList<Bicycle>> sortBikesByType(final ArrayList<ArrayList<Bicycle>> stores) {
+        ArrayList<ArrayList<Bicycle>> newStore = new ArrayList<ArrayList<Bicycle>>();
+        // group arrayLists
+        ArrayList<Bicycle> mountainBikes = new ArrayList<Bicycle>();
+        ArrayList<Bicycle> speedBikes = new ArrayList<Bicycle>();
+        ArrayList<Bicycle> childBikes = new ArrayList<Bicycle>();
+        System.out.println("---------- " + "grouping by bike type... " + " ----------");
+        for (int i = 0; i < stores.size(); ++i) {
+            for (int j = 0; j < stores.get(i).size(); ++j) {
+                // System.out.println(stores.get(i).get(j).calculatedDetails().getRank() + " ");
+                Bicycle bike = stores.get(i).get(j);
+                if (bike instanceof ChildBike) {
+                    childBikes.add(bike);
+                } else if (bike instanceof MountainBike) {
+                    mountainBikes.add(bike);
+                } else if (bike instanceof SpeedBike) {
+                    speedBikes.add(bike);
+                }
+            }
+        }
+        //printRank(childBikes);
+        //printRank(mountainBikes);
+        //printRank(speedBikes);
+        System.out.println("sorting...");
+        sortType(childBikes);
+        sortType(mountainBikes);
+        sortType(speedBikes);
+        System.out.println("sorted");
+        //printRank(childBikes);
+        //printRank(mountainBikes);
+        //printRank(speedBikes);
+        newStore.add(childBikes);
+        newStore.add(mountainBikes);
+        newStore.add(speedBikes);
+        return newStore;
+    }
+
+    private static void sortType(ArrayList<Bicycle> arrList) {
+        for (int x = 0; x < arrList.size(); ++x) {
+            for (int i = 0; i < arrList.size(); ++i) {
+                for (int j = i + 1; j < arrList.size(); ++j) {
+                    int compare1 = arrList.get(i).calculatedDetails().getRank();
+                    int compare2 = arrList.get(j).calculatedDetails().getRank();
+                    if (compare1 < compare2) {
+                        Bicycle tmp = arrList.get(i);
+                        arrList.set(i, arrList.get(j));
+                        arrList.set(j, tmp);
+                    }
+                }
+            }
+        }
+    }
+
+    public static void print(Object[] arr) {
+        for (Object o : arr) {
+            System.out.println(o);
+        }
+    }
+
+    public static void print(Object[][] arr) {
+        for (int i = 0; i < arr.length; i++) {
+            System.out.println("---------- " + "printing row " + (i + 1) + " ----------");
+            print(arr[i]);
+
+        }
+    }
+
+    /**
+     * Returns a 2D array containing all the bikes in the store in proper sequence (from first to last element). Store 0 with all its bikes, store 1 with all its bikes, and so on.
+     *
+     * @return a 2D array of all stores with bikes.
+     */
+    public Object[][] toArray() {
+        Object[][] arr = new Object[storesOfBikes.size()][];
+        for (int i = 0; i < storesOfBikes.size(); i++) {
+            arr[i] = storesOfBikes.toArray();
+        }
+        return arr;
+    }
+
+    /**
+     * Retains only the Bicycles in the stores that are contained in the specified collection. In other words, removes from this list all of bikes that are not contained in the specified location.
+     *
+     * @param c the bikes to be removed
+     * @return true if any store changed as a result of the call.
+     */
+    public boolean retainAll(Collection<Bicycle> c) {
+        boolean modified = false;
+        for (int i = storesOfBikes.size() - 1; i >= 0; i--) {
+            ArrayList<Bicycle> bikes = storesOfBikes.get(i);
+            for (int j = bikes.size() - 1; j >= 0; j--) {
+                Bicycle bike = bikes.get(j);
+                if (!c.contains(bike)) {
+                    bikes.remove(j);
+                    System.out.println("Removing " + bike);
+                    modified = true;
+                }
+            }
+        }
+        System.out.println("Bikes to remove:");
+        printSingle((ArrayList<Bicycle>) c);
+        return modified;
+    }
+
+    public static void main(String[] args) {
+        BikeStores bikes = new BikeStores();
+        //add 5 bikes to store 0 ( 2 speedBikes, 2 mountain 1 child)
+        bikes.addBike(0, new SpeedBike(4, 3, 10, 40));
+        bikes.addBike(0, new SpeedBike(1, 2, 10, 30));
+        bikes.addBike(0, new MountainBike(1, 2, 3, 20));
+        bikes.addBike(0, new MountainBike(3, 2, 10, 25));
+        bikes.addBike(0, new ChildBike(false, 1, 1, 10));
+        //add 5 bikes to store 1 (  3 speedbikes, 1 mountain 1 child)
+        bikes.addBike(1, new SpeedBike(10, 4, 10, 20));
+        bikes.addBike(1, new SpeedBike(0, 2, 10, 50));
+        bikes.addBike(1, new SpeedBike(3, 2, 10, 38));
+        bikes.addBike(1, new MountainBike(1, 3, 5, 44));
+        bikes.addBike(1, new ChildBike(true, 1, 1, 15));
+        //add 6 bikes to store 2 (  2 speedBikes, 2 mountain 2 child )
+        bikes.addBike(2, new SpeedBike(7, 10, 20, 25));
+        bikes.addBike(2, new SpeedBike(0, 8, 40, 55)); // retainAll should match this one
+        bikes.addBike(2, new MountainBike(2, 3, 15, 33));
+        bikes.addBike(2, new MountainBike(1, 3, 15, 24));
+        bikes.addBike(2, new ChildBike(true, 1, 2, 20));  
+        bikes.addBike(2, new ChildBike(false, 1, 1, 18));// retainAll should match this one
+        //remove one child bike from store 2
+        bikes.removeBike(2, new ChildBike(true, 1, 2, 20)); // Java reuses the object created earlier since it has the same values.
+        //PRINT
+        print(bikes.storesOfBikes);
+        //SORT
+        ArrayList<ArrayList<Bicycle>> sortedBikes = sortBikesByType(bikes.storesOfBikes);
+        //PRINT what the method return
+        System.out.println("SORTED BIKES");
+        print(sortedBikes);
+        //PRINT the original store
+        System.out.println("ORIGINAL STORE ARRAYLIST");
+        print(bikes.storesOfBikes);
+        // ---------- TEST retainAll ----------
+        System.out.println("Testing retainAll();...");
+        Collection<Bicycle> c1 = new ArrayList<Bicycle>();
+        c1.add(new SpeedBike(0, 8, 40, 55));
+        c1.add(new ChildBike(false, 1, 1, 18));
+        Bicycle b1 = bikes.storesOfBikes.get(2).get(1);
+        Bicycle b2 = bikes.storesOfBikes.get(2).get(4);
+        Bicycle b3 = ((ArrayList<Bicycle>) c1).get(0);
+        Bicycle b4 = ((ArrayList<Bicycle>) c1).get(1);
+        
+        System.out.println(b1.equals(b3) + " " + b2.equals(b4));
+        bikes.retainAll(c1);
+        print(bikes.storesOfBikes);
+
+    }
+
+}
+
+class NotABike {
+
+}
+
+
+ diff --git a/Semester 2/Assignments/MP4_CalebFontenot/Printed HTMLs/BikeStores.html b/Semester 2/Assignments/MP4_CalebFontenot/Printed HTMLs/BikeStores.html new file mode 100644 index 0000000..c219a7d --- /dev/null +++ b/Semester 2/Assignments/MP4_CalebFontenot/Printed HTMLs/BikeStores.html @@ -0,0 +1,298 @@ + + + +BikeStores.java + + + + +
/home/caleb/ASDV-Java/Semester 2/Assignments/MP4_CalebFontenot/src/main/java/com/calebfontenot/mp4_calebfontenot/BikeStores.java
+
+/*
+ * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
+ * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
+ */
+package com.calebfontenot.mp4_calebfontenot;
+
+import java.util.ArrayList;
+import java.util.Collection;
+
+/**
+ *
+ * @author caleb
+ */
+public class BikeStores {
+
+    ArrayList<ArrayList<Bicycle>> storesOfBikes = new ArrayList<ArrayList<Bicycle>>();
+
+    /**
+     * Add a bike at storeNumber ( i.e. the storeNumber indicates the store)
+     *
+     * @param storeNumber which store
+     * @param b the bike to add
+     * @return true if the bike added, false if the storeNumber is invalid or b is null.
+     */
+    public BikeStores() {
+        for (int i = 0; i < 3; i++) {
+            storesOfBikes.add(new ArrayList<Bicycle>());
+        }
+    }
+
+    public boolean addBike(int storeNumber, Bicycle b) {
+        if (storeNumber < 0 || storeNumber > this.storesOfBikes.size() - 1) {
+            return false;
+        }
+        if (b == null) {
+            return false;
+        }
+        System.out.println("Attempting to add " + b + " to store at index " + storeNumber);
+        //Unpack array
+        ArrayList<Bicycle> bikesInInventory = storesOfBikes.get(storeNumber);
+        bikesInInventory.add(b);
+
+        // Repack array
+        storesOfBikes.set(storeNumber, bikesInInventory);
+        System.out.println("success!");
+        return true;
+    }
+
+    /**
+     * Removes a bike at a specific store.
+     *
+     * @param storeNumber the store that has the bike
+     * @param b the bike to be removed
+     * @return true of the bike is removed, false if the bike does not exist, or bike is null.
+     */
+    public boolean removeBike(int storeNumber, Bicycle b) {
+        if (storeNumber < 0 || storeNumber > this.storesOfBikes.size() - 1) {
+            return false;
+        }
+        if (b == null) {
+            return false;
+        }
+        System.out.println("Attempting to remove " + b + " to store at index " + storeNumber);
+        // Remove bike from array.
+        ArrayList<Bicycle> bikesInInventory = storesOfBikes.get(storeNumber);
+        bikesInInventory.remove(b); //YEET
+        System.out.println("success!");
+        return true;
+    }
+
+    /**
+     * Prints the indexes before each bike , one store per line
+     *
+     * @param stores stores of bikes
+     */
+    public static void print(ArrayList<ArrayList<Bicycle>> stores) {
+        for (int i = 0; i < stores.size(); ++i) {
+            System.out.println("---------- " + "printing row " + (i + 1) + " ----------");
+            for (int j = 0; j < stores.get(i).size(); ++j) {
+                System.out.println(stores.get(i).get(j) + " ");
+
+            }
+        }
+    }
+
+    public static void printSingle(ArrayList<Bicycle> stores) {
+        System.out.println("----------" + "printSingle" + "----------");
+        for (int j = 0; j < stores.size(); ++j) {
+            System.out.println(stores.get(j) + " ");
+        }
+
+    }
+
+    public static void printRank(ArrayList<Bicycle> stores) {
+        System.out.println("----------" + "printRank" + "----------");
+        for (int j = 0; j < stores.size(); ++j) {
+            System.out.println(stores.get(j) + " " + stores.get(j).calculatedDetails().getRank());
+        }
+
+    }
+
+    /**
+     * Groups bikes by type ans sorts them by the ranking of Details. There will be three groups and each group stored in descending order by rank.
+     *
+     * @param stores the stores of bikes
+     * @return a newly created ArrayList<ArrayList<Bicycle>> with the bikes sorted.
+     */
+    public static ArrayList<ArrayList<Bicycle>> sortBikesByType(final ArrayList<ArrayList<Bicycle>> stores) {
+        ArrayList<ArrayList<Bicycle>> newStore = new ArrayList<ArrayList<Bicycle>>();
+        // group arrayLists
+        ArrayList<Bicycle> mountainBikes = new ArrayList<Bicycle>();
+        ArrayList<Bicycle> speedBikes = new ArrayList<Bicycle>();
+        ArrayList<Bicycle> childBikes = new ArrayList<Bicycle>();
+        System.out.println("---------- " + "grouping by bike type... " + " ----------");
+        for (int i = 0; i < stores.size(); ++i) {
+            for (int j = 0; j < stores.get(i).size(); ++j) {
+                // System.out.println(stores.get(i).get(j).calculatedDetails().getRank() + " ");
+                Bicycle bike = stores.get(i).get(j);
+                if (bike instanceof ChildBike) {
+                    childBikes.add(bike);
+                } else if (bike instanceof MountainBike) {
+                    mountainBikes.add(bike);
+                } else if (bike instanceof SpeedBike) {
+                    speedBikes.add(bike);
+                }
+            }
+        }
+        //printRank(childBikes);
+        //printRank(mountainBikes);
+        //printRank(speedBikes);
+        System.out.println("sorting...");
+        sortType(childBikes);
+        sortType(mountainBikes);
+        sortType(speedBikes);
+        System.out.println("sorted");
+        //printRank(childBikes);
+        //printRank(mountainBikes);
+        //printRank(speedBikes);
+        newStore.add(childBikes);
+        newStore.add(mountainBikes);
+        newStore.add(speedBikes);
+        return newStore;
+    }
+
+    private static void sortType(ArrayList<Bicycle> arrList) {
+        for (int x = 0; x < arrList.size(); ++x) {
+            for (int i = 0; i < arrList.size(); ++i) {
+                for (int j = i + 1; j < arrList.size(); ++j) {
+                    int compare1 = arrList.get(i).calculatedDetails().getRank();
+                    int compare2 = arrList.get(j).calculatedDetails().getRank();
+                    if (compare1 < compare2) {
+                        Bicycle tmp = arrList.get(i);
+                        arrList.set(i, arrList.get(j));
+                        arrList.set(j, tmp);
+                    }
+                }
+            }
+        }
+    }
+
+    public static void print(Object[] arr) {
+        for (Object o : arr) {
+            System.out.println(o);
+        }
+    }
+
+    public static void print(Object[][] arr) {
+        for (int i = 0; i < arr.length; i++) {
+            System.out.println("---------- " + "printing row " + (i + 1) + " ----------");
+            print(arr[i]);
+
+        }
+    }
+
+    /**
+     * Returns a 2D array containing all the bikes in the store in proper sequence (from first to last element). Store 0 with all its bikes, store 1 with all its bikes, and so on.
+     *
+     * @return a 2D array of all stores with bikes.
+     */
+    public Object[][] toArray() {
+        Object[][] arr = new Object[storesOfBikes.size()][];
+        for (int i = 0; i < storesOfBikes.size(); i++) {
+            arr[i] = storesOfBikes.toArray();
+        }
+        return arr;
+    }
+
+    /**
+     * Retains only the Bicycles in the stores that are contained in the specified collection. In other words, removes from this list all of bikes that are not contained in the specified location.
+     *
+     * @param c the bikes to be removed
+     * @return true if any store changed as a result of the call.
+     */
+    public boolean retainAll(Collection<Bicycle> c) {
+        boolean modified = false;
+        for (int i = storesOfBikes.size() - 1; i >= 0; i--) {
+            ArrayList<Bicycle> bikes = storesOfBikes.get(i);
+            for (int j = bikes.size() - 1; j >= 0; j--) {
+                Bicycle bike = bikes.get(j);
+                if (!c.contains(bike)) {
+                    bikes.remove(j);
+                    System.out.println("Removing " + bike);
+                    modified = true;
+                }
+            }
+        }
+        System.out.println("Bikes to remove:");
+        printSingle((ArrayList<Bicycle>) c);
+        return modified;
+    }
+
+    public static void main(String[] args) {
+        BikeStores bikes = new BikeStores();
+        //add 5 bikes to store 0 ( 2 speedBikes, 2 mountain 1 child)
+        bikes.addBike(0, new SpeedBike(4, 3, 10, 40));
+        bikes.addBike(0, new SpeedBike(1, 2, 10, 30));
+        bikes.addBike(0, new MountainBike(1, 2, 3, 20));
+        bikes.addBike(0, new MountainBike(3, 2, 10, 25));
+        bikes.addBike(0, new ChildBike(false, 1, 1, 10));
+        //add 5 bikes to store 1 (  3 speedbikes, 1 mountain 1 child)
+        bikes.addBike(1, new SpeedBike(10, 4, 10, 20));
+        bikes.addBike(1, new SpeedBike(0, 2, 10, 50));
+        bikes.addBike(1, new SpeedBike(3, 2, 10, 38));
+        bikes.addBike(1, new MountainBike(1, 3, 5, 44));
+        bikes.addBike(1, new ChildBike(true, 1, 1, 15));
+        //add 6 bikes to store 2 (  2 speedBikes, 2 mountain 2 child )
+        bikes.addBike(2, new SpeedBike(7, 10, 20, 25));
+        bikes.addBike(2, new SpeedBike(0, 8, 40, 55)); // retainAll should match this one
+        bikes.addBike(2, new MountainBike(2, 3, 15, 33));
+        bikes.addBike(2, new MountainBike(1, 3, 15, 24));
+        bikes.addBike(2, new ChildBike(true, 1, 2, 20));  
+        bikes.addBike(2, new ChildBike(false, 1, 1, 18));// retainAll should match this one
+        //remove one child bike from store 2
+        bikes.removeBike(2, new ChildBike(true, 1, 2, 20)); // Java reuses the object created earlier since it has the same values.
+        //PRINT
+        print(bikes.storesOfBikes);
+        //SORT
+        ArrayList<ArrayList<Bicycle>> sortedBikes = sortBikesByType(bikes.storesOfBikes);
+        //PRINT what the method return
+        System.out.println("SORTED BIKES");
+        print(sortedBikes);
+        //PRINT the original store
+        System.out.println("ORIGINAL STORE ARRAYLIST");
+        print(bikes.storesOfBikes);
+        // ---------- TEST retainAll ----------
+        System.out.println("Testing retainAll();...");
+        Collection<Bicycle> c1 = new ArrayList<Bicycle>();
+        c1.add(new SpeedBike(0, 8, 40, 55));
+        c1.add(new ChildBike(false, 1, 1, 18));
+        Bicycle b1 = bikes.storesOfBikes.get(2).get(1);
+        Bicycle b2 = bikes.storesOfBikes.get(2).get(4);
+        Bicycle b3 = ((ArrayList<Bicycle>) c1).get(0);
+        Bicycle b4 = ((ArrayList<Bicycle>) c1).get(1);
+        
+        System.out.println(b1.equals(b3) + " " + b2.equals(b4));
+        bikes.retainAll(c1);
+        print(bikes.storesOfBikes);
+
+    }
+
+}
+
+class NotABike {
+
+}
+
+
+ diff --git a/Semester 2/Assignments/MP4_CalebFontenot/Printed HTMLs/ChildBike.html b/Semester 2/Assignments/MP4_CalebFontenot/Printed HTMLs/ChildBike.html new file mode 100644 index 0000000..1c1caf5 --- /dev/null +++ b/Semester 2/Assignments/MP4_CalebFontenot/Printed HTMLs/ChildBike.html @@ -0,0 +1,84 @@ + + + +ChildBike.java + + + + +
/home/caleb/ASDV-Java/Semester 2/Assignments/MP4_CalebFontenot/src/main/java/com/calebfontenot/mp4_calebfontenot/ChildBike.java
+
+/*
+ * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
+ * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
+ */
+package com.calebfontenot.mp4_calebfontenot;
+
+/**
+ *
+ * @author caleb
+ */
+public class ChildBike extends Bicycle  //remove comment  in front of extends
+{
+    @Override
+    public boolean equals(Object obj)
+    {
+        if (this == obj) {
+            return true;
+        }
+        if (obj == null) {
+            return false;
+        }
+        if (getClass() != obj.getClass()) {
+            return false;
+        }
+        final ChildBike other = (ChildBike) obj;
+        System.out.println("Super returns: " + super.equals(obj));
+        return this.helpWheels == other.helpWheels && super.equals(obj);
+    }
+    
+    private boolean helpWheels;
+
+    public ChildBike(boolean helpWheels, int cadence, int gear, int speed)
+    {
+        super(cadence, gear, speed);
+        this.helpWheels = helpWheels;
+    }
+
+    public boolean isHelpWheels()
+    {
+        return helpWheels;
+    }
+
+    public void setHelpWheels(boolean helpWheels)
+    {
+        this.helpWheels = helpWheels;
+    }
+
+    @Override
+    Details calculatedDetails()
+    {
+        return Details.getDetails(this);
+    }
+
+    @Override
+    public String toString()
+    {
+        return super.toString() + "ChildBike{" + "helpWheels=" + helpWheels + '}';
+    }
+    
+}
+
+
+ diff --git a/Semester 2/Assignments/MP4_CalebFontenot/Printed HTMLs/Details.html b/Semester 2/Assignments/MP4_CalebFontenot/Printed HTMLs/Details.html new file mode 100644 index 0000000..4d4f9fb --- /dev/null +++ b/Semester 2/Assignments/MP4_CalebFontenot/Printed HTMLs/Details.html @@ -0,0 +1,81 @@ + + + +Details.java + + + + +
/home/caleb/ASDV-Java/Semester 2/Assignments/MP4_CalebFontenot/src/main/java/com/calebfontenot/mp4_calebfontenot/Details.java
+
+/*
+ * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
+ * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
+ */
+package com.calebfontenot.mp4_calebfontenot;
+
+/**
+ *
+ * @author caleb
+ */
+public class Details {
+
+    private int rank;
+    private String info;
+
+    public int getRank()
+    {
+        return rank;
+    }
+
+    public String getInfo()
+    {
+        return info;
+    }
+
+    public static Details getDetails(Bicycle b)
+    {
+        Details d = new Details();
+        if (b instanceof SpeedBike) {
+            if (((SpeedBike) b).getWeight() < 1) {
+                d.rank = 10;
+            } else if (((SpeedBike) b).getWeight() > 1 && ((SpeedBike) b).getWeight() < 8) {
+                d.rank = 9;
+            } else {
+                d.rank = 0;
+            }
+        } else if (b instanceof MountainBike) {
+            if (((MountainBike) b).getSeatHeight() > 2) {
+                d.rank = 10;
+            } else {
+                d.rank = 0;
+            }
+        } else if (b instanceof ChildBike) {
+            if (((ChildBike) b).isHelpWheels()) {
+                d.rank = 10;
+            } else {
+                d.rank = 0;
+            }
+        } else {
+            return null;
+        }
+
+        d.info = b.toString();
+        return d;
+    }
+
+}
+
+
+ diff --git a/Semester 2/Assignments/MP4_CalebFontenot/Printed HTMLs/MountainBike.html b/Semester 2/Assignments/MP4_CalebFontenot/Printed HTMLs/MountainBike.html new file mode 100644 index 0000000..d760041 --- /dev/null +++ b/Semester 2/Assignments/MP4_CalebFontenot/Printed HTMLs/MountainBike.html @@ -0,0 +1,86 @@ + + + +MountainBike.java + + + + +
/home/caleb/ASDV-Java/Semester 2/Assignments/MP4_CalebFontenot/src/main/java/com/calebfontenot/mp4_calebfontenot/MountainBike.java
+
+/*
+ * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
+ * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
+ */
+package com.calebfontenot.mp4_calebfontenot;
+
+/**
+ *
+ * @author caleb
+ */
+public class MountainBike extends Bicycle
+{
+
+    private int seatHeight;
+
+    @Override
+    public boolean equals(Object obj)
+    {
+        if (this == obj) {
+            return true;
+        }
+        if (obj == null) {
+            return false;
+        }
+        if (getClass() != obj.getClass()) {
+            return false;
+        }
+        final MountainBike other = (MountainBike) obj;
+        System.out.println("Super returns: " + super.equals(obj));
+        return this.seatHeight == other.seatHeight && super.equals(obj);
+    }
+
+    public MountainBike(int seatHeight, int cadence, int gear, int speed)
+    {
+        super(cadence, gear, speed);
+        this.seatHeight = seatHeight;
+    }
+
+    public int getSeatHeight()
+    {
+        return seatHeight;
+    }
+
+    public void setSeatHeight(int seatHeight)
+    {
+        this.seatHeight = seatHeight;
+    }
+
+    @Override
+    public String toString()
+    {
+        return super.toString() + " MountainBike{" + "seatHeight=" + seatHeight + '}';
+    }
+
+    @Override
+    Details calculatedDetails()
+    {
+        return Details.getDetails(this);
+    }
+
+}
+
+
+
+ diff --git a/Semester 2/Assignments/MP4_CalebFontenot/Printed HTMLs/SpeedBike.html b/Semester 2/Assignments/MP4_CalebFontenot/Printed HTMLs/SpeedBike.html new file mode 100644 index 0000000..404d911 --- /dev/null +++ b/Semester 2/Assignments/MP4_CalebFontenot/Printed HTMLs/SpeedBike.html @@ -0,0 +1,94 @@ + + + +SpeedBike.java + + + + +
/home/caleb/ASDV-Java/Semester 2/Assignments/MP4_CalebFontenot/src/main/java/com/calebfontenot/mp4_calebfontenot/SpeedBike.java
+
+/*
+ * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
+ * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
+ */
+package com.calebfontenot.mp4_calebfontenot;
+
+/**
+ *
+ * @author caleb
+ */
+public class SpeedBike extends Bicycle
+{
+
+    @Override
+    public int hashCode()
+    {
+        int hash = 5;
+        return hash;
+    }
+
+    @Override
+    public boolean equals(Object obj)
+    {
+        if (this == obj) {
+            return true;
+        }
+        if (obj == null) {
+            return false;
+        }
+        if (getClass() != obj.getClass()) {
+            return false;
+        }
+        final SpeedBike other = (SpeedBike) obj;
+        System.out.println("Super returns: " + super.equals(obj));
+        return Double.doubleToLongBits(this.weight) == Double.doubleToLongBits(other.weight) && super.equals(obj);
+    }
+    
+    private double weight;
+
+    public SpeedBike(double weight, int cadence, int gear, int speed)
+    {
+        super(cadence, gear, speed);
+        this.weight = weight;
+    }
+    
+    public double getWeight()
+    {
+        return weight;
+    }
+
+    public void setWeight(double weight)
+    {
+        this.weight = weight;
+    }
+
+    @Override
+    public String toString()
+    {
+        return super.toString() + " SpeedBike{" + "weight=" + weight + '}';
+    }
+
+    @Override
+    Details calculatedDetails()
+    {
+        return Details.getDetails(this);
+    }
+
+    
+}
+
+
+ diff --git a/Semester 2/Assignments/MP4_CalebFontenot/src/main/java/com/calebfontenot/mp4_calebfontenot/BikeStores.java b/Semester 2/Assignments/MP4_CalebFontenot/src/main/java/com/calebfontenot/mp4_calebfontenot/BikeStores.java index 1ab881f..420b23b 100644 --- a/Semester 2/Assignments/MP4_CalebFontenot/src/main/java/com/calebfontenot/mp4_calebfontenot/BikeStores.java +++ b/Semester 2/Assignments/MP4_CalebFontenot/src/main/java/com/calebfontenot/mp4_calebfontenot/BikeStores.java @@ -228,8 +228,8 @@ public class BikeStores { bikes.addBike(2, new SpeedBike(0, 8, 40, 55)); // retainAll should match this one bikes.addBike(2, new MountainBike(2, 3, 15, 33)); bikes.addBike(2, new MountainBike(1, 3, 15, 24)); - bikes.addBike(2, new ChildBike(true, 1, 2, 20)); // retainAll should match this one - bikes.addBike(2, new ChildBike(false, 1, 1, 18)); + bikes.addBike(2, new ChildBike(true, 1, 2, 20)); + bikes.addBike(2, new ChildBike(false, 1, 1, 18));// retainAll should match this one //remove one child bike from store 2 bikes.removeBike(2, new ChildBike(true, 1, 2, 20)); // Java reuses the object created earlier since it has the same values. //PRINT @@ -246,7 +246,7 @@ public class BikeStores { System.out.println("Testing retainAll();..."); Collection c1 = new ArrayList(); c1.add(new SpeedBike(0, 8, 40, 55)); - c1.add(new ChildBike(true, 1, 2, 20)); + c1.add(new ChildBike(false, 1, 1, 18)); Bicycle b1 = bikes.storesOfBikes.get(2).get(1); Bicycle b2 = bikes.storesOfBikes.get(2).get(4); Bicycle b3 = ((ArrayList) c1).get(0); diff --git a/Semester 2/ZIPs/MP4_CalebFontenot.zip b/Semester 2/ZIPs/MP4_CalebFontenot.zip index 848c586f04b1cf28d6e91c291b0c4991d8239688..8bb29104bb4862233b59fa3347db1a775333e46e 100644 GIT binary patch literal 22014 zcmeIaRd5{HvNbGbwwTdku$Y;dS+ba!87;|TX0n*cVkV2pVziivS-q?cnUS;qGQx)z3d!q!#} zhE~=Nw6g#Ed$V7DkN@Ytw=;biX@D=PC?#qCuhGZ=5D*Xmy1$I3`U|7^P4!*%EevT) z94sx4a7^tNnXj9@L9^43`ol@oV=7dujBplBTT|a+NPJ6|E|?@B7tI!khJsYP&c8c> zJ_UhajV2`FSpK>p@Z}5_cR3imqvE}$R|ERf^%>L?=lvGW{p~@j^DJ87xP096B@ObH zox>g)cFhe(h}~72FD3&&YC*_n^|FN$?M0{j!Cm3x=tkF14PV|lOyI`a>Q`Q*wCcB4 zvgfydN>N4pE(@esncmN@sFdB%C9pKCkS6MfPAf zNAQs0H1W(GQ|#;6Je(b0oPh-1jRAi{G=pDQ&`jh0oISlTes~6apS_rWl$PCIR8gb< zR2a#q^vvjZn8#!lAfy%Uc{Tol-$H7tQI|U{yU}v~n1A|gHa)=Kd@ralW#GzTovV@S zioI3)M0QDGkrBd4k>OZ!Hd4k-OPwD3sL#5Yv~L03-MaZ~QH8Wmq*I>_+xzkH zq_)}wdsq(J&hdc~eW@H!i}EsZl}{Picx~tRY?3!LU0g0FBa7tpAI&hEX1nDuV<)&S zStp7`g1AQ9-Tm6)4tJ8UpgrHl#w6`tdq`s>b{l1Sj>k-gNvF;-(r_*rzsFsbZh{1G z2?*Z{OCua%-fO8=q{x?3E~wB_M)cQV6M^p!$@vyX;aL~Cow(G-}OU*&FVqcan&bYDY8)iS#w zqI_7XTRy3jG7i~GCAQL|jrEq{?rjNPFYtZ0E)V()vO9&35#(R12~b_bJaEl6`&^}0=IgLUi1a6~*^j2mhU z8w1hmO!d;y>*50ksxbPER~@!x3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