sim

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2023 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AccountId      = "1024"
	CQUPTLatitude  = 29.53832
	CQUPTLongitude = 106.613922
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	CarService carservice.Client
	Subscriber mq.Subscriber
}

Controller defines a car simulation controller.

func (*Controller) RunSimulations

func (c *Controller) RunSimulations(ctx context.Context)

RunSimulations runs simulations for all cars.

func (*Controller) SimulateCar

func (c *Controller) SimulateCar(ctx context.Context, carEntity *base.CarEntity, ch chan *base.Car)

SimulateCar simulates a single car.

Jump to

Keyboard shortcuts

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