| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
package uk.me.parabola.imgfmt.app; |
| 18 |
|
| 19 |
import java.util.ArrayList; |
| 20 |
import java.util.List; |
| 21 |
|
| 22 |
import uk.me.parabola.imgfmt.app.lbl.ExitFacility; |
| 23 |
import uk.me.parabola.imgfmt.app.lbl.Highway; |
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
|
| 30 |
public class Exit { |
| 31 |
|
| 32 |
public static final String TAG_ROAD_REF = "exit:road_ref"; |
| 33 |
public static final String TAG_TO = "exit:to"; |
| 34 |
public static final String TAG_FACILITY = "exit:facility"; |
| 35 |
|
| 36 |
private final Highway highway; |
| 37 |
private Label description; |
| 38 |
private final List<ExitFacility> facilities = new ArrayList<>(); |
| 39 |
|
| 40 |
public Exit(Highway highway) { |
| 41 |
this.highway = highway; |
| 42 |
} |
| 43 |
|
| 44 |
public void setDescription(Label description) { |
| 45 |
this.description = description; |
| 46 |
} |
| 47 |
|
| 48 |
public void addFacility(ExitFacility facility) { |
| 49 |
facilities.add(facility); |
| 50 |
} |
| 51 |
|
| 52 |
public boolean getOvernightParking() { |
| 53 |
return false; |
| 54 |
} |
| 55 |
|
| 56 |
public Highway getHighway() { |
| 57 |
return highway; |
| 58 |
} |
| 59 |
|
| 60 |
public List<ExitFacility> getFacilities() { |
| 61 |
return facilities; |
| 62 |
} |
| 63 |
|
| 64 |
public Label getDescription() { |
| 65 |
return description; |
| 66 |
} |
| 67 |
} |