Using Object Oriented Data Structures for Dynamic Communication and Control in Electrical Networks