mirror of
https://github.com/graphhopper/jsprit.git
synced 2020-01-24 07:45:05 +01:00
mod solutionCalcCosts
This commit is contained in:
parent
fb365036af
commit
2ac272ba79
4 changed files with 1 additions and 44 deletions
|
|
@ -66,6 +66,7 @@ public class SolutionPrinter {
|
||||||
* @param solution
|
* @param solution
|
||||||
* @param level
|
* @param level
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
public static void print(VehicleRoutingProblemSolution solution, Print level){
|
public static void print(VehicleRoutingProblemSolution solution, Print level){
|
||||||
if(level.equals(Print.CONCISE)){
|
if(level.equals(Print.CONCISE)){
|
||||||
print(solution);
|
print(solution);
|
||||||
|
|
|
||||||
|
|
@ -1,19 +0,0 @@
|
||||||
package algorithms;
|
|
||||||
|
|
||||||
import algorithms.StateManager.StateId;
|
|
||||||
|
|
||||||
class StateIdImpl implements StateId {
|
|
||||||
|
|
||||||
private String name;
|
|
||||||
|
|
||||||
public StateIdImpl(String name) {
|
|
||||||
super();
|
|
||||||
this.name = name;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String toString(){
|
|
||||||
return name;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
@ -42,35 +42,14 @@ interface StateManager {
|
||||||
return state;
|
return state;
|
||||||
}
|
}
|
||||||
|
|
||||||
// public void setState(double val){
|
|
||||||
// state=val;
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
interface States {
|
interface States {
|
||||||
|
|
||||||
// void putState(String key, State state);
|
|
||||||
|
|
||||||
State getState(String key);
|
State getState(String key);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
interface StateId {
|
|
||||||
|
|
||||||
String toString();
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// Map<VehicleRoute, States> getRouteStates();
|
|
||||||
|
|
||||||
// void put(VehicleRoute route, States states);
|
|
||||||
|
|
||||||
// Map<TourActivity, States> getActivityStates();
|
|
||||||
|
|
||||||
// void put(TourActivity act, States states);
|
|
||||||
|
|
||||||
State getActivityState(TourActivity act, String stateType);
|
State getActivityState(TourActivity act, String stateType);
|
||||||
|
|
||||||
State getRouteState(VehicleRoute route, String stateType);
|
State getRouteState(VehicleRoute route, String stateType);
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,6 @@
|
||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
package algorithms;
|
package algorithms;
|
||||||
|
|
||||||
import algorithms.StateManager.StateId;
|
|
||||||
|
|
||||||
class StateTypes {
|
class StateTypes {
|
||||||
|
|
||||||
|
|
@ -42,7 +41,4 @@ class StateTypes {
|
||||||
|
|
||||||
final static String PAST_DELIVERIES = "pastDeliveries";
|
final static String PAST_DELIVERIES = "pastDeliveries";
|
||||||
|
|
||||||
public static StateId createId(String stateId){
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue