pub fn new() -> WorkerConfig {
        WorkerConfig {
            worker_name: String::from("worker1"),
            work_dir: String::from("."),
            worker_id: None,
            random_seed: 0, //The random seed itself doesn't need to be random. Also, that makes testing more difficult.
            operation_mode: OperationMode::Simulated,
            accept_commands: None,
            term_log: None,
            packet_queue_size: Some(DEFAULT_PACKET_QUEUE_SIZE),
            stale_packet_threshold: Some(DEFAULT_STALE_PACKET_THRESHOLD),
            protocol: Some(Protocols::Flooding),
            radio_short: None,
            radio_long: None,
            position: Position { x: 0.0, y: 0.0 },
            destination: None,
            velocity: Velocity { x: 0.0, y: 0.0 },
        }
    }
///Creates a new configuration for a Worker with default settings.
Creates a new configuration for a Worker with default settings.
Creates a new configuration for a Worker with default settings .
pub fn new() -> WorkerConfig {
        WorkerConfig {
            worker_name: String::from("worker1"),
            work_dir: String::from("."),
            worker_id: None,
            random_seed: 0, //The random seed itself doesn't need to be random. Also, that makes testing more difficult.
            operation_mode: OperationMode::Simulated,
            accept_commands: None,
            term_log: None,
            packet_queue_size: Some(DEFAULT_PACKET_QUEUE_SIZE),
            stale_packet_threshold: Some(DEFAULT_STALE_PACKET_THRESHOLD),
            protocol: Some(Protocols::Flooding),
            radio_short: None,
            radio_long: None,
            position: Position { x: 0.0, y: 0.0 },
            destination: None,
            velocity: Velocity { x: 0.0, y: 0.0 },
        }
    }
pub fn new ( ) -> WorkerConfig { WorkerConfig { worker_name : String :: from ( " " ) , work_dir : String :: from ( " " ) , worker_id : None , random_seed : 0 , //The random seed itself doesn't need to be random. Also, that makes testing more difficult. operation_mode : OperationMode :: Simulated , accept_commands : None , term_log : None , packet_queue_size : Some ( DEFAULT_PACKET_QUEUE_SIZE ) , stale_packet_threshold : Some ( DEFAULT_STALE_PACKET_THRESHOLD ) , protocol : Some ( Protocols :: Flooding ) , radio_short : None , radio_long : None , position : Position { x : 0.0 , y : 0.0 } , destination : None , velocity : Velocity { x : 0.0 , y : 0.0 } , } }
Creates a new configuration for a Worker with default settings.
Creates a new configuration for a Worker with default settings .