예제 #1
0
파일: Form1.cs 프로젝트: idozahavy/PcGeeker
        public Form1()
        {
            InitializeComponent();

            pc = new PC(true);
            pc.Update();
            pcAnalyzer = new PCAnalyzer(pc, new PCAnalyzerSettings(new CPUAnalyzerSettings(null,
                                                                                           new FieldThreshold(CPU.CPUField.CoresPower, 25),
                                                                                           new FieldThreshold(CPU.CPUField.PackagePower, 40),
                                                                                           new FieldThreshold(CPU.CPUField.PackageTemperature, 60),
                                                                                           new FieldThreshold(CPU.CPUField.TotalLoad, 70)
                                                                                           ), null, null, null, null));
            utils = new ProcessUtilizationCollection();
            utils.UpdateProcesses();
            Timer1.Start();
        }
예제 #2
0
        public void PerformAnalysis(IAnalysisOptions options)
        {
            IsSaved = false;
            switch (options.Algorithm)
            {
            case AnalysisAlgorithm.PCA:
                var pcaResult = new PCAnalyzer((PCAOptions)options).Analyze();
                analysisResults[AnalysisAlgorithm.PCA] = pcaResult;
                PCAPerformed(this, new AnalysisPerformedEventArgs(pcaResult));
                break;

            case AnalysisAlgorithm.KPCA:
                var kpcaResult = new KPCAnalyzer((KPCAOptions)options).Analyze();
                analysisResults[AnalysisAlgorithm.KPCA] = kpcaResult;
                KPCAPerformed(this, new AnalysisPerformedEventArgs(kpcaResult));
                break;
            }
        }
예제 #3
0
 public void PerformAnalysis(IAnalysisOptions options)
 {
     IsSaved = false;
     switch (options.Algorithm)
     {
         case AnalysisAlgorithm.PCA:
             var pcaResult = new PCAnalyzer((PCAOptions) options).Analyze();
             analysisResults[AnalysisAlgorithm.PCA] = pcaResult;
             PCAPerformed(this, new AnalysisPerformedEventArgs(pcaResult));
             break;
         case AnalysisAlgorithm.KPCA:
             var kpcaResult = new KPCAnalyzer((KPCAOptions) options).Analyze();
             analysisResults[AnalysisAlgorithm.KPCA] = kpcaResult;
             KPCAPerformed(this, new AnalysisPerformedEventArgs(kpcaResult));
             break;
     }
 }
예제 #4
0
 protected void createGameSubmission(CustomGameEntry game)
 {
     analyzer = new PCAnalyzer(game, gameSubmissionDone);
     disableInterface(analyzer);
     analyzer.analyze();
 }