Esempio n. 1
0
        /// <summary>
        /// Calculate method for the component with test of preconditions
        /// </summary>
        /// <param name=r>Rates Domain class contains the accessors to values</param>
        /// <param name=e>Exogenous Domain class contains the accessors to values</param>
        /// <param name=s>States Domain class contains the accessors to values</param>
        /// <param name=ae>AgroManagement objects of impact parameters</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
            (IStrategySiriusQualityIrradiance st, Rates r, Exogenous e, States s, ActEvents ae, bool saveLog, string callID)
        {
            _resultPreConditions  = String.Empty;
            _resultPostConditions = String.Empty;
            _resultPreConditions  = st.TestPreConditions(r, e, s, callID);
            st.Estimate
                (r, e, s, ae);
            _resultPostConditions = st.TestPostConditions(r, e, s, callID);

            if (_resultPreConditions != String.Empty || _resultPostConditions != String.Empty)
            {
                p.TestsOut(_resultPreConditions + _resultPostConditions, saveLog, callID);
            }
        }
Esempio n. 2
0
 /// <summary>
 /// Calculate method for the component
 /// </summary>
 /// <param name=r>Rates Domain class contains the accessors to values</param>
 /// <param name=e>Exogenous Domain class contains the accessors to values</param>
 /// <param name=s>States Domain class contains the accessors to values</param>
 /// <param name=ae>AgroManagement objects of impact parameters</param>
 public void Estimate
     (IStrategySiriusQualityIrradiance st, Rates r, Exogenous e, States s, ActEvents ae)
 {
     st.Estimate
         (r, e, s, ae);
 }