mirror of
https://github.com/logos-storage/swarmsim.git
synced 2026-02-08 07:53:07 +00:00
16 lines
385 B
Nim
16 lines
385 B
Nim
import std/heapqueue
|
|
|
|
type
|
|
SchedulableEvent* = ref object of RootObj
|
|
## A `SchedulableEvent` is an event that can be scheduled for execution in an `EventDrivenEngine`
|
|
## at a well-defined point in simuliation time.
|
|
##
|
|
time*: uint64
|
|
|
|
type
|
|
EventDrivenEngine* = ref object of RootObj
|
|
current_time*: uint64
|
|
queue*: HeapQueue[SchedulableEvent]
|
|
|
|
export heapqueue
|