refactored the boat message to not use boats

#story[778]
This commit is contained in:
hba56
2017-05-01 17:35:30 +12:00
parent 9eefbbd7fa
commit 8bbea28cab
7 changed files with 306 additions and 281 deletions
@@ -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);
connectionSocket = new Socket(InetAddress.getLocalHost(), 4942);
// this.connectionSocket = new Socket("livedata.americascup.com",4941);
this.course = course;
this.boatLocation = new HashMap<>();
@@ -128,14 +128,14 @@ public class VisualiserInput implements Runnable
System.out.println("HeartBeat Message! " + heartbeatSeqNum);
break;
case RACESTATUS:
//System.out.println("Race Status Message");
System.out.println("Race Status Message");
break;
case DISPLAYTEXTMESSAGE:
// System.out.println("Display Text Message");
//no decoder for this.
break;
case XMLMESSAGE:
// System.out.println("XML Message!");
System.out.println("XML Message!");
XMLMessage xml = (XMLMessage) data;
try {
if (xml.getXmlMsgSubType() == xml.XMLTypeRegatta){