9 package com.google.ortools.constraintsolver;
13 import java.util.function.LongBinaryOperator;
16 private transient long swigCPtr;
17 protected transient boolean swigCMemOwn;
20 swigCMemOwn = cMemoryOwn;
25 return (obj ==
null) ? 0 : obj.swigCPtr;
28 @SuppressWarnings(
"deprecation")
29 protected
void finalize() {
33 public synchronized void delete() {
37 mainJNI.delete_RoutingDimension(swigCPtr);
44 long cPtr = mainJNI.RoutingDimension_model(swigCPtr,
this);
45 return (cPtr == 0) ? null :
new RoutingModel(cPtr,
false);
49 return mainJNI.RoutingDimension_getTransitValue(swigCPtr,
this, from_index, to_index, vehicle);
53 return mainJNI.RoutingDimension_getTransitValueFromClass(swigCPtr,
this, from_index, to_index, vehicle_class);
57 long cPtr = mainJNI.RoutingDimension_cumulVar(swigCPtr,
this, index);
58 return (cPtr == 0) ? null :
new IntVar(cPtr,
false);
62 long cPtr = mainJNI.RoutingDimension_transitVar(swigCPtr,
this, index);
63 return (cPtr == 0) ? null :
new IntVar(cPtr,
false);
67 long cPtr = mainJNI.RoutingDimension_fixedTransitVar(swigCPtr,
this, index);
68 return (cPtr == 0) ? null :
new IntVar(cPtr,
false);
72 long cPtr = mainJNI.RoutingDimension_slackVar(swigCPtr,
this, index);
73 return (cPtr == 0) ? null :
new IntVar(cPtr,
false);
77 return mainJNI.RoutingDimension_cumuls(swigCPtr,
this);
81 return mainJNI.RoutingDimension_fixed_transits(swigCPtr,
this);
85 return mainJNI.RoutingDimension_transits(swigCPtr,
this);
89 return mainJNI.RoutingDimension_slacks(swigCPtr,
this);
93 mainJNI.RoutingDimension_setSpanUpperBoundForVehicle(swigCPtr,
this, upper_bound, vehicle);
97 mainJNI.RoutingDimension_setSpanCostCoefficientForVehicle(swigCPtr,
this, coefficient, vehicle);
101 mainJNI.RoutingDimension_setSpanCostCoefficientForAllVehicles(swigCPtr,
this, coefficient);
105 mainJNI.RoutingDimension_setGlobalSpanCostCoefficient(swigCPtr,
this, coefficient);
109 mainJNI.RoutingDimension_setCumulVarSoftUpperBound(swigCPtr,
this, index, upper_bound, coefficient);
113 return mainJNI.RoutingDimension_hasCumulVarSoftUpperBound(swigCPtr,
this, index);
117 return mainJNI.RoutingDimension_getCumulVarSoftUpperBound(swigCPtr,
this, index);
121 return mainJNI.RoutingDimension_getCumulVarSoftUpperBoundCoefficient(swigCPtr,
this, index);
125 mainJNI.RoutingDimension_setCumulVarSoftLowerBound(swigCPtr,
this, index, lower_bound, coefficient);
129 return mainJNI.RoutingDimension_hasCumulVarSoftLowerBound(swigCPtr,
this, index);
133 return mainJNI.RoutingDimension_getCumulVarSoftLowerBound(swigCPtr,
this, index);
137 return mainJNI.RoutingDimension_getCumulVarSoftLowerBoundCoefficient(swigCPtr,
this, index);
141 mainJNI.RoutingDimension_setBreakIntervalsOfVehicle__SWIG_0(swigCPtr,
this, breaks, vehicle, pre_travel_evaluator, post_travel_evaluator);
145 mainJNI.RoutingDimension_setBreakIntervalsOfVehicle__SWIG_1(swigCPtr,
this, breaks, vehicle, node_visit_transits);
149 mainJNI.RoutingDimension_SetBreakDistanceDurationOfVehicle(swigCPtr,
this, distance, duration, vehicle);
153 mainJNI.RoutingDimension_InitializeBreaks(swigCPtr,
this);
157 return mainJNI.RoutingDimension_HasBreakConstraints(swigCPtr,
this);
161 mainJNI.RoutingDimension_setBreakIntervalsOfVehicle__SWIG_2(swigCPtr,
this, breaks, vehicle, node_visit_transits, group_delays);
165 return mainJNI.RoutingDimension_getBreakIntervalsOfVehicle(swigCPtr,
this, vehicle);
169 return new SWIGTYPE_p_std__vectorT_std__pairT_long_long_long_long_t_t(mainJNI.RoutingDimension_GetBreakDistanceDurationOfVehicle(swigCPtr,
this, vehicle),
false);
173 return mainJNI.RoutingDimension_GetPreTravelEvaluatorOfVehicle(swigCPtr,
this, vehicle);
177 return mainJNI.RoutingDimension_GetPostTravelEvaluatorOfVehicle(swigCPtr,
this, vehicle);
181 long cPtr = mainJNI.RoutingDimension_base_dimension(swigCPtr,
this);
186 return mainJNI.RoutingDimension_shortestTransitionSlack(swigCPtr,
this, node);
190 return mainJNI.RoutingDimension_name(swigCPtr,
this);
194 mainJNI.RoutingDimension_setPickupToDeliveryLimitFunctionForPair(swigCPtr,
this, limit_function, pair_index);
198 return mainJNI.RoutingDimension_hasPickupToDeliveryLimits(swigCPtr,
this);
202 mainJNI.RoutingDimension_addNodePrecedence(swigCPtr,
this, first_node, second_node, offset);
206 return mainJNI.RoutingDimension_getSpanUpperBoundForVehicle(swigCPtr,
this, vehicle);
210 return mainJNI.RoutingDimension_getSpanCostCoefficientForVehicle(swigCPtr,
this, vehicle);
214 return mainJNI.RoutingDimension_getGlobalSpanCostCoefficient(swigCPtr,
this);
218 return mainJNI.RoutingDimension_GetGlobalOptimizerOffset(swigCPtr,
this);
222 return mainJNI.RoutingDimension_GetLocalOptimizerOffsetForVehicle(swigCPtr,
this, vehicle);