mirror of
https://github.com/graphhopper/jsprit.git
synced 2020-01-24 07:45:05 +01:00
Merge branch 'master' of https://github.com/jsprit/jsprit.git
This commit is contained in:
commit
dbc072f664
2 changed files with 2 additions and 11 deletions
|
|
@ -21,7 +21,6 @@ can be used, and a dynamic and interactive visualiser greatly enhances the analy
|
|||
- continues improvement of code, handling and performance
|
||||
- relaxed API to easily build algorithms from scratch
|
||||
- VRP with pickups and deliveries
|
||||
- release 1.0.0
|
||||
|
||||
##Documentation
|
||||
|
||||
|
|
@ -36,6 +35,8 @@ This software is released under [LGPL](http://opensource.org/licenses/LGPL-3.0).
|
|||
|
||||
[Add the latest snapshot to your pom](https://github.com/jsprit/jsprit/wiki/Add-latest-snapshot-to-your-pom).
|
||||
|
||||
[Add the latest release to your pom](https://github.com/jsprit/jsprit/wiki/Add-latest-release-to-your-pom).
|
||||
|
||||
##About
|
||||
The jsprit-project is created and maintained by Stefan Schröder. It is motivated by two issues.
|
||||
|
||||
|
|
|
|||
|
|
@ -145,12 +145,6 @@ public class TourActivities {
|
|||
activityRemoved = true;
|
||||
}
|
||||
}
|
||||
else if(c instanceof ServiceActivity){
|
||||
if(job.equals(((ServiceActivity) c).getJob())){
|
||||
tourActivities.remove(c);
|
||||
activityRemoved = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
if(jobRemoved != activityRemoved) throw new IllegalStateException("job removed, but belonging activity not.");
|
||||
return activityRemoved;
|
||||
|
|
@ -177,14 +171,10 @@ public class TourActivities {
|
|||
}
|
||||
|
||||
private void addJob(TourActivity act) {
|
||||
|
||||
if(act instanceof JobActivity){
|
||||
Job job = ((JobActivity) act).getJob();
|
||||
jobs.add(job);
|
||||
}
|
||||
else if(act instanceof ServiceActivity){
|
||||
jobs.add(((ServiceActivity) act).getJob());
|
||||
}
|
||||
}
|
||||
|
||||
public int jobSize() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue