aqt_sim 0.1.0

Adverserial Queueing Theory (AQT) simulator
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! This module contains all implementations of adversaries, which determine where Packets are
//! injected into the network.

use crate::packet::Packet;
use crate::network::Network;

pub mod path_random;


/// Trait which all adversaries must implement.
pub trait Adversary {
    /// Get a new `Adversary`.
    fn new() -> Self;

    /// Create the packets to be injected.
    fn get_next_packets(&mut self, network: &Network, rd: usize) -> Vec<Packet>;
}