refactored the boat message to not use boats
#story[778]
This commit is contained in:
@@ -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){
|
||||
|
||||
Reference in New Issue
Block a user