Network.NetworkThe type of the Network abstraction. Provides primitives for creating the network topology and for abstracting message exchanges.
Stats module to keep track of the number of messages exchanged during the simulation
Stats module to keep track of the total megabytes exchanged during the simulation
val send : int -> int -> msg -> unitPrimitive for point-to-point message exchange.
val send_to_neighbors : int -> msg -> unitPrimitive to send a message to all neighbors of a given node
val gossip : int -> msg -> unitPrimitive to abstract the gossip protocol. Gossips a message to every node in the network. Used for slightly more relaxed scenarios, since it assumes that limited-bandwidth=false.
val get_neighbours : int -> linksPrimitive to obtain the neighbors of a given node.
val get_links : unit -> network_linksPrimitive to get the links assigned to each node in the network.
val get_regions : unit -> regionsPrimitive to get the region assigned to each node in the network.