示例#1
0
 public PrSimulator(SimulationOptions options)
 {
     Size                  = options.Size;
     StartLocation         = options.StartLocation;
     m_Data                = GridData.AllocateNew(Size);
     m_Data[StartLocation] = 1;
     Step                  = 0;
     TotalSimTime          = 0;
     SimulationInfo        = new PrSimulationInfo(Step, TotalSimTime, 1, 0, 1);
 }
示例#2
0
        public StSimulator(SimulationOptions options)
        {
            Size          = options.Size;
            StartLocation = options.StartLocation;

            m_Data          = EdgeData.AllocateNew(Size);
            m_ProccesedData = EdgeData.AllocateLike(m_Data);

            SimulationInfo = new StSimulationInfo(TotalSimulations, AverageTravelPath, TotalSimTime);
            LastPath       = new StParticlePath(StartLocation, null, new List <GridIndex>());
        }