Class: Google::Cloud::Optimization::V1::ShipmentRoute::Visit
- Inherits:
-
Object
- Object
- Google::Cloud::Optimization::V1::ShipmentRoute::Visit
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/optimization/v1/fleet_routing.rb
Overview
A visit performed during a route. This visit corresponds to a pickup or a
delivery of a Shipment.
Defined Under Namespace
Classes: LoadDemandsEntry
Instance Attribute Summary collapse
-
#arrival_loads ⇒ ::Array<::Google::Cloud::Optimization::V1::CapacityQuantity>
deprecated
Deprecated.
This field is deprecated and may be removed in the next major version update.
-
#delay_before_start ⇒ ::Google::Cloud::Optimization::V1::ShipmentRoute::Delay
deprecated
Deprecated.
This field is deprecated and may be removed in the next major version update.
-
#demands ⇒ ::Array<::Google::Cloud::Optimization::V1::CapacityQuantity>
deprecated
Deprecated.
This field is deprecated and may be removed in the next major version update.
-
#detour ⇒ ::Google::Protobuf::Duration
Extra detour time due to the shipments visited on the route before the visit and to the potential waiting time induced by time windows.
-
#is_pickup ⇒ ::Boolean
If true the visit corresponds to a pickup of a
Shipment. -
#load_demands ⇒ ::Google::Protobuf::Map{::String => ::Google::Cloud::Optimization::V1::Shipment::Load}
Total visit load demand as the sum of the shipment and the visit request
load_demands. -
#shipment_index ⇒ ::Integer
Index of the
shipmentsfield in the source ShipmentModel. -
#shipment_label ⇒ ::String
Copy of the corresponding
Shipment.label, if specified in theShipment. -
#start_time ⇒ ::Google::Protobuf::Timestamp
Time at which the visit starts.
-
#visit_label ⇒ ::String
Copy of the corresponding VisitRequest.label, if specified in the
VisitRequest. -
#visit_request_index ⇒ ::Integer
Index of
VisitRequestin either the pickup or delivery field of theShipment(seeis_pickup).
Instance Attribute Details
#arrival_loads ⇒ ::Array<::Google::Cloud::Optimization::V1::CapacityQuantity>
This field is deprecated and may be removed in the next major version update.
Returns Deprecated: Use
Transition.vehicle_loads
instead. Vehicle loads upon arrival at the visit location, for each type
specified in
Vehicle.capacities,
start_load_intervals, end_load_intervals or demands.
Exception: we omit loads for quantity types unconstrained by intervals and that don't have any non-zero demand on the route.
2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 |
# File 'proto_docs/google/cloud/optimization/v1/fleet_routing.rb', line 2145 class Visit include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::Google::Cloud::Optimization::V1::Shipment::Load] class LoadDemandsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#delay_before_start ⇒ ::Google::Cloud::Optimization::V1::ShipmentRoute::Delay
This field is deprecated and may be removed in the next major version update.
Returns Deprecated: Use ShipmentRoute.Transition.delay_duration instead. Delay occurring before the visit starts.
2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 |
# File 'proto_docs/google/cloud/optimization/v1/fleet_routing.rb', line 2145 class Visit include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::Google::Cloud::Optimization::V1::Shipment::Load] class LoadDemandsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#demands ⇒ ::Array<::Google::Cloud::Optimization::V1::CapacityQuantity>
This field is deprecated and may be removed in the next major version update.
Returns Deprecated: Use Visit.load_demands instead.
2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 |
# File 'proto_docs/google/cloud/optimization/v1/fleet_routing.rb', line 2145 class Visit include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::Google::Cloud::Optimization::V1::Shipment::Load] class LoadDemandsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#detour ⇒ ::Google::Protobuf::Duration
Returns Extra detour time due to the shipments visited on the route before the visit and to the potential waiting time induced by time windows. If the visit is a delivery, the detour is computed from the corresponding pickup visit and is equal to:
start_time(delivery) - start_time(pickup)
- (duration(pickup) + travel duration from the pickup location
to the delivery location).
Otherwise, it is computed from the vehicle start_location and is equal
to:
start_time - vehicle_start_time - travel duration from
the vehicle's `start_location` to the visit.
```.
2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 |
# File 'proto_docs/google/cloud/optimization/v1/fleet_routing.rb', line 2145 class Visit include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::Google::Cloud::Optimization::V1::Shipment::Load] class LoadDemandsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#is_pickup ⇒ ::Boolean
Returns If true the visit corresponds to a pickup of a Shipment. Otherwise, it
corresponds to a delivery.
2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 |
# File 'proto_docs/google/cloud/optimization/v1/fleet_routing.rb', line 2145 class Visit include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::Google::Cloud::Optimization::V1::Shipment::Load] class LoadDemandsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#load_demands ⇒ ::Google::Protobuf::Map{::String => ::Google::Cloud::Optimization::V1::Shipment::Load}
Returns Total visit load demand as the sum of the shipment and the visit request
load_demands. The values are negative if the visit is a delivery.
Demands are reported for the same types as the
Transition.loads
(see this field).
2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 |
# File 'proto_docs/google/cloud/optimization/v1/fleet_routing.rb', line 2145 class Visit include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::Google::Cloud::Optimization::V1::Shipment::Load] class LoadDemandsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#shipment_index ⇒ ::Integer
Returns Index of the shipments field in the source
ShipmentModel.
2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 |
# File 'proto_docs/google/cloud/optimization/v1/fleet_routing.rb', line 2145 class Visit include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::Google::Cloud::Optimization::V1::Shipment::Load] class LoadDemandsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#shipment_label ⇒ ::String
Returns Copy of the corresponding Shipment.label, if specified in the
Shipment.
2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 |
# File 'proto_docs/google/cloud/optimization/v1/fleet_routing.rb', line 2145 class Visit include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::Google::Cloud::Optimization::V1::Shipment::Load] class LoadDemandsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#start_time ⇒ ::Google::Protobuf::Timestamp
Returns Time at which the visit starts. Note that the vehicle may arrive earlier
than this at the visit location. Times are consistent with the
ShipmentModel.
2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 |
# File 'proto_docs/google/cloud/optimization/v1/fleet_routing.rb', line 2145 class Visit include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::Google::Cloud::Optimization::V1::Shipment::Load] class LoadDemandsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#visit_label ⇒ ::String
Returns Copy of the corresponding
VisitRequest.label,
if specified in the VisitRequest.
2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 |
# File 'proto_docs/google/cloud/optimization/v1/fleet_routing.rb', line 2145 class Visit include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::Google::Cloud::Optimization::V1::Shipment::Load] class LoadDemandsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#visit_request_index ⇒ ::Integer
Returns Index of VisitRequest in either the pickup or delivery field of the
Shipment (see is_pickup).
2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 |
# File 'proto_docs/google/cloud/optimization/v1/fleet_routing.rb', line 2145 class Visit include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::Google::Cloud::Optimization::V1::Shipment::Load] class LoadDemandsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |