コード例 #1
0
ファイル: AlgorithmsContainer.cs プロジェクト: Ogonik/LWS
 public AlgorithmsContainer(BaseSentenceAlgorithm baseAlgorithm, AlgorithmsStageType algorithmsStageType)
 {
     _baseAlgorithm = baseAlgorithm;
     AlgorithmsStageType = algorithmsStageType;
     Algorithms = new List<BaseSentenceAlgorithm>();
 }
コード例 #2
0
ファイル: AnalysisProgress.xaml.cs プロジェクト: Ogonik/LWS
 private void _saveAlgorithmResults(AlgorithmsStageType containerType, BaseSentenceAlgorithm algorithm, BaseSentenceAlgorithmData resultData )
 {
     _algorithmResults.Add(new AlgorithmResult
     {
         ContainerType = containerType,
         Algorithm = algorithm,
         Results = resultData.HelperDataElements,
         Sentence = resultData.Sentence,
         Log = _currentAlgLogMessages,
         FinalResults =
             resultData.FinalResults?.Select(
                 pair =>
                     new DisplayFinalResults
                     {
                         WritableHelperData = pair.Value.HelperData,
                         CheckResult = pair.Value.CheckResult,
                         WritableType = pair.Key
                     }).ToList()
     });
 }