@ -21,6 +21,8 @@ import java.util.logging.Logger;
* Created by connortaylorbrown on 2 / 0 8 / 17.
* /
public class RaceServer {
private static RaceServer server ; //this is for updating xml files as I cannot find an elegant way to do this and since it is near the end of the sprint we shouldn't be doing large scale refactors
private MockRace race ;
private LatestMessages latestMessages ;
@ -47,6 +49,7 @@ public class RaceServer {
public RaceServer ( MockRace race , LatestMessages latestMessages ) {
server = this ;
this . race = race ;
this . latestMessages = latestMessages ;
}
@ -73,6 +76,12 @@ public class RaceServer {
}
public static void staticUpdateXML ( ) {
if ( server ! = null ) {
server . updateXMLFiles ( ) ;
}
}
/ * *
* Checks if the race / boat / regatta data sources have changed , and if they have , update their xml representations .
* /