Exemplo n.º 1
0
        SimulationExecutionModelInfo getSimulationExecutionModelInfo(GeneratedCode.SimulationModelRoot model)
        {
            SimulationExecutionModelInfo simex = new SimulationExecutionModelInfo();
            SimulatorExecutionInfo       sim   = null;

            simex.updateFrequency = model.SimulationExecutionModel.UpdateFrequency;
            if (model.SimulationExecutionModel.Simulator != null)
            {
                for (int i = 0; i < model.SimulationExecutionModel.Simulator.Length; i++)
                {
                    sim = new SimulatorExecutionInfo();
                    sim.simulatorName = model.SimulationExecutionModel.Simulator[i].SimulatorName;
                    sim.dllName       = model.SimulationExecutionModel.Simulator[i].DLLName;
                    simex.simulators.Add(sim);
                }
            }
            return(simex);
        }
Exemplo n.º 2
0
 public SimulationModelInfo()
 {
     objectModel = null;
     eventModel = null;
     simulationExecutionModel = null;
 }
Exemplo n.º 3
0
 SimulationExecutionModelInfo getSimulationExecutionModelInfo(GeneratedCode.SimulationModelRoot model)
 {
     SimulationExecutionModelInfo simex = new SimulationExecutionModelInfo();
     SimulatorExecutionInfo sim = null;
     simex.updateFrequency = model.SimulationExecutionModel.UpdateFrequency;
     if (model.SimulationExecutionModel.Simulator != null)
     {
         for (int i = 0; i < model.SimulationExecutionModel.Simulator.Length; i++)
         {
             sim = new SimulatorExecutionInfo();
             sim.simulatorName = model.SimulationExecutionModel.Simulator[i].SimulatorName;
             sim.dllName = model.SimulationExecutionModel.Simulator[i].DLLName;
             simex.simulators.Add(sim);
         }
     }
     return simex;
 }
Exemplo n.º 4
0
 public SimulationModelInfo()
 {
     objectModel = null;
     eventModel  = null;
     simulationExecutionModel = null;
 }