コード例 #1
0
        public DiffGenerator(PrSimulator prSimulator, StSimulator stSimulator)
        {
            if (prSimulator.Size != stSimulator.Size)
            {
                throw new ArgumentException("Simulators must be equal size.");
            }

            m_PrSimulator = prSimulator;
            m_StSimulator = stSimulator;

            Size = m_PrSimulator.Size;
        }
コード例 #2
0
 public static SimulationOptions FromSimulator(PrSimulator simulator)
 {
     return(new SimulationOptions(simulator.Size, simulator.StartLocation));
 }