[][src]Trait vrp_core::models::problem::TransportCost

pub trait TransportCost {
    fn duration(
        &self,
        profile: Profile,
        from: Location,
        to: Location,
        departure: Timestamp
    ) -> Duration;
fn distance(
        &self,
        profile: Profile,
        from: Location,
        to: Location,
        departure: Timestamp
    ) -> Distance; fn cost(
        &self,
        actor: &Actor,
        from: Location,
        to: Location,
        departure: Timestamp
    ) -> Cost { ... } }

Provides the way to get routing information for specific locations and actor.

Required methods

fn duration(
    &self,
    profile: Profile,
    from: Location,
    to: Location,
    departure: Timestamp
) -> Duration

Returns transport time between two locations.

fn distance(
    &self,
    profile: Profile,
    from: Location,
    to: Location,
    departure: Timestamp
) -> Distance

Returns transport distance between two locations.

Loading content...

Provided methods

fn cost(
    &self,
    actor: &Actor,
    from: Location,
    to: Location,
    departure: Timestamp
) -> Cost

Returns transport cost between two locations.

Loading content...

Implementors

Loading content...