Cloud Optimization V1 API - Class Google::Cloud::Optimization::V1::TransitionAttributes (v0.6.0)

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
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.

#cost=

def cost=(value) -> ::Float
Parameter
  • 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.
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.

#cost_per_kilometer

def cost_per_kilometer() -> ::Float
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.

#cost_per_kilometer=

def cost_per_kilometer=(value) -> ::Float
Parameter
  • 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.
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.

#delay

def delay() -> ::Google::Protobuf::Duration
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.

#delay=

def delay=(value) -> ::Google::Protobuf::Duration
Parameter
  • 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.

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.

#distance_limit

def distance_limit() -> ::Google::Cloud::Optimization::V1::DistanceLimit
Returns

#distance_limit=

def distance_limit=(value) -> ::Google::Cloud::Optimization::V1::DistanceLimit
Parameter
Returns

#dst_tag

def dst_tag() -> ::String
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).

#dst_tag=

def dst_tag=(value) -> ::String
Parameter
  • value (::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).
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).

#excluded_dst_tag

def excluded_dst_tag() -> ::String
Returns
  • (::String) — See dst_tag. Exactly one of dst_tag and excluded_dst_tag must be non-empty.

#excluded_dst_tag=

def excluded_dst_tag=(value) -> ::String
Parameter
  • value (::String) — 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.

#excluded_src_tag

def excluded_src_tag() -> ::String
Returns
  • (::String) — See src_tag. Exactly one of src_tag and excluded_src_tag must be non-empty.

#excluded_src_tag=

def excluded_src_tag=(value) -> ::String
Parameter
  • value (::String) — 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.

#src_tag

def src_tag() -> ::String
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).

#src_tag=

def src_tag=(value) -> ::String
Parameter
  • 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 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).