Exemplo n.º 1
0
        /// <summary>
        /// Use of COM is a bit volatile (windows XP crashes sometimes)
        /// This makes sure that the COM server is closed
        /// and the reference to the COM server is released.
        /// </summary>
        void CloseSimul8COMServer()
        {
            s8.Close();
            s8.Quit();

            Marshal.FinalReleaseComObject(s8);
            s8 = null;
        }
Exemplo n.º 2
0
        public void RunMultipleReplications(string fileName, int replications)
        {
            s8         = new S8SimulationClass();
            s8.Visible = false;

            HookupDelegates(s8);

            Console.WriteLine("Opening Simul8 model: {0}", fileName);
            s8.Open(fileName);
            s8.TrialSim(replications, false);
        }
Exemplo n.º 3
0
        public void RunMultipleReplications(string fileName, int replications)
        {
            s8 = new S8SimulationClass();
            s8.Visible = false;

            HookupDelegates(s8);

            Console.WriteLine("Opening Simul8 model: {0}", fileName);
            s8.Open(fileName);
            s8.TrialSim(replications,false);
        }
Exemplo n.º 4
0
 void HookupDelegates(S8SimulationClass s8)
 {
     s8.S8SimulationEndTrial += this.SimulationTrialEnded;
 }
Exemplo n.º 5
0
 void HookupDelegates(S8SimulationClass s8)
 {
     s8.S8SimulationEndTrial += this.SimulationTrialEnded;
 }
Exemplo n.º 6
0
        /// <summary>
        /// Use of COM is a bit volatile (windows XP crashes sometimes)
        /// This makes sure that the COM server is closed
        /// and the reference to the COM server is released.
        /// </summary>
        void CloseSimul8COMServer()
        {
            s8.Close();
            s8.Quit();

            Marshal.FinalReleaseComObject(s8);
            s8 = null;
        }