필터 지우기
필터 지우기

conditional entity generation in simevents

조회 수: 1 (최근 30일)
summyia qamar
summyia qamar 2018년 2월 28일
댓글: summyia qamar 2018년 3월 9일
Is it possible to generate entity from entity generator with a condition that when the queue attached with the entity generator has entity less than its capacity, a new entity is generated. I tried this thing given in figure below
In my figure, there are 4 entities being generated from entity2 block at the start of simulation and after that whenever an entity exit from queue, a new entity is generated from the other entity generation block.But I am looking for the alternate solution in which i dont have to generate 4 entities at the start of simulation.can anybody guide me if its possible or not.
  댓글 수: 2
Teresa Hubscher-Younger
Teresa Hubscher-Younger 2018년 3월 8일
Hi, I think I might be a bit confused by the question. Did you realize that SimEvents is blocking? When the server is full and the queue is full, the entity generator will be blocked and will stop generating automatically. That might solve your problem, because a new entity is only generated when there is capacity? I'm sure there is something I'm not understanding. Is server capacity or downstream capacity making this difficult? -Teresa
summyia qamar
summyia qamar 2018년 3월 9일
yes I got the solution. The blocking of Entity. Thanks

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Messages에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by