control

package
v0.0.0-...-db5d468 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2023 License: BSD-2-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Control

type Control struct {
	// contains filtered or unexported fields
}

func NewControl

func NewControl(plant Manager, controlPeriod, maxQueueTime uint, unit time.Duration) *Control

func (*Control) B

func (c *Control) B() float64

func (*Control) Beta

func (c *Control) Beta() float64

func (*Control) DX

func (c *Control) DX() float64

func (*Control) DY

func (c *Control) DY() float64

func (*Control) InternalConcurrency

func (c *Control) InternalConcurrency() float64

func (*Control) K

func (c *Control) K() float64

func (*Control) MuP

func (c *Control) MuP() float64

func (*Control) R

func (c *Control) R() float64

func (*Control) Run

func (c *Control) Run()

func (*Control) SetDryRun

func (c *Control) SetDryRun()

func (*Control) SetEMASize

func (c *Control) SetEMASize(size int)

func (*Control) SetEMISize

func (c *Control) SetEMISize(size int)

func (*Control) XD

func (c *Control) XD() uint

type Manager

type Manager interface {
	SetB() chan float64

	DXY(unit time.Duration) (float64, float64)
	XmY() uint // X - Y
	Q() uint
	Beta() uint

	// Optional for the plant since it can be got from Little's Law
	MuP() (float64, bool)
}

Jump to

Keyboard shortcuts

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