Multi-agent and software architecture: a comparative case study