├── .gitattributes ├── .gitignore ├── A1 ├── ReadMe.md ├── TransportClassDiagram.png ├── TransportClassDiagram.ucls ├── airTransport │ ├── .gitignore │ ├── AirCraft.java │ └── DriverTransport.java ├── groundTransport │ ├── .gitignore │ ├── CityBus.java │ ├── Metro.java │ └── Tram.java ├── javadocs │ ├── airTransport │ │ ├── AirCraft.AirType.html │ │ ├── AirCraft.TimeType.html │ │ ├── AirCraft.html │ │ ├── DriverTransport.html │ │ └── package-summary.html │ ├── allclasses-index.html │ ├── allpackages-index.html │ ├── constant-values.html │ ├── deprecated-list.html │ ├── element-list │ ├── groundTransport │ │ ├── CityBus.html │ │ ├── Metro.html │ │ ├── Tram.html │ │ └── package-summary.html │ ├── help-doc.html │ ├── index-files │ │ ├── index-1.html │ │ ├── index-10.html │ │ ├── index-11.html │ │ ├── index-12.html │ │ ├── index-13.html │ │ ├── index-14.html │ │ ├── index-15.html │ │ ├── index-16.html │ │ ├── index-17.html │ │ ├── index-18.html │ │ ├── index-2.html │ │ ├── index-3.html │ │ ├── index-4.html │ │ ├── index-5.html │ │ ├── index-6.html │ │ ├── index-7.html │ │ ├── index-8.html │ │ └── index-9.html │ ├── index.html │ ├── member-search-index.js │ ├── member-search-index.zip │ ├── overview-summary.html │ ├── package-search-index.js │ ├── package-search-index.zip │ ├── publicTransport │ │ ├── PublicTransportation.html │ │ └── package-summary.html │ ├── resources │ │ ├── glass.png │ │ └── x.png │ ├── script-dir │ │ ├── external │ │ │ └── jquery │ │ │ │ └── jquery.js │ │ ├── images │ │ │ ├── ui-bg_glass_55_fbf9ee_1x400.png │ │ │ ├── ui-bg_glass_65_dadada_1x400.png │ │ │ ├── ui-bg_glass_75_dadada_1x400.png │ │ │ ├── ui-bg_glass_75_e6e6e6_1x400.png │ │ │ ├── ui-bg_glass_95_fef1ec_1x400.png │ │ │ ├── ui-bg_highlight-soft_75_cccccc_1x100.png │ │ │ ├── ui-icons_222222_256x240.png │ │ │ ├── ui-icons_2e83ff_256x240.png │ │ │ ├── ui-icons_454545_256x240.png │ │ │ ├── ui-icons_888888_256x240.png │ │ │ └── ui-icons_cd0a0a_256x240.png │ │ ├── jquery-3.4.1.js │ │ ├── jquery-ui.css │ │ ├── jquery-ui.js │ │ ├── jquery-ui.min.css │ │ ├── jquery-ui.min.js │ │ ├── jquery-ui.structure.css │ │ ├── jquery-ui.structure.min.css │ │ ├── jszip-utils │ │ │ └── dist │ │ │ │ ├── jszip-utils-ie.js │ │ │ │ ├── jszip-utils-ie.min.js │ │ │ │ ├── jszip-utils.js │ │ │ │ └── jszip-utils.min.js │ │ └── jszip │ │ │ └── dist │ │ │ ├── jszip.js │ │ │ └── jszip.min.js │ ├── script.js │ ├── seaTransport │ │ ├── Ferry.html │ │ └── package-summary.html │ ├── search.js │ ├── stylesheet.css │ ├── type-search-index.js │ └── type-search-index.zip ├── publicTransport │ ├── .gitignore │ └── PublicTransportation.java └── seaTransport │ ├── .gitignore │ └── Ferry.java ├── A2 ├── Part1 │ ├── Box.java │ ├── CargoTest.java │ ├── Letter.java │ ├── MetalCrate.java │ ├── Other │ │ ├── MenuOptionsTest.rtf │ │ ├── TruckPackageDiagram.png │ │ ├── TruckPackageDiagram.ucls │ │ └── TruckPackage_UMLDiagram.pdf │ ├── Package.java │ ├── PackageException.java │ ├── ReadMe.md │ ├── Truck.java │ ├── TruckPackageDelivery.jar │ ├── TruckPackageDriver.java │ ├── WoodCrate.java │ └── javadocP1 │ │ ├── Part1 │ │ ├── Box.html │ │ ├── CargoTest.html │ │ ├── Letter.html │ │ ├── MetalCrate.html │ │ ├── Package.html │ │ ├── PackageException.html │ │ ├── Truck.html │ │ ├── TruckPackageDriver.html │ │ ├── WoodCrate.html │ │ └── package-summary.html │ │ ├── allclasses-index.html │ │ ├── allpackages-index.html │ │ ├── constant-values.html │ │ ├── deprecated-list.html │ │ ├── element-list │ │ ├── help-doc.html │ │ ├── index-files │ │ ├── index-1.html │ │ ├── index-10.html │ │ ├── index-11.html │ │ ├── index-12.html │ │ ├── index-13.html │ │ ├── index-2.html │ │ ├── index-3.html │ │ ├── index-4.html │ │ ├── index-5.html │ │ ├── index-6.html │ │ ├── index-7.html │ │ ├── index-8.html │ │ └── index-9.html │ │ ├── index.html │ │ ├── member-search-index.js │ │ ├── member-search-index.zip │ │ ├── package-search-index.js │ │ ├── package-search-index.zip │ │ ├── resources │ │ ├── glass.png │ │ └── x.png │ │ ├── script-dir │ │ ├── external │ │ │ └── jquery │ │ │ │ └── jquery.js │ │ ├── images │ │ │ ├── ui-bg_glass_55_fbf9ee_1x400.png │ │ │ ├── ui-bg_glass_65_dadada_1x400.png │ │ │ ├── ui-bg_glass_75_dadada_1x400.png │ │ │ ├── ui-bg_glass_75_e6e6e6_1x400.png │ │ │ ├── ui-bg_glass_95_fef1ec_1x400.png │ │ │ ├── ui-bg_highlight-soft_75_cccccc_1x100.png │ │ │ ├── ui-icons_222222_256x240.png │ │ │ ├── ui-icons_2e83ff_256x240.png │ │ │ ├── ui-icons_454545_256x240.png │ │ │ ├── ui-icons_888888_256x240.png │ │ │ └── ui-icons_cd0a0a_256x240.png │ │ ├── jquery-3.4.1.js │ │ ├── jquery-ui.css │ │ ├── jquery-ui.js │ │ ├── jquery-ui.min.css │ │ ├── jquery-ui.min.js │ │ ├── jquery-ui.structure.css │ │ ├── jquery-ui.structure.min.css │ │ ├── jszip-utils │ │ │ └── dist │ │ │ │ ├── jszip-utils-ie.js │ │ │ │ ├── jszip-utils-ie.min.js │ │ │ │ ├── jszip-utils.js │ │ │ │ └── jszip-utils.min.js │ │ └── jszip │ │ │ └── dist │ │ │ ├── jszip.js │ │ │ └── jszip.min.js │ │ ├── script.js │ │ ├── search.js │ │ ├── serialized-form.html │ │ ├── stylesheet.css │ │ ├── type-search-index.js │ │ └── type-search-index.zip └── Part2 │ ├── Cargoship.jar │ ├── Cargoship.java │ ├── CargoshipInventory1.java │ ├── DuplicateSerialNumberException.java │ ├── ReadMe.md │ └── javadocP2 │ ├── Part2 │ ├── Cargoship.html │ ├── CargoshipInventory1.html │ ├── DuplicateSerialNumberException.html │ └── package-summary.html │ ├── allclasses-index.html │ ├── allpackages-index.html │ ├── constant-values.html │ ├── deprecated-list.html │ ├── element-list │ ├── help-doc.html │ ├── index-files │ ├── index-1.html │ ├── index-10.html │ ├── index-11.html │ ├── index-2.html │ ├── index-3.html │ ├── index-4.html │ ├── index-5.html │ ├── index-6.html │ ├── index-7.html │ ├── index-8.html │ └── index-9.html │ ├── index.html │ ├── member-search-index.js │ ├── member-search-index.zip │ ├── package-search-index.js │ ├── package-search-index.zip │ ├── resources │ ├── glass.png │ └── x.png │ ├── script-dir │ ├── external │ │ └── jquery │ │ │ └── jquery.js │ ├── images │ │ ├── ui-bg_glass_55_fbf9ee_1x400.png │ │ ├── ui-bg_glass_65_dadada_1x400.png │ │ ├── ui-bg_glass_75_dadada_1x400.png │ │ ├── ui-bg_glass_75_e6e6e6_1x400.png │ │ ├── ui-bg_glass_95_fef1ec_1x400.png │ │ ├── ui-bg_highlight-soft_75_cccccc_1x100.png │ │ ├── ui-icons_222222_256x240.png │ │ ├── ui-icons_2e83ff_256x240.png │ │ ├── ui-icons_454545_256x240.png │ │ ├── ui-icons_888888_256x240.png │ │ └── ui-icons_cd0a0a_256x240.png │ ├── jquery-3.4.1.js │ ├── jquery-ui.css │ ├── jquery-ui.js │ ├── jquery-ui.min.css │ ├── jquery-ui.min.js │ ├── jquery-ui.structure.css │ ├── jquery-ui.structure.min.css │ ├── jszip-utils │ │ └── dist │ │ │ ├── jszip-utils-ie.js │ │ │ ├── jszip-utils-ie.min.js │ │ │ ├── jszip-utils.js │ │ │ └── jszip-utils.min.js │ └── jszip │ │ └── dist │ │ ├── jszip.js │ │ └── jszip.min.js │ ├── script.js │ ├── search.js │ ├── serialized-form.html │ ├── stylesheet.css │ ├── type-search-index.js │ └── type-search-index.zip ├── A3 ├── Part1 │ └── Dictionary.java ├── Part2 │ ├── CellList.java │ ├── CellListUtilization.java │ └── CellPhone.java └── javadoc │ ├── Part1 │ ├── Dictionary.html │ └── package-summary.html │ ├── Part2 │ ├── CellList.CellNode.html │ ├── CellList.html │ ├── CellListUtilization.html │ ├── CellPhone.html │ └── package-summary.html │ ├── allclasses-index.html │ ├── allpackages-index.html │ ├── constant-values.html │ ├── deprecated-list.html │ ├── element-list │ ├── help-doc.html │ ├── index-files │ ├── index-1.html │ ├── index-10.html │ ├── index-11.html │ ├── index-12.html │ ├── index-13.html │ ├── index-14.html │ ├── index-15.html │ ├── index-16.html │ ├── index-17.html │ ├── index-2.html │ ├── index-3.html │ ├── index-4.html │ ├── index-5.html │ ├── index-6.html │ ├── index-7.html │ ├── index-8.html │ └── index-9.html │ ├── index.html │ ├── member-search-index.js │ ├── member-search-index.zip │ ├── overview-summary.html │ ├── package-search-index.js │ ├── package-search-index.zip │ ├── resources │ ├── glass.png │ └── x.png │ ├── script-dir │ ├── external │ │ └── jquery │ │ │ └── jquery.js │ ├── images │ │ ├── ui-bg_glass_55_fbf9ee_1x400.png │ │ ├── ui-bg_glass_65_dadada_1x400.png │ │ ├── ui-bg_glass_75_dadada_1x400.png │ │ ├── ui-bg_glass_75_e6e6e6_1x400.png │ │ ├── ui-bg_glass_95_fef1ec_1x400.png │ │ ├── ui-bg_highlight-soft_75_cccccc_1x100.png │ │ ├── ui-icons_222222_256x240.png │ │ ├── ui-icons_2e83ff_256x240.png │ │ ├── ui-icons_454545_256x240.png │ │ ├── ui-icons_888888_256x240.png │ │ └── ui-icons_cd0a0a_256x240.png │ ├── jquery-3.4.1.js │ ├── jquery-ui.css │ ├── jquery-ui.js │ ├── jquery-ui.min.css │ ├── jquery-ui.min.js │ ├── jquery-ui.structure.css │ ├── jquery-ui.structure.min.css │ ├── jszip-utils │ │ └── dist │ │ │ ├── jszip-utils-ie.js │ │ │ ├── jszip-utils-ie.min.js │ │ │ ├── jszip-utils.js │ │ │ └── jszip-utils.min.js │ └── jszip │ │ └── dist │ │ ├── jszip.js │ │ └── jszip.min.js │ ├── script.js │ ├── search.js │ ├── stylesheet.css │ ├── type-search-index.js │ └── type-search-index.zip ├── Cell_Info.txt ├── IOpractice.txt ├── Initial_Cargoship_Info.txt ├── PersonOfTheCentury.txt ├── ReadMe.md ├── SubDictionary.txt ├── binary.dat ├── javadoc ├── Part1 │ ├── Box.html │ ├── CargoTest.html │ ├── Dictionary.html │ ├── Letter.html │ ├── MetalCrate.html │ ├── Package.html │ ├── PackageException.html │ ├── Truck.html │ ├── TruckPackageDriver.html │ ├── WoodCrate.html │ └── package-summary.html ├── Part2 │ ├── Cargoship.html │ ├── CargoshipInventory1.html │ ├── CellList.CellNode.html │ ├── CellList.html │ ├── CellListUtilization.html │ ├── CellPhone.html │ ├── DuplicateSerialNumberException.html │ └── package-summary.html ├── airTransport │ ├── AirCraft.AirType.html │ ├── AirCraft.TimeType.html │ ├── AirCraft.html │ ├── DriverTransport.html │ └── package-summary.html ├── allclasses-index.html ├── allpackages-index.html ├── constant-values.html ├── deprecated-list.html ├── element-list ├── groundTransport │ ├── CityBus.html │ ├── Metro.html │ ├── Tram.html │ └── package-summary.html ├── help-doc.html ├── index-files │ ├── index-1.html │ ├── index-10.html │ ├── index-11.html │ ├── index-12.html │ ├── index-13.html │ ├── index-14.html │ ├── index-15.html │ ├── index-16.html │ ├── index-17.html │ ├── index-18.html │ ├── index-19.html │ ├── index-2.html │ ├── index-20.html │ ├── index-21.html │ ├── index-3.html │ ├── index-4.html │ ├── index-5.html │ ├── index-6.html │ ├── index-7.html │ ├── index-8.html │ └── index-9.html ├── index.html ├── member-search-index.js ├── member-search-index.zip ├── overview-summary.html ├── package-search-index.js ├── package-search-index.zip ├── publicTransport │ ├── PublicTransportation.html │ └── package-summary.html ├── resources │ ├── glass.png │ └── x.png ├── script-dir │ ├── external │ │ └── jquery │ │ │ └── jquery.js │ ├── images │ │ ├── ui-bg_glass_55_fbf9ee_1x400.png │ │ ├── ui-bg_glass_65_dadada_1x400.png │ │ ├── ui-bg_glass_75_dadada_1x400.png │ │ ├── ui-bg_glass_75_e6e6e6_1x400.png │ │ ├── ui-bg_glass_95_fef1ec_1x400.png │ │ ├── ui-bg_highlight-soft_75_cccccc_1x100.png │ │ ├── ui-icons_222222_256x240.png │ │ ├── ui-icons_2e83ff_256x240.png │ │ ├── ui-icons_454545_256x240.png │ │ ├── ui-icons_888888_256x240.png │ │ └── ui-icons_cd0a0a_256x240.png │ ├── jquery-3.4.1.js │ ├── jquery-ui.css │ ├── jquery-ui.js │ ├── jquery-ui.min.css │ ├── jquery-ui.min.js │ ├── jquery-ui.structure.css │ ├── jquery-ui.structure.min.css │ ├── jszip-utils │ │ └── dist │ │ │ ├── jszip-utils-ie.js │ │ │ ├── jszip-utils-ie.min.js │ │ │ ├── jszip-utils.js │ │ │ └── jszip-utils.min.js │ └── jszip │ │ └── dist │ │ ├── jszip.js │ │ └── jszip.min.js ├── script.js ├── seaTransport │ ├── Ferry.html │ └── package-summary.html ├── search.js ├── serialized-form.html ├── stylesheet.css ├── type-search-index.js └── type-search-index.zip └── ratemyprofessor.dat /.gitattributes: -------------------------------------------------------------------------------- 1 | *.* linguist-language=Java 2 | * linguist-vendored 3 | *.js linguist-vendored=false 4 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | bin 2 | srcPractice 3 | src 4 | .classpath 5 | .project 6 | .settings 7 | .git 8 | SubmissionFiles 9 | Corrected_Cargoship_Info.txt 10 | exist.txt 11 | IOpractice.txt 12 | lol.txt 13 | noduplicate.txt -------------------------------------------------------------------------------- /A1/ReadMe.md: -------------------------------------------------------------------------------- 1 | The purpose of this program is to practice class inheritance, polymorphism and other Object-Oriented Programming concepts such as access rights, packages, method overriding, etc. 2 | 3 | It contains 6 classes of different types of transportation. The superclass is the PublicTransportation class, and all the other ones derive from it. 4 | 5 | The driver class for this program is inside the AirCraft package (folder) and is used to test all of the classes. 6 | 7 | ![TransportClassDiagram](https://user-images.githubusercontent.com/59063950/87099308-5d164b80-c217-11ea-854a-e86e61144281.png) 8 | -------------------------------------------------------------------------------- /A1/TransportClassDiagram.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fryingpannn/Java_OOP2/e93708ab93190420072e85373d5a21fbb11249b5/A1/TransportClassDiagram.png -------------------------------------------------------------------------------- /A1/airTransport/.gitignore: -------------------------------------------------------------------------------- 1 | /AirCraft$AirType.class 2 | /AirCraft$TimeType.class 3 | /AirCraft.class 4 | /DriverTransport.class 5 | /test.class 6 | -------------------------------------------------------------------------------- /A1/groundTransport/.gitignore: -------------------------------------------------------------------------------- 1 | /CityBus.class 2 | /Metro.class 3 | /Tram.class 4 | -------------------------------------------------------------------------------- /A1/javadocs/allpackages-index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | All Packages 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 19 | 20 | 21 | 22 | 23 | 25 | 28 |
29 |
30 |

All Packages

31 |
32 |
33 |
34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 |
Package Summary 
PackageDescription
airTransport 
groundTransport 
publicTransport 
seaTransport 
61 |
62 |
63 |
64 | 65 | 66 | -------------------------------------------------------------------------------- /A1/javadocs/constant-values.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Constant Field Values 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 19 | 20 | 21 | 22 | 23 | 25 | 28 |
29 |
30 |

Constant Field Values

31 |
32 |

Contents

33 |
34 |
35 |
36 | 37 | 38 | -------------------------------------------------------------------------------- /A1/javadocs/deprecated-list.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Deprecated List 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 19 | 20 | 21 | 22 | 23 | 25 | 28 |
29 |
30 |

Deprecated API

31 |

Contents

32 |
33 |
34 | 35 | 36 | -------------------------------------------------------------------------------- /A1/javadocs/element-list: -------------------------------------------------------------------------------- 1 | airTransport 2 | groundTransport 3 | publicTransport 4 | seaTransport 5 | -------------------------------------------------------------------------------- /A1/javadocs/groundTransport/package-summary.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | groundTransport 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 19 | 20 | 21 | 22 | 23 | 25 | 28 |
29 |
30 |

Package groundTransport

31 |
32 |
33 |
34 |
    35 |
  • 36 |
    37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 51 | 52 | 53 | 54 | 57 | 58 | 59 | 60 | 63 | 64 | 65 |
    Class Summary 
    ClassDescription
    CityBus 49 |
    This is the CityBus class file which extends PublicTransportation, and is the superclass of the Metro and Tram classes.
    50 |
    Metro 55 |
    This is the Metro class file which extends CityBus, and it's the grandchild class of the PublicTransportation class.
    56 |
    Tram 61 |
    This is the Tram class file which extends CityBus, and it's the grandchild class of the PublicTransportation class.
    62 |
    66 |
    67 |
  • 68 |
69 |
70 |
71 |
72 | 73 | 74 | -------------------------------------------------------------------------------- /A1/javadocs/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Overview 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 19 | 20 | 21 | 22 | 23 | 25 | 28 |
29 |
30 |
31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 |
Packages 
PackageDescription
airTransport 
groundTransport 
publicTransport 
seaTransport 
58 |
59 |
60 |
61 | 62 | 63 | -------------------------------------------------------------------------------- /A1/javadocs/member-search-index.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fryingpannn/Java_OOP2/e93708ab93190420072e85373d5a21fbb11249b5/A1/javadocs/member-search-index.zip -------------------------------------------------------------------------------- /A1/javadocs/overview-summary.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Generated Documentation (Untitled) 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 17 | 18 | 19 |
20 | 23 |

index.html

24 |
25 | 26 | 27 | -------------------------------------------------------------------------------- /A1/javadocs/package-search-index.js: -------------------------------------------------------------------------------- 1 | packageSearchIndex = [{"l":"airTransport"},{"l":"All Packages","url":"allpackages-index.html"},{"l":"groundTransport"},{"l":"publicTransport"},{"l":"seaTransport"}] -------------------------------------------------------------------------------- /A1/javadocs/package-search-index.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fryingpannn/Java_OOP2/e93708ab93190420072e85373d5a21fbb11249b5/A1/javadocs/package-search-index.zip -------------------------------------------------------------------------------- /A1/javadocs/publicTransport/package-summary.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | publicTransport 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 19 | 20 | 21 | 22 | 23 | 25 | 28 |
29 |
30 |

Package publicTransport

31 |
32 |
33 |
34 |
    35 |
  • 36 |
    37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 51 | 52 | 53 |
    Class Summary 
    ClassDescription
    PublicTransportation 49 |
    This is the PublicTransportation class which is the superclass of the AirCraft, Ferry and CityBus classes.
    50 |
    54 |
    55 |
  • 56 |
57 |
58 |
59 |
60 | 61 | 62 | -------------------------------------------------------------------------------- /A1/javadocs/resources/glass.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fryingpannn/Java_OOP2/e93708ab93190420072e85373d5a21fbb11249b5/A1/javadocs/resources/glass.png -------------------------------------------------------------------------------- /A1/javadocs/resources/x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fryingpannn/Java_OOP2/e93708ab93190420072e85373d5a21fbb11249b5/A1/javadocs/resources/x.png -------------------------------------------------------------------------------- /A1/javadocs/script-dir/images/ui-bg_glass_55_fbf9ee_1x400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fryingpannn/Java_OOP2/e93708ab93190420072e85373d5a21fbb11249b5/A1/javadocs/script-dir/images/ui-bg_glass_55_fbf9ee_1x400.png -------------------------------------------------------------------------------- /A1/javadocs/script-dir/images/ui-bg_glass_65_dadada_1x400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fryingpannn/Java_OOP2/e93708ab93190420072e85373d5a21fbb11249b5/A1/javadocs/script-dir/images/ui-bg_glass_65_dadada_1x400.png -------------------------------------------------------------------------------- /A1/javadocs/script-dir/images/ui-bg_glass_75_dadada_1x400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fryingpannn/Java_OOP2/e93708ab93190420072e85373d5a21fbb11249b5/A1/javadocs/script-dir/images/ui-bg_glass_75_dadada_1x400.png -------------------------------------------------------------------------------- /A1/javadocs/script-dir/images/ui-bg_glass_75_e6e6e6_1x400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fryingpannn/Java_OOP2/e93708ab93190420072e85373d5a21fbb11249b5/A1/javadocs/script-dir/images/ui-bg_glass_75_e6e6e6_1x400.png -------------------------------------------------------------------------------- /A1/javadocs/script-dir/images/ui-bg_glass_95_fef1ec_1x400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fryingpannn/Java_OOP2/e93708ab93190420072e85373d5a21fbb11249b5/A1/javadocs/script-dir/images/ui-bg_glass_95_fef1ec_1x400.png -------------------------------------------------------------------------------- /A1/javadocs/script-dir/images/ui-bg_highlight-soft_75_cccccc_1x100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fryingpannn/Java_OOP2/e93708ab93190420072e85373d5a21fbb11249b5/A1/javadocs/script-dir/images/ui-bg_highlight-soft_75_cccccc_1x100.png -------------------------------------------------------------------------------- /A1/javadocs/script-dir/images/ui-icons_222222_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fryingpannn/Java_OOP2/e93708ab93190420072e85373d5a21fbb11249b5/A1/javadocs/script-dir/images/ui-icons_222222_256x240.png -------------------------------------------------------------------------------- /A1/javadocs/script-dir/images/ui-icons_2e83ff_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fryingpannn/Java_OOP2/e93708ab93190420072e85373d5a21fbb11249b5/A1/javadocs/script-dir/images/ui-icons_2e83ff_256x240.png -------------------------------------------------------------------------------- /A1/javadocs/script-dir/images/ui-icons_454545_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fryingpannn/Java_OOP2/e93708ab93190420072e85373d5a21fbb11249b5/A1/javadocs/script-dir/images/ui-icons_454545_256x240.png -------------------------------------------------------------------------------- /A1/javadocs/script-dir/images/ui-icons_888888_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fryingpannn/Java_OOP2/e93708ab93190420072e85373d5a21fbb11249b5/A1/javadocs/script-dir/images/ui-icons_888888_256x240.png -------------------------------------------------------------------------------- /A1/javadocs/script-dir/images/ui-icons_cd0a0a_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fryingpannn/Java_OOP2/e93708ab93190420072e85373d5a21fbb11249b5/A1/javadocs/script-dir/images/ui-icons_cd0a0a_256x240.png -------------------------------------------------------------------------------- /A1/javadocs/script-dir/jquery-ui.structure.min.css: -------------------------------------------------------------------------------- 1 | /*! jQuery UI - v1.12.1 - 2018-12-06 2 | * http://jqueryui.com 3 | * Copyright jQuery Foundation and other contributors; Licensed MIT */ 4 | 5 | .ui-helper-hidden{display:none}.ui-helper-hidden-accessible{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.ui-helper-reset{margin:0;padding:0;border:0;outline:0;line-height:1.3;text-decoration:none;font-size:100%;list-style:none}.ui-helper-clearfix:before,.ui-helper-clearfix:after{content:"";display:table;border-collapse:collapse}.ui-helper-clearfix:after{clear:both}.ui-helper-zfix{width:100%;height:100%;top:0;left:0;position:absolute;opacity:0;filter:Alpha(Opacity=0)}.ui-front{z-index:100}.ui-state-disabled{cursor:default!important;pointer-events:none}.ui-icon{display:inline-block;vertical-align:middle;margin-top:-.25em;position:relative;text-indent:-99999px;overflow:hidden;background-repeat:no-repeat}.ui-widget-icon-block{left:50%;margin-left:-8px;display:block}.ui-widget-overlay{position:fixed;top:0;left:0;width:100%;height:100%}.ui-autocomplete{position:absolute;top:0;left:0;cursor:default}.ui-menu{list-style:none;padding:0;margin:0;display:block;outline:0}.ui-menu .ui-menu{position:absolute}.ui-menu .ui-menu-item{margin:0;cursor:pointer;list-style-image:url("data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7")}.ui-menu .ui-menu-item-wrapper{position:relative;padding:3px 1em 3px .4em}.ui-menu .ui-menu-divider{margin:5px 0;height:0;font-size:0;line-height:0;border-width:1px 0 0 0}.ui-menu .ui-state-focus,.ui-menu .ui-state-active{margin:-1px}.ui-menu-icons{position:relative}.ui-menu-icons .ui-menu-item-wrapper{padding-left:2em}.ui-menu .ui-icon{position:absolute;top:0;bottom:0;left:.2em;margin:auto 0}.ui-menu .ui-menu-icon{left:auto;right:0} -------------------------------------------------------------------------------- /A1/javadocs/script-dir/jszip-utils/dist/jszip-utils-ie.js: -------------------------------------------------------------------------------- 1 | /*! 2 | 3 | JSZipUtils - A collection of cross-browser utilities to go along with JSZip. 4 | 5 | 6 | (c) 2014 Stuart Knightley, David Duponchel 7 | Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip-utils/master/LICENSE.markdown. 8 | 9 | */ 10 | ;(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o\r\n"+ 18 | "\r\n"; 32 | 33 | // inject VBScript 34 | document.write(IEBinaryToArray_ByteStr_Script); 35 | 36 | global.JSZipUtils._getBinaryFromXHR = function (xhr) { 37 | var binary = xhr.responseBody; 38 | var byteMapping = {}; 39 | for ( var i = 0; i < 256; i++ ) { 40 | for ( var j = 0; j < 256; j++ ) { 41 | byteMapping[ String.fromCharCode( i + (j << 8) ) ] = 42 | String.fromCharCode(i) + String.fromCharCode(j); 43 | } 44 | } 45 | var rawBytes = IEBinaryToArray_ByteStr(binary); 46 | var lastChr = IEBinaryToArray_ByteStr_Last(binary); 47 | return rawBytes.replace(/[\s\S]/g, function( match ) { 48 | return byteMapping[match]; 49 | }) + lastChr; 50 | }; 51 | 52 | // enforcing Stuk's coding style 53 | // vim: set shiftwidth=4 softtabstop=4: 54 | 55 | },{}]},{},[1]) 56 | ; 57 | -------------------------------------------------------------------------------- /A1/javadocs/script-dir/jszip-utils/dist/jszip-utils-ie.min.js: -------------------------------------------------------------------------------- 1 | /*! 2 | 3 | JSZipUtils - A collection of cross-browser utilities to go along with JSZip. 4 | 5 | 6 | (c) 2014 Stuart Knightley, David Duponchel 7 | Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip-utils/master/LICENSE.markdown. 8 | 9 | */ 10 | !function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);throw new Error("Cannot find module '"+g+"'")}var j=c[g]={exports:{}};b[g][0].call(j.exports,function(a){var c=b[g][1][a];return e(c?c:a)},j,j.exports,a,b,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g\r\n";document.write(b),a.JSZipUtils._getBinaryFromXHR=function(a){for(var b=a.responseBody,c={},d=0;256>d;d++)for(var e=0;256>e;e++)c[String.fromCharCode(d+(e<<8))]=String.fromCharCode(d)+String.fromCharCode(e);var f=IEBinaryToArray_ByteStr(b),g=IEBinaryToArray_ByteStr_Last(b);return f.replace(/[\s\S]/g,function(a){return c[a]})+g}},{}]},{},[1]); 11 | -------------------------------------------------------------------------------- /A1/javadocs/script-dir/jszip-utils/dist/jszip-utils.min.js: -------------------------------------------------------------------------------- 1 | /*! 2 | 3 | JSZipUtils - A collection of cross-browser utilities to go along with JSZip. 4 | 5 | 6 | (c) 2014 Stuart Knightley, David Duponchel 7 | Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip-utils/master/LICENSE.markdown. 8 | 9 | */ 10 | !function(a){"object"==typeof exports?module.exports=a():"function"==typeof define&&define.amd?define(a):"undefined"!=typeof window?window.JSZipUtils=a():"undefined"!=typeof global?global.JSZipUtils=a():"undefined"!=typeof self&&(self.JSZipUtils=a())}(function(){return function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);throw new Error("Cannot find module '"+g+"'")}var j=c[g]={exports:{}};b[g][0].call(j.exports,function(a){var c=b[g][1][a];return e(c?c:a)},j,j.exports,a,b,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g 2 | 3 | 4 | 5 | 6 | seaTransport 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 19 | 20 | 21 | 22 | 23 | 25 | 28 |
29 |
30 |

Package seaTransport

31 |
32 |
33 |
34 |
    35 |
  • 36 |
    37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 51 | 52 | 53 |
    Class Summary 
    ClassDescription
    Ferry 49 |
    This is the Ferry class file which extends PublicTransportation.
    50 |
    54 |
    55 |
  • 56 |
57 |
58 |
59 |
60 | 61 | 62 | -------------------------------------------------------------------------------- /A1/javadocs/type-search-index.js: -------------------------------------------------------------------------------- 1 | typeSearchIndex = [{"p":"airTransport","l":"AirCraft"},{"p":"airTransport","l":"AirCraft.AirType"},{"l":"All Classes","url":"allclasses-index.html"},{"p":"groundTransport","l":"CityBus"},{"p":"airTransport","l":"DriverTransport"},{"p":"seaTransport","l":"Ferry"},{"p":"groundTransport","l":"Metro"},{"p":"publicTransport","l":"PublicTransportation"},{"p":"airTransport","l":"AirCraft.TimeType"},{"p":"groundTransport","l":"Tram"}] -------------------------------------------------------------------------------- /A1/javadocs/type-search-index.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fryingpannn/Java_OOP2/e93708ab93190420072e85373d5a21fbb11249b5/A1/javadocs/type-search-index.zip -------------------------------------------------------------------------------- /A1/publicTransport/.gitignore: -------------------------------------------------------------------------------- 1 | /PublicTransportation.class 2 | -------------------------------------------------------------------------------- /A1/seaTransport/.gitignore: -------------------------------------------------------------------------------- 1 | /Ferry.class 2 | /test.class 3 | -------------------------------------------------------------------------------- /A1/seaTransport/Ferry.java: -------------------------------------------------------------------------------- 1 | /*------------------------------- 2 | * Name: Matthew Pan | 3 | * Student ID: 40135588 | 4 | * Comp 249: Assignment #1 | 5 | * Driver file: DriverTransport | 6 | * Part 2 | 7 | * Due Date: 12 July, 2020 | 8 | * Professor: Dr. Yuhong Yan | 9 | *------------------------------- 10 | */ 11 | package seaTransport; 12 | 13 | import publicTransport.PublicTransportation; 14 | /** 15 | * This is the Ferry class file which extends PublicTransportation. 16 | * 17 | * @author Matthew Pan 40135588 18 | */ 19 | public class Ferry extends PublicTransportation 20 | { 21 | /**Year built*/ 22 | private int buildYr; 23 | /**Name of ship*/ 24 | private String shipName; 25 | 26 | 27 | /**Sets values to default*/ 28 | public Ferry() { 29 | super(); 30 | setBuildYr(0); 31 | setShipName("None"); 32 | } 33 | 34 | /** 35 | * Sets the 4 parameter values for this Ferry. 36 | * 37 | * @param aTicketPrice price per ticket 38 | * @param aNbStops number of stops 39 | * @param aBuildYr year built 40 | * @param aShipName name of ship 41 | */ 42 | public Ferry(double aTicketPrice, int aNbStops, int aBuildYr, String aShipName) { 43 | super(aTicketPrice, aNbStops); 44 | setBuildYr(aBuildYr); 45 | setShipName(aShipName); 46 | } 47 | 48 | /** 49 | * Copy constructor; copies the values inside aCopy to the new obj. 50 | * 51 | * @param aCopy object to copy from 52 | */ 53 | public Ferry(Ferry aCopy) { 54 | super(aCopy); 55 | setBuildYr(aCopy.getBuildYr()); 56 | setShipName(aCopy.getShipName()); 57 | } 58 | 59 | /**Overriding equals method. 60 | * 61 | * Null verification is very important. If it isn't included and the equals method is used on a null object, 62 | * it will terminate the program and throw a NullPointerException error because null points to nothing.*/ 63 | public boolean equals(Object otherObject) { 64 | if(otherObject == null) { 65 | return false; 66 | } 67 | else if(getClass() != otherObject.getClass()) { 68 | return false; 69 | } 70 | else { 71 | Ferry otherObj = (Ferry) otherObject; 72 | return (super.equals(otherObject) && getBuildYr() == otherObj.getBuildYr() && getShipName().equals(otherObj.getShipName())); 73 | } 74 | } 75 | 76 | /**Overriding toString method: displaying all properties of this object*/ 77 | public String toString() { 78 | return ("This Ferry's info --> Ticket Price: " + getTicketPrice() + "$ | Number of Stops: " + getNbStops() + " | Build Year: " 79 | + getBuildYr() + " | Ship Name: " + getShipName()); 80 | } 81 | 82 | /**mutator methods (2)*/ 83 | public void setBuildYr(int aBuildYr) { 84 | if(aBuildYr < 0) { 85 | System.out.println("Input cannot be negative"); 86 | } 87 | else { 88 | buildYr = aBuildYr; 89 | } 90 | } 91 | 92 | /**mutator methods (2)*/ 93 | public void setShipName(String aShipName) { 94 | shipName = aShipName; 95 | } 96 | 97 | /**accessor methods (2)*/ 98 | public int getBuildYr() { 99 | return buildYr; 100 | } 101 | 102 | /**accessor methods (2)*/ 103 | public String getShipName() { 104 | return shipName; 105 | } 106 | 107 | 108 | } 109 | -------------------------------------------------------------------------------- /A2/Part1/Box.java: -------------------------------------------------------------------------------- 1 | package Part1; 2 | 3 | /*--------------------------------- 4 | * Name: Matthew Pan | 5 | * Student ID: 40135588 | 6 | * Comp 249: Assignment #2 | 7 | * Driver file: TruckPackageDriver | 8 | * Part 1 | 9 | * Due Date: 25 July, 2020 | 10 | * Professor: Dr. Yuhong Yan | 11 | *--------------------------------- 12 | */ 13 | /** 14 | * Box class which inherits from Package and implements testWeight() and computeCost() 15 | * @author Matthew Pan 16 | */ 17 | public class Box extends Package { 18 | /** 19 | * no args constructor 20 | */ 21 | public Box() { 22 | super(); 23 | setTrackingNb(1); 24 | } 25 | 26 | /** 27 | * @param aTracking tracking nb 28 | * @param aWeight weight in ounces 29 | */ 30 | public Box(int aTracking, double aWeight) { 31 | super(aTracking, aWeight); 32 | } 33 | 34 | /** 35 | * Used when loading to truck: tests if package weight is valid 36 | * 37 | * @return true if weight is valid, false if invalid. 38 | */ 39 | public boolean testWeight() { 40 | //try block to test weight excess; used when loading Truck 41 | try { 42 | if(getWeight() <= 40 && getWeight() >= 0) { //max weight in pounds: 40 43 | return true; 44 | } 45 | else { 46 | throw new PackageException("[Maximum weight reached] Package info: "); 47 | } 48 | } 49 | catch (PackageException e) { 50 | System.err.println(e.getMessage() + "\n" + this); 51 | return false; 52 | } 53 | } 54 | 55 | /** 56 | *Calculates the shipping cost of this package 57 | */ 58 | public double computeCost() { 59 | return (2 * getWeight()); 60 | } 61 | 62 | /** 63 | *Displays this package 64 | */ 65 | public String toString() { 66 | return ("Box -> " + super.toString() + " | Weight (lbs): " + getWeight()); 67 | } 68 | 69 | /** 70 | * Setting the tracking number inappropriately will trigger an exception, and will prevent it from 71 | * being successfully loaded in truck. 72 | * 73 | *@param aTracking the tracking number to be set to 74 | */ 75 | public void setTrackingNb(int aTracking) { 76 | int lastDigit = aTracking % 10; //extracts last digit 77 | try { 78 | if(lastDigit == 1) { 79 | super.setTrackingNb(aTracking);; //setting the tracking nb 80 | } 81 | else {//throws exception if wrong last digit 82 | throw new PackageException("[A Box package has the wrong tracking number digit. " 83 | + "This package will not be loaded in the Truck and its number will be set to -2. " 84 | + "Package Info: "); 85 | } 86 | } 87 | catch (PackageException e) { 88 | System.out.println(e.getMessage()); 89 | super.setTrackingNb(-2); 90 | } 91 | } 92 | } 93 | -------------------------------------------------------------------------------- /A2/Part1/CargoTest.java: -------------------------------------------------------------------------------- 1 | package Part1; 2 | 3 | /*--------------------------------- 4 | * Name: Matthew Pan | 5 | * Student ID: 40135588 | 6 | * Comp 249: Assignment #2 | 7 | * Part 1 | 8 | * Due Date: 25 July, 2020 | 9 | * Professor: Dr. Yuhong Yan | 10 | *--------------------------------- 11 | */ 12 | /** 13 | * CargoTest class which tests the methods of the Truck and Package classes 14 | * @author Matthew Pan 15 | */ 16 | public class CargoTest { 17 | /** 18 | * Tests truck instantiation, package loading, gross income, truck weight, drives truck to 19 | * its destination and unloads weight. There are also three test cases which can be uncommented 20 | * to test exception handling: wrong tracking nb/max weight/truck full. 21 | * 22 | * @param args 23 | */ 24 | public static void main(String[] args) { 25 | //Start message 26 | System.out.println("--------------------------- Start of Cargo Test ---------------------------\n"); 27 | 28 | //creating truck: "Name, Start, End, Unloaded Weight (lbs)" 29 | System.out.println("- Displaying freshly instantiated truck: "); 30 | Truck truck1 = new Truck("Matthew", "Boston", "Montreal", 7000); 31 | System.out.println(truck1 + "\n"); 32 | 33 | //array containing packages to be stored in truck 34 | Package[] toLoad = new Package[7]; 35 | 36 | /* Normal test case: No errors */ 37 | toLoad[0] = new Letter(100, 32); //Letter: max weight 32, #0 38 | toLoad[1] = new Box(101, 40); //Box: max weight 40, #1 39 | toLoad[2] = new WoodCrate(102, 80); //WoodCrate: max weight 80, #2 40 | toLoad[3] = new MetalCrate(103, 100); //MetalCrate: max weight 100, #3 41 | toLoad[4] = new WoodCrate(112, 80); 42 | 43 | /* Error test cases below: simply uncomment to test */ 44 | //toLoad[4] = new Letter(-1, 32); //--> Package with wrong tracking number exception 45 | //toLoad[3] = new Box(101, 41); // --> Package exceeding max weight exception 46 | //toLoad[5] = new MetalCrate(113, 60); //--> Loading an extra package when truck is already full 47 | 48 | //Loading truck with packages chosen 49 | System.out.println("- Now loading the truck with its packages:"); 50 | System.out.println("\t25%...\n\t50%...\n\t75%...\n\t...100%: Truck has been fully loaded!\n"); 51 | truck1.load(toLoad); 52 | 53 | truck1.displayPkg(); 54 | 55 | //Display gross income 56 | System.out.println("- Gross income earned by the shipping of cargo: "); 57 | System.out.println("\t-> " + truck1.getGrossCost() + "$\n"); 58 | 59 | //Display weight of truck after being loaded 60 | System.out.println("- Gross weight of truck with packages loaded: "); 61 | System.out.println("\t-> " + truck1.getGrossW()); 62 | 63 | //Drive the truck 64 | truck1.drive(); 65 | 66 | //Unloading the truck 67 | System.out.println("- Now unloading the truck completely: "); 68 | for(int i = Truck.maxPkg -1; i >= 0; i--) { 69 | truck1.unload(i); 70 | } 71 | System.out.println(); 72 | truck1.displayPkg(); 73 | 74 | //End message 75 | System.out.println("--------------------------- End of Cargo Test ---------------------------"); 76 | } 77 | } 78 | -------------------------------------------------------------------------------- /A2/Part1/Letter.java: -------------------------------------------------------------------------------- 1 | package Part1; 2 | 3 | /*--------------------------------- 4 | * Name: Matthew Pan | 5 | * Student ID: 40135588 | 6 | * Comp 249: Assignment #2 | 7 | * Driver file: TruckPackageDriver | 8 | * Part 1 | 9 | * Due Date: 25 July, 2020 | 10 | * Professor: Dr. Yuhong Yan | 11 | *--------------------------------- 12 | */ 13 | /** 14 | * Letter class which inherits from Package and implements testWeight() and computeCost() 15 | * @author Matthew Pan 16 | */ 17 | public class Letter extends Package{ 18 | 19 | /** 20 | * no args constructor 21 | */ 22 | public Letter() { 23 | super(); 24 | setTrackingNb(0); 25 | } 26 | 27 | /** 28 | * @param aTracking tracking nb 29 | * @param aWeight weight in ounces 30 | */ 31 | public Letter(int aTracking, double aWeight) { 32 | super(aTracking, aWeight); 33 | } 34 | 35 | /** 36 | * Used when loading to truck: tests if package weight is valid 37 | * 38 | * @return true if weight is valid, false if invalid. 39 | */ 40 | public boolean testWeight() { 41 | //try block to test weight excess; used when loading Truck 42 | try { 43 | if(toOunces(getWeight()) <= 32 && getWeight() >= 0) { //max weight in ounces: 32 (2 pounds) 44 | return true; 45 | } 46 | else { 47 | throw new PackageException("[Maximum weight reached] Package info: "); 48 | } 49 | } 50 | catch (PackageException e) { 51 | System.err.println(e.getMessage() + "\n" + this); 52 | return false; 53 | } 54 | } 55 | 56 | /** 57 | *Calculates the shipping cost of this letter obj 58 | */ 59 | public double computeCost() { 60 | return (0.05 * getWeight()); 61 | } 62 | 63 | /** 64 | *Displays this letter 65 | */ 66 | public String toString() { 67 | return ("Letter -> " + super.toString() + " | Weight (oz): " + toOunces(getWeight())); 68 | } 69 | 70 | /** 71 | * @return weight of letter in pounds 72 | */ 73 | public double getWeight() { 74 | return (toPounds(super.getWeight())); 75 | } 76 | 77 | /** 78 | * Setting the tracking number inappropriately will trigger an exception, and will prevent it from 79 | * being successfully loaded in truck. 80 | * 81 | *@param aTracking the tracking number to be set to 82 | */ 83 | public void setTrackingNb(int aTracking) { 84 | int lastDigit = aTracking % 10; //extracts last digit 85 | try { 86 | if(lastDigit == 0) { 87 | super.setTrackingNb(aTracking);; //setting the tracking nb 88 | } 89 | else {//throws exception if wrong last digit 90 | throw new PackageException("[A Letter package has the wrong tracking number digit. " 91 | + "This package will not be loaded in the Truck and its number will be set to -1. " 92 | + "Package Info: "); 93 | } 94 | } 95 | catch (PackageException e) { 96 | System.out.println(e.getMessage()); 97 | super.setTrackingNb(-1); 98 | } 99 | } 100 | } -------------------------------------------------------------------------------- /A2/Part1/MetalCrate.java: -------------------------------------------------------------------------------- 1 | package Part1; 2 | 3 | /*--------------------------------- 4 | * Name: Matthew Pan | 5 | * Student ID: 40135588 | 6 | * Comp 249: Assignment #2 | 7 | * Driver file: TruckPackageDriver | 8 | * Part 1 | 9 | * Due Date: 25 July, 2020 | 10 | * Professor: Dr. Yuhong Yan | 11 | *--------------------------------- 12 | */ 13 | /** 14 | * Letter class which inherits from Package and implements testWeight() and computeCost() 15 | * @author Matthew Pan 16 | */ 17 | public class MetalCrate extends Package { 18 | /** 19 | * no args constructor 20 | */ 21 | public MetalCrate() { 22 | super(); 23 | setTrackingNb(3); 24 | } 25 | 26 | /** 27 | * @param aTracking tracking nb 28 | * @param aWeight weight in ounces 29 | */ 30 | public MetalCrate(int aTracking, double aWeight) { 31 | super(aTracking, aWeight); 32 | } 33 | 34 | /** 35 | * Used when loading to truck: tests if package weight is valid 36 | * 37 | * @return true if weight is valid, false if invalid. 38 | */ 39 | public boolean testWeight() { 40 | //try block to test weight excess; used when loading Truck 41 | try { 42 | if(getWeight() <= 100 && getWeight() >= 0) { //max weight in pounds: 40 43 | return true; 44 | } 45 | else { 46 | throw new PackageException("[Maximum weight reached] Package info: "); 47 | } 48 | } 49 | catch (PackageException e) { 50 | System.err.println(e.getMessage() + "\n" + this); 51 | return false; 52 | } 53 | } 54 | 55 | /** 56 | *Calculates the shipping cost of this package 57 | */ 58 | public double computeCost() { 59 | return (3 * getWeight()); 60 | } 61 | 62 | /** 63 | *Displays this package 64 | */ 65 | public String toString() { 66 | return ("Metal Crate -> " + super.toString() + " | Weight (lbs): " + getWeight()); 67 | } 68 | 69 | /** 70 | * Setting the tracking number inappropriately will trigger an exception, and will prevent it from 71 | * being successfully loaded in truck. 72 | * 73 | *@param aTracking the tracking number to be set to 74 | */ 75 | public void setTrackingNb(int aTracking) { 76 | int lastDigit = aTracking % 10; //extracts last digit 77 | try { 78 | if(lastDigit == 3) { 79 | super.setTrackingNb(aTracking);; //setting the tracking nb 80 | } 81 | else {//throws exception if wrong last digit 82 | throw new PackageException("[A Metal Crate package has the wrong tracking number digit. " 83 | + "This package will not be loaded in the Truck and its number will be set to -4. " 84 | + "Package Info: "); 85 | } 86 | } 87 | catch (PackageException e) { 88 | System.out.println(e.getMessage()); 89 | super.setTrackingNb(-4); 90 | } 91 | } 92 | } 93 | -------------------------------------------------------------------------------- /A2/Part1/Other/TruckPackageDiagram.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fryingpannn/Java_OOP2/e93708ab93190420072e85373d5a21fbb11249b5/A2/Part1/Other/TruckPackageDiagram.png -------------------------------------------------------------------------------- /A2/Part1/Other/TruckPackage_UMLDiagram.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fryingpannn/Java_OOP2/e93708ab93190420072e85373d5a21fbb11249b5/A2/Part1/Other/TruckPackage_UMLDiagram.pdf -------------------------------------------------------------------------------- /A2/Part1/PackageException.java: -------------------------------------------------------------------------------- 1 | package Part1; 2 | 3 | /*--------------------------------- 4 | * Name: Matthew Pan | 5 | * Student ID: 40135588 | 6 | * Comp 249: Assignment #2 | 7 | * Driver file: TruckPackageDriver | 8 | * Part 1 | 9 | * Due Date: 25 July, 2020 | 10 | * Professor: Dr. Yuhong Yan | 11 | *--------------------------------- 12 | */ 13 | /** 14 | * PackageException class which handles the exception messages (e.g.: weight limit 15 | * reached / invalid tracking nb / truck full) 16 | * 17 | * @author Matthew Pan 18 | */ 19 | @SuppressWarnings("serial") 20 | public class PackageException extends Exception { 21 | 22 | /** 23 | * no args constructor 24 | */ 25 | public PackageException() { 26 | super("[Package Exception Error]"); 27 | } 28 | 29 | /** 30 | * @param msg takes in the message to deliver 31 | */ 32 | public PackageException(String msg) { 33 | super(msg); 34 | } 35 | } -------------------------------------------------------------------------------- /A2/Part1/ReadMe.md: -------------------------------------------------------------------------------- 1 | The following classes``` Truck, Package, Letter, Box, Metal Crate, Wood Crate, CargoTest ``` are implemented to simulate the long-distance transportation of packages by a truck. 2 | 3 | **Core practices:** Class design, The relationship (is-a vs has-a) between the classes, abstract classes/methods, methods’ implementation, methods’ overriding, access rights of the class members, exception handling. 4 | 5 | 6 | **UML Diagram** 7 | 8 | ![TruckPackageDiagram](https://user-images.githubusercontent.com/59063950/88488117-3ebf8800-cf59-11ea-8a50-97da9ce6c8e9.png) 9 | 10 | **Sample Example** 11 | 12 | ![Example](https://user-images.githubusercontent.com/59063950/88488375-ebe6d000-cf5a-11ea-9ec8-390bfee61777.png) 13 | -------------------------------------------------------------------------------- /A2/Part1/TruckPackageDelivery.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fryingpannn/Java_OOP2/e93708ab93190420072e85373d5a21fbb11249b5/A2/Part1/TruckPackageDelivery.jar -------------------------------------------------------------------------------- /A2/Part1/WoodCrate.java: -------------------------------------------------------------------------------- 1 | package Part1; 2 | 3 | /*--------------------------------- 4 | * Name: Matthew Pan | 5 | * Student ID: 40135588 | 6 | * Comp 249: Assignment #2 | 7 | * Driver file: TruckPackageDriver | 8 | * Part 1 | 9 | * Due Date: 25 July, 2020 | 10 | * Professor: Dr. Yuhong Yan | 11 | *--------------------------------- 12 | */ 13 | /** 14 | * WoodCrate class which inherits from Package and implements testWeight() and computeCost() 15 | * @author Matthew Pan 16 | */ 17 | public class WoodCrate extends Package { 18 | /** 19 | * no args constructor 20 | */ 21 | public WoodCrate() { 22 | super(); 23 | setTrackingNb(2); 24 | } 25 | 26 | /** 27 | * @param aTracking tracking nb 28 | * @param aWeight weight in ounces 29 | */ 30 | public WoodCrate(int aTracking, double aWeight) { 31 | super(aTracking, aWeight); 32 | } 33 | 34 | /** 35 | * Used when loading to truck: tests if package weight is valid 36 | * 37 | * @return true if weight is valid, false if invalid. 38 | */ 39 | public boolean testWeight() { 40 | //try block to test weight excess; used when loading Truck 41 | try { 42 | if(getWeight() <= 80 && getWeight() >= 0) { //max weight in pounds: 40 43 | return true; 44 | } 45 | else { 46 | throw new PackageException("[Maximum weight reached] Package info: "); 47 | } 48 | } 49 | catch (PackageException e) { 50 | System.err.println(e.getMessage() + "\n" + this); 51 | return false; 52 | } 53 | } 54 | 55 | /** 56 | *Calculates the shipping cost of this package 57 | */ 58 | public double computeCost() { 59 | return (2.5 * getWeight()); 60 | } 61 | 62 | /** 63 | *Displays this package 64 | */ 65 | public String toString() { 66 | return ("Wood Crate -> " + super.toString() + " | Weight (lbs): " + getWeight()); 67 | } 68 | 69 | /** 70 | * Setting the tracking number inappropriately will trigger an exception, and will prevent it from 71 | * being successfully loaded in truck. 72 | * 73 | *@param aTracking the tracking number to be set to 74 | */ 75 | public void setTrackingNb(int aTracking) { 76 | int lastDigit = aTracking % 10; //extracts last digit 77 | try { 78 | if(lastDigit == 2) { 79 | super.setTrackingNb(aTracking);; //setting the tracking nb 80 | } 81 | else {//throws exception if wrong last digit 82 | throw new PackageException("[A Wood Crate package has the wrong tracking number digit. " 83 | + "This package will not be loaded in the Truck and its number will be set to -3. " 84 | + "Package Info: "); 85 | } 86 | } 87 | catch (PackageException e) { 88 | System.out.println(e.getMessage()); 89 | super.setTrackingNb(-3); 90 | } 91 | } 92 | } 93 | -------------------------------------------------------------------------------- /A2/Part1/javadocP1/allpackages-index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | All Packages 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 19 | 20 | 21 | 22 | 23 | 25 | 28 |
29 |
30 |

All Packages

31 |
32 |
33 |
34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 |
Package Summary 
PackageDescription
Part1 
49 |
50 |
51 |
52 | 53 | 54 | -------------------------------------------------------------------------------- /A2/Part1/javadocP1/constant-values.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Constant Field Values 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 19 | 20 | 21 | 22 | 23 | 25 | 28 |
29 |
30 |

Constant Field Values

31 |
32 |

Contents

33 | 36 |
37 |
38 |
39 | 40 | 41 |
42 |

Part1.*

43 |
    44 |
  • 45 |
    46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 60 | 61 | 62 | 63 | 64 |
    Part1.Truck 
    Modifier and TypeConstant FieldValue
    58 | 59 | public static final intmaxPkg5
    65 |
    66 |
  • 67 |
68 |
69 |
70 |
71 | 72 | 73 | -------------------------------------------------------------------------------- /A2/Part1/javadocP1/deprecated-list.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Deprecated List 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 19 | 20 | 21 | 22 | 23 | 25 | 28 |
29 |
30 |

Deprecated API

31 |

Contents

32 |
33 |
34 | 35 | 36 | -------------------------------------------------------------------------------- /A2/Part1/javadocP1/element-list: -------------------------------------------------------------------------------- 1 | Part1 2 | -------------------------------------------------------------------------------- /A2/Part1/javadocP1/index-files/index-4.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | E-Index 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 19 | 20 | 21 | 22 | 23 | 25 | 28 |
29 |
30 |

Index

31 |
32 |
B C D E G L M O P S T U W 
All Classes All Packages 33 | 34 | 35 |

E

36 |
37 |
end - Variable in class Truck
38 |
 
39 |
40 | B C D E G L M O P S T U W 
All Classes All Packages
41 |
42 | 43 | 44 | -------------------------------------------------------------------------------- /A2/Part1/javadocP1/index-files/index-8.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | O-Index 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 19 | 20 | 21 | 22 | 23 | 25 | 28 |
29 |
30 |

Index

31 |
32 |
B C D E G L M O P S T U W 
All Classes All Packages 33 | 34 | 35 |

O

36 |
37 |
origin - Variable in class Truck
38 |
 
39 |
40 | B C D E G L M O P S T U W 
All Classes All Packages
41 |
42 | 43 | 44 | -------------------------------------------------------------------------------- /A2/Part1/javadocP1/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Generated Documentation (Untitled) 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 17 | 18 | 19 |
20 | 23 |

Part1/package-summary.html

24 |
25 | 26 | 27 | -------------------------------------------------------------------------------- /A2/Part1/javadocP1/member-search-index.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fryingpannn/Java_OOP2/e93708ab93190420072e85373d5a21fbb11249b5/A2/Part1/javadocP1/member-search-index.zip -------------------------------------------------------------------------------- /A2/Part1/javadocP1/package-search-index.js: -------------------------------------------------------------------------------- 1 | packageSearchIndex = [{"l":"All Packages","url":"allpackages-index.html"},{"l":"Part1"}] -------------------------------------------------------------------------------- /A2/Part1/javadocP1/package-search-index.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fryingpannn/Java_OOP2/e93708ab93190420072e85373d5a21fbb11249b5/A2/Part1/javadocP1/package-search-index.zip -------------------------------------------------------------------------------- /A2/Part1/javadocP1/resources/glass.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fryingpannn/Java_OOP2/e93708ab93190420072e85373d5a21fbb11249b5/A2/Part1/javadocP1/resources/glass.png -------------------------------------------------------------------------------- /A2/Part1/javadocP1/resources/x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fryingpannn/Java_OOP2/e93708ab93190420072e85373d5a21fbb11249b5/A2/Part1/javadocP1/resources/x.png -------------------------------------------------------------------------------- /A2/Part1/javadocP1/script-dir/images/ui-bg_glass_55_fbf9ee_1x400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fryingpannn/Java_OOP2/e93708ab93190420072e85373d5a21fbb11249b5/A2/Part1/javadocP1/script-dir/images/ui-bg_glass_55_fbf9ee_1x400.png -------------------------------------------------------------------------------- /A2/Part1/javadocP1/script-dir/images/ui-bg_glass_65_dadada_1x400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fryingpannn/Java_OOP2/e93708ab93190420072e85373d5a21fbb11249b5/A2/Part1/javadocP1/script-dir/images/ui-bg_glass_65_dadada_1x400.png -------------------------------------------------------------------------------- /A2/Part1/javadocP1/script-dir/images/ui-bg_glass_75_dadada_1x400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fryingpannn/Java_OOP2/e93708ab93190420072e85373d5a21fbb11249b5/A2/Part1/javadocP1/script-dir/images/ui-bg_glass_75_dadada_1x400.png -------------------------------------------------------------------------------- /A2/Part1/javadocP1/script-dir/images/ui-bg_glass_75_e6e6e6_1x400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fryingpannn/Java_OOP2/e93708ab93190420072e85373d5a21fbb11249b5/A2/Part1/javadocP1/script-dir/images/ui-bg_glass_75_e6e6e6_1x400.png -------------------------------------------------------------------------------- /A2/Part1/javadocP1/script-dir/images/ui-bg_glass_95_fef1ec_1x400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fryingpannn/Java_OOP2/e93708ab93190420072e85373d5a21fbb11249b5/A2/Part1/javadocP1/script-dir/images/ui-bg_glass_95_fef1ec_1x400.png -------------------------------------------------------------------------------- /A2/Part1/javadocP1/script-dir/images/ui-bg_highlight-soft_75_cccccc_1x100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fryingpannn/Java_OOP2/e93708ab93190420072e85373d5a21fbb11249b5/A2/Part1/javadocP1/script-dir/images/ui-bg_highlight-soft_75_cccccc_1x100.png -------------------------------------------------------------------------------- /A2/Part1/javadocP1/script-dir/images/ui-icons_222222_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fryingpannn/Java_OOP2/e93708ab93190420072e85373d5a21fbb11249b5/A2/Part1/javadocP1/script-dir/images/ui-icons_222222_256x240.png -------------------------------------------------------------------------------- /A2/Part1/javadocP1/script-dir/images/ui-icons_2e83ff_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fryingpannn/Java_OOP2/e93708ab93190420072e85373d5a21fbb11249b5/A2/Part1/javadocP1/script-dir/images/ui-icons_2e83ff_256x240.png -------------------------------------------------------------------------------- /A2/Part1/javadocP1/script-dir/images/ui-icons_454545_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fryingpannn/Java_OOP2/e93708ab93190420072e85373d5a21fbb11249b5/A2/Part1/javadocP1/script-dir/images/ui-icons_454545_256x240.png -------------------------------------------------------------------------------- /A2/Part1/javadocP1/script-dir/images/ui-icons_888888_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fryingpannn/Java_OOP2/e93708ab93190420072e85373d5a21fbb11249b5/A2/Part1/javadocP1/script-dir/images/ui-icons_888888_256x240.png -------------------------------------------------------------------------------- /A2/Part1/javadocP1/script-dir/images/ui-icons_cd0a0a_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fryingpannn/Java_OOP2/e93708ab93190420072e85373d5a21fbb11249b5/A2/Part1/javadocP1/script-dir/images/ui-icons_cd0a0a_256x240.png -------------------------------------------------------------------------------- /A2/Part1/javadocP1/script-dir/jquery-ui.structure.min.css: -------------------------------------------------------------------------------- 1 | /*! jQuery UI - v1.12.1 - 2018-12-06 2 | * http://jqueryui.com 3 | * Copyright jQuery Foundation and other contributors; Licensed MIT */ 4 | 5 | .ui-helper-hidden{display:none}.ui-helper-hidden-accessible{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.ui-helper-reset{margin:0;padding:0;border:0;outline:0;line-height:1.3;text-decoration:none;font-size:100%;list-style:none}.ui-helper-clearfix:before,.ui-helper-clearfix:after{content:"";display:table;border-collapse:collapse}.ui-helper-clearfix:after{clear:both}.ui-helper-zfix{width:100%;height:100%;top:0;left:0;position:absolute;opacity:0;filter:Alpha(Opacity=0)}.ui-front{z-index:100}.ui-state-disabled{cursor:default!important;pointer-events:none}.ui-icon{display:inline-block;vertical-align:middle;margin-top:-.25em;position:relative;text-indent:-99999px;overflow:hidden;background-repeat:no-repeat}.ui-widget-icon-block{left:50%;margin-left:-8px;display:block}.ui-widget-overlay{position:fixed;top:0;left:0;width:100%;height:100%}.ui-autocomplete{position:absolute;top:0;left:0;cursor:default}.ui-menu{list-style:none;padding:0;margin:0;display:block;outline:0}.ui-menu .ui-menu{position:absolute}.ui-menu .ui-menu-item{margin:0;cursor:pointer;list-style-image:url("data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7")}.ui-menu .ui-menu-item-wrapper{position:relative;padding:3px 1em 3px .4em}.ui-menu .ui-menu-divider{margin:5px 0;height:0;font-size:0;line-height:0;border-width:1px 0 0 0}.ui-menu .ui-state-focus,.ui-menu .ui-state-active{margin:-1px}.ui-menu-icons{position:relative}.ui-menu-icons .ui-menu-item-wrapper{padding-left:2em}.ui-menu .ui-icon{position:absolute;top:0;bottom:0;left:.2em;margin:auto 0}.ui-menu .ui-menu-icon{left:auto;right:0} -------------------------------------------------------------------------------- /A2/Part1/javadocP1/script-dir/jszip-utils/dist/jszip-utils-ie.js: -------------------------------------------------------------------------------- 1 | /*! 2 | 3 | JSZipUtils - A collection of cross-browser utilities to go along with JSZip. 4 | 5 | 6 | (c) 2014 Stuart Knightley, David Duponchel 7 | Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip-utils/master/LICENSE.markdown. 8 | 9 | */ 10 | ;(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o\r\n"+ 18 | "\r\n"; 32 | 33 | // inject VBScript 34 | document.write(IEBinaryToArray_ByteStr_Script); 35 | 36 | global.JSZipUtils._getBinaryFromXHR = function (xhr) { 37 | var binary = xhr.responseBody; 38 | var byteMapping = {}; 39 | for ( var i = 0; i < 256; i++ ) { 40 | for ( var j = 0; j < 256; j++ ) { 41 | byteMapping[ String.fromCharCode( i + (j << 8) ) ] = 42 | String.fromCharCode(i) + String.fromCharCode(j); 43 | } 44 | } 45 | var rawBytes = IEBinaryToArray_ByteStr(binary); 46 | var lastChr = IEBinaryToArray_ByteStr_Last(binary); 47 | return rawBytes.replace(/[\s\S]/g, function( match ) { 48 | return byteMapping[match]; 49 | }) + lastChr; 50 | }; 51 | 52 | // enforcing Stuk's coding style 53 | // vim: set shiftwidth=4 softtabstop=4: 54 | 55 | },{}]},{},[1]) 56 | ; 57 | -------------------------------------------------------------------------------- /A2/Part1/javadocP1/script-dir/jszip-utils/dist/jszip-utils-ie.min.js: -------------------------------------------------------------------------------- 1 | /*! 2 | 3 | JSZipUtils - A collection of cross-browser utilities to go along with JSZip. 4 | 5 | 6 | (c) 2014 Stuart Knightley, David Duponchel 7 | Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip-utils/master/LICENSE.markdown. 8 | 9 | */ 10 | !function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);throw new Error("Cannot find module '"+g+"'")}var j=c[g]={exports:{}};b[g][0].call(j.exports,function(a){var c=b[g][1][a];return e(c?c:a)},j,j.exports,a,b,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g\r\n";document.write(b),a.JSZipUtils._getBinaryFromXHR=function(a){for(var b=a.responseBody,c={},d=0;256>d;d++)for(var e=0;256>e;e++)c[String.fromCharCode(d+(e<<8))]=String.fromCharCode(d)+String.fromCharCode(e);var f=IEBinaryToArray_ByteStr(b),g=IEBinaryToArray_ByteStr_Last(b);return f.replace(/[\s\S]/g,function(a){return c[a]})+g}},{}]},{},[1]); 11 | -------------------------------------------------------------------------------- /A2/Part1/javadocP1/script-dir/jszip-utils/dist/jszip-utils.min.js: -------------------------------------------------------------------------------- 1 | /*! 2 | 3 | JSZipUtils - A collection of cross-browser utilities to go along with JSZip. 4 | 5 | 6 | (c) 2014 Stuart Knightley, David Duponchel 7 | Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip-utils/master/LICENSE.markdown. 8 | 9 | */ 10 | !function(a){"object"==typeof exports?module.exports=a():"function"==typeof define&&define.amd?define(a):"undefined"!=typeof window?window.JSZipUtils=a():"undefined"!=typeof global?global.JSZipUtils=a():"undefined"!=typeof self&&(self.JSZipUtils=a())}(function(){return function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);throw new Error("Cannot find module '"+g+"'")}var j=c[g]={exports:{}};b[g][0].call(j.exports,function(a){var c=b[g][1][a];return e(c?c:a)},j,j.exports,a,b,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g 2 | 3 | 4 | 5 | 6 | Serialized Form 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 19 | 20 | 21 | 22 | 23 | 25 | 28 |
29 |
30 |

Serialized Form

31 |
32 |
33 |
    34 |
  • 35 |
    36 |

    Package Part1

    37 | 46 |
    47 |
  • 48 |
49 |
50 |
51 | 52 | 53 | -------------------------------------------------------------------------------- /A2/Part1/javadocP1/type-search-index.js: -------------------------------------------------------------------------------- 1 | typeSearchIndex = [{"l":"All Classes","url":"allclasses-index.html"},{"p":"Part1","l":"Box"},{"p":"Part1","l":"CargoTest"},{"p":"Part1","l":"Letter"},{"p":"Part1","l":"MetalCrate"},{"p":"Part1","l":"Package"},{"p":"Part1","l":"PackageException"},{"p":"Part1","l":"Truck"},{"p":"Part1","l":"TruckPackageDriver"},{"p":"Part1","l":"WoodCrate"}] -------------------------------------------------------------------------------- /A2/Part1/javadocP1/type-search-index.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fryingpannn/Java_OOP2/e93708ab93190420072e85373d5a21fbb11249b5/A2/Part1/javadocP1/type-search-index.zip -------------------------------------------------------------------------------- /A2/Part2/Cargoship.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fryingpannn/Java_OOP2/e93708ab93190420072e85373d5a21fbb11249b5/A2/Part2/Cargoship.jar -------------------------------------------------------------------------------- /A2/Part2/Cargoship.java: -------------------------------------------------------------------------------- 1 | /*--------------------------------- 2 | * Name: Matthew Pan | 3 | * Student ID: 40135588 | 4 | * Comp 249: Assignment #2 | 5 | * Driver file: CargoshipInventory1| 6 | * Part 2 | 7 | * Due Date: 25 July, 2020 | 8 | * Professor: Dr. Yuhong Yan | 9 | *--------------------------------- 10 | */ 11 | package Part2; 12 | /** 13 | * Cargoship class which contains the properties that are read and written to text files. 14 | * 15 | * @author Matthew Pan 16 | */ 17 | public class Cargoship { 18 | private long serialNb; 19 | private String name; //continuous string, or separated by _ 20 | private int creationYr; 21 | private String ownerCountry; //continuous string, or separated by _ 22 | private double price; 23 | private int speed; 24 | 25 | /** 26 | * no args constructor 27 | */ 28 | public Cargoship() { 29 | this.serialNb = 0; 30 | this.name = "none"; 31 | this.creationYr = 0; 32 | this.ownerCountry = "none"; 33 | this.price = 0; 34 | this.speed = 0; 35 | } 36 | 37 | /** 38 | * @return the serialNb 39 | */ 40 | public long getSerialNb() { 41 | return serialNb; 42 | } 43 | /** 44 | * @param serialNb the serialNb to set 45 | */ 46 | public void setSerialNb(long serialNb) { 47 | this.serialNb = serialNb; 48 | } 49 | /** 50 | * @return the name 51 | */ 52 | public String getName() { 53 | return name; 54 | } 55 | /** 56 | * @param name the name to set 57 | */ 58 | public void setName(String name) { 59 | this.name = name; 60 | } 61 | /** 62 | * @return the creationYr 63 | */ 64 | public int getCreationYr() { 65 | return creationYr; 66 | } 67 | /** 68 | * @param creationYr the creationYr to set 69 | */ 70 | public void setCreationYr(int creationYr) { 71 | this.creationYr = creationYr; 72 | } 73 | /** 74 | * @return the ownerCountry 75 | */ 76 | public String getOwnerCountry() { 77 | return ownerCountry; 78 | } 79 | /** 80 | * @param ownerCountry the ownerCountry to set 81 | */ 82 | public void setOwnerCountry(String ownerCountry) { 83 | this.ownerCountry = ownerCountry; 84 | } 85 | /** 86 | * @return the price 87 | */ 88 | public double getPrice() { 89 | return price; 90 | } 91 | /** 92 | * @param price the price to set 93 | */ 94 | public void setPrice(double price) { 95 | this.price = price; 96 | } 97 | /** 98 | * @return the speed 99 | */ 100 | public int getSpeed() { 101 | return speed; 102 | } 103 | /** 104 | * @param speed the speed to set 105 | */ 106 | public void setSpeed(int speed) { 107 | this.speed = speed; 108 | } 109 | 110 | /** 111 | *format to display cargoship in txt document 112 | */ 113 | public String toString() { 114 | return (serialNb + " " + name + " " + creationYr + " " + ownerCountry + " " + price + " " + speed + " "); 115 | } 116 | } 117 | -------------------------------------------------------------------------------- /A2/Part2/DuplicateSerialNumberException.java: -------------------------------------------------------------------------------- 1 | /*--------------------------------- 2 | * Name: Matthew Pan | 3 | * Student ID: 40135588 | 4 | * Comp 249: Assignment #2 | 5 | * Driver file: CargoshipInventory1| 6 | * Part 2 | 7 | * Due Date: 25 July, 2020 | 8 | * Professor: Dr. Yuhong Yan | 9 | *--------------------------------- 10 | */ 11 | package Part2; 12 | /** 13 | * DuplicateSerialNumberException class which handles the error thrown when user inputs a serial number 14 | * that already exists. 15 | * 16 | * @author pan 17 | */ 18 | @SuppressWarnings("serial") 19 | public class DuplicateSerialNumberException extends Exception { 20 | /** 21 | * no args constructor 22 | */ 23 | public DuplicateSerialNumberException() { 24 | super("[Duplicate Serial Number Exception]"); 25 | } 26 | 27 | /** 28 | * @param msg error message 29 | */ 30 | public DuplicateSerialNumberException(String msg) { 31 | super(msg); 32 | } 33 | } -------------------------------------------------------------------------------- /A2/Part2/ReadMe.md: -------------------------------------------------------------------------------- 1 | This program's purpose is to fix the duplicated serial numbers of multiple cargoship's information in a given file. 2 | 3 | It takes a user input as the name of the new file to be created, then reads the information from the original file, corrects all mistakes, then writes the new 4 | information to the new file. 5 | 6 | **Core Practices:** File I/O classes, exception handling, user validation. 7 | 8 | **Sample Example** 9 | 10 | ![CargoshipExample](https://user-images.githubusercontent.com/59063950/88488587-27ce6500-cf5c-11ea-8504-77497a59fc93.png) 11 | 12 | -------------------------------------------------------------------------------- /A2/Part2/javadocP2/allpackages-index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | All Packages 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 19 | 20 | 21 | 22 | 23 | 25 | 28 |
29 |
30 |

All Packages

31 |
32 |
33 |
34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 |
Package Summary 
PackageDescription
Part2 
49 |
50 |
51 |
52 | 53 | 54 | -------------------------------------------------------------------------------- /A2/Part2/javadocP2/constant-values.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Constant Field Values 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 19 | 20 | 21 | 22 | 23 | 25 | 28 |
29 |
30 |

Constant Field Values

31 |
32 |

Contents

33 |
34 |
35 |
36 | 37 | 38 | -------------------------------------------------------------------------------- /A2/Part2/javadocP2/deprecated-list.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Deprecated List 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 19 | 20 | 21 | 22 | 23 | 25 | 28 |
29 |
30 |

Deprecated API

31 |

Contents

32 |
33 |
34 | 35 | 36 | -------------------------------------------------------------------------------- /A2/Part2/javadocP2/element-list: -------------------------------------------------------------------------------- 1 | Part2 2 | -------------------------------------------------------------------------------- /A2/Part2/javadocP2/index-files/index-10.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | T-Index 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 19 | 20 | 21 | 22 | 23 | 25 | 28 |
29 |
30 |

Index

31 |
32 |
C D F G M N O P S T W 
All Classes All Packages 33 | 34 | 35 |

T

36 |
37 |
toString() - Method in class Cargoship
38 |
39 |
format to display cargoship in txt document
40 |
41 |
42 | C D F G M N O P S T W 
All Classes All Packages
43 |
44 | 45 | 46 | -------------------------------------------------------------------------------- /A2/Part2/javadocP2/index-files/index-11.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | W-Index 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 19 | 20 | 21 | 22 | 23 | 25 | 28 |
29 |
30 |

Index

31 |
32 |
C D F G M N O P S T W 
All Classes All Packages 33 | 34 | 35 |

W

36 |
37 |
wsArr - Static variable in class CargoshipInventory1
38 |
 
39 |
40 | C D F G M N O P S T W 
All Classes All Packages
41 |
42 | 43 | 44 | -------------------------------------------------------------------------------- /A2/Part2/javadocP2/index-files/index-3.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | F-Index 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 19 | 20 | 21 | 22 | 23 | 25 | 28 |
29 |
30 |

Index

31 |
32 |
C D F G M N O P S T W 
All Classes All Packages 33 | 34 | 35 |

F

36 |
37 |
fixInventory(String, String) - Static method in class CargoshipInventory1
38 |
39 |
extract cargos into array, write corrected serial numbers into new file
40 |
41 |
42 | C D F G M N O P S T W 
All Classes All Packages
43 |
44 | 45 | 46 | -------------------------------------------------------------------------------- /A2/Part2/javadocP2/index-files/index-5.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | M-Index 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 19 | 20 | 21 | 22 | 23 | 25 | 28 |
29 |
30 |

Index

31 |
32 |
C D F G M N O P S T W 
All Classes All Packages 33 | 34 | 35 |

M

36 |
37 |
main(String[]) - Static method in class CargoshipInventory1
38 |
39 |
main method which allows user input to create new a new file, where the cargoship information 40 | from the old file are corrected and written to it.
41 |
42 |
43 | C D F G M N O P S T W 
All Classes All Packages
44 |
45 | 46 | 47 | -------------------------------------------------------------------------------- /A2/Part2/javadocP2/index-files/index-6.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | N-Index 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 19 | 20 | 21 | 22 | 23 | 25 | 28 |
29 |
30 |

Index

31 |
32 |
C D F G M N O P S T W 
All Classes All Packages 33 | 34 | 35 |

N

36 |
37 |
name - Variable in class Cargoship
38 |
 
39 |
40 | C D F G M N O P S T W 
All Classes All Packages
41 |
42 | 43 | 44 | -------------------------------------------------------------------------------- /A2/Part2/javadocP2/index-files/index-7.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | O-Index 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 19 | 20 | 21 | 22 | 23 | 25 | 28 |
29 |
30 |

Index

31 |
32 |
C D F G M N O P S T W 
All Classes All Packages 33 | 34 | 35 |

O

36 |
37 |
ownerCountry - Variable in class Cargoship
38 |
 
39 |
40 | C D F G M N O P S T W 
All Classes All Packages
41 |
42 | 43 | 44 | -------------------------------------------------------------------------------- /A2/Part2/javadocP2/index-files/index-8.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | P-Index 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 19 | 20 | 21 | 22 | 23 | 25 | 28 |
29 |
30 |

Index

31 |
32 |
C D F G M N O P S T W 
All Classes All Packages 33 | 34 | 35 |

P

36 |
37 |
Part2 - package Part2
38 |
 
39 |
price - Variable in class Cargoship
40 |
 
41 |
42 | C D F G M N O P S T W 
All Classes All Packages
43 |
44 | 45 | 46 | -------------------------------------------------------------------------------- /A2/Part2/javadocP2/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Generated Documentation (Untitled) 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 17 | 18 | 19 |
20 | 23 |

Part2/package-summary.html

24 |
25 | 26 | 27 | -------------------------------------------------------------------------------- /A2/Part2/javadocP2/member-search-index.js: -------------------------------------------------------------------------------- 1 | memberSearchIndex = [{"p":"Part2","c":"CargoshipInventory1","l":"cargosCount(String)","url":"cargosCount(java.lang.String)"},{"p":"Part2","c":"Cargoship","l":"Cargoship()","url":"%3Cinit%3E()"},{"p":"Part2","c":"CargoshipInventory1","l":"CargoshipInventory1()","url":"%3Cinit%3E()"},{"p":"Part2","c":"CargoshipInventory1","l":"checkDuplicate()"},{"p":"Part2","c":"Cargoship","l":"creationYr"},{"p":"Part2","c":"CargoshipInventory1","l":"displayFileContents(String)","url":"displayFileContents(java.lang.String)"},{"p":"Part2","c":"DuplicateSerialNumberException","l":"DuplicateSerialNumberException()","url":"%3Cinit%3E()"},{"p":"Part2","c":"DuplicateSerialNumberException","l":"DuplicateSerialNumberException(String)","url":"%3Cinit%3E(java.lang.String)"},{"p":"Part2","c":"CargoshipInventory1","l":"fixInventory(String, String)","url":"fixInventory(java.lang.String,java.lang.String)"},{"p":"Part2","c":"Cargoship","l":"getCreationYr()"},{"p":"Part2","c":"Cargoship","l":"getName()"},{"p":"Part2","c":"Cargoship","l":"getOwnerCountry()"},{"p":"Part2","c":"Cargoship","l":"getPrice()"},{"p":"Part2","c":"Cargoship","l":"getSerialNb()"},{"p":"Part2","c":"Cargoship","l":"getSpeed()"},{"p":"Part2","c":"CargoshipInventory1","l":"main(String[])","url":"main(java.lang.String[])"},{"p":"Part2","c":"Cargoship","l":"name"},{"p":"Part2","c":"Cargoship","l":"ownerCountry"},{"p":"Part2","c":"Cargoship","l":"price"},{"p":"Part2","c":"Cargoship","l":"serialNb"},{"p":"Part2","c":"Cargoship","l":"setCreationYr(int)"},{"p":"Part2","c":"Cargoship","l":"setName(String)","url":"setName(java.lang.String)"},{"p":"Part2","c":"Cargoship","l":"setOwnerCountry(String)","url":"setOwnerCountry(java.lang.String)"},{"p":"Part2","c":"Cargoship","l":"setPrice(double)"},{"p":"Part2","c":"Cargoship","l":"setSerialNb(long)"},{"p":"Part2","c":"Cargoship","l":"setSpeed(int)"},{"p":"Part2","c":"Cargoship","l":"speed"},{"p":"Part2","c":"Cargoship","l":"toString()"},{"p":"Part2","c":"CargoshipInventory1","l":"wsArr"}] -------------------------------------------------------------------------------- /A2/Part2/javadocP2/member-search-index.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fryingpannn/Java_OOP2/e93708ab93190420072e85373d5a21fbb11249b5/A2/Part2/javadocP2/member-search-index.zip -------------------------------------------------------------------------------- /A2/Part2/javadocP2/package-search-index.js: -------------------------------------------------------------------------------- 1 | packageSearchIndex = [{"l":"All Packages","url":"allpackages-index.html"},{"l":"Part2"}] -------------------------------------------------------------------------------- /A2/Part2/javadocP2/package-search-index.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fryingpannn/Java_OOP2/e93708ab93190420072e85373d5a21fbb11249b5/A2/Part2/javadocP2/package-search-index.zip -------------------------------------------------------------------------------- /A2/Part2/javadocP2/resources/glass.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fryingpannn/Java_OOP2/e93708ab93190420072e85373d5a21fbb11249b5/A2/Part2/javadocP2/resources/glass.png -------------------------------------------------------------------------------- /A2/Part2/javadocP2/resources/x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fryingpannn/Java_OOP2/e93708ab93190420072e85373d5a21fbb11249b5/A2/Part2/javadocP2/resources/x.png -------------------------------------------------------------------------------- /A2/Part2/javadocP2/script-dir/images/ui-bg_glass_55_fbf9ee_1x400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fryingpannn/Java_OOP2/e93708ab93190420072e85373d5a21fbb11249b5/A2/Part2/javadocP2/script-dir/images/ui-bg_glass_55_fbf9ee_1x400.png -------------------------------------------------------------------------------- /A2/Part2/javadocP2/script-dir/images/ui-bg_glass_65_dadada_1x400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fryingpannn/Java_OOP2/e93708ab93190420072e85373d5a21fbb11249b5/A2/Part2/javadocP2/script-dir/images/ui-bg_glass_65_dadada_1x400.png -------------------------------------------------------------------------------- /A2/Part2/javadocP2/script-dir/images/ui-bg_glass_75_dadada_1x400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fryingpannn/Java_OOP2/e93708ab93190420072e85373d5a21fbb11249b5/A2/Part2/javadocP2/script-dir/images/ui-bg_glass_75_dadada_1x400.png -------------------------------------------------------------------------------- /A2/Part2/javadocP2/script-dir/images/ui-bg_glass_75_e6e6e6_1x400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fryingpannn/Java_OOP2/e93708ab93190420072e85373d5a21fbb11249b5/A2/Part2/javadocP2/script-dir/images/ui-bg_glass_75_e6e6e6_1x400.png -------------------------------------------------------------------------------- /A2/Part2/javadocP2/script-dir/images/ui-bg_glass_95_fef1ec_1x400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fryingpannn/Java_OOP2/e93708ab93190420072e85373d5a21fbb11249b5/A2/Part2/javadocP2/script-dir/images/ui-bg_glass_95_fef1ec_1x400.png -------------------------------------------------------------------------------- /A2/Part2/javadocP2/script-dir/images/ui-bg_highlight-soft_75_cccccc_1x100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fryingpannn/Java_OOP2/e93708ab93190420072e85373d5a21fbb11249b5/A2/Part2/javadocP2/script-dir/images/ui-bg_highlight-soft_75_cccccc_1x100.png -------------------------------------------------------------------------------- /A2/Part2/javadocP2/script-dir/images/ui-icons_222222_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fryingpannn/Java_OOP2/e93708ab93190420072e85373d5a21fbb11249b5/A2/Part2/javadocP2/script-dir/images/ui-icons_222222_256x240.png -------------------------------------------------------------------------------- /A2/Part2/javadocP2/script-dir/images/ui-icons_2e83ff_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fryingpannn/Java_OOP2/e93708ab93190420072e85373d5a21fbb11249b5/A2/Part2/javadocP2/script-dir/images/ui-icons_2e83ff_256x240.png -------------------------------------------------------------------------------- /A2/Part2/javadocP2/script-dir/images/ui-icons_454545_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fryingpannn/Java_OOP2/e93708ab93190420072e85373d5a21fbb11249b5/A2/Part2/javadocP2/script-dir/images/ui-icons_454545_256x240.png -------------------------------------------------------------------------------- /A2/Part2/javadocP2/script-dir/images/ui-icons_888888_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fryingpannn/Java_OOP2/e93708ab93190420072e85373d5a21fbb11249b5/A2/Part2/javadocP2/script-dir/images/ui-icons_888888_256x240.png -------------------------------------------------------------------------------- /A2/Part2/javadocP2/script-dir/images/ui-icons_cd0a0a_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fryingpannn/Java_OOP2/e93708ab93190420072e85373d5a21fbb11249b5/A2/Part2/javadocP2/script-dir/images/ui-icons_cd0a0a_256x240.png -------------------------------------------------------------------------------- /A2/Part2/javadocP2/script-dir/jquery-ui.structure.min.css: -------------------------------------------------------------------------------- 1 | /*! jQuery UI - v1.12.1 - 2018-12-06 2 | * http://jqueryui.com 3 | * Copyright jQuery Foundation and other contributors; Licensed MIT */ 4 | 5 | .ui-helper-hidden{display:none}.ui-helper-hidden-accessible{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.ui-helper-reset{margin:0;padding:0;border:0;outline:0;line-height:1.3;text-decoration:none;font-size:100%;list-style:none}.ui-helper-clearfix:before,.ui-helper-clearfix:after{content:"";display:table;border-collapse:collapse}.ui-helper-clearfix:after{clear:both}.ui-helper-zfix{width:100%;height:100%;top:0;left:0;position:absolute;opacity:0;filter:Alpha(Opacity=0)}.ui-front{z-index:100}.ui-state-disabled{cursor:default!important;pointer-events:none}.ui-icon{display:inline-block;vertical-align:middle;margin-top:-.25em;position:relative;text-indent:-99999px;overflow:hidden;background-repeat:no-repeat}.ui-widget-icon-block{left:50%;margin-left:-8px;display:block}.ui-widget-overlay{position:fixed;top:0;left:0;width:100%;height:100%}.ui-autocomplete{position:absolute;top:0;left:0;cursor:default}.ui-menu{list-style:none;padding:0;margin:0;display:block;outline:0}.ui-menu .ui-menu{position:absolute}.ui-menu .ui-menu-item{margin:0;cursor:pointer;list-style-image:url("data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7")}.ui-menu .ui-menu-item-wrapper{position:relative;padding:3px 1em 3px .4em}.ui-menu .ui-menu-divider{margin:5px 0;height:0;font-size:0;line-height:0;border-width:1px 0 0 0}.ui-menu .ui-state-focus,.ui-menu .ui-state-active{margin:-1px}.ui-menu-icons{position:relative}.ui-menu-icons .ui-menu-item-wrapper{padding-left:2em}.ui-menu .ui-icon{position:absolute;top:0;bottom:0;left:.2em;margin:auto 0}.ui-menu .ui-menu-icon{left:auto;right:0} -------------------------------------------------------------------------------- /A2/Part2/javadocP2/script-dir/jszip-utils/dist/jszip-utils-ie.js: -------------------------------------------------------------------------------- 1 | /*! 2 | 3 | JSZipUtils - A collection of cross-browser utilities to go along with JSZip. 4 | 5 | 6 | (c) 2014 Stuart Knightley, David Duponchel 7 | Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip-utils/master/LICENSE.markdown. 8 | 9 | */ 10 | ;(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o\r\n"+ 18 | "\r\n"; 32 | 33 | // inject VBScript 34 | document.write(IEBinaryToArray_ByteStr_Script); 35 | 36 | global.JSZipUtils._getBinaryFromXHR = function (xhr) { 37 | var binary = xhr.responseBody; 38 | var byteMapping = {}; 39 | for ( var i = 0; i < 256; i++ ) { 40 | for ( var j = 0; j < 256; j++ ) { 41 | byteMapping[ String.fromCharCode( i + (j << 8) ) ] = 42 | String.fromCharCode(i) + String.fromCharCode(j); 43 | } 44 | } 45 | var rawBytes = IEBinaryToArray_ByteStr(binary); 46 | var lastChr = IEBinaryToArray_ByteStr_Last(binary); 47 | return rawBytes.replace(/[\s\S]/g, function( match ) { 48 | return byteMapping[match]; 49 | }) + lastChr; 50 | }; 51 | 52 | // enforcing Stuk's coding style 53 | // vim: set shiftwidth=4 softtabstop=4: 54 | 55 | },{}]},{},[1]) 56 | ; 57 | -------------------------------------------------------------------------------- /A2/Part2/javadocP2/script-dir/jszip-utils/dist/jszip-utils-ie.min.js: -------------------------------------------------------------------------------- 1 | /*! 2 | 3 | JSZipUtils - A collection of cross-browser utilities to go along with JSZip. 4 | 5 | 6 | (c) 2014 Stuart Knightley, David Duponchel 7 | Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip-utils/master/LICENSE.markdown. 8 | 9 | */ 10 | !function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);throw new Error("Cannot find module '"+g+"'")}var j=c[g]={exports:{}};b[g][0].call(j.exports,function(a){var c=b[g][1][a];return e(c?c:a)},j,j.exports,a,b,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g\r\n";document.write(b),a.JSZipUtils._getBinaryFromXHR=function(a){for(var b=a.responseBody,c={},d=0;256>d;d++)for(var e=0;256>e;e++)c[String.fromCharCode(d+(e<<8))]=String.fromCharCode(d)+String.fromCharCode(e);var f=IEBinaryToArray_ByteStr(b),g=IEBinaryToArray_ByteStr_Last(b);return f.replace(/[\s\S]/g,function(a){return c[a]})+g}},{}]},{},[1]); 11 | -------------------------------------------------------------------------------- /A2/Part2/javadocP2/script-dir/jszip-utils/dist/jszip-utils.min.js: -------------------------------------------------------------------------------- 1 | /*! 2 | 3 | JSZipUtils - A collection of cross-browser utilities to go along with JSZip. 4 | 5 | 6 | (c) 2014 Stuart Knightley, David Duponchel 7 | Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip-utils/master/LICENSE.markdown. 8 | 9 | */ 10 | !function(a){"object"==typeof exports?module.exports=a():"function"==typeof define&&define.amd?define(a):"undefined"!=typeof window?window.JSZipUtils=a():"undefined"!=typeof global?global.JSZipUtils=a():"undefined"!=typeof self&&(self.JSZipUtils=a())}(function(){return function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);throw new Error("Cannot find module '"+g+"'")}var j=c[g]={exports:{}};b[g][0].call(j.exports,function(a){var c=b[g][1][a];return e(c?c:a)},j,j.exports,a,b,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g 2 | 3 | 4 | 5 | 6 | Serialized Form 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 19 | 20 | 21 | 22 | 23 | 25 | 28 |
29 |
30 |

Serialized Form

31 |
32 |
33 | 49 |
50 |
51 | 52 | 53 | -------------------------------------------------------------------------------- /A2/Part2/javadocP2/type-search-index.js: -------------------------------------------------------------------------------- 1 | typeSearchIndex = [{"l":"All Classes","url":"allclasses-index.html"},{"p":"Part2","l":"Cargoship"},{"p":"Part2","l":"CargoshipInventory1"},{"p":"Part2","l":"DuplicateSerialNumberException"}] -------------------------------------------------------------------------------- /A2/Part2/javadocP2/type-search-index.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fryingpannn/Java_OOP2/e93708ab93190420072e85373d5a21fbb11249b5/A2/Part2/javadocP2/type-search-index.zip -------------------------------------------------------------------------------- /A3/javadoc/Part1/package-summary.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Part1 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 19 | 20 | 21 | 22 | 23 | 25 | 28 |
29 |
30 |

Package Part1

31 |
32 |
33 |
34 |
    35 |
  • 36 |
    37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 51 | 52 | 53 |
    Class Summary 
    ClassDescription
    Dictionary 49 |
    This Dictionary class' program allows the user to input a file.
    50 |
    54 |
    55 |
  • 56 |
57 |
58 |
59 |
60 | 61 | 62 | -------------------------------------------------------------------------------- /A3/javadoc/Part2/package-summary.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Part2 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 19 | 20 | 21 | 22 | 23 | 25 | 28 |
29 |
30 |

Package Part2

31 |
32 |
33 |
34 |
    35 |
  • 36 |
    37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 51 | 52 | 53 | 54 | 57 | 58 | 59 | 60 | 63 | 64 | 65 |
    Class Summary 
    ClassDescription
    CellList 49 |
    This is the linked list class which stores objects of type CellPhone.
    50 |
    CellListUtilization 55 |
    This class contains the main method which utilizes the CellPhone and CellList classes.
    56 |
    CellPhone 61 |
    This is the CellPhone class.
    62 |
    66 |
    67 |
  • 68 |
69 |
70 |
71 |
72 | 73 | 74 | -------------------------------------------------------------------------------- /A3/javadoc/allclasses-index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | All Classes 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 19 | 20 | 21 | 22 | 23 | 25 | 28 |
29 |
30 |

All Classes

31 |
32 |
33 |
34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 48 | 49 | 50 | 51 | 54 | 55 | 56 | 57 | 60 | 61 | 62 | 63 | 66 | 67 | 68 |
Class Summary 
ClassDescription
CellList 46 |
This is the linked list class which stores objects of type CellPhone.
47 |
CellListUtilization 52 |
This class contains the main method which utilizes the CellPhone and CellList classes.
53 |
CellPhone 58 |
This is the CellPhone class.
59 |
Dictionary 64 |
This Dictionary class' program allows the user to input a file.
65 |
69 |
70 |
71 |
72 | 73 | 74 | -------------------------------------------------------------------------------- /A3/javadoc/allpackages-index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | All Packages 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 19 | 20 | 21 | 22 | 23 | 25 | 28 |
29 |
30 |

All Packages

31 |
32 |
33 |
34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 |
Package Summary 
PackageDescription
Part1 
Part2 
53 |
54 |
55 |
56 | 57 | 58 | -------------------------------------------------------------------------------- /A3/javadoc/constant-values.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Constant Field Values 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 19 | 20 | 21 | 22 | 23 | 25 | 28 |
29 |
30 |

Constant Field Values

31 |
32 |

Contents

33 |
34 |
35 |
36 | 37 | 38 | -------------------------------------------------------------------------------- /A3/javadoc/deprecated-list.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Deprecated List 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 19 | 20 | 21 | 22 | 23 | 25 | 28 |
29 |
30 |

Deprecated API

31 |

Contents

32 |
33 |
34 | 35 | 36 | -------------------------------------------------------------------------------- /A3/javadoc/element-list: -------------------------------------------------------------------------------- 1 | Part1 2 | Part2 3 | -------------------------------------------------------------------------------- /A3/javadoc/index-files/index-10.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | L-Index 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 19 | 20 | 21 | 22 | 23 | 25 | 28 |
29 |
30 |

Index

31 |
32 |
A B C D E F G H I L M P R S T W Y 
All Classes All Packages 33 | 34 | 35 |

L

36 |
37 |
link - Variable in class CellList.CellNode
38 |
 
39 |
40 | A B C D E F G H I L M P R S T W Y 
All Classes All Packages
41 |
42 | 43 | 44 | -------------------------------------------------------------------------------- /A3/javadoc/index-files/index-17.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Y-Index 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 19 | 20 | 21 | 22 | 23 | 25 | 28 |
29 |
30 |

Index

31 |
32 |
A B C D E F G H I L M P R S T W Y 
All Classes All Packages 33 | 34 | 35 |

Y

36 |
37 |
year - Variable in class CellPhone
38 |
 
39 |
40 | A B C D E F G H I L M P R S T W Y 
All Classes All Packages
41 |
42 | 43 | 44 | -------------------------------------------------------------------------------- /A3/javadoc/index-files/index-2.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | B-Index 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 19 | 20 | 21 | 22 | 23 | 25 | 28 |
29 |
30 |

Index

31 |
32 |
A B C D E F G H I L M P R S T W Y 
All Classes All Packages 33 | 34 | 35 |

B

36 |
37 |
brand - Variable in class CellPhone
38 |
 
39 |
40 | A B C D E F G H I L M P R S T W Y 
All Classes All Packages
41 |
42 | 43 | 44 | -------------------------------------------------------------------------------- /A3/javadoc/index-files/index-8.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | H-Index 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 19 | 20 | 21 | 22 | 23 | 25 | 28 |
29 |
30 |

Index

31 |
32 |
A B C D E F G H I L M P R S T W Y 
All Classes All Packages 33 | 34 | 35 |

H

36 |
37 |
head - Variable in class CellList
38 |
 
39 |
40 | A B C D E F G H I L M P R S T W Y 
All Classes All Packages
41 |
42 | 43 | 44 | -------------------------------------------------------------------------------- /A3/javadoc/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Overview 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 19 | 20 | 21 | 22 | 23 | 25 | 28 |
29 |
30 |
31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 |
Packages 
PackageDescription
Part1 
Part2 
50 |
51 |
52 |
53 | 54 | 55 | -------------------------------------------------------------------------------- /A3/javadoc/member-search-index.js: -------------------------------------------------------------------------------- 1 | memberSearchIndex = [{"p":"Part2","c":"CellList","l":"addToStart(CellPhone)","url":"addToStart(Part2.CellPhone)"},{"p":"Part2","c":"CellPhone","l":"brand"},{"p":"Part2","c":"CellList","l":"CellList()","url":"%3Cinit%3E()"},{"p":"Part2","c":"CellList","l":"CellList(CellList)","url":"%3Cinit%3E(Part2.CellList)"},{"p":"Part2","c":"CellListUtilization","l":"CellListUtilization()","url":"%3Cinit%3E()"},{"p":"Part2","c":"CellList.CellNode","l":"CellNode()","url":"%3Cinit%3E()"},{"p":"Part2","c":"CellList.CellNode","l":"CellNode(CellList.CellNode)","url":"%3Cinit%3E(Part2.CellList.CellNode)"},{"p":"Part2","c":"CellList.CellNode","l":"CellNode(CellPhone, CellList.CellNode)","url":"%3Cinit%3E(Part2.CellPhone,Part2.CellList.CellNode)"},{"p":"Part2","c":"CellPhone","l":"CellPhone()","url":"%3Cinit%3E()"},{"p":"Part2","c":"CellPhone","l":"CellPhone(CellPhone, long)","url":"%3Cinit%3E(Part2.CellPhone,long)"},{"p":"Part2","c":"CellPhone","l":"CellPhone(long, String, int, double)","url":"%3Cinit%3E(long,java.lang.String,int,double)"},{"p":"Part2","c":"CellList.CellNode","l":"clone()"},{"p":"Part2","c":"CellPhone","l":"clone()"},{"p":"Part2","c":"CellList","l":"contains(long)"},{"p":"Part2","c":"CellList","l":"count"},{"p":"Part2","c":"CellList.CellNode","l":"data"},{"p":"Part2","c":"CellList","l":"deleteFromIndex(int)"},{"p":"Part2","c":"CellList","l":"deleteFromStart()"},{"p":"Part1","c":"Dictionary","l":"Dictionary()","url":"%3Cinit%3E()"},{"p":"Part1","c":"Dictionary","l":"displayWordList()"},{"p":"Part2","c":"CellList","l":"equals(CellList)","url":"equals(Part2.CellList)"},{"p":"Part2","c":"CellPhone","l":"equals(Object)","url":"equals(java.lang.Object)"},{"p":"Part2","c":"CellList","l":"find(long)"},{"p":"Part2","c":"CellPhone","l":"getBrand()"},{"p":"Part2","c":"CellList","l":"getCount()"},{"p":"Part2","c":"CellPhone","l":"getPrice()"},{"p":"Part2","c":"CellPhone","l":"getSerialNum()"},{"p":"Part2","c":"CellList","l":"getSize()"},{"p":"Part2","c":"CellPhone","l":"getYear()"},{"p":"Part2","c":"CellList","l":"head"},{"p":"Part2","c":"CellList","l":"insertAtIndex(CellPhone, int)","url":"insertAtIndex(Part2.CellPhone,int)"},{"p":"Part2","c":"CellList.CellNode","l":"link"},{"p":"Part1","c":"Dictionary","l":"main(String[])","url":"main(java.lang.String[])"},{"p":"Part2","c":"CellListUtilization","l":"main(String[])","url":"main(java.lang.String[])"},{"p":"Part2","c":"CellPhone","l":"price"},{"p":"Part2","c":"CellList","l":"replaceAtIndex(CellPhone, int)","url":"replaceAtIndex(Part2.CellPhone,int)"},{"p":"Part2","c":"CellPhone","l":"serialNum"},{"p":"Part2","c":"CellPhone","l":"setBrand(String)","url":"setBrand(java.lang.String)"},{"p":"Part2","c":"CellPhone","l":"setPrice(double)"},{"p":"Part2","c":"CellPhone","l":"setSerialNum(long)"},{"p":"Part2","c":"CellList","l":"setSize()"},{"p":"Part2","c":"CellPhone","l":"setYear(int)"},{"p":"Part2","c":"CellList","l":"showContents()"},{"p":"Part2","c":"CellList","l":"size"},{"p":"Part1","c":"Dictionary","l":"storeArrayList(String)","url":"storeArrayList(java.lang.String)"},{"p":"Part2","c":"CellPhone","l":"toString()"},{"p":"Part1","c":"Dictionary","l":"wordList"},{"p":"Part1","c":"Dictionary","l":"writeArrayList()"},{"p":"Part2","c":"CellPhone","l":"year"}] -------------------------------------------------------------------------------- /A3/javadoc/member-search-index.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fryingpannn/Java_OOP2/e93708ab93190420072e85373d5a21fbb11249b5/A3/javadoc/member-search-index.zip -------------------------------------------------------------------------------- /A3/javadoc/overview-summary.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Generated Documentation (Untitled) 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 17 | 18 | 19 |
20 | 23 |

index.html

24 |
25 | 26 | 27 | -------------------------------------------------------------------------------- /A3/javadoc/package-search-index.js: -------------------------------------------------------------------------------- 1 | packageSearchIndex = [{"l":"All Packages","url":"allpackages-index.html"},{"l":"Part1"},{"l":"Part2"}] -------------------------------------------------------------------------------- /A3/javadoc/package-search-index.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fryingpannn/Java_OOP2/e93708ab93190420072e85373d5a21fbb11249b5/A3/javadoc/package-search-index.zip -------------------------------------------------------------------------------- /A3/javadoc/resources/glass.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fryingpannn/Java_OOP2/e93708ab93190420072e85373d5a21fbb11249b5/A3/javadoc/resources/glass.png -------------------------------------------------------------------------------- /A3/javadoc/resources/x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fryingpannn/Java_OOP2/e93708ab93190420072e85373d5a21fbb11249b5/A3/javadoc/resources/x.png -------------------------------------------------------------------------------- /A3/javadoc/script-dir/images/ui-bg_glass_55_fbf9ee_1x400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fryingpannn/Java_OOP2/e93708ab93190420072e85373d5a21fbb11249b5/A3/javadoc/script-dir/images/ui-bg_glass_55_fbf9ee_1x400.png -------------------------------------------------------------------------------- /A3/javadoc/script-dir/images/ui-bg_glass_65_dadada_1x400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fryingpannn/Java_OOP2/e93708ab93190420072e85373d5a21fbb11249b5/A3/javadoc/script-dir/images/ui-bg_glass_65_dadada_1x400.png -------------------------------------------------------------------------------- /A3/javadoc/script-dir/images/ui-bg_glass_75_dadada_1x400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fryingpannn/Java_OOP2/e93708ab93190420072e85373d5a21fbb11249b5/A3/javadoc/script-dir/images/ui-bg_glass_75_dadada_1x400.png -------------------------------------------------------------------------------- /A3/javadoc/script-dir/images/ui-bg_glass_75_e6e6e6_1x400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fryingpannn/Java_OOP2/e93708ab93190420072e85373d5a21fbb11249b5/A3/javadoc/script-dir/images/ui-bg_glass_75_e6e6e6_1x400.png -------------------------------------------------------------------------------- /A3/javadoc/script-dir/images/ui-bg_glass_95_fef1ec_1x400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fryingpannn/Java_OOP2/e93708ab93190420072e85373d5a21fbb11249b5/A3/javadoc/script-dir/images/ui-bg_glass_95_fef1ec_1x400.png -------------------------------------------------------------------------------- /A3/javadoc/script-dir/images/ui-bg_highlight-soft_75_cccccc_1x100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fryingpannn/Java_OOP2/e93708ab93190420072e85373d5a21fbb11249b5/A3/javadoc/script-dir/images/ui-bg_highlight-soft_75_cccccc_1x100.png -------------------------------------------------------------------------------- /A3/javadoc/script-dir/images/ui-icons_222222_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fryingpannn/Java_OOP2/e93708ab93190420072e85373d5a21fbb11249b5/A3/javadoc/script-dir/images/ui-icons_222222_256x240.png -------------------------------------------------------------------------------- /A3/javadoc/script-dir/images/ui-icons_2e83ff_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fryingpannn/Java_OOP2/e93708ab93190420072e85373d5a21fbb11249b5/A3/javadoc/script-dir/images/ui-icons_2e83ff_256x240.png -------------------------------------------------------------------------------- /A3/javadoc/script-dir/images/ui-icons_454545_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fryingpannn/Java_OOP2/e93708ab93190420072e85373d5a21fbb11249b5/A3/javadoc/script-dir/images/ui-icons_454545_256x240.png -------------------------------------------------------------------------------- /A3/javadoc/script-dir/images/ui-icons_888888_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fryingpannn/Java_OOP2/e93708ab93190420072e85373d5a21fbb11249b5/A3/javadoc/script-dir/images/ui-icons_888888_256x240.png -------------------------------------------------------------------------------- /A3/javadoc/script-dir/images/ui-icons_cd0a0a_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fryingpannn/Java_OOP2/e93708ab93190420072e85373d5a21fbb11249b5/A3/javadoc/script-dir/images/ui-icons_cd0a0a_256x240.png -------------------------------------------------------------------------------- /A3/javadoc/script-dir/jquery-ui.structure.min.css: -------------------------------------------------------------------------------- 1 | /*! jQuery UI - v1.12.1 - 2018-12-06 2 | * http://jqueryui.com 3 | * Copyright jQuery Foundation and other contributors; Licensed MIT */ 4 | 5 | .ui-helper-hidden{display:none}.ui-helper-hidden-accessible{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.ui-helper-reset{margin:0;padding:0;border:0;outline:0;line-height:1.3;text-decoration:none;font-size:100%;list-style:none}.ui-helper-clearfix:before,.ui-helper-clearfix:after{content:"";display:table;border-collapse:collapse}.ui-helper-clearfix:after{clear:both}.ui-helper-zfix{width:100%;height:100%;top:0;left:0;position:absolute;opacity:0;filter:Alpha(Opacity=0)}.ui-front{z-index:100}.ui-state-disabled{cursor:default!important;pointer-events:none}.ui-icon{display:inline-block;vertical-align:middle;margin-top:-.25em;position:relative;text-indent:-99999px;overflow:hidden;background-repeat:no-repeat}.ui-widget-icon-block{left:50%;margin-left:-8px;display:block}.ui-widget-overlay{position:fixed;top:0;left:0;width:100%;height:100%}.ui-autocomplete{position:absolute;top:0;left:0;cursor:default}.ui-menu{list-style:none;padding:0;margin:0;display:block;outline:0}.ui-menu .ui-menu{position:absolute}.ui-menu .ui-menu-item{margin:0;cursor:pointer;list-style-image:url("data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7")}.ui-menu .ui-menu-item-wrapper{position:relative;padding:3px 1em 3px .4em}.ui-menu .ui-menu-divider{margin:5px 0;height:0;font-size:0;line-height:0;border-width:1px 0 0 0}.ui-menu .ui-state-focus,.ui-menu .ui-state-active{margin:-1px}.ui-menu-icons{position:relative}.ui-menu-icons .ui-menu-item-wrapper{padding-left:2em}.ui-menu .ui-icon{position:absolute;top:0;bottom:0;left:.2em;margin:auto 0}.ui-menu .ui-menu-icon{left:auto;right:0} -------------------------------------------------------------------------------- /A3/javadoc/script-dir/jszip-utils/dist/jszip-utils-ie.js: -------------------------------------------------------------------------------- 1 | /*! 2 | 3 | JSZipUtils - A collection of cross-browser utilities to go along with JSZip. 4 | 5 | 6 | (c) 2014 Stuart Knightley, David Duponchel 7 | Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip-utils/master/LICENSE.markdown. 8 | 9 | */ 10 | ;(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o\r\n"+ 18 | "\r\n"; 32 | 33 | // inject VBScript 34 | document.write(IEBinaryToArray_ByteStr_Script); 35 | 36 | global.JSZipUtils._getBinaryFromXHR = function (xhr) { 37 | var binary = xhr.responseBody; 38 | var byteMapping = {}; 39 | for ( var i = 0; i < 256; i++ ) { 40 | for ( var j = 0; j < 256; j++ ) { 41 | byteMapping[ String.fromCharCode( i + (j << 8) ) ] = 42 | String.fromCharCode(i) + String.fromCharCode(j); 43 | } 44 | } 45 | var rawBytes = IEBinaryToArray_ByteStr(binary); 46 | var lastChr = IEBinaryToArray_ByteStr_Last(binary); 47 | return rawBytes.replace(/[\s\S]/g, function( match ) { 48 | return byteMapping[match]; 49 | }) + lastChr; 50 | }; 51 | 52 | // enforcing Stuk's coding style 53 | // vim: set shiftwidth=4 softtabstop=4: 54 | 55 | },{}]},{},[1]) 56 | ; 57 | -------------------------------------------------------------------------------- /A3/javadoc/script-dir/jszip-utils/dist/jszip-utils-ie.min.js: -------------------------------------------------------------------------------- 1 | /*! 2 | 3 | JSZipUtils - A collection of cross-browser utilities to go along with JSZip. 4 | 5 | 6 | (c) 2014 Stuart Knightley, David Duponchel 7 | Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip-utils/master/LICENSE.markdown. 8 | 9 | */ 10 | !function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);throw new Error("Cannot find module '"+g+"'")}var j=c[g]={exports:{}};b[g][0].call(j.exports,function(a){var c=b[g][1][a];return e(c?c:a)},j,j.exports,a,b,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g\r\n";document.write(b),a.JSZipUtils._getBinaryFromXHR=function(a){for(var b=a.responseBody,c={},d=0;256>d;d++)for(var e=0;256>e;e++)c[String.fromCharCode(d+(e<<8))]=String.fromCharCode(d)+String.fromCharCode(e);var f=IEBinaryToArray_ByteStr(b),g=IEBinaryToArray_ByteStr_Last(b);return f.replace(/[\s\S]/g,function(a){return c[a]})+g}},{}]},{},[1]); 11 | -------------------------------------------------------------------------------- /A3/javadoc/script-dir/jszip-utils/dist/jszip-utils.min.js: -------------------------------------------------------------------------------- 1 | /*! 2 | 3 | JSZipUtils - A collection of cross-browser utilities to go along with JSZip. 4 | 5 | 6 | (c) 2014 Stuart Knightley, David Duponchel 7 | Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip-utils/master/LICENSE.markdown. 8 | 9 | */ 10 | !function(a){"object"==typeof exports?module.exports=a():"function"==typeof define&&define.amd?define(a):"undefined"!=typeof window?window.JSZipUtils=a():"undefined"!=typeof global?global.JSZipUtils=a():"undefined"!=typeof self&&(self.JSZipUtils=a())}(function(){return function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);throw new Error("Cannot find module '"+g+"'")}var j=c[g]={exports:{}};b[g][0].call(j.exports,function(a){var c=b[g][1][a];return e(c?c:a)},j,j.exports,a,b,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;gThis repository contains many Java programs. Inside each folder you will find another ReadMe.md file which gives their description accompanied by javadocs and UML diagrams. 2 | 3 | **A1:** System of public transportation (Inheritance, Polymorphism, packages, etc.)
4 | **A2:** Part 1 - Truck package delivery simulation. (Inheritance, Polymorphism, Exception Handling, etc.)
5 |     Part 2 - Cargoship file data correction. (File I/O classes, Reading and Writing with Files, Exception Handling, etc.)
6 | **A3:** Part 1 - Sub-Dictionary Creator: creates a dictionary listing all the words alphabetically from any given file. (ArrayList, File I/O, etc.)
7 |     Part 2 - Cell phone records, creating and understanding LinkedLists. 8 | 9 | 10 | **A Program Sample (A2 Part 2)**
11 | ![CargoshipExample](https://user-images.githubusercontent.com/59063950/88488587-27ce6500-cf5c-11ea-8504-77497a59fc93.png) 12 | -------------------------------------------------------------------------------- /binary.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fryingpannn/Java_OOP2/e93708ab93190420072e85373d5a21fbb11249b5/binary.dat -------------------------------------------------------------------------------- /javadoc/allpackages-index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | All Packages 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 19 | 20 | 21 | 22 | 23 | 25 | 28 |
29 |
30 |

All Packages

31 |
32 |
33 |
34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 |
Package Summary 
PackageDescription
airTransport 
groundTransport 
Part1 
Part2 
publicTransport 
seaTransport 
69 |
70 |
71 |
72 | 73 | 74 | -------------------------------------------------------------------------------- /javadoc/constant-values.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Constant Field Values 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 19 | 20 | 21 | 22 | 23 | 25 | 28 |
29 |
30 |

Constant Field Values

31 |
32 |

Contents

33 | 36 |
37 |
38 |
39 | 40 | 41 |
42 |

Part1.*

43 |
    44 |
  • 45 |
    46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 60 | 61 | 62 | 63 | 64 |
    Part1.Truck 
    Modifier and TypeConstant FieldValue
    58 | 59 | public static final intmaxPkg5
    65 |
    66 |
  • 67 |
68 |
69 |
70 |
71 | 72 | 73 | -------------------------------------------------------------------------------- /javadoc/deprecated-list.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Deprecated List 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 19 | 20 | 21 | 22 | 23 | 25 | 28 |
29 |
30 |

Deprecated API

31 |

Contents

32 |
33 |
34 | 35 | 36 | -------------------------------------------------------------------------------- /javadoc/element-list: -------------------------------------------------------------------------------- 1 | airTransport 2 | groundTransport 3 | Part1 4 | Part2 5 | publicTransport 6 | seaTransport 7 | -------------------------------------------------------------------------------- /javadoc/groundTransport/package-summary.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | groundTransport 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 19 | 20 | 21 | 22 | 23 | 25 | 28 |
29 |
30 |

Package groundTransport

31 |
32 |
33 |
34 |
    35 |
  • 36 |
    37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 51 | 52 | 53 | 54 | 57 | 58 | 59 | 60 | 63 | 64 | 65 |
    Class Summary 
    ClassDescription
    CityBus 49 |
    This is the CityBus class file which extends PublicTransportation, and is the superclass of the Metro and Tram classes.
    50 |
    Metro 55 |
    This is the Metro class file which extends CityBus, and it's the grandchild class of the PublicTransportation class.
    56 |
    Tram 61 |
    This is the Tram class file which extends CityBus, and it's the grandchild class of the PublicTransportation class.
    62 |
    66 |
    67 |
  • 68 |
69 |
70 |
71 |
72 | 73 | 74 | -------------------------------------------------------------------------------- /javadoc/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Overview 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 19 | 20 | 21 | 22 | 23 | 25 | 28 |
29 |
30 |
31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 |
Packages 
PackageDescription
airTransport 
groundTransport 
Part1 
Part2 
publicTransport 
seaTransport 
66 |
67 |
68 |
69 | 70 | 71 | -------------------------------------------------------------------------------- /javadoc/member-search-index.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fryingpannn/Java_OOP2/e93708ab93190420072e85373d5a21fbb11249b5/javadoc/member-search-index.zip -------------------------------------------------------------------------------- /javadoc/overview-summary.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Generated Documentation (Untitled) 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 17 | 18 | 19 |
20 | 23 |

index.html

24 |
25 | 26 | 27 | -------------------------------------------------------------------------------- /javadoc/package-search-index.js: -------------------------------------------------------------------------------- 1 | packageSearchIndex = [{"l":"airTransport"},{"l":"All Packages","url":"allpackages-index.html"},{"l":"groundTransport"},{"l":"Part1"},{"l":"Part2"},{"l":"publicTransport"},{"l":"seaTransport"}] -------------------------------------------------------------------------------- /javadoc/package-search-index.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fryingpannn/Java_OOP2/e93708ab93190420072e85373d5a21fbb11249b5/javadoc/package-search-index.zip -------------------------------------------------------------------------------- /javadoc/publicTransport/package-summary.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | publicTransport 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 19 | 20 | 21 | 22 | 23 | 25 | 28 |
29 |
30 |

Package publicTransport

31 |
32 |
33 |
34 |
    35 |
  • 36 |
    37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 51 | 52 | 53 |
    Class Summary 
    ClassDescription
    PublicTransportation 49 |
    This is the PublicTransportation class which is the superclass of the AirCraft, Ferry and CityBus classes.
    50 |
    54 |
    55 |
  • 56 |
57 |
58 |
59 |
60 | 61 | 62 | -------------------------------------------------------------------------------- /javadoc/resources/glass.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fryingpannn/Java_OOP2/e93708ab93190420072e85373d5a21fbb11249b5/javadoc/resources/glass.png -------------------------------------------------------------------------------- /javadoc/resources/x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fryingpannn/Java_OOP2/e93708ab93190420072e85373d5a21fbb11249b5/javadoc/resources/x.png -------------------------------------------------------------------------------- /javadoc/script-dir/images/ui-bg_glass_55_fbf9ee_1x400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fryingpannn/Java_OOP2/e93708ab93190420072e85373d5a21fbb11249b5/javadoc/script-dir/images/ui-bg_glass_55_fbf9ee_1x400.png -------------------------------------------------------------------------------- /javadoc/script-dir/images/ui-bg_glass_65_dadada_1x400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fryingpannn/Java_OOP2/e93708ab93190420072e85373d5a21fbb11249b5/javadoc/script-dir/images/ui-bg_glass_65_dadada_1x400.png -------------------------------------------------------------------------------- /javadoc/script-dir/images/ui-bg_glass_75_dadada_1x400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fryingpannn/Java_OOP2/e93708ab93190420072e85373d5a21fbb11249b5/javadoc/script-dir/images/ui-bg_glass_75_dadada_1x400.png -------------------------------------------------------------------------------- /javadoc/script-dir/images/ui-bg_glass_75_e6e6e6_1x400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fryingpannn/Java_OOP2/e93708ab93190420072e85373d5a21fbb11249b5/javadoc/script-dir/images/ui-bg_glass_75_e6e6e6_1x400.png -------------------------------------------------------------------------------- /javadoc/script-dir/images/ui-bg_glass_95_fef1ec_1x400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fryingpannn/Java_OOP2/e93708ab93190420072e85373d5a21fbb11249b5/javadoc/script-dir/images/ui-bg_glass_95_fef1ec_1x400.png -------------------------------------------------------------------------------- /javadoc/script-dir/images/ui-bg_highlight-soft_75_cccccc_1x100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fryingpannn/Java_OOP2/e93708ab93190420072e85373d5a21fbb11249b5/javadoc/script-dir/images/ui-bg_highlight-soft_75_cccccc_1x100.png -------------------------------------------------------------------------------- /javadoc/script-dir/images/ui-icons_222222_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fryingpannn/Java_OOP2/e93708ab93190420072e85373d5a21fbb11249b5/javadoc/script-dir/images/ui-icons_222222_256x240.png -------------------------------------------------------------------------------- /javadoc/script-dir/images/ui-icons_2e83ff_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fryingpannn/Java_OOP2/e93708ab93190420072e85373d5a21fbb11249b5/javadoc/script-dir/images/ui-icons_2e83ff_256x240.png -------------------------------------------------------------------------------- /javadoc/script-dir/images/ui-icons_454545_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fryingpannn/Java_OOP2/e93708ab93190420072e85373d5a21fbb11249b5/javadoc/script-dir/images/ui-icons_454545_256x240.png -------------------------------------------------------------------------------- /javadoc/script-dir/images/ui-icons_888888_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fryingpannn/Java_OOP2/e93708ab93190420072e85373d5a21fbb11249b5/javadoc/script-dir/images/ui-icons_888888_256x240.png -------------------------------------------------------------------------------- /javadoc/script-dir/images/ui-icons_cd0a0a_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fryingpannn/Java_OOP2/e93708ab93190420072e85373d5a21fbb11249b5/javadoc/script-dir/images/ui-icons_cd0a0a_256x240.png -------------------------------------------------------------------------------- /javadoc/script-dir/jquery-ui.structure.min.css: -------------------------------------------------------------------------------- 1 | /*! jQuery UI - v1.12.1 - 2018-12-06 2 | * http://jqueryui.com 3 | * Copyright jQuery Foundation and other contributors; Licensed MIT */ 4 | 5 | .ui-helper-hidden{display:none}.ui-helper-hidden-accessible{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.ui-helper-reset{margin:0;padding:0;border:0;outline:0;line-height:1.3;text-decoration:none;font-size:100%;list-style:none}.ui-helper-clearfix:before,.ui-helper-clearfix:after{content:"";display:table;border-collapse:collapse}.ui-helper-clearfix:after{clear:both}.ui-helper-zfix{width:100%;height:100%;top:0;left:0;position:absolute;opacity:0;filter:Alpha(Opacity=0)}.ui-front{z-index:100}.ui-state-disabled{cursor:default!important;pointer-events:none}.ui-icon{display:inline-block;vertical-align:middle;margin-top:-.25em;position:relative;text-indent:-99999px;overflow:hidden;background-repeat:no-repeat}.ui-widget-icon-block{left:50%;margin-left:-8px;display:block}.ui-widget-overlay{position:fixed;top:0;left:0;width:100%;height:100%}.ui-autocomplete{position:absolute;top:0;left:0;cursor:default}.ui-menu{list-style:none;padding:0;margin:0;display:block;outline:0}.ui-menu .ui-menu{position:absolute}.ui-menu .ui-menu-item{margin:0;cursor:pointer;list-style-image:url("data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7")}.ui-menu .ui-menu-item-wrapper{position:relative;padding:3px 1em 3px .4em}.ui-menu .ui-menu-divider{margin:5px 0;height:0;font-size:0;line-height:0;border-width:1px 0 0 0}.ui-menu .ui-state-focus,.ui-menu .ui-state-active{margin:-1px}.ui-menu-icons{position:relative}.ui-menu-icons .ui-menu-item-wrapper{padding-left:2em}.ui-menu .ui-icon{position:absolute;top:0;bottom:0;left:.2em;margin:auto 0}.ui-menu .ui-menu-icon{left:auto;right:0} -------------------------------------------------------------------------------- /javadoc/script-dir/jszip-utils/dist/jszip-utils-ie.js: -------------------------------------------------------------------------------- 1 | /*! 2 | 3 | JSZipUtils - A collection of cross-browser utilities to go along with JSZip. 4 | 5 | 6 | (c) 2014 Stuart Knightley, David Duponchel 7 | Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip-utils/master/LICENSE.markdown. 8 | 9 | */ 10 | ;(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o\r\n"+ 18 | "\r\n"; 32 | 33 | // inject VBScript 34 | document.write(IEBinaryToArray_ByteStr_Script); 35 | 36 | global.JSZipUtils._getBinaryFromXHR = function (xhr) { 37 | var binary = xhr.responseBody; 38 | var byteMapping = {}; 39 | for ( var i = 0; i < 256; i++ ) { 40 | for ( var j = 0; j < 256; j++ ) { 41 | byteMapping[ String.fromCharCode( i + (j << 8) ) ] = 42 | String.fromCharCode(i) + String.fromCharCode(j); 43 | } 44 | } 45 | var rawBytes = IEBinaryToArray_ByteStr(binary); 46 | var lastChr = IEBinaryToArray_ByteStr_Last(binary); 47 | return rawBytes.replace(/[\s\S]/g, function( match ) { 48 | return byteMapping[match]; 49 | }) + lastChr; 50 | }; 51 | 52 | // enforcing Stuk's coding style 53 | // vim: set shiftwidth=4 softtabstop=4: 54 | 55 | },{}]},{},[1]) 56 | ; 57 | -------------------------------------------------------------------------------- /javadoc/script-dir/jszip-utils/dist/jszip-utils-ie.min.js: -------------------------------------------------------------------------------- 1 | /*! 2 | 3 | JSZipUtils - A collection of cross-browser utilities to go along with JSZip. 4 | 5 | 6 | (c) 2014 Stuart Knightley, David Duponchel 7 | Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip-utils/master/LICENSE.markdown. 8 | 9 | */ 10 | !function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);throw new Error("Cannot find module '"+g+"'")}var j=c[g]={exports:{}};b[g][0].call(j.exports,function(a){var c=b[g][1][a];return e(c?c:a)},j,j.exports,a,b,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g\r\n";document.write(b),a.JSZipUtils._getBinaryFromXHR=function(a){for(var b=a.responseBody,c={},d=0;256>d;d++)for(var e=0;256>e;e++)c[String.fromCharCode(d+(e<<8))]=String.fromCharCode(d)+String.fromCharCode(e);var f=IEBinaryToArray_ByteStr(b),g=IEBinaryToArray_ByteStr_Last(b);return f.replace(/[\s\S]/g,function(a){return c[a]})+g}},{}]},{},[1]); 11 | -------------------------------------------------------------------------------- /javadoc/script-dir/jszip-utils/dist/jszip-utils.min.js: -------------------------------------------------------------------------------- 1 | /*! 2 | 3 | JSZipUtils - A collection of cross-browser utilities to go along with JSZip. 4 | 5 | 6 | (c) 2014 Stuart Knightley, David Duponchel 7 | Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip-utils/master/LICENSE.markdown. 8 | 9 | */ 10 | !function(a){"object"==typeof exports?module.exports=a():"function"==typeof define&&define.amd?define(a):"undefined"!=typeof window?window.JSZipUtils=a():"undefined"!=typeof global?global.JSZipUtils=a():"undefined"!=typeof self&&(self.JSZipUtils=a())}(function(){return function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);throw new Error("Cannot find module '"+g+"'")}var j=c[g]={exports:{}};b[g][0].call(j.exports,function(a){var c=b[g][1][a];return e(c?c:a)},j,j.exports,a,b,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g 2 | 3 | 4 | 5 | 6 | seaTransport 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 19 | 20 | 21 | 22 | 23 | 25 | 28 |
29 |
30 |

Package seaTransport

31 |
32 |
33 |
34 |
    35 |
  • 36 |
    37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 51 | 52 | 53 |
    Class Summary 
    ClassDescription
    Ferry 49 |
    This is the Ferry class file which extends PublicTransportation.
    50 |
    54 |
    55 |
  • 56 |
57 |
58 |
59 |
60 | 61 | 62 | -------------------------------------------------------------------------------- /javadoc/serialized-form.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Serialized Form 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 19 | 20 | 21 | 22 | 23 | 25 | 28 |
29 |
30 |

Serialized Form

31 |
32 |
33 | 63 |
64 |
65 | 66 | 67 | -------------------------------------------------------------------------------- /javadoc/type-search-index.js: -------------------------------------------------------------------------------- 1 | typeSearchIndex = [{"p":"airTransport","l":"AirCraft"},{"p":"airTransport","l":"AirCraft.AirType"},{"l":"All Classes","url":"allclasses-index.html"},{"p":"Part1","l":"Box"},{"p":"Part2","l":"Cargoship"},{"p":"Part2","l":"CargoshipInventory1"},{"p":"Part1","l":"CargoTest"},{"p":"Part2","l":"CellList"},{"p":"Part2","l":"CellListUtilization"},{"p":"Part2","l":"CellList.CellNode"},{"p":"Part2","l":"CellPhone"},{"p":"groundTransport","l":"CityBus"},{"p":"Part1","l":"Dictionary"},{"p":"airTransport","l":"DriverTransport"},{"p":"Part2","l":"DuplicateSerialNumberException"},{"p":"seaTransport","l":"Ferry"},{"p":"Part1","l":"Letter"},{"p":"Part1","l":"MetalCrate"},{"p":"groundTransport","l":"Metro"},{"p":"Part1","l":"Package"},{"p":"Part1","l":"PackageException"},{"p":"publicTransport","l":"PublicTransportation"},{"p":"airTransport","l":"AirCraft.TimeType"},{"p":"groundTransport","l":"Tram"},{"p":"Part1","l":"Truck"},{"p":"Part1","l":"TruckPackageDriver"},{"p":"Part1","l":"WoodCrate"}] -------------------------------------------------------------------------------- /javadoc/type-search-index.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fryingpannn/Java_OOP2/e93708ab93190420072e85373d5a21fbb11249b5/javadoc/type-search-index.zip -------------------------------------------------------------------------------- /ratemyprofessor.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fryingpannn/Java_OOP2/e93708ab93190420072e85373d5a21fbb11249b5/ratemyprofessor.dat --------------------------------------------------------------------------------