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
Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.
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.
//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();
Namespace: iseesystems.iseeNET
Assembly: iseesystems.iseeNET.Simulation (in iseesystems.iseeNET.Simulation.dll)