Abstract.1-Eventtype t = | Message of int * int * Simulator.Clock.t * Simulator.Clock.t * msg | (* Message receival event: sender, receipient, send_timestamp, receive_timestamp, msg *) |
| MintBlock of int * Simulator.Clock.t | |
| Timeout of int * Simulator.Clock.t * Simulator.Events.timeout_label |
The type of the events processed during the simulation.
val timestamp : t -> Simulator.Clock.tReturns the timestamp when the event should be executed.
val target : t -> int optionReturn the node that should process an event.
val create_message : int -> int -> Simulator.Clock.t -> Simulator.Clock.t -> msg -> tCreate a message receival event.
val create_mint : int -> Simulator.Clock.t -> tCreate a minting event.
val create_timeout : int -> Simulator.Clock.t -> Simulator.Events.timeout_label -> tCreate a timeout event.