Evaluate the rtas resource requirements

Assignment Help JAVA Programming
Reference no: EM131831

Design and implement a set of classes and interfaces and use them to evaluate the RTA's resource requirements. 

Your program must meet the subsequent guidelines:

- You must use at least one abstract class, with appropriate final and abstract methods, and at least one interface; you may wish to have several abstract classes and interfaces. You must have at least one abstract method and one final method in at least one class.

- You may not represent the route type (bus, urban rail or commuter rail) or the right of way type (shared or dedicated) as a data member.

- Each subclass must inherit its data and methods from a superclass or an interface to the maximum extent possible. Override superclass methods as needed.

- Each subclass must not contain data that is not relevant. For example, the Red Line may not have stops or additional vehicles, and the 77 bus may not have stations, staff per train, vehicles per train, or staff per station. A subclass must not have any data marked "na" in the table above. You may not set "na" variables equal to one in a subclass that does not use them; they must not be present.

- If a route type has a certain data member, your design must require that it be present. For example, your design must require all shared ROW routes to have a number of stops. All urban rail and commuter rail routes must have a number of stations, staff/station and staff/train. o An interface cannot force an implementing class to have a data member, but if the interface has a method getX(), the implementing method will need to either have a data member X or compute X. This meets the requirement of the problem set.

- You may use protected access for data members to be inherited by subclasses, except that any data member managed by a final method must be private.

- Data members and methods must be defined in the highest level of the inheritance tree possible. For example, the data members that exist for all routes must be defined in a Route class, not in BusRoute, UrbanRailRoute or CommuterRail classes. o All of your methods will be very simple; they should all be just one line.

- You must write classes or subclasses for the combinations of Route and ROW listed at the in the table above. You should not write any other combination of Route and ROW. o You do not need to have a class for bus routes just on dedicated ROW o You do not need to have a class for urban rail routes just on shared ROW

- You must write a class RouteTest with only a main() method to test your software. In main(), write code to:

- Create objects for five routes: bus 77, Silver Line/Airport, Red Line, Green Line B and Lowell Line

- Compute and output (System.out.println) the number of vehicles and staff required for each route, including the number of engines for commuter rail routes. You will have fractional values, which is fine.

- Output the number of stops and/or stations for each route.

- Compute and output the total number of vehicles for bus routes, for urban rail routes and for commuter rail routes. (This will be three totals) You must use the instanceOf keyword in your loop to determine what kind of vehicle is used on a route, since all routes have the
same getVehicle() method. Include commuter rail engines, using getEngine().

- Compute and output the total staff across all routes.

Reference no: EM131831

Questions Cloud

Import the data into matlab and name the array ace_data : Parameter is related to the energy of the storm, since kinetic energy is proportional to velocity squared. However, it does not take into account the size of the storm, which would be necessary for a true total energy estimate.
Human computer interaction : Write a paper that shows a reasoned, convincing argument for a position on a selected topic.
C++ program to evaluate expressions combining set union : Create a C++ program to evaluate expressions combining set union, set intersection and parentheses
Financial accounting theory : prepare an essay which demonstrates their understanding about the issue
Evaluate the rtas resource requirements : Design and implement a set of classes and interfaces and use them to evaluate the RTA's resource requirements.
Identify the various costs associated with the deployment : Identify the various costs associated with the deployment, operation and maintenance of a mobile-access system. Identify the benefits to the various categories of user, arising from the addition of a mobile-access facility.
Compute area and perimeter of a polygon : Create a project that would let a user compute area and perimeter of a polygon
Standard argumentative essay : identifying a key issue or question about which there is some controversy or disagreement
Ziegler-nichols open loop tuning : Ziegler-Nichols Open Loop Tuning Often, when working with a faster loop, many people will opt only for a PI control philosophy

Reviews

Write a Review

JAVA Programming Questions & Answers

  Design an abstract data type in java

Design an abstract data type in Java that represents a musical pitch

  Implement avl tree

Implement AVL trees that allows both iterative traversal and recursive traversal.

  Print the contents of the array

Prepare a second loop that prints the contents of the array

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Mvc pattern and servlet

When you use the MVC pattern, the controller directs the flow of control to

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Distributed systems

Build robust, secure distributed systems using advanced programming techniques

  Implementation of memory management

Implementation of memory management

  Write a program that shows the current time and date

Write a program that shows the current time and date

  Develop a reliable transfer protocol over udp

Develop a reliable transfer protocol over UDP. Focus on a Stop- and-Wait protocol.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd