Add a setCharge() method to IElectricGrid