A tutorial on iFogSim. It contains simulation source codes of the example scenarios and placement policies discussed in "Modelling and Simulation of Fog and Edge Computing Environments using iFogSim Toolkit"
Access from https://github.com/Cloudslab/iFogSim