public void Run() { var env = new SimRuntime(this) { MaxSteps = MaxSteps, MaxTime = MaxTime }; if (MaxInactive.HasValue) { env.MaxInactive = MaxInactive.Value; } env.Run(Plan); }
public void Run(Func <SimControl, Task> plan = null) { var env = new SimRuntime(this) { MaxSteps = MaxSteps, MaxTime = MaxTime }; if (MaxInactive.HasValue) { env.MaxInactive = MaxInactive.Value; } env.Run(plan ?? Plan); }