public override void Update() { this.percentage = IntakeAirDemandSupply.GetDemand() / IntakeAirDemandSupply.GetSupply(); if (Double.IsNaN(this.percentage) || Double.IsInfinity(this.percentage)) { this.percentage = 0.0; } }
public override void Update() { this.supply = IntakeAirDemandSupply.GetSupply(); }