public virtual void Reset(int randomSeed) { Now = StartDate; Random = new SystemRandom(randomSeed); ScheduleQ = new EventQueue(InitialMaxEvents); Queue = new Queue <Event>(); }
public Environment(DateTime initialDateTime, int randomSeed, TimeSpan? defaultStep = null) { DefaultTimeStepSeconds = (defaultStep ?? TimeSpan.FromSeconds(1)).Duration().TotalSeconds; StartDate = initialDateTime; Now = initialDateTime; Random = new SystemRandom(randomSeed); ScheduleQ = new EventQueue(InitialMaxEvents); Queue = new Queue<Event>(); Logger = Console.Out; }
public Environment(DateTime initialDateTime, TimeSpan?defaultStep = null) { DefaultTimeStepSeconds = (defaultStep ?? TimeSpan.FromSeconds(1)).Duration().TotalSeconds; StartDate = initialDateTime; Now = initialDateTime; Random = new SystemRandom(); ScheduleQ = new EventQueue(InitialMaxEvents); Queue = new Queue <Event>(); Logger = Console.Out; }
public Environment(DateTime initialDateTime, int randomSeed, TimeSpan?defaultStep = null) : base(initialDateTime, randomSeed, defaultStep) { Random = new SystemRandom(randomSeed); }
public Environment(DateTime initialDateTime, TimeSpan?defaultStep = null) : base(initialDateTime, defaultStep) { Random = new SystemRandom(); }
public Environment(int randomSeed, TimeSpan?defaultStep = null) : base(randomSeed, defaultStep) { Random = new SystemRandom(randomSeed); }
public Environment(TimeSpan?defaultStep) : base(defaultStep) { Random = new SystemRandom(); }
public Environment() : base() { Random = new SystemRandom(); }
public virtual void Reset(int randomSeed) { ProcessedEvents = 0; Now = StartDate; Random = new SystemRandom(randomSeed); ScheduleQ = new EventQueue(InitialMaxEvents); Queue = new Queue<Event>(); }