utils

package
v0.5.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const GrpcBasePort = 5150

GrpcBasePort - the base port for trafficsim - other e2 ports are stepped from this

View Source
const ImsiBaseCbrs = types.Imsi(315010999900000)

ImsiBaseCbrs - from https://imsiadmin.com/cbrs-assignments

View Source
const ServiceName = "ran-simulator"

ServiceName is the default name of this Kubernetes service

View Source
const TestPlmnID = "315010"

TestPlmnID - https://en.wikipedia.org/wiki/Mobile_country_code#Test_networks

Variables

This section is empty.

Functions

func EcIDForPort

func EcIDForPort(towerPort int) types.EcID

EcIDForPort gives a consistent naming convention

func GetRotationDegrees

func GetRotationDegrees(pointA *types.Point, pointB *types.Point) float64

GetRotationDegrees - get the rotation of the car

func ImsiGenerator

func ImsiGenerator(ueIdx int) types.Imsi

ImsiGenerator -- generate an Imsi from an index

func RandomColor

func RandomColor() string

RandomColor from https://htmlcolorcodes.com/

func RandomLatLng

func RandomLatLng(mapCenterLat float32, mapCenterLng float32, radius float32, aspectRatio float32) types.Point

RandomLatLng - Generates a random latlng value in 1000 meter radius of loc

Types

type ServerParams

type ServerParams struct {
	CaPath       string
	KeyPath      string
	CertPath     string
	TopoEndpoint string
}

ServerParams - params to start a new server

Jump to

Keyboard shortcuts

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