mirror of
https://github.com/graphhopper/jsprit.git
synced 2020-01-24 07:45:05 +01:00
doc codes - related to #180
This commit is contained in:
parent
0a8061845d
commit
9e9436e1ab
1 changed files with 9 additions and 0 deletions
|
|
@ -73,6 +73,15 @@ public class UnassignedJobReasonTracker implements JobUnassignedListener {
|
|||
} else failedConstraintNamesToCode.put(simpleNameOfFailedConstraint, code);
|
||||
}
|
||||
|
||||
/**
|
||||
* 1 --> "cannot serve required skill
|
||||
* 2 --> "cannot be visited within time window"
|
||||
* 3 --> "does not fit into any vehicle due to capacity"
|
||||
* 4 --> "cannot be assigned due to max distance constraint of vehicle"
|
||||
*
|
||||
* @param jobId
|
||||
* @return
|
||||
*/
|
||||
public int getCode(String jobId) {
|
||||
Multiset<String> reasons = this.reasons.get(jobId);
|
||||
String mostLikelyReason = getMostLikely(reasons);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue