コード例 #1
0
ファイル: ParamsDocsFromFile.cs プロジェクト: lie112/ApsimX
        protected override IEnumerable <ITag> DocumentModel(IModel model)
        {
            if (model is Simulations && model.Children.Any())
            {
                model = model.Children[0];
            }
            if (!string.IsNullOrEmpty(path))
            {
                IVariable variable = model.FindByPath(path);
                if (variable != null && variable.Value is IModel value)
                {
                    model = value;
                }
            }

            ParamsInputsOutputs doco = new ParamsInputsOutputs(model);

            return(doco.Document());
        }
コード例 #2
0
        /// <summary>
        /// Document the model.
        /// </summary>
        /// <param name="model">Model to be documented.</param>
        protected override IEnumerable <ITag> DocumentModel(IModel model)
        {
            ParamsInputsOutputs doco = new ParamsInputsOutputs(model);

            return(doco.Document());
        }