An application of discrete-event simulation to on-line control and scheduling in flexible manufacturing | Synapse