A context-aware model for the management of agent platforms in dynamic networks