mirror of
https://github.com/graphhopper/jsprit.git
synced 2020-01-24 07:45:05 +01:00
modified and tested start and end to deal with multiple cap-dims
This commit is contained in:
parent
b6a235bf92
commit
bcfe9a401d
4 changed files with 114 additions and 4 deletions
|
|
@ -32,6 +32,8 @@ public final class End implements TourActivity {
|
|||
return new End(end);
|
||||
}
|
||||
|
||||
private final static Capacity capacity = Capacity.Builder.newInstance().build();
|
||||
|
||||
private String locationId;
|
||||
|
||||
private Coordinate coordinate;
|
||||
|
|
@ -150,8 +152,7 @@ public final class End implements TourActivity {
|
|||
|
||||
@Override
|
||||
public Capacity getCapacity() {
|
||||
// TODO Auto-generated method stub
|
||||
return null;
|
||||
return capacity;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ public final class Start implements TourActivity {
|
|||
|
||||
public static int creation;
|
||||
|
||||
private static Capacity capacity = Capacity.Builder.newInstance().build();
|
||||
private final static Capacity capacity = Capacity.Builder.newInstance().build();
|
||||
|
||||
public static Start newInstance(String locationId, double theoreticalStart, double theoreticalEnd){
|
||||
creation++;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue