Design a FIDS(Flight Information Display System)




Comment hidden because of low score. Click to expand.
0
of 0 vote

I thought of 4 immediate classes:-
---------------------------------

public class AirPlane
{
    // Attributes
    public Integer plane_ID;
    public String airLine;
	
	//some getter,setter
}

public class Flight
{
    // Attributes
       private Integer flight_ID;
       private String from_location;
       private String to_location;
       private TimeStamp departureTime;
       private TimeStamp arrivalTime;
       private String description;
       private Integer plane_FKey; //mapped to plane_ID

    // Operations
    public  TimeStamp getArrivalTime()   {...}
    public  TimeStamp getDepartureTime()  {...}
}


public class Arrivals
{
    // Attributes
    private List<Flight> arrivingFlights;
   
    // Operations
    private  void displayFlights()  {...}
} 

public class Departures
{
    // Attributes
    private List<Flight> departingFlights;
   
    // Operations
    private  void displayFlights()  {...}
}

Who produces the arriving . departure feed ?
Feed pushed to a MQ or what?
Then who has responsibility to consume MQ messeges? What are next classes till updation of display board ?
Any Controller or Manager class - like DashBoard / DashboardController / FlightMonitorController ? What will be their responsibilities ?
What else I'm missing and what correction needed more ?

- AD August 04, 2017 | Flag Reply




Add a Comment
Name:

Writing Code? Surround your code with {{{ and }}} to preserve whitespace.

Books

is a comprehensive book on getting a job at a top tech company, while focuses on dev interviews and does this for PMs.

Learn More

Videos

CareerCup's interview videos give you a real-life look at technical interviews. In these unscripted videos, watch how other candidates handle tough questions and how the interviewer thinks about their performance.

Learn More

Resume Review

Most engineers make critical mistakes on their resumes -- we can fix your resume with our custom resume review service. And, we use fellow engineers as our resume reviewers, so you can be sure that we "get" what you're saying.

Learn More

Mock Interviews

Our Mock Interviews will be conducted "in character" just like a real interview, and can focus on whatever topics you want. All our interviewers have worked for Microsoft, Google or Amazon, you know you'll get a true-to-life experience.

Learn More