public Request(Environment environment, Action<Event> callback, Action<Event> disposeCallback) : base(environment) { CallbackList.Add(callback); this.disposeCallback = disposeCallback; Time = environment.Now; Process = environment.ActiveProcess; }
public ContainerGet(Environment environment, Action<Event> callback, double amount) : base(environment) { if (amount <= 0) throw new ArgumentException("Amount must be > 0.", "amount"); Amount = amount; CallbackList.Add(callback); Time = environment.Now; Process = environment.ActiveProcess; }
public StorePut(Environment environment, Action<Event> callback, object value) : base(environment) { if (value == null) throw new ArgumentNullException("value", "Value to put in a Store cannot be null."); CallbackList.Add(callback); Value = value; Time = environment.Now; Process = environment.ActiveProcess; }
public Initialize(Environment environment, Process process) : base(environment) { CallbackList.Add(process.Resume); IsOk = true; IsTriggered = true; environment.Schedule(this); }
public StoreGet(Environment environment, Action<Event> callback) : base(environment) { CallbackList.Add(callback); Time = environment.Now; Process = environment.ActiveProcess; }
public Preempted(Process by, DateTime usageSince) { By = by; UsageSince = usageSince; }