Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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
Click to show internal directories.
Click to hide internal directories.