Skip to content
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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ChristianReinbold
Copy link
Collaborator

No description provided.

@PtrBld PtrBld changed the title Aircraft Abstraction and Duplicate Code Removal. Group 2: Aircraft Abstraction and Duplicate Code Removal. Nov 23, 2021
orders.add(order);
return order;
}

private boolean isOrderValid(List<String> passengerNames, List<ScheduledFlight> flights) {
Copy link
Collaborator

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; }
Copy link
Collaborator

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;
Copy link
Collaborator

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

Copy link
Collaborator

@aygunbaltaci aygunbaltaci left a 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants