Skip to main content

RoutingAlgorithm

Trait RoutingAlgorithm 

Source
pub trait RoutingAlgorithm {
    // Required method
    fn route(&self, current: Point, target: Address, time_s: u32) -> Hop;
}
Expand description

Decides the next hop for a packet.

Required Methods§

Source

fn route(&self, current: Point, target: Address, time_s: u32) -> Hop

Returns the next hop from current toward target at the given simulation time.

Implementors§