Пример #1
0
 public Queue(Environment env, Int64 Id,int Capacity=10000)
     : base(env, Id)
 {
     AQueue = new Queue<Entity>();
     this.Capacity = Capacity;
     this.Actor_Type = Actor.AType.Queue;
 }
Пример #2
0
 public Resource(Environment env, Int64 Id, int Capacity, Distribution dist, Queue Queue = null, List<double> CumulativeNext = null)
     : base(env, Id, CumulativeNext)
 {
     this.Capacity = Capacity;
     this.Activity_Distribution = dist;
     this.Statistics = new ResourceStatistic();
     this.Statistics.ResourceId = this.AID;
     this.Statistics.TotalServiceTime = 0;
     this.RQueue = Queue == null ? new Queue(env, -100, 0) : Queue;
     this.Actor_Type = Actor.AType.Resource;
     this.Env.resource_statistics.Add(this.Statistics);
 }