private bool ReadTagInfoIsSuccess() { Console.WriteLine("write params cloud configuration"); Console.WriteLine($"type of text processor, write {TextProcessorAssosiation.paragraph} or {TextProcessorAssosiation.words}"); if (!TryGetValueOrWriteError(TextProcessorAssosiation.GetProcessor(Console.ReadLine()), out processor)) { return(false); } Console.WriteLine("Name of metric. Write \"count\""); if (!TryGetValueOrWriteError(WordsMetricAssosiation.GetMetric(Console.ReadLine()), out metric)) { return(false); } Console.WriteLine($"type of point getter, write {PointGetterAssosiation.circle} or {PointGetterAssosiation.spiral}"); if (!TryGetValueOrWriteError(PointGetterAssosiation.GetPointGetter(Console.ReadLine()), out pointGetter)) { return(false); } Console.WriteLine($"type of layoter, write {CloudLayoterAssosiation.density} or {CloudLayoterAssosiation.identity}"); if (!TryGetValueOrWriteError(CloudLayoterAssosiation.GetCloudLayoter(Console.ReadLine()), out layoter)) { return(false); } layoter.SetPointGetterIfNull(pointGetter); return(true); }
private void SetTagInfo(OptionsTagInfo info) { processor = TextProcessorAssosiation .GetProcessor(SkipSpaces(info.Processor)); metric = WordsMetricAssosiation .GetMetric(SkipSpaces(info.Metric)); layoter = CloudLayoterAssosiation .GetCloudLayoter(SkipSpaces(info.Layoter), SkipSpaces(info.PointGetter)); }