Class: Google::Cloud::Optimization::V1::ShipmentModel::PrecedenceRule

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/optimization/v1/fleet_routing.rb

Overview

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.

Instance Attribute Summary collapse

Instance Attribute Details

#first_index::Integer

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

Returns:

  • (::Integer)

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



682
683
684
685
# File 'proto_docs/google/cloud/optimization/v1/fleet_routing.rb', line 682

class PrecedenceRule
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#first_is_delivery::Boolean

Returns Indicates if the "first" event is a delivery.

Returns:

  • (::Boolean)

    Indicates if the "first" event is a delivery.



682
683
684
685
# File 'proto_docs/google/cloud/optimization/v1/fleet_routing.rb', line 682

class PrecedenceRule
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#offset_duration::Google::Protobuf::Duration

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

Returns:



682
683
684
685
# File 'proto_docs/google/cloud/optimization/v1/fleet_routing.rb', line 682

class PrecedenceRule
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#second_index::Integer

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

Returns:

  • (::Integer)

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



682
683
684
685
# File 'proto_docs/google/cloud/optimization/v1/fleet_routing.rb', line 682

class PrecedenceRule
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#second_is_delivery::Boolean

Returns Indicates if the "second" event is a delivery.

Returns:

  • (::Boolean)

    Indicates if the "second" event is a delivery.



682
683
684
685
# File 'proto_docs/google/cloud/optimization/v1/fleet_routing.rb', line 682

class PrecedenceRule
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end