public bool IsEnoughOfPower(Generator generator, Electronics device, LinkedList <Electronics> listOfDevicesInNetWork) { bool isEnoughOfPower = false; if (generator.GetAvailablePower() - device.Power >= 0) { isEnoughOfPower = true; } return(isEnoughOfPower); }
public void RenewAvailablePower(Electronics device) { AvailablePower += device.Power; }
public void UpdateAvailablePower(Electronics device) { AvailablePower -= device.Power; }