Interfacing Multi-agent systems in real-time control of active distribution networks