Created
May 15, 2012 13:40
-
-
Save bsommardahl/2701863 to your computer and use it in GitHub Desktop.
EAFPowerCalculator
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class EAFPowerCalculator : IEAFPowerCalculator | |
{ | |
#region IEAFPowerCalculator Members | |
public Megawatts Calculate(Megawatts eafPowerRate, Minutes extraDelay, Minutes secondCharge, Minutes powerOn) | |
{ | |
var delay = extraDelay + secondCharge + powerOn; | |
double delayRate = (60 - Convert.ToDouble(delay.Value))/60; | |
double power = eafPowerRate.Value*delayRate; | |
return new Megawatts(power); | |
} | |
#endregion | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment