public void TestInitialize() { generator = new MockSystemGenerator(); clock = new SystemClock(); engine = new Engine(clock, generator); engine.NewRequestEvent += engine_NewRequestEvent; }
public void Generate(ISystemGenerator generator) { Generator = generator; Generator.CreateSystemsIn(this); Update(0); IsGenerated = true; }
public SystemConfiguration(ISystemGenerator generator, ISystemDevices devices, ISystemDiscipline systemDiscipline) { Generator = generator; Devices = devices; Discipline = systemDiscipline; }
public void TestInitialize() { generator = new MockSystemGenerator(); clock = new SystemClock(); devices = new SystemDevices(clock); devices.Add(new Device(clock)); devices.Add(new Device(clock)); }
public void TestInitialize() { generator = new MockSystemGenerator(); request = Request.New(1, generator.NextProcessingTime, 1); clock = new SystemClock(); d1 = new Device(clock); d1.RequestHandledEvent += d1_RequestHandledEvent; }
public GraphGenerator() { this.InitializeComponent(); clock = App.Container.Resolve<ISystemClock>(); generator = App.Container.Resolve<ISystemGenerator>(); clock.TickEvent += clock_TickEvent; // LineG }
public void TestInitialize() { generator = new MockSystemGenerator(); clock = new SystemClock(); engine = new Engine(clock, generator); devices = new SystemDevices(clock); systemDiscipline = new Fifo {TotalSize = 10}; configuration = new SystemConfiguration(generator, devices, systemDiscipline); statistics = new SystemStatistics(); system = new QueuingSystem(configuration, clock, engine, statistics); InitializeDevices(); }
public GeneratorView(ISystemGenerator generator, ISystemClock clock) { this.generator = generator; clock.TickEvent += clock_TickEvent; }
public Engine(ISystemClock clock, ISystemGenerator generator) { this.generator = generator; clock.TickEvent += OnTickEvent; Running = true; }