Documentation ¶
Index ¶
- func GetForecastingBlock(dir string, sliceID string) ([]Block, []Block, []ResourcePattern)
- func GetTestCaseTimewindowNumber(case_dir string) int
- func RefreshRequestList(dir string, dir_forecasting string, windowID int, forecastingFinish bool, ...) ([]Slice, []Slice, []UeGenerator)
- type Block
- type ByBandwidth
- type ByCpu
- type ForecastingBlock
- type RequestList
- type ResourcePattern
- type Slice
- type SliceList
- type UeGenerator
- type Yaml2GoForecastingBlock
- type Yaml2GoRequestList
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 ¶
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 ForecastingBlock ¶
type ForecastingBlock struct { Block int `yaml:"block"` Duration int `yaml:"duration"` Cpu int `yaml:"cpu"` Bandwidth int `yaml:"bandwidth"` }
ForecastingBlock
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
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
Click to show internal directories.
Click to hide internal directories.