On the connection between multiagent systems and software architecture