RMAS architecture for industrial agents in IEC 61499