Simulation of a multihead embroidery plant