mirror of
https://github.com/praktimarc/kst4contest.git
synced 2026-03-30 04:31:04 +02:00
Build first maven project
- added maven wrapper - added kst4contest package - moved tests to src/test/main and added @Test as first step - moved resources to src/main/resource
This commit is contained in:
48
src/main/java/kst4contest/model/AirPlane.java
Normal file
48
src/main/java/kst4contest/model/AirPlane.java
Normal file
@@ -0,0 +1,48 @@
|
||||
package kst4contest.model;
|
||||
|
||||
public class AirPlane {
|
||||
|
||||
String apCallSign, apSizeCategory;
|
||||
int distanceKm, potential, arrivingDurationMinutes;
|
||||
public String getApCallSign() {
|
||||
return apCallSign;
|
||||
}
|
||||
public void setApCallSign(String apCallSign) {
|
||||
this.apCallSign = apCallSign;
|
||||
}
|
||||
public String getApSizeCategory() {
|
||||
return apSizeCategory;
|
||||
}
|
||||
public void setApSizeCategory(String apSizeCategory) {
|
||||
this.apSizeCategory = apSizeCategory;
|
||||
}
|
||||
public int getDistanceKm() {
|
||||
return distanceKm;
|
||||
}
|
||||
public void setDistanceKm(int distanceKm) {
|
||||
this.distanceKm = distanceKm;
|
||||
}
|
||||
public int getPotential() {
|
||||
return potential;
|
||||
}
|
||||
public void setPotential(int potential) {
|
||||
this.potential = potential;
|
||||
}
|
||||
public int getArrivingDurationMinutes() {
|
||||
return arrivingDurationMinutes;
|
||||
}
|
||||
public void setArrivingDurationMinutes(int arrivingDurationMinutes) {
|
||||
this.arrivingDurationMinutes = arrivingDurationMinutes;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
|
||||
String toStringString = "\n";
|
||||
|
||||
toStringString += this.apCallSign + ", category: " + this.apSizeCategory + ", distance: " + this.getDistanceKm() + ", potential: " + this.potential + ", distance: " + this.getDistanceKm() + ", duration " + this.arrivingDurationMinutes + "" ;
|
||||
|
||||
return toStringString;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user