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); }
public static ICloudLayoter GetCloudLayoter(string nameLayoter, string namePointGetter) { var pointGetter = PointGetterAssosiation.GetPointGetter(namePointGetter); if (pointGetter == null) { return(null); } if (!cloudLayoters.TryGetValue(nameLayoter, out var layoter)) { return(null); } layoter.SetPointGetterIfNull(pointGetter); return(layoter); }