Implemented MessageRouter.

Added ConnectionToServerCommandFactory, and JoinSuccessfulCommand, RaceParticipantsFullCOmmand, ServerFullCommand.
Added IncomingHeartBeatCommandFactory, and IncomingHeartBeatCommand.
Added ConnectionToServerState, which represents the client's connection state to server.
Renamed VisualiserInput to VisualiserRaceController.
Added ConnectionToServer, which tracks the client's connection to server.
Added ConnectionToServerController, which accepts JoinAcceptance messages, turns them into commands, and passes them to ConnectionToServer.
Added IncomingHeartBeatService, which tracks the heart beat status of the connection.
Added IncomingHeartBeatController, which accepts HeartBeat messages, turns them into commands, and passes them to IncomingHeartBeatService.
Refactored ServerConnection a bit.
#story[1095]
This commit is contained in:
fjc40
2017-08-12 19:58:47 +12:00
parent 6e5fb62880
commit 89b0aa8b77
23 changed files with 1640 additions and 289 deletions
@@ -50,7 +50,13 @@ public class MessageDeserialiser implements RunnableWithFramePeriod {
this.messagesRead = messagesRead;
}
/**
* Returns the queue of messages read from the socket.
* @return Queue of messages read from socket.
*/
public BlockingQueue<AC35Data> getMessagesRead() {
return messagesRead;
}
/**