Local vs global policies and centralized vs decentralized control in virtual communities of agents