Exemplo n.º 1
0
        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
        }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
        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);
        }