/// <summary>初始模型错误信息 /// </summary> /// <param name="strErr">错误信息</param> /// <param name="bRunend">是否停止</param> /// <returns></returns> public virtual bool InitError(string strErr, bool bRunend = false) { _Errors.Add(strErr); if (bRunend) { _ModeState = emModeState.Runerror; } return(true); }
/// <summary>模型参数校检 /// </summary> /// <returns></returns> public virtual bool CheckParams() { if (_Errors.Count > 0) { return(false); } _ModeState = emModeState.Preparing; return(true); }
/// <summary>运行模型 /// </summary> /// <param name="strParams_run">运行参数</param> /// <returns></returns> public virtual bool RunModel(string strParams_run = "") { if (this._ModeState != emModeState.Preparing) { return(false); } _Params_run = strParams_run; _ModeState = emModeState.Running; return(true); }