Autonomous Agents Architectures and Algorithms in Flexible Manufacturing Systems