sim

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2022 License: AGPL-3.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 Ownship

type Ownship struct {
	Path [][3]float64

	Velocity float64
	// contains filtered or unexported fields
}

func (*Ownship) Setup

func (ownship *Ownship) Setup()

func (*Ownship) Step

func (ownship *Ownship) Step(timestep float64)

type Simulation

type Simulation struct {
	Traffic           Traffic
	Ownship           Ownship
	ConflictDistances [2]float64
	ConflictLog       int
	TimeStep          float64
	T                 int
}

func (*Simulation) End

func (sim *Simulation) End()

func (*Simulation) Run

func (sim *Simulation) Run()

type Traffic

type Traffic struct {

	//Randomness
	AltitudeDistr     hist.Histogram
	VelocityDistr     hist.Histogram
	TrackDistr        hist.Histogram
	VerticalRateDistr hist.Histogram
	SurfaceEntrance   bool

	Positions mat.Dense
	Seed      int64
	// contains filtered or unexported fields
}

func (*Traffic) AddAgents

func (tfc *Traffic) AddAgents()

func (*Traffic) End

func (tfc *Traffic) End()

func (*Traffic) GenerateXYEdgePosition

func (tfc *Traffic) GenerateXYEdgePosition() [2]float64

func (*Traffic) Setup

func (tfc *Traffic) Setup(bounds [6]float64, target_density float64)

func (*Traffic) Step

func (tfc *Traffic) Step(timestep float64)

Jump to

Keyboard shortcuts

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