Final notes
In this part of the Supply Chain tutorial we have created a simple simulation model of a supply chain.
After a brief analysis of the subject area we discovered the Truck
and the TransportationRequest
entities.
We then added a set of important helper classes that constitute the model:
the Model
to store the trucks and requests;
the Dispatcher
to assign requests to trucks;
the TransportationTask
to control a Truck during cargo delivery;
the Scenario
to set up the initial simulation parameters;
the Statistics
to find out the final simulation results;
and the RequestGenerator
acting as the source of transportation requests.
This framework of basic classes with finely defined responsibilities will help us keep the model logic clear as we move on to implement the more complex model behavior.
We have also run a scenario analysis and discovered the optimum number of trucks for our supply chain.
Source code
You can find the complete source code of this part of the Supply Chain tutorial in GitHub.