config

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

README

Config file for ran-simulator

This contains tower locations for the ran-simulator

Yaml files from this folder are copied over to /etc/onos/config folder on the deployed docker container

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Checker

func Checker(config *TowerConfig) error

Checker - check everything is within bounds

func Clear

func Clear()

Clear - reset the config - needed for tests

Types

type Sector

type Sector struct {
	EcID        types.EcID `yaml:"ecid"`
	GrpcPort    uint16     `yaml:"grpcport"`
	Azimuth     uint16     `yaml:"azimuth"`
	Arc         uint16     `yaml:"arc"`
	MaxUEs      uint16     `yaml:"maxues"`
	InitPowerDb float32    `yaml:"initpowerdb"`
}

Sector - one side of the tower

type TowerConfig

type TowerConfig struct {
	MapCentre    types.Point
	TowersLayout []TowersLayout
}

TowerConfig is the ran-simulator configuration

func GetTowerConfig

func GetTowerConfig(location string) (TowerConfig, error)

GetTowerConfig gets the onos-towerConfig configuration

func HoneycombGenerator

func HoneycombGenerator(numTowers uint, sectorsPerTower uint, latitude float32,
	longitude float32, plmnid types.PlmnID, ecidStart uint16, portstart uint16, pitch float32) (*TowerConfig, error)

HoneycombGenerator - used by the cli tool "honeycomb"

type TowersLayout

type TowersLayout struct {
	TowerID   string       `yaml:"towerid"`
	PlmnID    types.PlmnID `yaml:"plmnid"`
	Latitude  float32      `yaml:"latitude"`
	Longitude float32      `yaml:"longitude"`
	Sectors   []Sector
}

TowersLayout an individual tower with sectors

Jump to

Keyboard shortcuts

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