deployment

package
v0.0.0-...-c1c2666 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2015 License: Apache-2.0, LGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ORIGIN  = complex(0, 0)
	FcInGHz = 2.1 /// Default carrier frequency
)

Variables

View Source
var DropTypes = [...]string{
	"Circular",
	"Hexagonal",
	"Rectangular",
	"Annular",
}
View Source
var TxRxModes = [...]string{
	"TransmitOnly",
	"ReceiveOnly",
	"Duplex",
	"Inactive",
}

Functions

func AnnularPoint

func AnnularPoint(centre complex128, innerRadius, outerRadius float64) complex128

func AnnularRingEqPoints

func AnnularRingEqPoints(centre complex128, outerRadius float64, N int) vlib.VectorC

func AnnularRingPoints

func AnnularRingPoints(centre complex128, innerRadius, outerRadius float64, N int) vlib.VectorC

func CircularPoints

func CircularPoints(centre complex128, radius float64, N int) vlib.VectorC

func HexGrid

func HexGrid(N int, center vlib.Location3D, hexsize float64, RDEGREE float64) []vlib.Location3D

HexGrid generates a grid of N Hexgons centred at `center` of size hexsize, returns an array of 3D locations of the centres of the hexgonals, This centers can be used to place the base-stations for Multi-cell simulations. The function automatically adds more hexgonal out

func HexRandU

func HexRandU(centre complex128, hexRadius float64, Npoints int, rdegree float64) vlib.VectorC

% In the code, I will create a hexagon centered at (0,0) with radius R. % The snipplets can be used in mobile capacity predicts and general % systems level simulation of cellular networks.

func HexVertices

func HexVertices(centre complex128, length float64, degree float64) vlib.VectorC

func NewDropSetting

func NewDropSetting() *dDropSetting

func RandPoint

func RandPoint(centre complex128, radius float64) complex128

func RandPointR

func RandPointR(size float64) complex128

/ Simplest point for origin centred, rectangular region of length size

func RectangularEqPoints

func RectangularEqPoints(centre complex128, length, angle float64, N int) vlib.VectorC

func RectangularNPoints

func RectangularNPoints(centre complex128, width, height, angleInDegree float64, N int) vlib.VectorC

func RectangularPoint

func RectangularPoint(centre complex128, width, height, angleInDegree float64) complex128

Types

type Area

type Area struct {
	Celltype   DropType
	Dimensions vlib.VectorF
}

func CircularCoverage

func CircularCoverage(radius float64) Area

func RectangularCoverage

func RectangularCoverage(length float64) Area

type DropParameter

type DropParameter struct {
	Centre     complex128
	Type       DropType
	Randomnoss bool // if true, uniformly distributed else equallyspaced in region

	//Radius in meters
	Radius      float64 `json:"radius"`
	InnerRadius float64

	/// Angles are in degree
	RotationDegree      float64
	InnerRotationDegree float64

	// Number of Drops
	NCount int
}

func (DropParameter) MarshalJSON

func (d DropParameter) MarshalJSON() ([]byte, error)

type DropSystem

type DropSystem struct {
	Nodes map[int]Node
	// contains filtered or unexported fields
}

func (DropSystem) AddNodeType

func (d DropSystem) AddNodeType(ntype NodeType)

func (*DropSystem) Drop

func (d *DropSystem) Drop(dp *DropParameter, result *vlib.VectorC) error

func (*DropSystem) DropNodeType

func (d *DropSystem) DropNodeType(nodetype string) error

func (*DropSystem) GetNodeIDs

func (d *DropSystem) GetNodeIDs(ntype string) vlib.VectorI

func (DropSystem) GetNodeIndex

func (d DropSystem) GetNodeIndex(ntype string) int

func (*DropSystem) GetNodeType

func (d *DropSystem) GetNodeType(ntype string) *NodeType

func (DropSystem) GetRxNodeNames

func (d DropSystem) GetRxNodeNames() []string

func (DropSystem) GetSetting

func (d DropSystem) GetSetting() *dDropSetting

func (DropSystem) GetTxNodeNames

func (d DropSystem) GetTxNodeNames() []string

func (*DropSystem) Init

func (d *DropSystem) Init()

func (*DropSystem) Locations

func (d *DropSystem) Locations(ntype string) vlib.VectorC

func (*DropSystem) Locations3D

func (d *DropSystem) Locations3D(ntype string) []vlib.Location3D

func (*DropSystem) MarshalJSON

func (d *DropSystem) MarshalJSON() ([]byte, error)

func (*DropSystem) NewNode

func (d *DropSystem) NewNode(ntype string) *Node

func (DropSystem) NodeCount

func (d DropSystem) NodeCount(ntype string) int

func (*DropSystem) PopulateHeight

func (d *DropSystem) PopulateHeight(ntype string)

func (*DropSystem) SetAllNodeLocation

func (d *DropSystem) SetAllNodeLocation(ntype string, locations vlib.VectorC)

func (*DropSystem) SetAllNodeProperty

func (d *DropSystem) SetAllNodeProperty(ntype, property string, data interface{})

func (DropSystem) SetCoverage

func (d DropSystem) SetCoverage(area Area)

func (DropSystem) SetDefaults

func (d DropSystem) SetDefaults()

func (DropSystem) SetNodeCount

func (d DropSystem) SetNodeCount(ntype string, count int)

func (*DropSystem) SetNodeLocation

func (d *DropSystem) SetNodeLocation(ntype string, nid int, location complex128)

func (*DropSystem) SetNodeLocationOf

func (d *DropSystem) SetNodeLocationOf(ntype string, nodeIDs vlib.VectorI, locations vlib.VectorC)

func (DropSystem) SetRxNodeNames

func (d DropSystem) SetRxNodeNames(names ...string)

func (*DropSystem) SetSetting

func (d *DropSystem) SetSetting(setting *dDropSetting)

func (DropSystem) SetTxNodeNames

func (d DropSystem) SetTxNodeNames(names ...string)

func (*DropSystem) UnmarshalJSON

func (d *DropSystem) UnmarshalJSON(jsondata []byte) error

type DropType

type DropType int
const (
	Circular DropType = iota
	Hexagonal
	Rectangular
	Annular
)

func (DropType) String

func (c DropType) String() string

type Node

type Node struct {
	Type        string
	ID          int
	Location    vlib.Location3D
	Height      float64
	Meta        string
	Indoor      bool
	Orientation vlib.VectorF
	AntennaType int
	FreqGHz     vlib.VectorF
	Mode        TxRxMode `json:"TxRxMode"`
}

type NodeType

type NodeType struct {
	Name  string
	Hmin  float64
	Hmax  float64
	Count int

	NodeIDs vlib.VectorI `json:",strings"`
	Params  DropParameter
	// contains filtered or unexported fields
}

func NewNodeType

func NewNodeType(name string, heights ...float64) *NodeType

type TxRxMode

type TxRxMode int
const (
	TransmitOnly TxRxMode = iota
	ReceiveOnly
	Duplex
	Inactive
)

func (TxRxMode) String

func (c TxRxMode) String() string

Jump to

Keyboard shortcuts

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