public Queue(IModeling modeling) { this.events = new Queue<Memory>(); this.memories = new List<Memory>(); this.CurrentModeling = modeling; this.Reset(); }
public Queue(IModeling modeling) { this.events = new Queue <Memory>(); this.memories = new List <Memory>(); this.CurrentModeling = modeling; this.Reset(); }
public Device(IModeling modeling) { this.memories = new List <Memory>(); this.currentMemory = new Memory(); this.Modeling = modeling; this.Queue = new Queue(modeling); this.Reset(); this.OnRelease += Device_OnRelease; }
public Device(IModeling modeling) { this.memories = new List<Memory>(); this.currentMemory = new Memory(); this.Modeling = modeling; this.Queue = new Queue(modeling); this.Reset(); this.OnRelease += Device_OnRelease; }
static void modeling_OnCause_Arriving(IModeling modeling, IEvent @event) { modeling.Schedule(new Event { StartsSince = 7, Transaction = new Transaction { Status = SampleTransactionStatus.Arriving } }); @event.Transaction.Status = SampleTransactionStatus.DeviceAdvanced; mainDevice.Reserve(@event.Transaction); Console.WriteLine("[{0,5}]: Заявка встала в очередь на обработку.", modeling.Time); }
static void modeling_OnCause_DeviceAdvanced(IModeling modeling, IEvent @event) { Console.WriteLine("[{0,5}]: Заявка обработана устройством.", modeling.Time); mainDevice.Release(); }
public MultichannelDevice(IModeling modeling) { this.devices = new List <Device>(); this.Modeling = modeling; }
public MultichannelDevice(IModeling modeling) { this.devices = new List<Device>(); this.Modeling = modeling; }