Skip to content

Commit

Permalink
Merge pull request #2 from premaseem/gitTraining
Browse files Browse the repository at this point in the history
first changes on MVC 
Ready for production release.
  • Loading branch information
premaseem authored Jan 25, 2017
2 parents 6fab794 + 4588f24 commit 4bbcbf1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ void landFlight(Flight flight) {
flight.status = FlightStatus.LANDED;
approachingFligh = null;
} else if (flight.status.equals(FlightStatus.IN_Q)) {
System.out.printf("Grand permission before landing - WARNING to %s ", flight.name);
System.out.printf("Added for Training - Grand permission before landing - WARNING to %s ", flight.name);
} else {
System.out.printf("Flight %s is already grounded ", flight.name);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
import com.premaseem.mediator.atc.AtcMediator.FlightStatus;

public class Flight {

FlightStatus status;
AtcMediator atcMediator=null;
public String name;

public Flight(AtcMediator atcMediator, String flightName) {
status = FlightStatus.IN_Q;
name = flightName;
Expand All @@ -16,8 +16,10 @@ public Flight(AtcMediator atcMediator, String flightName) {

void grantLandingPermission(){
atcMediator.grantLandingPermission(this);
System.out.println("just added this line for training")
System.out.println("made changes to address code review comment")
}

void landFlight(){
atcMediator.landFlight(this);
}
Expand Down

0 comments on commit 4bbcbf1

Please sign in to comment.