Loading...
Searching...
No Matches
RouteNode.java
Go to the documentation of this file.
1package com.navigine.idl.java;
2
3import java.util.ArrayList;
4
17public final class RouteNode {
18
19
20 /*package*/ final LocationPoint point;
21
22 /*package*/ final float weight;
23
24 /*package*/ final float distance;
25
26 /*package*/ final ArrayList<RouteEvent> events;
27
31 public RouteNode(
32 LocationPoint point,
33 float weight,
34 float distance,
35 ArrayList<RouteEvent> events) {
36 this.point = point;
37 this.weight = weight;
38 this.distance = distance;
39 this.events = events;
40 }
41
56 return point;
57 }
58
72 public float getWeight() {
73 return weight;
74 }
75
89 public float getDistance() {
90 return distance;
91 }
92
106 public ArrayList<RouteEvent> getEvents() {
107 return events;
108 }
109
110 @Override
111 public String toString() {
112 return "RouteNode{" +
113 "point=" + point +
114 "," + "weight=" + weight +
115 "," + "distance=" + distance +
116 "," + "events=" + events +
117 "}";
118 }
119
120}