Interface Vehicle.LoadLimitOrBuilder (1.40.0)

publicstaticinterface Vehicle.LoadLimitOrBuilderextendsMessageOrBuilder

Implements

MessageOrBuilder

Methods

getCostPerUnitAboveSoftMax()

publicabstractdoublegetCostPerUnitAboveSoftMax()

If the load ever exceeds soft_max_load along this vehicle's route, the following cost penalty applies (only once per vehicle): (load - soft_max_load)

  • cost_per_unit_above_soft_max. All costs add up and must be in the same unit as Shipment.penalty_cost.

double cost_per_unit_above_soft_max = 3;

Returns
Type Description
double

The costPerUnitAboveSoftMax.

getEndLoadInterval()

publicabstractVehicle.LoadLimit.IntervalgetEndLoadInterval()

The acceptable load interval of the vehicle at the end of the route.

.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval end_load_interval = 5;

Returns
Type Description
Vehicle.LoadLimit.Interval

The endLoadInterval.

getEndLoadIntervalOrBuilder()

publicabstractVehicle.LoadLimit.IntervalOrBuildergetEndLoadIntervalOrBuilder()

The acceptable load interval of the vehicle at the end of the route.

.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval end_load_interval = 5;

Returns
Type Description
Vehicle.LoadLimit.IntervalOrBuilder

getMaxLoad()

publicabstractlonggetMaxLoad()

The maximum acceptable amount of load.

optional int64 max_load = 1;

Returns
Type Description
long

The maxLoad.

getSoftMaxLoad()

publicabstractlonggetSoftMaxLoad()

A soft limit of the load. See cost_per_unit_above_soft_max.

int64 soft_max_load = 2;

Returns
Type Description
long

The softMaxLoad.

getStartLoadInterval()

publicabstractVehicle.LoadLimit.IntervalgetStartLoadInterval()

The acceptable load interval of the vehicle at the start of the route.

.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval start_load_interval = 4;

Returns
Type Description
Vehicle.LoadLimit.Interval

The startLoadInterval.

getStartLoadIntervalOrBuilder()

publicabstractVehicle.LoadLimit.IntervalOrBuildergetStartLoadIntervalOrBuilder()

The acceptable load interval of the vehicle at the start of the route.

.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval start_load_interval = 4;

Returns
Type Description
Vehicle.LoadLimit.IntervalOrBuilder

hasEndLoadInterval()

publicabstractbooleanhasEndLoadInterval()

The acceptable load interval of the vehicle at the end of the route.

.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval end_load_interval = 5;

Returns
Type Description
boolean

Whether the endLoadInterval field is set.

hasMaxLoad()

publicabstractbooleanhasMaxLoad()

The maximum acceptable amount of load.

optional int64 max_load = 1;

Returns
Type Description
boolean

Whether the maxLoad field is set.

hasStartLoadInterval()

publicabstractbooleanhasStartLoadInterval()

The acceptable load interval of the vehicle at the start of the route.

.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval start_load_interval = 4;

Returns
Type Description
boolean

Whether the startLoadInterval field is set.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.