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 ¶
func NewModel(alg algorithm.RoutingAlgorithm, sim simulator.TrafficSimulator) (*Model, error)
NewModel creates a model with routing algorithm and traffic simulator
func (*Model) GetNumberOfEndpointSlices ¶
GetNumberOfEndpointSlices returns the number of EndpointSlices
func (*Model) GetNumberOfEndpoints ¶
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
Click to show internal directories.
Click to hide internal directories.