Class RoutingModel.RouteDimensionTravelInfo
- java.lang.Object
-
- com.google.ortools.constraintsolver.RoutingModel.RouteDimensionTravelInfo
-
- Enclosing class:
- RoutingModel
public static class RoutingModel.RouteDimensionTravelInfo extends java.lang.ObjectContains the information needed by the solver to optimize a dimension's
cumuls with travel-start dependent transit values.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRoutingModel.RouteDimensionTravelInfo.TransitionInfoContains the information for a single transition on the route.
-
Field Summary
Fields Modifier and Type Field Description protected booleanswigCMemOwn
-
Constructor Summary
Constructors Constructor Description RouteDimensionTravelInfo()RouteDimensionTravelInfo(long cPtr, boolean cMemoryOwn)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete()protected voidfinalize()static longgetCPtr(RoutingModel.RouteDimensionTravelInfo obj)SWIGTYPE_p_std__vectorT_operations_research__RoutingModel__RouteDimensionTravelInfo__TransitionInfo_tgetTransition_info()For each node #i on the route, transition_info[i] contains the relevant
information for the travel between nodes #i and #(i + 1) on the route.longgetTravel_cost_coefficient()The cost per unit of travel for this vehicle.voidsetTransition_info(SWIGTYPE_p_std__vectorT_operations_research__RoutingModel__RouteDimensionTravelInfo__TransitionInfo_t value)For each node #i on the route, transition_info[i] contains the relevant
information for the travel between nodes #i and #(i + 1) on the route.voidsetTravel_cost_coefficient(long value)The cost per unit of travel for this vehicle.static longswigRelease(RoutingModel.RouteDimensionTravelInfo obj)java.lang.StringtoString()java.lang.StringtoString(java.lang.String line_prefix)
-
-
-
Method Detail
-
getCPtr
public static long getCPtr(RoutingModel.RouteDimensionTravelInfo obj)
-
swigRelease
public static long swigRelease(RoutingModel.RouteDimensionTravelInfo obj)
-
finalize
protected void finalize()
- Overrides:
finalizein classjava.lang.Object
-
delete
public void delete()
-
setTransition_info
public void setTransition_info(SWIGTYPE_p_std__vectorT_operations_research__RoutingModel__RouteDimensionTravelInfo__TransitionInfo_t value)
For each node #i on the route, transition_info[i] contains the relevant
information for the travel between nodes #i and #(i + 1) on the route.
-
getTransition_info
public SWIGTYPE_p_std__vectorT_operations_research__RoutingModel__RouteDimensionTravelInfo__TransitionInfo_t getTransition_info()
For each node #i on the route, transition_info[i] contains the relevant
information for the travel between nodes #i and #(i + 1) on the route.
-
setTravel_cost_coefficient
public void setTravel_cost_coefficient(long value)
The cost per unit of travel for this vehicle.
-
getTravel_cost_coefficient
public long getTravel_cost_coefficient()
The cost per unit of travel for this vehicle.
-
toString
public java.lang.String toString(java.lang.String line_prefix)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-