9 package com.google.ortools.constraintsolver;
13 import java.util.function.LongBinaryOperator;
19 private transient long swigCPtr;
20 protected transient boolean swigCMemOwn;
23 swigCMemOwn = cMemoryOwn;
28 return (obj ==
null) ? 0 : obj.swigCPtr;
31 @SuppressWarnings(
"deprecation")
32 protected
void finalize() {
36 public synchronized void delete() {
40 mainJNI.delete_RoutingDimension(swigCPtr);
50 long cPtr = mainJNI.RoutingDimension_model(swigCPtr,
this);
51 return (cPtr == 0) ? null :
new RoutingModel(cPtr,
false);
58 return mainJNI.RoutingDimension_getTransitValue(swigCPtr,
this, from_index, to_index, vehicle);
65 return mainJNI.RoutingDimension_getTransitValueFromClass(swigCPtr,
this, from_index, to_index, vehicle_class);
72 long cPtr = mainJNI.RoutingDimension_cumulVar(swigCPtr,
this, index);
73 return (cPtr == 0) ? null :
new IntVar(cPtr,
false);
77 long cPtr = mainJNI.RoutingDimension_transitVar(swigCPtr,
this, index);
78 return (cPtr == 0) ? null :
new IntVar(cPtr,
false);
82 long cPtr = mainJNI.RoutingDimension_fixedTransitVar(swigCPtr,
this, index);
83 return (cPtr == 0) ? null :
new IntVar(cPtr,
false);
87 long cPtr = mainJNI.RoutingDimension_slackVar(swigCPtr,
this, index);
88 return (cPtr == 0) ? null :
new IntVar(cPtr,
false);
95 return mainJNI.RoutingDimension_cumuls(swigCPtr,
this);
99 return mainJNI.RoutingDimension_fixed_transits(swigCPtr,
this);
103 return mainJNI.RoutingDimension_transits(swigCPtr,
this);
107 return mainJNI.RoutingDimension_slacks(swigCPtr,
this);
114 mainJNI.RoutingDimension_setSpanUpperBoundForVehicle(swigCPtr,
this, upper_bound, vehicle);
121 mainJNI.RoutingDimension_setSpanCostCoefficientForVehicle(swigCPtr,
this, coefficient, vehicle);
125 mainJNI.RoutingDimension_setSpanCostCoefficientForAllVehicles(swigCPtr,
this, coefficient);
132 mainJNI.RoutingDimension_setGlobalSpanCostCoefficient(swigCPtr,
this, coefficient);
139 mainJNI.RoutingDimension_setCumulVarSoftUpperBound(swigCPtr,
this, index, upper_bound, coefficient);
146 return mainJNI.RoutingDimension_hasCumulVarSoftUpperBound(swigCPtr,
this, index);
153 return mainJNI.RoutingDimension_getCumulVarSoftUpperBound(swigCPtr,
this, index);
160 return mainJNI.RoutingDimension_getCumulVarSoftUpperBoundCoefficient(swigCPtr,
this, index);
167 mainJNI.RoutingDimension_setCumulVarSoftLowerBound(swigCPtr,
this, index, lower_bound, coefficient);
174 return mainJNI.RoutingDimension_hasCumulVarSoftLowerBound(swigCPtr,
this, index);
181 return mainJNI.RoutingDimension_getCumulVarSoftLowerBound(swigCPtr,
this, index);
188 return mainJNI.RoutingDimension_getCumulVarSoftLowerBoundCoefficient(swigCPtr,
this, index);
195 mainJNI.RoutingDimension_setBreakIntervalsOfVehicle__SWIG_0(swigCPtr,
this, breaks, vehicle, pre_travel_evaluator, post_travel_evaluator);
202 mainJNI.RoutingDimension_setBreakIntervalsOfVehicle__SWIG_1(swigCPtr,
this, breaks, vehicle, node_visit_transits);
209 mainJNI.RoutingDimension_SetBreakDistanceDurationOfVehicle(swigCPtr,
this, distance, duration, vehicle);
216 mainJNI.RoutingDimension_InitializeBreaks(swigCPtr,
this);
223 return mainJNI.RoutingDimension_HasBreakConstraints(swigCPtr,
this);
230 mainJNI.RoutingDimension_setBreakIntervalsOfVehicle__SWIG_2(swigCPtr,
this, breaks, vehicle, node_visit_transits, group_delays);
237 return mainJNI.RoutingDimension_getBreakIntervalsOfVehicle(swigCPtr,
this, vehicle);
244 return new SWIGTYPE_p_std__vectorT_std__pairT_long_long_long_long_t_t(mainJNI.RoutingDimension_GetBreakDistanceDurationOfVehicle(swigCPtr,
this, vehicle),
false);
251 return mainJNI.RoutingDimension_GetPreTravelEvaluatorOfVehicle(swigCPtr,
this, vehicle);
255 return mainJNI.RoutingDimension_GetPostTravelEvaluatorOfVehicle(swigCPtr,
this, vehicle);
262 long cPtr = mainJNI.RoutingDimension_base_dimension(swigCPtr,
this);
270 return mainJNI.RoutingDimension_shortestTransitionSlack(swigCPtr,
this, node);
277 return mainJNI.RoutingDimension_name(swigCPtr,
this);
281 mainJNI.RoutingDimension_setPickupToDeliveryLimitFunctionForPair(swigCPtr,
this, limit_function, pair_index);
285 return mainJNI.RoutingDimension_hasPickupToDeliveryLimits(swigCPtr,
this);
289 mainJNI.RoutingDimension_addNodePrecedence(swigCPtr,
this, first_node, second_node, offset);
293 return mainJNI.RoutingDimension_getSpanUpperBoundForVehicle(swigCPtr,
this, vehicle);
297 return mainJNI.RoutingDimension_getSpanCostCoefficientForVehicle(swigCPtr,
this, vehicle);
301 return mainJNI.RoutingDimension_getGlobalSpanCostCoefficient(swigCPtr,
this);
305 return mainJNI.RoutingDimension_GetGlobalOptimizerOffset(swigCPtr,
this);
309 return mainJNI.RoutingDimension_GetLocalOptimizerOffsetForVehicle(swigCPtr,
this, vehicle);