Exemplo n.º 1
0
 public Create(Environment env,Int64 Id, int Num, Distribution dist,List<Int64> EntityAmount = null,List<double> CumulativeNext=null)
     : base(env,Id,CumulativeNext)
 {
     this.Number_Of_Entities = Num;
     this.Actor_Type = Actor.AType.Create;
     this.Create_Distribution = dist;
     this.EntityAmount = EntityAmount;
     Env.System_Create.Add(this);
 }
Exemplo n.º 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);
 }