Debian Codegraph @

src/uk/me/parabola/imgfmt/app/Exit.java

raw symbols SCIP
1 /*
2 * Copyright (C) 2007 Steve Ratcliffe
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 *
14 * Author: Steve Ratcliffe
15 * Create date: Jan 1, 2008
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 * Represent a motorway exit
27 *
28 * @author Mark Burton
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; // FIXME
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 }