public bool PerformTimeStep() { _daisyEngine.TickTime(); DateTime time = _daisyEngine.GetTime(); Console.Write("*** " + time.Year); Console.Write("-" + time.Month); Console.WriteLine("-" + time.Day); return(true); // Hvis modellen skal reducere sit "timestep" return false }
static Scope GetInitScope() { Daisy daisy = new Daisy(); daisy.ParseFile("../../DaisyData/test_check.dai"); daisy.Initialize(); daisy.Start(); daisy.TickTime(); Assert.Greater(daisy.ScopeSize(), 3); Scope scope = daisy.GetScope(0); return(scope); }
static Frame GetInitFrame() { Daisy daisy = new Daisy(); daisy.ParseFile("../../DaisyData/test_check.dai"); daisy.Initialize(); daisy.Start(); daisy.TickTime(); Frame frame = daisy.ProgramFrame(); return(frame); }