Minor tweaks to get streaming from mock working

- Key point there being boats, raceand regatta xml files are being read from mock

#story[778]
This commit is contained in:
Erika Savell
2017-05-01 18:35:39 +12:00
parent 0ef96258ad
commit 060db182a8
4 changed files with 7 additions and 6 deletions
@@ -161,7 +161,8 @@ public class StreamedCourseXMLReader extends XMLReader {
* @return value of "compoundMarkID" attribute
*/
private int getCompoundMarkID(Element element) {
return Integer.parseInt(element.getAttribute("CompoundMarkID"));
//return Integer.parseInt(element.getAttribute("CompoundMarkID"));
return 3;
}
/**
@@ -39,8 +39,8 @@ public class VisualiserInput implements Runnable
public VisualiserInput(StreamedCourse course) throws IOException{
//connectionSocket = new Socket(InetAddress.getLocalHost(), 4942);
this.connectionSocket = new Socket("livedata.americascup.com",4941);
this.connectionSocket = new Socket(InetAddress.getLocalHost(), 4945);
// this.connectionSocket = new Socket("livedata.americascup.com",4941);
this.course = course;
this.boatLocation = new HashMap<>();