コード例 #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 static AnalysisWalker Generate(Document sourceFile, SemanticModel semanticModel, AnalysisResult result, AnalysisType type)
		{
			switch (type)
			{
				case AnalysisType.ConcurrencyUsage:
					return new  ConcurrencyUsageWalker(sourceFile, semanticModel, (ConcurrencyUsageResult)result);
				case AnalysisType.AsyncAwaitAntiPatterns:
					return new AsyncAwaitAntiPatternsWalker(sourceFile, semanticModel, (AsyncAwaitAntiPatternsResult)result);
				default:
					throw new NotImplementedException(type.ToString());
			}
		}
コード例 #3
0
        public BaseAnalysis this[AnalysisType analysis]
        {
            get
            {
                if (m_list.Count == 0)
                {
                    BuildList();
                }

                for (int i = 0; i < m_list.Count; i++)
                {
                    if (m_list[i].AnalysisType == analysis)
                    {
                        return(m_list[i]);
                    }
                }
                throw new NotSupportedException("the analysis type " + analysis.ToString() + " is not supported ");
            }
        }
コード例 #4
0
        public override IEnumerable <Argument> GetArguments()
        {
            List <Argument> args = new List <Argument>();

            args.Add(ArgumentHelper.ArgumentFactory(nameof(Responses), Responses));
            args.Add(ArgumentHelper.ArgumentFactory(nameof(ResponseTransformation), ResponseTransformation));
            args.Add(ArgumentHelper.ArgumentFactory(nameof(CategoricalPredictor), CategoricalPredictor));
            args.Add(ArgumentHelper.ArgumentFactory(nameof(ContinuousPredictors), ContinuousPredictors));
            args.Add(ArgumentHelper.ArgumentFactory(nameof(CaseID), CaseID));
            args.Add(ArgumentHelper.ArgumentFactory(nameof(AnalysisType), AnalysisType.ToString()));
            args.Add(ArgumentHelper.ArgumentFactory(nameof(NoOfClusters), NoOfClusters));
            args.Add(ArgumentHelper.ArgumentFactory(nameof(DistanceMethod), DistanceMethod));
            args.Add(ArgumentHelper.ArgumentFactory(nameof(AgglomerationMethod), AgglomerationMethod));
            args.Add(ArgumentHelper.ArgumentFactory(nameof(PlotLabel), PlotLabel));
            args.Add(ArgumentHelper.ArgumentFactory(nameof(NoOfComponents), NoOfComponents));
            args.Add(ArgumentHelper.ArgumentFactory(nameof(ResponseCentring), ResponseCentring));
            args.Add(ArgumentHelper.ArgumentFactory(nameof(ResponseScale), ResponseScale));

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

            arguments.Append(" " + argFormatter.GetFormattedArgument(AnalysisType.ToString()));       //4

            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());
        }
コード例 #6
0
        public override string GetCommandLineArguments()
        {
            ArgumentFormatter argFormatter = new ArgumentFormatter();
            StringBuilder     arguments    = new StringBuilder();

            //first thing to do is to assemble the model (use the GetModel method)
            arguments.Append(" " + argFormatter.GetFormattedArgument(Responses));                                 //4
            arguments.Append(" " + argFormatter.GetFormattedArgument(ResponseTransformation, false));             //5
            arguments.Append(" " + argFormatter.GetFormattedArgument(CategoricalPredictor, true));                //6
            arguments.Append(" " + argFormatter.GetFormattedArgument(ContinuousPredictors));                      //7
            arguments.Append(" " + argFormatter.GetFormattedArgument(CaseID, true));                              //8
            arguments.Append(" " + argFormatter.GetFormattedArgument(AnalysisType.ToString(), false));            //9
            arguments.Append(" " + argFormatter.GetFormattedArgument(NoOfClusters));                              //10
            arguments.Append(" " + argFormatter.GetFormattedArgument(DistanceMethod, false));                     //11
            arguments.Append(" " + argFormatter.GetFormattedArgument(AgglomerationMethod, false));                //12
            arguments.Append(" " + argFormatter.GetFormattedArgument(PlotLabel, false));                          //13
            arguments.Append(" " + argFormatter.GetFormattedArgument(NoOfComponents));                            //14
            arguments.Append(" " + argFormatter.GetFormattedArgument(ResponseCentring.Replace(' ', '_'), false)); //15
            arguments.Append(" " + argFormatter.GetFormattedArgument(ResponseScale.Replace(' ', '_'), false));    //16

            return(arguments.ToString().Trim());
        }
コード例 #7
0
 /// <summary>
 /// Adds an analysis result of the specified type
 /// </summary>
 /// <remarks>The method does not check whether an analysis result with the same id already exists i.e. duplicate results are allowed</remarks>
 public static void AddAnalyzerResult(this ProjectInfo projectInfo, AnalysisType analyzerType, string location)
 {
     AddAnalyzerResult(projectInfo, analyzerType.ToString(), location);
 }
コード例 #8
0
 /// <summary>
 /// Attempts to find and return the analyzer result with the specified id
 /// </summary>
 /// <returns>True if the analyzer result was found, otherwise false</returns>
 public static bool TryGetAnalyzerResult(this ProjectInfo projectInfo, AnalysisType analyzerType, out AnalysisResult result)
 {
     return(TryGetAnalyzerResult(projectInfo, analyzerType.ToString(), out result));
 }
コード例 #9
0
		public static AnalysisResult Generate(AnalysisType type)
		{
			switch (type)
			{
				case AnalysisType.ConcurrencyUsage:
					return new ConcurrencyUsageResult();
				case AnalysisType.AsyncAwaitAntiPatterns:
					return new AsyncAwaitAntiPatternsResult();
				default:
					throw new NotImplementedException(type.ToString());
			}
		}