-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Group 2: Aircraft Abstraction and Duplicate Code Removal. #20
base: master
Are you sure you want to change the base?
Conversation
…r and crew capacity. WIP: Tests still broken.
orders.add(order); | ||
return order; | ||
} | ||
|
||
private boolean isOrderValid(List<String> passengerNames, List<ScheduledFlight> flights) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good decision to remove logic that belongs to a specific order
} | ||
public abstract class Helicopter implements IAircraft { | ||
@Override | ||
public int getCrewCapacity() { return 2; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it is not ideal to enforce each helicopter with 2 crew member (although this setup allows it)
@@ -12,9 +10,9 @@ | |||
private int number; | |||
private Airport departure; | |||
private Airport arrival; | |||
protected Object aircraft; | |||
protected IAircraft aircraft; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good decision to remove object casting with base class
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All comment on Sven's submission
No description provided.