event

package
v0.0.0-...-a92cdc1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 7, 2022 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Simulate

func Simulate(seed []Event)

Types

type Event

type Event interface {
	Time() uint64
	Process() []Event
}

type EventHeap

type EventHeap []Event

func NewEventHeap

func NewEventHeap() EventHeap

func (EventHeap) Len

func (h EventHeap) Len() int

func (EventHeap) Less

func (h EventHeap) Less(i, j int) bool

func (*EventHeap) Pop

func (h *EventHeap) Pop() interface{}

func (*EventHeap) Process

func (h *EventHeap) Process()

func (*EventHeap) Push

func (h *EventHeap) Push(x interface{})

func (EventHeap) Swap

func (h EventHeap) Swap(i, j int)

func (EventHeap) Top

func (h EventHeap) Top() Event

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL