state

package
v0.0.0-...-70b330c Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StartSimulation

type StartSimulation struct {
	state.PlatformGetter
	state.ServicesGetter

	GroupID              simulations.GroupID
	GazeboServerPod      resource.Resource
	CreateMachinesInput  []machines.CreateMachinesInput
	CreateMachinesOutput []machines.CreateMachinesOutput
	ParentGroupID        *simulations.GroupID
	UpstreamName         string
	GazeboServerIP       string
	WebsocketConnection  ignws.PubSubWebsocketTransporter
	CommsBridgeIPs       []string
	MappingServerIP      string
	// contains filtered or unexported fields
}

StartSimulation is the state of the action that starts a simulation.

func NewStartSimulation

func NewStartSimulation(platform platform.Platform, services subtapp.Services, groupID simulations.GroupID) *StartSimulation

NewStartSimulation initializes a new state for starting simulations.

func (*StartSimulation) Platform

func (s *StartSimulation) Platform() platform.Platform

Platform returns the underlying platform.

func (*StartSimulation) Services

func (s *StartSimulation) Services() application.Services

Services returns the underlying application services.

func (*StartSimulation) SubTServices

func (s *StartSimulation) SubTServices() subtapp.Services

SubTServices returns the subt specific application services.

type StopSimulation

type StopSimulation struct {
	GroupID      simulations.GroupID
	Score        *float64
	Stats        simulations.Statistics
	Summary      simulations.Summary
	RunData      string
	PodList      []resource.Resource
	UpstreamName string
	// contains filtered or unexported fields
}

StopSimulation is the state of the action that stops a simulation.

func NewStopSimulation

func NewStopSimulation(platform platform.Platform, services subtapp.Services, groupID simulations.GroupID) *StopSimulation

NewStopSimulation initializes a new state for stopping simulations.

func (*StopSimulation) Platform

func (s *StopSimulation) Platform() platform.Platform

Platform returns the underlying platform.

func (*StopSimulation) Services

func (s *StopSimulation) Services() application.Services

Services returns the underlying application services.

func (*StopSimulation) SubTServices

func (s *StopSimulation) SubTServices() subtapp.Services

SubTServices returns the subt specific application services.

Jump to

Keyboard shortcuts

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