Projekt

Obecné

Profil

« Předchozí | Další » 

Revize d358b79e

Přidáno uživatelem Roman Kalivoda před téměř 4 roky(ů)

Re #8832 Label creation

Zobrazit rozdíly:

Server/ServerApp/Program.cs
41 41
				return;
42 42
			}
43 43

  
44
			/* 
44
            
45 45
			//create a thread for commands accepting:
46
			Thread inputThread = new Thread(CommandsAcceptor.AcceptCommand);
47
			inputThread.Start();
46
			//Thread inputThread = new Thread(CommandsAcceptor.AcceptCommand);
47
			//inputThread.Start();
48 48

  
49 49

  
50 50

  
......
52 52
			//p.Parse();
53 53

  
54 54
			#region UNCOMMENT
55
			////test scenario -data download:
56
			//DataDownloader dd = new DataDownloader(config.DataRootDir, config.DataWebsite, config.DownloadedFilesNaming);
57
			//dd.OverwriteExisting = false;
58
			//List<string> savedFiles = new List<string>();
59
			//savedFiles.AddRange(dd.DownloadData(DataType.JIS, DataFormat.CSV, new DataDownload.Date(1, 2019), new DataDownload.Date(12, 2020)));
60
			//savedFiles.AddRange(dd.DownloadData(DataType.STROJE, DataFormat.CSV, new DataDownload.Date(1, 2017), new DataDownload.Date(12, 2020)));
61
			//savedFiles.AddRange(dd.DownloadData(DataType.POCASI, DataFormat.CSV, new DataDownload.Date(1, 2017), new DataDownload.Date(12, 2020)));
55
			//test scenario -data download:
56
			DataDownloader dd = new DataDownloader(config.DataRootDir, config.DataWebsite, config.DownloadedFilesNaming);
57
			dd.OverwriteExisting = false;
58
			List<string> savedFiles = new List<string>();
59
			savedFiles.AddRange(dd.DownloadData(DataType.JIS, DataFormat.CSV, new DataDownload.Date(1, 2019), new DataDownload.Date(12, 2020)));
60
			savedFiles.AddRange(dd.DownloadData(DataType.STROJE, DataFormat.CSV, new DataDownload.Date(1, 2017), new DataDownload.Date(12, 2020)));
61
			savedFiles.AddRange(dd.DownloadData(DataType.POCASI, DataFormat.CSV, new DataDownload.Date(1, 2017), new DataDownload.Date(12, 2020)));
62 62

  
63 63

  
64 64

  
......
86 86
			//{
87 87
			//	Console.WriteLine(s);
88 88
			//}
89
			//// test - connection:
90
			////ConnectionListener cl = new ConnectionListener(int.Parse(config.Port));
91
			////cl.StartListening();
89
			// test - connection:
90
			//ConnectionListener cl = new ConnectionListener(int.Parse(config.Port));
91
			//cl.StartListening();
92 92
			#endregion
93 93

  
94 94
			#region XML_TEST
......
107 107
			#endregion
108 108

  
109 109

  
110
			Console.WriteLine("Saved files: ");
111
			foreach (string s in savedFiles)
112
			{
113
				Console.WriteLine(s);
114
			}
110
			//Console.WriteLine("Saved files: ");
111
			//foreach (string s in savedFiles)
112
			//{
113
			//	Console.WriteLine(s);
114
			//}
115 115

  
116
			Console.WriteLine("subdirectories: ");
117
			foreach (KeyValuePair<DataType, string> kvp in dd.DataSubDirectories)
118
			{
119
				Console.WriteLine("Key = {0}, Value = {1}", kvp.Key, kvp.Value);
120
			}
116
			//Console.WriteLine("subdirectories: ");
117
			//foreach (KeyValuePair<DataType, string> kvp in dd.DataSubDirectories)
118
			//{
119
			//	Console.WriteLine("Key = {0}, Value = {1}", kvp.Key, kvp.Value);
120
			//}
121 121

  
122 122
			/*
123 123
			
......
129 129
			}
130 130
			*/
131 131

  
132
			// PARSE DATA
132
            // PARSE DATA
133 133

  
134 134

  
135
			/*
136
			JsonParser jsonP = new JsonParser(null);
135

  
136
            JsonParser jsonP = new JsonParser(null);
137 137
			jsonP.ParsePrediction();
138 138

  
139 139
			// TODO nastavit čas
......
141 141
            IPredictionController predictionController = new PredictionController(p);
142 142
            predictionController.Train();
143 143
            //var results = predictionController.Predict()
144
			*/
144
			
145 145

  
146 146
			//parse(new DateTime(2019, 10, 5), , interval = 1, wholeDay = true)
147 147

  

Také k dispozici: Unified diff