-
Notifications
You must be signed in to change notification settings - Fork 376
/
ORSGraphHopperConfig.java
44 lines (35 loc) 路 1.38 KB
/
ORSGraphHopperConfig.java
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
package org.heigit.ors.routing.graphhopper.extensions;
import com.graphhopper.GraphHopperConfig;
import com.graphhopper.config.CHProfile;
import com.graphhopper.config.LMProfile;
import com.graphhopper.config.Profile;
import java.util.ArrayList;
import java.util.List;
public class ORSGraphHopperConfig extends GraphHopperConfig {
private List<CHProfile> coreProfiles = new ArrayList<>();
private List<LMProfile> coreLMProfiles = new ArrayList<>();
private List<Profile> fastisochroneProfiles = new ArrayList<>();
public List<CHProfile> getCoreProfiles() {
return coreProfiles;
}
public GraphHopperConfig setCoreProfiles(List<CHProfile> coreProfiles) {
this.coreProfiles = coreProfiles;
return this;
}
public List<LMProfile> getCoreLMProfiles() {
return coreLMProfiles;
}
public void setCoreLMProfiles(List<LMProfile> coreLMProfiles) {
this.coreLMProfiles = coreLMProfiles;
String coreLmThreadsKey = "prepare.corelm.threads";
if (has(coreLmThreadsKey))
putObject(coreLmThreadsKey, getInt(coreLmThreadsKey, 1));
}
public List<Profile> getFastisochroneProfiles() {
return fastisochroneProfiles;
}
public GraphHopperConfig setFastisochroneProfiles(List<Profile> fastisochroneProfiles) {
this.fastisochroneProfiles = fastisochroneProfiles;
return this;
}
}