Discord
@hash/pizza-process
Simulation
7
0
Public

Process Modeling Library - Pizza Shop

This simulation demonstrates how you can use the process modeling library to simulate the operation of a pizza shop.

Process models allow you to represent systems or organizations which perform sequences of tasks. By chaining together delays, resource usages, and other blocks representing real-life tasks and events, you can simulate processes such as assembly lines, company workflows, and supply chains.

HASH provides the Process Modeling Library to make it easy for you to build your models. The library is easily extensible with custom behaviors that you can write to accurately model your system.


This model demonstrates how you can use the Process Library to create a simulation of a pizza shop. Each step, from an order arriving to a pizza being sent out to delivery, is represented by a different process "block". Certain steps take defined amounts of time to complete, and certain steps require a resource to be available before they can be completed.

In this model, counter space (spots) and oven space (oven_spots) are both represented as limiting factors in the process. This means that the output of the shop will be limited based on the quantity of those resources. By adjusting those values in init.json you can affect the number of pizzas completed, and the amount of downtime as orders are on hold.

The flow chart below represents all parts of the Pizza process model: Flow chart representing the process model

The HASH docs have detailed documentation on building Process Models in HASH