コード例 #1
0
        public override IEnumerable <Argument> GetArguments()
        {
            List <Argument> args = new List <Argument>();

            args.Add(ArgumentHelper.ArgumentFactory(nameof(AnalysisType), AnalysisType.ToString()));
            args.Add(ArgumentHelper.ArgumentFactory(nameof(Response), Response));
            args.Add(ArgumentHelper.ArgumentFactory(nameof(ResponseTransformation), ResponseTransformation));
            args.Add(ArgumentHelper.ArgumentFactory(nameof(Dose), Dose));
            args.Add(ArgumentHelper.ArgumentFactory(nameof(DoseScale), DoseScale.ToString()));
            args.Add(ArgumentHelper.ArgumentFactory(nameof(Offset), Offset));
            args.Add(ArgumentHelper.ArgumentFactory(nameof(QCResponse), QCResponse));
            args.Add(ArgumentHelper.ArgumentFactory(nameof(QCDose), QCDose));
            args.Add(ArgumentHelper.ArgumentFactory(nameof(SamplesResponse), SamplesResponse));
            args.Add(ArgumentHelper.ArgumentFactory(nameof(MinCoeff), MinCoeff));
            args.Add(ArgumentHelper.ArgumentFactory(nameof(MaxCoeff), MaxCoeff));
            args.Add(ArgumentHelper.ArgumentFactory(nameof(SlopeCoeff), SlopeCoeff));
            args.Add(ArgumentHelper.ArgumentFactory(nameof(EDICCoeff), EDICCoeff));
            args.Add(ArgumentHelper.ArgumentFactory(nameof(MinStartValue), MinStartValue));
            args.Add(ArgumentHelper.ArgumentFactory(nameof(MaxStartValue), MaxStartValue));
            args.Add(ArgumentHelper.ArgumentFactory(nameof(SlopeStartValue), SlopeStartValue));
            args.Add(ArgumentHelper.ArgumentFactory(nameof(EDICStartValue), EDICStartValue));
            args.Add(ArgumentHelper.ArgumentFactory(nameof(Equation), Equation));
            args.Add(ArgumentHelper.ArgumentFactory(nameof(StartValues), StartValues));
            args.Add(ArgumentHelper.ArgumentFactory(nameof(EquationYAxis), EquationYAxis));
            args.Add(ArgumentHelper.ArgumentFactory(nameof(EquationXAxis), EquationXAxis));

            return(args);
        }
コード例 #2
0
        public override string GetCommandLineArguments()
        {
            ArgumentFormatter argFormatter = new ArgumentFormatter();
            StringBuilder     arguments    = new StringBuilder();

            if (AnalysisType == AnalysisOption.FourParameter) //4
            {
                arguments.Append(" " + "FourParameter");
            }
            else
            {
                arguments.Append(" " + "Equation");
            }

            arguments.Append(" " + argFormatter.GetFormattedArgument(Response, true));                //5

            arguments.Append(" " + argFormatter.GetFormattedArgument(ResponseTransformation, false)); //6
            arguments.Append(" " + argFormatter.GetFormattedArgument(Dose, true));                    //7

            //get the checkbox setting
            arguments.Append(" " + argFormatter.GetFormattedArgument(Offset.ToString(), false));          //8

            arguments.Append(" " + argFormatter.GetFormattedArgument(DoseScale.ToString(), false));       //9

            arguments.Append(" " + argFormatter.GetFormattedArgument(QCResponse, true));                  //10
            arguments.Append(" " + argFormatter.GetFormattedArgument(QCDose, true));                      //11
            arguments.Append(" " + argFormatter.GetFormattedArgument(SamplesResponse, true));             //12

            arguments.Append(" " + argFormatter.GetFormattedArgument(MinCoeff.ToString(), false));        //13
            arguments.Append(" " + argFormatter.GetFormattedArgument(MaxCoeff.ToString(), false));        //14
            arguments.Append(" " + argFormatter.GetFormattedArgument(SlopeCoeff.ToString(), false));      //15
            arguments.Append(" " + argFormatter.GetFormattedArgument(EDICCoeff.ToString(), false));       //16

            arguments.Append(" " + argFormatter.GetFormattedArgument(MinStartValue.ToString(), false));   //17
            arguments.Append(" " + argFormatter.GetFormattedArgument(MaxStartValue.ToString(), false));   //18
            arguments.Append(" " + argFormatter.GetFormattedArgument(SlopeStartValue.ToString(), false)); //19
            arguments.Append(" " + argFormatter.GetFormattedArgument(EDICStartValue.ToString(), false));  //20

            arguments.Append(" " + argFormatter.GetFormattedArgument(Equation, false));                   //21
            arguments.Append(" " + argFormatter.GetFormattedArgument(StartValues, false));                //22

            arguments.Append(" " + argFormatter.GetFormattedArgument(EquationYAxis, true));               //23
            arguments.Append(" " + argFormatter.GetFormattedArgument(EquationXAxis, true));               //24

            return(arguments.ToString().Trim());
        }