wcx789ll/moonsim/network does not have a README file
pub(all) struct BandwidthLink {
src : Int
dst : Int
bandwidth_bps : Double
propagation_latency : Double
buffer_capacity_bytes : Int
current_buffer_bytes : Int
next_available_time : Double
packets_sent : Int
packets_delivered : Int
overflow_drops : Int
total_queueing_delay : Double
}fn BandwidthLink::new(src : Int, dst : Int, bandwidth_bps : Double, propagation_latency : Double, buffer_capacity_bytes : Int) -> BandwidthLinkpub(all) struct NetworkLink {
src : Int
dst : Int
latency : Double
drop_probability : Double
packets_sent : Int
packets_dropped : Int
packets_delivered : Int
}fn NetworkLink::new(src : Int, dst : Int, latency : Double, drop_probability : Double) -> NetworkLinkfn[T] NetworkTopology::add_link(self : NetworkTopology[T], src : Int, dst : Int, latency : Double, drop_probability : Double) -> Unitfn[T] NetworkTopology::send_packet(self : NetworkTopology[T], src : Int, dst : Int, payload : T, priority : Int, on_deliver : (Packet[T]) -> Unit) -> Boolfn[T] NetworkTopology::set_node_status(self : NetworkTopology[T], node_id : Int, status : NodeStatus) -> Unitimpl Show for NodeStatusA high-performance deterministic discrete-event and multi-agent systems simulation framework in MoonBit