Class: Google::Cloud::Optimization::V1::TransitionAttributes

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

Specifies attributes of transitions between two consecutive visits on a route. Several TransitionAttributes may apply to the same transition: in that case, all extra costs add up and the strictest constraint or limit applies (following natural "AND" semantics).

Instance Attribute Summary collapse

Instance Attribute Details

#cost::Float

Returns Specifies a cost for performing this transition. This is in the same unit as all other costs in the model and must not be negative. It is applied on top of all other existing costs.

Returns:

  • (::Float)

    Specifies a cost for performing this transition. This is in the same unit as all other costs in the model and must not be negative. It is applied on top of all other existing costs.



1721
1722
1723
1724
# File 'proto_docs/google/cloud/optimization/v1/fleet_routing.rb', line 1721

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

#cost_per_kilometer::Float

Returns Specifies a cost per kilometer applied to the distance traveled while performing this transition. It adds up to any Vehicle.cost_per_kilometer specified on vehicles.

Returns:

  • (::Float)

    Specifies a cost per kilometer applied to the distance traveled while performing this transition. It adds up to any Vehicle.cost_per_kilometer specified on vehicles.



1721
1722
1723
1724
# File 'proto_docs/google/cloud/optimization/v1/fleet_routing.rb', line 1721

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

#delay::Google::Protobuf::Duration

Returns Specifies a delay incurred when performing this transition.

This delay always occurs after finishing the source visit and before starting the destination visit.

Returns:

  • (::Google::Protobuf::Duration)

    Specifies a delay incurred when performing this transition.

    This delay always occurs after finishing the source visit and before starting the destination visit.



1721
1722
1723
1724
# File 'proto_docs/google/cloud/optimization/v1/fleet_routing.rb', line 1721

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

#distance_limit::Google::Cloud::Optimization::V1::DistanceLimit

Returns Specifies a limit on the distance traveled while performing this transition.

As of 2021/06, only soft limits are supported.

Returns:



1721
1722
1723
1724
# File 'proto_docs/google/cloud/optimization/v1/fleet_routing.rb', line 1721

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

#dst_tag::String

Returns A destination visit or vehicle end matches iff its VisitRequest.tags or Vehicle.end_tags either contains dst_tag or does not contain excluded_dst_tag (depending on which of these two fields is non-empty).

Returns:

  • (::String)

    A destination visit or vehicle end matches iff its VisitRequest.tags or Vehicle.end_tags either contains dst_tag or does not contain excluded_dst_tag (depending on which of these two fields is non-empty).



1721
1722
1723
1724
# File 'proto_docs/google/cloud/optimization/v1/fleet_routing.rb', line 1721

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

#excluded_dst_tag::String

Returns See dst_tag. Exactly one of dst_tag and excluded_dst_tag must be non-empty.

Returns:

  • (::String)

    See dst_tag. Exactly one of dst_tag and excluded_dst_tag must be non-empty.



1721
1722
1723
1724
# File 'proto_docs/google/cloud/optimization/v1/fleet_routing.rb', line 1721

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

#excluded_src_tag::String

Returns See src_tag. Exactly one of src_tag and excluded_src_tag must be non-empty.

Returns:

  • (::String)

    See src_tag. Exactly one of src_tag and excluded_src_tag must be non-empty.



1721
1722
1723
1724
# File 'proto_docs/google/cloud/optimization/v1/fleet_routing.rb', line 1721

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

#src_tag::String

Returns Tags defining the set of (src->dst) transitions these attributes apply to.

A source visit or vehicle start matches iff its VisitRequest.tags or Vehicle.start_tags either contains src_tag or does not contain excluded_src_tag (depending on which of these two fields is non-empty).

Returns:

  • (::String)

    Tags defining the set of (src->dst) transitions these attributes apply to.

    A source visit or vehicle start matches iff its VisitRequest.tags or Vehicle.start_tags either contains src_tag or does not contain excluded_src_tag (depending on which of these two fields is non-empty).



1721
1722
1723
1724
# File 'proto_docs/google/cloud/optimization/v1/fleet_routing.rb', line 1721

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