nsrhandler

package
v0.0.0-...-953494f Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2021 License: MIT Imports: 9 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetForecastingBlock

func GetForecastingBlock(dir string, sliceID string) ([]Block, []Block, []ResourcePattern)

get forecasted network slice and ue request pattern

func GetTestCaseTimewindowNumber

func GetTestCaseTimewindowNumber(case_dir string) int

get number of Timewindow in specific test case

func RefreshRequestList

func RefreshRequestList(dir string, dir_forecasting string, windowID int, forecastingFinish bool, sorting bool) ([]Slice, []Slice, []UeGenerator)

get network slice requests base on test case dir and time_window_id, alse generate ue request pattern

Types

type Block

type Block = slicebinpack.Block

type ByBandwidth

type ByBandwidth []SliceList

ByCpu implements sort.Interface based on the Cpu field.

func (ByBandwidth) Len

func (a ByBandwidth) Len() int

func (ByBandwidth) Less

func (a ByBandwidth) Less(i, j int) bool

func (ByBandwidth) Swap

func (a ByBandwidth) Swap(i, j int)

type ByCpu

type ByCpu []SliceList

ByCpu implements sort.Interface based on the Cpu field.

func (ByCpu) Len

func (a ByCpu) Len() int

func (ByCpu) Less

func (a ByCpu) Less(i, j int) bool

func (ByCpu) Swap

func (a ByCpu) Swap(i, j int)

type ForecastingBlock

type ForecastingBlock struct {
	Block     int `yaml:"block"`
	Duration  int `yaml:"duration"`
	Cpu       int `yaml:"cpu"`
	Bandwidth int `yaml:"bandwidth"`
}

ForecastingBlock

type RequestList

type RequestList struct {
	SliceList []SliceList `yaml:"sliceList"`
}

RequestList

type ResourcePattern

type ResourcePattern = generator.ResourcePattern

type Slice

type Slice = slicebinpack.Slice

type SliceList

type SliceList struct {
	Snssai    string `yaml:"snssai"`
	Ngci      string `yaml:"ngci"`
	Duration  int    `yaml:"duration"`
	Cpu       int    `yaml:"cpu"`
	Bandwidth int    `yaml:"bandwidth"`
}

SliceList

func GetSliceInfo

func GetSliceInfo(dir string) []SliceList

Get all network slice info

type UeGenerator

type UeGenerator = generator.UeGenerator

type Yaml2GoForecastingBlock

type Yaml2GoForecastingBlock struct {
	ForecastingBlock []ForecastingBlock `yaml:"forecastingBlock"`
}

Yaml2Go

type Yaml2GoRequestList

type Yaml2GoRequestList struct {
	RequestList RequestList `yaml:"requestList"`
}

Yaml2Go

Jump to

Keyboard shortcuts

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