Exemplo n.º 1
0
        /// <summary>
        /// Calculate method for the component with test of preconditions
        /// </summary>
        /// <param name=t>ThermalTimeState 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
            (IStrategySiriusQualityThermalTime st, ThermalTimeState t, bool saveLog, string callID)
        {
            _resultPreConditions  = String.Empty;
            _resultPostConditions = String.Empty;
            _resultPreConditions  = st.TestPreConditions(t, callID);
            st.Estimate
                (t);
            _resultPostConditions = st.TestPostConditions(t, callID);

            if (_resultPreConditions != String.Empty || _resultPostConditions != String.Empty)
            {
                p.TestsOut(_resultPreConditions + _resultPostConditions, saveLog, callID);
            }
        }
Exemplo n.º 2
0
 /// <summary>
 /// Calculate method for the component
 /// </summary>
 /// <param name=t>ThermalTimeState Domain class contains the accessors to values</param>
 public void Estimate
     (IStrategySiriusQualityThermalTime st, ThermalTimeState t)
 {
     st.Estimate
         (t);
 }