1 /*
2 * Copyright 2011 The Kuali Foundation Licensed under the
3 * Educational Community License, Version 2.0 (the "License"); you may
4 * not use this file except in compliance with the License. You may
5 * obtain a copy of the License at
6 *
7 * http://www.osedu.org/licenses/ECL-2.0
8 *
9 * Unless required by applicable law or agreed to in writing,
10 * software distributed under the License is distributed on an "AS IS"
11 * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
12 * or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 package org.kuali.mobility.bus.entity;
16
17 import java.util.List;
18 import java.util.Map;
19
20 /**
21 *
22 * @author Joe Swanson <joseswan@umich.edu>
23 */
24 public interface BusRoute {
25
26 void addStop(BusStop stop);
27
28 /**
29 * @return the id
30 */
31 long getId();
32
33 /**
34 * @return the name
35 */
36 String getName();
37
38 /**
39 * @return the stops
40 */
41 List<? extends BusStop> getStops();
42
43 /**
44 * @param id the id to set
45 */
46 void setId(long id);
47
48 /**
49 * @param name the name to set
50 */
51 void setName(String name);
52
53 /**
54 * @param stops the stops to set
55 */
56 void setStops(List<? extends BusStop> stops);
57
58 /**
59 * @return the color
60 */
61 String getColor();
62
63 /**
64 * @param color the color to set
65 */
66
67 void setColor(String color);
68
69 /**
70 * @return the path
71 */
72 BusRoutePath getPath();
73
74 /**
75 * @param path the path to set
76 */
77 void setPath(BusRoutePath path);
78 }