A reference model for distributed decision making adopting a multi agent approach