/// <summary> /// Calculate method for the component with test of preconditions /// </summary> /// <param name=e>EnergyBalanceState Domain class contains the accessors to values</param> /// <param name="saveLog">Save log via a writer or show on screen</param> /// <param name="callID">Context description for violations</param> public void Estimate (IStrategySiriusQualityEnergyBalance st, EnergyBalanceState e, bool saveLog, string callID) { _resultPreConditions = String.Empty; _resultPostConditions = String.Empty; _resultPreConditions = st.TestPreConditions(e, callID); st.Estimate (e); _resultPostConditions = st.TestPostConditions(e, callID); if (_resultPreConditions != String.Empty || _resultPostConditions != String.Empty) { p.TestsOut(_resultPreConditions + _resultPostConditions, saveLog, callID); } }
/// <summary> /// Calculate method for the component /// </summary> /// <param name=e>EnergyBalanceState Domain class contains the accessors to values</param> public void Estimate (IStrategySiriusQualityEnergyBalance st, EnergyBalanceState e) { st.Estimate (e); }