Beispiel #1
0
 internal Container(SimEnvironment env, double capacity, double level, WaitPolicy getPolicy, WaitPolicy putPolicy)
     : base(env)
 {
     _capacity = capacity;
     Level     = level;
     _getQueue = WaitQueue.New <GetEvent>(getPolicy, Env);
     _putQueue = WaitQueue.New <PutEvent>(putPolicy, Env);
 }
Beispiel #2
0
 internal FilterStore(SimEnvironment env, int capacity, WaitPolicy getPolicy, WaitPolicy putPolicy,
                      WaitPolicy itemPolicy) : base(env)
 {
     _capacity  = capacity;
     _getQueue  = WaitQueue.New <GetEvent>(getPolicy, Env);
     _putQueue  = WaitQueue.New <PutEvent>(putPolicy, Env);
     _itemQueue = WaitQueue.New <T>(itemPolicy, Env);
 }
Beispiel #3
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="env"></param>
 /// <param name="capacity"></param>
 /// <param name="requestPolicy"></param>
 internal Resource(SimEnvironment env, int capacity, WaitPolicy requestPolicy) : base(env)
 {
     _capacity     = capacity;
     _requestQueue = WaitQueue.New <RequestEvent>(requestPolicy, Env);
 }