Imron
3 years ago
4 changed files with 70 additions and 12 deletions
-
18src/main/java/hs/fulda/de/ci/exam/project/Flight.java
-
39src/main/java/hs/fulda/de/ci/exam/project/FlightInstance.java
-
5src/main/java/hs/fulda/de/ci/exam/project/FlightStatus.java
-
20src/test/java/hs/fulda/de/ci/exam/project/FlightTest.java
@ -1,4 +1,43 @@ |
|||
package hs.fulda.de.ci.exam.project; |
|||
|
|||
import java.sql.Time; |
|||
|
|||
public class FlightInstance { |
|||
Time departureTime; |
|||
String gate; |
|||
FlightStatus status; |
|||
|
|||
public FlightInstance(Time departureTime, String gate, FlightStatus status) { |
|||
this.departureTime = departureTime; |
|||
this.gate = gate; |
|||
this.status = status; |
|||
} |
|||
|
|||
public FlightInstance(){ |
|||
|
|||
} |
|||
|
|||
public Time getDepartureTime() { |
|||
return departureTime; |
|||
} |
|||
|
|||
public void setDepartureTime(Time departureTime) { |
|||
this.departureTime = departureTime; |
|||
} |
|||
|
|||
public String getGate() { |
|||
return gate; |
|||
} |
|||
|
|||
public void setGate(String gate) { |
|||
this.gate = gate; |
|||
} |
|||
|
|||
public FlightStatus getStatus() { |
|||
return status; |
|||
} |
|||
|
|||
public void setStatus(FlightStatus status) { |
|||
this.status = status; |
|||
} |
|||
} |
@ -0,0 +1,5 @@ |
|||
package hs.fulda.de.ci.exam.project; |
|||
|
|||
public enum FlightStatus { |
|||
Active, Scheduled, Delayed, Departed, Landed, InAir, Arrived, Cancelled, Diverted, Unknown |
|||
} |
Write
Preview
Loading…
Cancel
Save
Reference in new issue