Exemplo n.º 1
0
 static void Main(string[] args)
 {
     var elementTypes = new[] { new MockElementType() };
     using (var engine = EngineFactory.Create(elementTypes, EngineProvider.Cpu))
     {
         engine.LoadTable(null, 1);
         engine.EvaluateFrame(TimePrec.EncodeTime(10));
     }
 }
Exemplo n.º 2
0
        public void Integration()
        {
            using (var engine = new ManagedEngine())
            {
                // load types
                //engine.Types.Add(MockElementType.FirstWinsType);
                //engine.Types.Add(MockElementType.MultipleType);

                //// load grids
                //engine.LoadTable(new ElementTable
                //{
                //    Elements = new[] { MockElement.FirstWins }
                //}, 0);
                //engine.LoadTable(new ElementTable
                //{
                //    Elements = new[] { MockElement.FirstWins }
                //}, 1);

                // evaluate frame
                engine.EvaluateFrame(TimePrec.EncodeTime(10));
            }
        }