Project 1 Introduction – the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of Sea Ports. Here are the classes and their instance variables we wish to define: ? SeaPortProgram extends JFrame o variables used by the GUI interface o world: World ? Thing implement Comparable  o index: int o name: String o parent: int ? World extends Thing o ports: ArrayList  o time: PortTime ? SeaPort extends Thing o docks: ArrayList  o que: ArrayList  // the list of ships waiting to dock o ships: ArrayList  // a list of all the ships at this port o persons: ArrayList  // people with skills at this port ? Dock extends Thing o ship: Ship ? Ship extends Thing o arrivalTime, dockTime: PortTime o draft, length, weight, width: double o jobs: ArrayList  ? PassengerShip extends Ship o numberOfOccupiedRooms: int o numberOfPassengers: int o numberOfRooms: int ? CargoShip extends Ship o cargoValue: double o cargoVolume: double o cargoWeight: double ? Person extends Thing o skill: String ? Job extends Thing – optional till Projects 3 and 4 o duration: double o requirements: ArrayList  // should be some of the skills of the persons ? PortTime o time: int Eventually, in Projects 3 and 4, you will be asked to show the progress of the jobs using JProgressBar’s. 2 Here’s a very quick overview of all projects: 1. Read a data file, create the internal data structure, create a GUI to display the structure, and let the user search the structure. 2. Sort the structure, use hash maps to create the structure more efficiently. 3. Create a thread for each job, cannot run until a ship has a dock, create a GUI to show the progress of each job. 4. Simulate competing for resources (persons with particular skills) for each job. Project 1 General Objectives Project 1 – classes, text data file, GUI, searching ? Define and implement appropriate classes, including: o instance and class variables, o constructors, o toString methods, and o other appropriate methods. ? Read data from a text file: o specified at run time, ? JFileChooser jfc = new JFileChooser (“.”); // start at dot, the current directory o using that data to create instances of the classes, o creating a multi-tree (class instances related in hierarchical, has-some, relationships), and o organizing those instances in existing JDK structures which can be sorted, such as ArrayList’s. ? Create a simple GUI: o presenting the data in the structures with with some buttons and o text fields supporting SEARCHING on the various fields of each class. Documentation Requirements: You should start working on a documentation file before you do anything else with these projects, and fill in items as you go along. Leaving the documentation until the project is finished is not a good idea for any number of reasons. The documentation should include the following (graded) elements: ? Cover page (including name, date, project, your class information) ? Design o including a UML class diagram o classes, variables and methods: what they mean and why they are there o tied to the requirements of the project ? User’s Guide o how would a user start and run your project o any special features 3 o effective screen shots are welcome, but don’t overdo this ? Test Plan o do this BEFORE you code anything o what do you EXPECT the project to do o justification for various data files, for example ? Lessons Learned o express yourself here o a way to keep good memories of successes after hard work Project 1 Specific Goals: 1. Create a GUI 2. Let the user select a data file, using JFileChooser 3. Read the data file, creating the specified internal data structure (see the Introduction for the classes and variables of the structure). 4. Display the internal data structure in a nice format in the GUI 1. use JScrollPane and JTextArea 5. Display the results of a Search specified by the user 1. JTextField to specify the search target 2. Searching targets: name, index, skill would b…

Looking for solution of this Assignment?

WHY CHOOSE US?

We deliver quality original papers

Our experts write quality original papers using academic databases.We dont use AI in our work. We refund your money if AI is detected  

Free revisions

We offer our clients multiple free revisions just to ensure you get what you want.

Discounted prices

All our prices are discounted which makes it affordable to you. Use code FIRST15 to get your discount

100% originality

We deliver papers that are written from scratch to deliver 100% originality. Our papers are free from plagiarism and NO similarity.We have ZERO TOLERANCE TO USE OF AI

On-time delivery

We will deliver your paper on time even on short notice or  short deadline, overnight essay or even an urgent essay