cmdq

package
v2.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package cmdq provides command queue implementations

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommandQueue

type CommandQueue interface {
	GetCommandToIssue(
		now sim.VTimeInSec,
	) *signal.Command
	CanAccept(command *signal.Command) bool
	Accept(command *signal.Command)
}

type CommandQueueImpl

type CommandQueueImpl struct {
	Queues           []Queue
	CapacityPerQueue int

	Channel org.Channel
	// contains filtered or unexported fields
}

func (*CommandQueueImpl) Accept

func (q *CommandQueueImpl) Accept(cmd *signal.Command)

func (*CommandQueueImpl) CanAccept

func (q *CommandQueueImpl) CanAccept(cmd *signal.Command) bool

func (*CommandQueueImpl) GetCommandToIssue

func (q *CommandQueueImpl) GetCommandToIssue(
	now sim.VTimeInSec,
) *signal.Command

type Queue

type Queue []*signal.Command

Jump to

Keyboard shortcuts

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