Move off the HashMap stuff, stick a ParkingCoordinate inside a

ParkingLot
This commit is contained in:
bspeice
2013-10-28 14:58:44 -04:00
parent 6a37e14a47
commit 5ad1f3b075
5 changed files with 59 additions and 42 deletions

View File

@ -4,6 +4,7 @@ public class ParkingLot {
private ParkingChoice location;
private int filled_pct;
private ParkingCoordinate coordinate;
public int getFilledPct() {
return filled_pct;
@ -17,5 +18,11 @@ public class ParkingLot {
public void setLocation(ParkingChoice location) {
this.location = location;
}
public ParkingCoordinate getCoordinate() {
return coordinate;
}
public void setCoordinate(ParkingCoordinate coordinate) {
this.coordinate = coordinate;
}
}