-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vertex
175 lines (155 loc) · 2.96 KB
/
Vertex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
package com.it.optimization.common.TrafficOptimizationUtils;
import java.io.Serializable;
import java.util.List;
/**
* @version :1.0
* @author: Glory.Y
* @description: Vertex
* @since: 2019-3-14
*/
public class Vertex implements Serializable {
/** . */
private long id;
/** . */
private long cityId;
/** . */
private String name;
/** . */
private String level;
/** . */
private List<Edge> neighbourEdge;
/** . */
private List<Vertex> neighbourVertex;
/** . */
private int distance;
/** . */
private List<Edge> edgePath;
/** . */
private List<Vertex> vertexPath;
/**
*
* @return l
*/
public final long getId() {
return id;
}
/**
*
* @param id1 i
*/
public final void setId(final long id1) {
this.id = id1;
}
/**
*
* @return l
*/
public final long getCityId() {
return cityId;
}
/**
*
* @param cityId1 c
*/
public final void setCityId(final long cityId1) {
this.cityId = cityId1;
}
/**
*
* @return s
*/
public final String getName() {
return name;
}
/**
*
* @param name1 s
*/
public final void setName(final String name1) {
this.name = name1;
}
/**
*
* @return s
*/
public final String getLevel() {
return level;
}
/**
*
* @param level1 l
*/
public final void setLevel(final String level1) {
this.level = level1;
}
/**
*
* @return l
*/
public final List<Edge> getNeighbourEdge() {
return neighbourEdge;
}
/**
*
* @param neighbourEdge1 n
*/
public final void setNeighbourEdge(final List<Edge> neighbourEdge1) {
this.neighbourEdge = neighbourEdge1;
}
/**
*
* @return l
*/
public final List<Vertex> getNeighbourVertex() {
return neighbourVertex;
}
/**
*
* @param neighbourVertex1 n
*/
public final void setNeighbourVertex(final List<Vertex> neighbourVertex1) {
this.neighbourVertex = neighbourVertex1;
}
/**
*
* @return i
*/
public final int getDistance() {
return distance;
}
/**
*
* @param distance1 v
*/
public final void setDistance(final int distance1) {
this.distance = distance1;
}
/**
*
* @return list
*/
public final List<Edge> getEdgePath() {
return edgePath;
}
/**
*
* @param edgePath1 v
*/
public final void setEdgePath(final List<Edge> edgePath1) {
this.edgePath = edgePath1;
}
/**
*
* @return list
*/
public final List<Vertex> getVertexPath() {
return vertexPath;
}
/**
*
* @param vertexPath1 f
*/
public final void setVertexPath(final List<Vertex> vertexPath1) {
this.vertexPath = vertexPath1;
}
}