需求
“Create a Petri net for club entry where people buy from a limited ticket pool and use one validation gate to enter.”
接著試試Add a separate VIP ticket pool.Change the gate capacity to two.
這張圖裡有什麼
看懂背後的決策。
01
Modeled ticket pool as a place with tokens representing available tickets to enforce capacity.
02
Used a gate token to enforce mutual exclusion at validation, ensuring only one customer enters at a time.
Use this pattern for any system with limited resources and sequential validation steps, such as event entry, restaurant seating, or service counters.