Class SkippedShipment
Specifies details of unperformed shipments in a solution. For trivial cases and/or if we are able to identify the cause for skipping, we report the reason here.
Implements
Namespace: Google.Maps.RouteOptimization.V1
Assembly: Google.Maps.RouteOptimization.V1.dll
Syntax
public sealed class SkippedShipment : IMessage<SkippedShipment>, IEquatable<SkippedShipment>, IDeepCloneable<SkippedShipment>, IBufferMessage, IMessage
Constructors
SkippedShipment()
Declaration
public SkippedShipment()
SkippedShipment(SkippedShipment)
Declaration
public SkippedShipment(SkippedShipment other)
Parameters
| Type | Name | Description |
|---|---|---|
| SkippedShipment | other |
Properties
EstimatedIncompatibleVehicleRatio
Estimated ratio of vehicles that cannot perform this shipment for at least one of the reasons below. Note: this is only filled when reasons involve a vehicle.
Experimental: This field's behavior or existence may change in future.
Declaration
public double EstimatedIncompatibleVehicleRatio { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
HasEstimatedIncompatibleVehicleRatio
Gets whether the "estimated_incompatible_vehicle_ratio" field is set
Declaration
public bool HasEstimatedIncompatibleVehicleRatio { get; }
Property Value
| Type | Description |
|---|---|
| bool |
HasPenaltyCost
Gets whether the "penalty_cost" field is set
Declaration
public bool HasPenaltyCost { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Index
The index corresponds to the index of the shipment in the source
ShipmentModel.
Declaration
public int Index { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
Label
Copy of the corresponding
[Shipment.label][google.maps.routeoptimization.v1.Shipment.label], if
specified in the Shipment.
Declaration
public string Label { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
PenaltyCost
This is a copy of the [Shipment.penalty_cost][google.maps.routeoptimization.v1.Shipment.penalty_cost], included here to make it easier to see the severity of a skipped shipment.
Experimental: This field's behavior or existence may change in future.
Declaration
public double PenaltyCost { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
Reasons
A list of reasons that explain why the shipment was skipped. See comment
above Reason. If we are unable to understand why a shipment was skipped,
reasons will not be set.
Declaration
public RepeatedField<SkippedShipment.Types.Reason> Reasons { get; }
Property Value
| Type | Description |
|---|---|
| RepeatedField<SkippedShipment.Types.Reason> |