enabled functions for public
This commit is contained in:
parent
56dbd52065
commit
c47444e0f8
1 changed files with 7 additions and 7 deletions
|
@ -66,7 +66,7 @@ public final class OsmTrack {
|
||||||
|
|
||||||
private CompactLongMap<OsmPathElementHolder> detourMap;
|
private CompactLongMap<OsmPathElementHolder> detourMap;
|
||||||
|
|
||||||
private VoiceHintList voiceHints;
|
public VoiceHintList voiceHints;
|
||||||
|
|
||||||
public String message = null;
|
public String message = null;
|
||||||
public List<String> messageList = null;
|
public List<String> messageList = null;
|
||||||
|
@ -178,7 +178,7 @@ public final class OsmTrack {
|
||||||
nodesMap = new FrozenLongMap<>(nodesMap);
|
nodesMap = new FrozenLongMap<>(nodesMap);
|
||||||
}
|
}
|
||||||
|
|
||||||
private List<String> aggregateMessages() {
|
public List<String> aggregateMessages() {
|
||||||
ArrayList<String> res = new ArrayList<>();
|
ArrayList<String> res = new ArrayList<>();
|
||||||
MessageData current = null;
|
MessageData current = null;
|
||||||
for (OsmPathElement n : nodes) {
|
for (OsmPathElement n : nodes) {
|
||||||
|
@ -200,7 +200,7 @@ public final class OsmTrack {
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
private List<String> aggregateSpeedProfile() {
|
public List<String> aggregateSpeedProfile() {
|
||||||
ArrayList<String> res = new ArrayList<>();
|
ArrayList<String> res = new ArrayList<>();
|
||||||
int vmax = -1;
|
int vmax = -1;
|
||||||
int vmaxe = -1;
|
int vmaxe = -1;
|
||||||
|
@ -1140,7 +1140,7 @@ public final class OsmTrack {
|
||||||
sb.append(" }");
|
sb.append(" }");
|
||||||
}
|
}
|
||||||
|
|
||||||
private VoiceHint getVoiceHint(int i) {
|
public VoiceHint getVoiceHint(int i) {
|
||||||
if (voiceHints == null) return null;
|
if (voiceHints == null) return null;
|
||||||
for (VoiceHint hint : voiceHints.list) {
|
for (VoiceHint hint : voiceHints.list) {
|
||||||
if (hint.indexInTrack == i) {
|
if (hint.indexInTrack == i) {
|
||||||
|
@ -1150,7 +1150,7 @@ public final class OsmTrack {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
private MatchedWaypoint getMatchedWaypoint(int idx) {
|
public MatchedWaypoint getMatchedWaypoint(int idx) {
|
||||||
if (matchedWaypoints == null) return null;
|
if (matchedWaypoints == null) return null;
|
||||||
for (MatchedWaypoint wp : matchedWaypoints) {
|
for (MatchedWaypoint wp : matchedWaypoints) {
|
||||||
if (idx == wp.indexInTrack) {
|
if (idx == wp.indexInTrack) {
|
||||||
|
@ -1168,7 +1168,7 @@ public final class OsmTrack {
|
||||||
return vnode0 < vnode1 ? vnode0 : vnode1;
|
return vnode0 < vnode1 ? vnode0 : vnode1;
|
||||||
}
|
}
|
||||||
|
|
||||||
private int getTotalSeconds() {
|
public int getTotalSeconds() {
|
||||||
float s = nodes.size() < 2 ? 0 : nodes.get(nodes.size() - 1).getTime() - nodes.get(0).getTime();
|
float s = nodes.size() < 2 ? 0 : nodes.get(nodes.size() - 1).getTime() - nodes.get(0).getTime();
|
||||||
return (int) (s + 0.5);
|
return (int) (s + 0.5);
|
||||||
}
|
}
|
||||||
|
@ -1398,7 +1398,7 @@ public final class OsmTrack {
|
||||||
return 2;
|
return 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
private float getVoiceHintTime(int i) {
|
public float getVoiceHintTime(int i) {
|
||||||
if (voiceHints.list.isEmpty()) {
|
if (voiceHints.list.isEmpty()) {
|
||||||
return 0f;
|
return 0f;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue