LatestMessages can hold MarkRounding messages. It also holds XMLMessage for each message type.
MockOutput now uses LatestMessages for xml messages. Moved xml message encoding into RaceVisionByteEncoder. Removed XMLMessageEncoder. Moved XML message sub types into an enumeration (XMLMessageType). XMLMessage can now be queried for its attributes (like timestamp, length, etc...). VisualiserInput now uses LatestMessages. VisualiserInput now (as it did previously) uses switch statements for checking packet type, instead of if statements. VisualiserRace now uses LatestMessages instead of VisualiserInput.
This commit is contained in:
@@ -48,10 +48,15 @@ public abstract class Race implements Runnable {
|
||||
protected LatestMessages latestMessages;
|
||||
|
||||
/**
|
||||
* The sequence number of the latest boatLocation message sent or received.
|
||||
* The sequence number of the latest BoatLocation message sent or received.
|
||||
*/
|
||||
protected int boatLocationSequenceNumber = 1;
|
||||
|
||||
/**
|
||||
* The sequence number of the latest RaceStatus message sent or received.
|
||||
*/
|
||||
protected int raceStatusSequenceNumber = 1;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user