Generic modelling and simulation of operations and stock levels in supply chains