Reference documentation and code samples for the Cloud Optimization V1 API class Google::Cloud::Optimization::V1::TransitionAttributes.
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).
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#cost
def cost() -> ::Float
- (::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.
#cost=
def cost=(value) -> ::Float
- value (::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.
- (::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.
#cost_per_kilometer
def cost_per_kilometer() -> ::Float
- (::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.
#cost_per_kilometer=
def cost_per_kilometer=(value) -> ::Float
- value (::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.
- (::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.
#delay
def delay() -> ::Google::Protobuf::Duration
-
(::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.
#delay=
def delay=(value) -> ::Google::Protobuf::Duration
-
value (::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.
-
(::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.
#distance_limit
def distance_limit() -> ::Google::Cloud::Optimization::V1::DistanceLimit
-
(::Google::Cloud::Optimization::V1::DistanceLimit) — Specifies a limit on the distance traveled while performing this
transition.
As of 2021/06, only soft limits are supported.
#distance_limit=
def distance_limit=(value) -> ::Google::Cloud::Optimization::V1::DistanceLimit
-
value (::Google::Cloud::Optimization::V1::DistanceLimit) — Specifies a limit on the distance traveled while performing this
transition.
As of 2021/06, only soft limits are supported.
-
(::Google::Cloud::Optimization::V1::DistanceLimit) — Specifies a limit on the distance traveled while performing this
transition.
As of 2021/06, only soft limits are supported.
#dst_tag
def dst_tag() -> ::String
-
(::String) — A destination visit or vehicle end matches iff its
VisitRequest.tags
or Vehicle.end_tags either
contains
dst_tag
or does not containexcluded_dst_tag
(depending on which of these two fields is non-empty).
#dst_tag=
def dst_tag=(value) -> ::String
-
value (::String) — A destination visit or vehicle end matches iff its
VisitRequest.tags
or Vehicle.end_tags either
contains
dst_tag
or does not containexcluded_dst_tag
(depending on which of these two fields is non-empty).
-
(::String) — A destination visit or vehicle end matches iff its
VisitRequest.tags
or Vehicle.end_tags either
contains
dst_tag
or does not containexcluded_dst_tag
(depending on which of these two fields is non-empty).
#excluded_dst_tag
def excluded_dst_tag() -> ::String
-
(::String) — See
dst_tag
. Exactly one ofdst_tag
andexcluded_dst_tag
must be non-empty.
#excluded_dst_tag=
def excluded_dst_tag=(value) -> ::String
-
value (::String) — See
dst_tag
. Exactly one ofdst_tag
andexcluded_dst_tag
must be non-empty.
-
(::String) — See
dst_tag
. Exactly one ofdst_tag
andexcluded_dst_tag
must be non-empty.
#excluded_src_tag
def excluded_src_tag() -> ::String
-
(::String) — See
src_tag
. Exactly one ofsrc_tag
andexcluded_src_tag
must be non-empty.
#excluded_src_tag=
def excluded_src_tag=(value) -> ::String
-
value (::String) — See
src_tag
. Exactly one ofsrc_tag
andexcluded_src_tag
must be non-empty.
-
(::String) — See
src_tag
. Exactly one ofsrc_tag
andexcluded_src_tag
must be non-empty.
#src_tag
def src_tag() -> ::String
-
(::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 containexcluded_src_tag
(depending on which of these two fields is non-empty).
#src_tag=
def src_tag=(value) -> ::String
-
value (::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 containexcluded_src_tag
(depending on which of these two fields is non-empty).
-
(::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 containexcluded_src_tag
(depending on which of these two fields is non-empty).