sim

package
v0.41.0 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2024 License: MIT Imports: 6 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) ActiveScenarios added in v0.34.0

func (s *Simulation) ActiveScenarios() []string

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
Package ostore provides a simple object store for the simulation.
Package ostore provides a simple object store for the simulation.

Jump to

Keyboard shortcuts

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