Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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 GUl 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 Dock> 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 Jobs: ArrayList o index: int o name: String o parent: int . World extends Thing o ports: ArrayList o time: PortTime SeaPort extends Thing o docks: ArrayList Dock> 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 Jobs: ArrayList
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started