SimEvents: Which entity type should event actions be assigned to? Invoker type or target type?
Show older comments
Event actions of MATLAB discrete-event system should be named according to this rule: entityType + eventAction. The rule is rather easy to understand for events that target entities. But I got confused for events that target storages, especially testEntry and iterate.
For example, assume that we have 2 storages. Storage1 accepts entities of type Task, while Storage2 accepts entities of type Failure. We want the DES system to open or close the gate of Storage1 via testEntry, when a Failure entity arrives in Storage2. In this situation, should FailureEntry invoke TaskTestEntry (type of the storage that is affected) or FailureTestEntry (type of the storage that invokes the event action)?
Accepted Answer
More Answers (0)
Categories
Find more on SimEvents in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!