diff --git a/jsprit-core/src/main/java/jsprit/core/problem/Skills.java b/jsprit-core/src/main/java/jsprit/core/problem/Skills.java index 402171b9..36142574 100644 --- a/jsprit-core/src/main/java/jsprit/core/problem/Skills.java +++ b/jsprit-core/src/main/java/jsprit/core/problem/Skills.java @@ -1,3 +1,20 @@ +/******************************************************************************* + * Copyright (C) 2014 Stefan Schroeder + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3.0 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + ******************************************************************************/ + package jsprit.core.problem; import java.util.Collection; @@ -71,6 +88,20 @@ public class Skills { return Collections.unmodifiableSet(skills); } + public String toString(){ + String s = "["; + boolean first = true; + for(String skill : values()){ + if(first){ + s += skill; + first = false; + } + else s += ", " + skill; + } + s += "]"; + return s; + } + /** * Not case sensitive. * diff --git a/jsprit-core/src/main/java/jsprit/core/problem/vehicle/VehicleImpl.java b/jsprit-core/src/main/java/jsprit/core/problem/vehicle/VehicleImpl.java index 8a376796..48ea5033 100644 --- a/jsprit-core/src/main/java/jsprit/core/problem/vehicle/VehicleImpl.java +++ b/jsprit-core/src/main/java/jsprit/core/problem/vehicle/VehicleImpl.java @@ -315,7 +315,9 @@ public class VehicleImpl extends AbstractVehicle{ "[startLocationCoordinate=" + startLocationCoord + "]" + "[endLocationId=" + endLocationId+"]" + "[endLocationCoordinate=" + endLocationCoord + "]" + - "[isReturnToDepot=" + isReturnToDepot() + "]"; + "[isReturnToDepot=" + isReturnToDepot() + "]" + + "[skills="+ skills + "]"; + } @Override