AD
BAN USER
- 2of 2 votes
AnswersDesign a FIDS(Flight Information Display System)
- AD in India
1. Consider most important classes & ignore Interfaces as of now
2. FIDS is not about reservation system but the dasboard to display
3. the information will look like:
DEPARTURES
----------------------
Attributes:
STD Airline Flight Destination/Via CheckInCounter# Gate Status ETD
Values :
12:50 KingFisher 6E352 Hyderabad A-B 23 Check-In Open 13:15
ARRIVALS
-----------------------
Attributes:
STA Airline Flight# Destination/Via Gate Status ETA
Values :
12:50 KingFisher 6E352 UK/Mumbai Terminal2 Landed 13:15| Report Duplicate | Flag | PURGE
Amazon SDE-2 System Design
1 Answer Design a FIDS(Flight Information Display System)
1. Consider most important classes & ignore Interfaces as of now
- AD August 04, 2017
2. FIDS is not about reservation system but the dasboard to display
3. the information will look like:
DEPARTURES
----------------------
Attributes:
STD, Airline,Flight#,Destination/Via,CheckInCounter#,Gate,Status,ETD
Values :
12:50,KingFisher,6E352,Hyderabad,A-B,23,Check-In Open,13:15
ARRIVALS
-----------------------
Attributes:
STA,Airline,Flight#,Destination/Via,Gate,Status,ETA
Values :
12:50,KingFisher,6E352,UK/Mumbai,Terminal2,Landed,13:15| Flag | PURGE
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 ?
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 ?
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 ?
Please delete the abc, ann,abc comments
- AD August 21, 2017