フィルターのクリア

How to implement shared resources in Simevents?

1 回表示 (過去 30 日間)
Nat
Nat 2012 年 8 月 13 日
回答済み: Pieter Cuijpers 2014 年 11 月 19 日
Hi there, I would like to implement the concept of shared resources using simevents. For example, I have two processes going on at the same time, and both of them require resource Type 1. I am able to model this with one process, but how does the second process access the resource too? there is no way to branch a connection for entities, I do not want to split or replicate either. Thanks N

回答 (1 件)

Pieter Cuijpers
Pieter Cuijpers 2014 年 11 月 19 日
Suppose A and B produce events that share resource X, then the streams from A and B should be merged into X and after the output split. You can do the split based on an attribute which you set to 1 or 2 depending on whether the event came from A or B.
If you really do not want to use a merge and split, you need to program your own block which has multiple inputs and outputs I think. But I'm certainly not a SimEvents expert.

カテゴリ

Help Center および File ExchangeDiscrete-Event Simulation についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by