9 package com.google.ortools.constraintsolver;
13 import java.util.function.LongBinaryOperator;
16 private transient long swigCPtr;
25 return (obj ==
null) ? 0 : obj.swigCPtr;
32 public synchronized void delete() {
36 mainJNI.delete_RoutingDimension(swigCPtr);
43 long cPtr = mainJNI.RoutingDimension_model(swigCPtr,
this);
44 return (cPtr == 0) ? null :
new RoutingModel(cPtr,
false);
48 return mainJNI.RoutingDimension_getTransitValue(swigCPtr,
this, from_index, to_index, vehicle);
52 return mainJNI.RoutingDimension_getTransitValueFromClass(swigCPtr,
this, from_index, to_index, vehicle_class);
56 long cPtr = mainJNI.RoutingDimension_cumulVar(swigCPtr,
this, index);
57 return (cPtr == 0) ? null :
new IntVar(cPtr,
false);
61 long cPtr = mainJNI.RoutingDimension_transitVar(swigCPtr,
this, index);
62 return (cPtr == 0) ? null :
new IntVar(cPtr,
false);
66 long cPtr = mainJNI.RoutingDimension_fixedTransitVar(swigCPtr,
this, index);
67 return (cPtr == 0) ? null :
new IntVar(cPtr,
false);
71 long cPtr = mainJNI.RoutingDimension_slackVar(swigCPtr,
this, index);
72 return (cPtr == 0) ? null :
new IntVar(cPtr,
false);
76 return mainJNI.RoutingDimension_cumuls(swigCPtr,
this);
80 return mainJNI.RoutingDimension_fixed_transits(swigCPtr,
this);
84 return mainJNI.RoutingDimension_transits(swigCPtr,
this);
88 return mainJNI.RoutingDimension_slacks(swigCPtr,
this);
92 mainJNI.RoutingDimension_setSpanUpperBoundForVehicle(swigCPtr,
this, upper_bound, vehicle);
96 mainJNI.RoutingDimension_setSpanCostCoefficientForVehicle(swigCPtr,
this, coefficient, vehicle);
100 mainJNI.RoutingDimension_setSpanCostCoefficientForAllVehicles(swigCPtr,
this, coefficient);
104 mainJNI.RoutingDimension_setGlobalSpanCostCoefficient(swigCPtr,
this, coefficient);
108 mainJNI.RoutingDimension_setCumulVarSoftUpperBound(swigCPtr,
this, index, upper_bound, coefficient);
112 return mainJNI.RoutingDimension_hasCumulVarSoftUpperBound(swigCPtr,
this, index);
116 return mainJNI.RoutingDimension_getCumulVarSoftUpperBound(swigCPtr,
this, index);
120 return mainJNI.RoutingDimension_getCumulVarSoftUpperBoundCoefficient(swigCPtr,
this, index);
124 mainJNI.RoutingDimension_setCumulVarSoftLowerBound(swigCPtr,
this, index, lower_bound, coefficient);
128 return mainJNI.RoutingDimension_hasCumulVarSoftLowerBound(swigCPtr,
this, index);
132 return mainJNI.RoutingDimension_getCumulVarSoftLowerBound(swigCPtr,
this, index);
136 return mainJNI.RoutingDimension_getCumulVarSoftLowerBoundCoefficient(swigCPtr,
this, index);
140 mainJNI.RoutingDimension_setBreakIntervalsOfVehicle__SWIG_0(swigCPtr,
this, breaks, vehicle, pre_travel_evaluator, post_travel_evaluator);
144 mainJNI.RoutingDimension_setBreakIntervalsOfVehicle__SWIG_1(swigCPtr,
this, breaks, vehicle, node_visit_transits);
148 mainJNI.RoutingDimension_SetBreakDistanceDurationOfVehicle(swigCPtr,
this, distance, duration, vehicle);
152 mainJNI.RoutingDimension_InitializeBreaks(swigCPtr,
this);
156 return mainJNI.RoutingDimension_HasBreakConstraints(swigCPtr,
this);
160 mainJNI.RoutingDimension_setBreakIntervalsOfVehicle__SWIG_2(swigCPtr,
this, breaks, vehicle, node_visit_transits, group_delays);
164 return mainJNI.RoutingDimension_getBreakIntervalsOfVehicle(swigCPtr,
this, vehicle);
168 return new SWIGTYPE_p_std__vectorT_std__pairT_long_long_long_long_t_t(mainJNI.RoutingDimension_GetBreakDistanceDurationOfVehicle(swigCPtr,
this, vehicle),
false);
172 return mainJNI.RoutingDimension_GetPreTravelEvaluatorOfVehicle(swigCPtr,
this, vehicle);
176 return mainJNI.RoutingDimension_GetPostTravelEvaluatorOfVehicle(swigCPtr,
this, vehicle);
180 long cPtr = mainJNI.RoutingDimension_base_dimension(swigCPtr,
this);
185 return mainJNI.RoutingDimension_shortestTransitionSlack(swigCPtr,
this, node);
189 return mainJNI.RoutingDimension_name(swigCPtr,
this);
193 mainJNI.RoutingDimension_setPickupToDeliveryLimitFunctionForPair(swigCPtr,
this, limit_function, pair_index);
197 return mainJNI.RoutingDimension_hasPickupToDeliveryLimits(swigCPtr,
this);
201 mainJNI.RoutingDimension_addNodePrecedence(swigCPtr,
this, first_node, second_node, offset);
205 return mainJNI.RoutingDimension_getSpanUpperBoundForVehicle(swigCPtr,
this, vehicle);
209 return mainJNI.RoutingDimension_getSpanCostCoefficientForVehicle(swigCPtr,
this, vehicle);
213 return mainJNI.RoutingDimension_getGlobalSpanCostCoefficient(swigCPtr,
this);
217 return mainJNI.RoutingDimension_GetGlobalOptimizerOffset(swigCPtr,
this);
221 return mainJNI.RoutingDimension_GetLocalOptimizerOffsetForVehicle(swigCPtr,
this, vehicle);