Developing a Functional Description of a Local Energy Operating System