modeling

package
v0.0.0-...-b2a4aae Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Model

type Model struct {

	// SliceCapacity is the number of max endpoints per slice
	SliceCapacity int
	// contains filtered or unexported fields
}

Model wrapper class for the simulation components

func NewModel

NewModel creates a model with routing algorithm and traffic simulator

func (*Model) GetNumberOfEndpointSlices

func (m *Model) GetNumberOfEndpointSlices() int

GetNumberOfEndpointSlices returns the number of EndpointSlices

func (*Model) GetNumberOfEndpoints

func (m *Model) GetNumberOfEndpoints() int

GetNumberOfEndpoints returns the number of total endpoints

func (*Model) StartSimulation

func (m *Model) StartSimulation() (types.SimulationResult, error)

StartSimulation based on the zones(Region) and EndpointSliceGroups

func (*Model) UpdateRegion

func (m *Model) UpdateRegion(zones []types.Zone) error

UpdateRegion updates the region of the model, this is used to run the algorithm on different zone inputs

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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