A Survey of the Use of Software Agents in Digital Factories