simulator

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: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JobArrival

type JobArrival struct {
	Job       job.Job
	Scheduler scheduler.Scheduler
}

func (JobArrival) Process

func (arrival JobArrival) Process() []event.Event

func (JobArrival) Time

func (arrival JobArrival) Time() uint64

type Result

type Result struct {
	Job       *job.Job
	Durations []uint64
}

type Simulation

type Simulation struct {
	Jobs      []job.Job
	Files     map[string]file.File
	Topo      *topology.Topology
	Heap      event.EventHeap
	Scheduler scheduler.Scheduler
}

func New

func New(jobs []job.Job, files map[string]file.File, topo *topology.Topology, scheduler scheduler.Scheduler, window uint64) *Simulation

func (Simulation) Len

func (simulation Simulation) Len() int

func (Simulation) Next

func (simulation Simulation) Next() uint64

func (*Simulation) Run

func (simulation *Simulation) Run() ([]Result, error)

type WindowScheduling

type WindowScheduling struct {
	When      uint64
	Window    uint64
	Scheduler scheduler.Scheduler
	// contains filtered or unexported fields
}

func (WindowScheduling) Process

func (scheduling WindowScheduling) Process() []event.Event

func (WindowScheduling) Time

func (scheduling WindowScheduling) Time() uint64

Jump to

Keyboard shortcuts

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