isee.NET Framework Documentation

Simulation Class

Allows programmatic access to an ithink/STELLA model

For a list of all members of this type, see Simulation Members.

System.Object
   iseesystems.iseeNET.Simulation

[Visual Basic]
Public Class Simulation
[C#]
public class Simulation

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Remarks

The Simulation class is the brain of any isee.NET Framework application. It gives you access to inputs and outputs, let’s you control the flow of running the model, and let’s you get strongly-typed class representations of the model interface objects, i.e. sliders, knobs, tables, graphs, etc.

Example

//simulation initialized earlier in code
...
private void RunSim()
{
    if(this.Simulation.TimeSpecs.CurrentTime > this.Simulation.TimeSpecs.StopTime)
    {
        this.Simulation.Run();
    }
        else
    {
        this.Simulation.Reset();
    }
}
private Knob knob;
private Slider slider;
private GraphPad graph;

private void GetInputs()
{
    this.knob = this.Simulation.GetKnob("initial_account_balance");
    this.slider = this.Simulation.GetSlider("monthly_income");
    this.graph = this.Simulation.GetGraphPad("expense_report");
}

this.knob.CurrentValue = 10000;
this.slider.CurrentValue = 5000;
this.RunSim();

Requirements

Namespace: iseesystems.iseeNET

Assembly: iseesystems.iseeNET.Simulation (in iseesystems.iseeNET.Simulation.dll)

See Also

Simulation Members | iseesystems.iseeNET Namespace