sim

package
v0.19.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

func NewServer() *server

Types

type Simulation

type Simulation struct {
	*core.MultiEngine
	// contains filtered or unexported fields
}

Simulate runs one or more simulation scenarios. To unload a scenario call the Stop operation with the scenario name. To stop all scenarios call the StopAll operation. A scenario can simulation properties, operations and signals using static values or scripted behavior. The scripted behavior can be either triggered by a call or by a script entry All results are send out via the event channel.

func NewSimulation

func NewSimulation() *Simulation

func (*Simulation) LoadScenario added in v0.6.0

func (s *Simulation) LoadScenario(source string, doc *spec.ScenarioDoc) error

func (*Simulation) LoadScript added in v0.6.0

func (s *Simulation) LoadScript(source string, script string) error

func (*Simulation) Stop added in v0.8.0

func (s *Simulation) Stop()

func (*Simulation) UnloadScenario added in v0.8.0

func (s *Simulation) UnloadScenario(source string) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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