Show / Hide Table of Contents

Class ShipmentModel.Types.PrecedenceRule

A precedence rule between two events (each event is the pickup or the delivery of a shipment): the "second" event has to start at least offset_duration after "first" has started.

Several precedences can refer to the same (or related) events, e.g., "pickup of B happens after delivery of A" and "pickup of C happens after pickup of B".

Furthermore, precedences only apply when both shipments are performed and are otherwise ignored.

Inheritance
object
ShipmentModel.Types.PrecedenceRule
Implements
IMessage<ShipmentModel.Types.PrecedenceRule>
IEquatable<ShipmentModel.Types.PrecedenceRule>
IDeepCloneable<ShipmentModel.Types.PrecedenceRule>
IBufferMessage
IMessage
Inherited Members
object.GetHashCode()
object.GetType()
object.ToString()
Namespace: Google.Maps.RouteOptimization.V1
Assembly: Google.Maps.RouteOptimization.V1.dll
Syntax
public sealed class ShipmentModel.Types.PrecedenceRule : IMessage<ShipmentModel.Types.PrecedenceRule>, IEquatable<ShipmentModel.Types.PrecedenceRule>, IDeepCloneable<ShipmentModel.Types.PrecedenceRule>, IBufferMessage, IMessage

Constructors

PrecedenceRule()

Declaration
public PrecedenceRule()

PrecedenceRule(PrecedenceRule)

Declaration
public PrecedenceRule(ShipmentModel.Types.PrecedenceRule other)
Parameters
Type Name Description
ShipmentModel.Types.PrecedenceRule other

Properties

FirstIndex

Shipment index of the "first" event. This field must be specified.

Declaration
public int FirstIndex { get; set; }
Property Value
Type Description
int

FirstIsDelivery

Indicates if the "first" event is a delivery.

Declaration
public bool FirstIsDelivery { get; set; }
Property Value
Type Description
bool

HasFirstIndex

Gets whether the "first_index" field is set

Declaration
public bool HasFirstIndex { get; }
Property Value
Type Description
bool

HasSecondIndex

Gets whether the "second_index" field is set

Declaration
public bool HasSecondIndex { get; }
Property Value
Type Description
bool

OffsetDuration

The offset between the "first" and "second" event. It can be negative.

Declaration
public Duration OffsetDuration { get; set; }
Property Value
Type Description
Duration

SecondIndex

Shipment index of the "second" event. This field must be specified.

Declaration
public int SecondIndex { get; set; }
Property Value
Type Description
int

SecondIsDelivery

Indicates if the "second" event is a delivery.

Declaration
public bool SecondIsDelivery { get; set; }
Property Value
Type Description
bool
In this article
Back to top Generated by DocFX