mirror of
https://github.com/MistWeatherMedia/WeatherSTAR-3000-Java.git
synced 2026-11-28 14:38:08 -08:00
Add files via upload
This commit is contained in:
1 parent
7396be94c9
commit
1ecfc3c965
44 files changed
+8125
No files matched your search
@@ -0,0 +1,50 @@
|
||||
package WS3000.weatherstar3000;
|
||||
|
||||
public class DataRunner extends Thread {
|
||||
public void run() {
|
||||
//System.out.println("Data collection");
|
||||
Main.currentConditions = new CurrentConditions();
|
||||
Main.hourlyObservations = new HourlyObservations();
|
||||
Main.regionalConditions = new RegionalConditions();
|
||||
Main.localForecast = new LocalForecast();
|
||||
Main.almanac = new Almanac();
|
||||
Main.regionalForecast = new RegionalForecast();
|
||||
Main.extendedForecast = new ExtendedForecast();
|
||||
Main.outlook = new Outlook();
|
||||
Main.travelForecast = new TravelForecast();
|
||||
Main.bulletin = new Bulletin();
|
||||
Main.tides = new Tides();
|
||||
|
||||
Main.currentConditions.start();
|
||||
Main.hourlyObservations.start();
|
||||
Main.regionalConditions.start();
|
||||
Main.localForecast.start();
|
||||
Main.almanac.start();
|
||||
Main.regionalForecast.start();
|
||||
Main.extendedForecast.start();
|
||||
Main.outlook.start();
|
||||
Main.travelForecast.start();
|
||||
Main.bulletin.start();
|
||||
Main.tides.start();
|
||||
|
||||
try {
|
||||
Main.currentConditions.join();
|
||||
Main.hourlyObservations.join();
|
||||
Main.regionalConditions.join();
|
||||
Main.localForecast.join();
|
||||
Main.almanac.join();
|
||||
Main.regionalForecast.join();
|
||||
Main.extendedForecast.join();
|
||||
Main.outlook.join();
|
||||
Main.travelForecast.join();
|
||||
Main.bulletin.join();
|
||||
Main.tides.join();
|
||||
LoadingScreen.dataFinish = true;
|
||||
SlidesRunner.collectingData = false;
|
||||
//ystem.out.println("data finished, destroying thread");
|
||||
//wr.join();
|
||||
} catch (InterruptedException e1) {
|
||||
e1.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user