Commit Graph

  • 8999cddf8b Pre merge commit Fan-Wu Yang 2017-08-13 22:16:16 +1200
  • dc9317fe2e remove system.out statments #story[1101] hba56 2017-08-13 19:33:46 +1200
  • 67bb7b81dc Merge remote-tracking branch 'origin/story68' into story68 hba56 2017-08-13 19:10:31 +1200
  • 0d786f381b fix for boats finishing the race #story[1101] hba56 2017-08-13 19:10:16 +1200
  • 2acc36225e Fix for placement of invis gates and checks that boats pass through these gates -see wiki on rounding #story[1101] hba56 2017-08-13 18:11:53 +1200
  • 8b1561cdc7 Fixed nullpointer when boat passes finish line. Jessica Syder 2017-08-13 16:08:14 +1200
  • 820898d92c pushed work from school computer to do at home Fan-Wu Yang 2017-08-13 16:02:33 +1200
  • f90648e4ce Fixing a silly mistake where starboard side rounding checks for a port side rounding (Thank goodness for documenting manual tests) #story[1101] hba56 2017-08-12 23:40:28 +1200
  • 7c6f0931ba Transferring files from my laptop to desktop to work on, may be broken. Fan-Wu Yang 2017-08-12 23:18:54 +1200
  • a05ffd023d Fixing a silly mistake where starboard side rounding checks for a port side rounding (Thank goodness for documenting manual tests) #story[1101] hba56 2017-08-12 22:55:25 +1200
  • f386a4b989 added checks for gates and moved second rounding check to be in line with the next mark to move towards #story[1101] hba56 2017-08-12 22:27:27 +1200
  • fe91264aec fix for the tests #story[1101] hba56 2017-08-12 21:10:31 +1200
  • 89b0aa8b77 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] fjc40 2017-08-12 19:58:47 +1200
  • a31eb078a6 Created a splash screen for application. zwu18 2017-08-12 16:27:12 +1200
  • 62e37489ee starboard rounding update #story[1101] hba56 2017-08-12 03:41:50 +1200
  • d70a711a3d Merge branch 'master' into story68 -updated port and starboard boat checks -added gps method to check if on correct side of a line -updated pos check method to make boats round marks with the new tech hba56 2017-08-12 03:26:28 +1200
  • 499a409d4f Merge branch 'master' into story68 -updated port and starboard boat checks -added gps method to check if on correct side of a line -updated pos check method to make boats round marks with the new tech hba56 2017-08-12 03:24:20 +1200
  • 848edfc6a4 Removed commented out code. Merged master in. zwu18 2017-08-12 03:20:21 +1200
  • c3ea62dfee Merge branch 'master' into CommandFactory zwu18 2017-08-12 03:18:24 +1200
  • 9c902dab46 Added javadoc to classes. zwu18 2017-08-12 02:11:23 +1200
  • 6e5fb62880 Added REQUEST_RECEIVED and DECLINED to ConnnectionStateEnum. #story[1095] fjc40 2017-08-12 01:05:45 +1200
  • 41b0a5d7f7 Merge branch 'story_61' of eng-git.canterbury.ac.nz:seng302-2017/team-7 into story_61 fjc40 2017-08-11 22:38:55 +1200
  • b625b6ab05 XMLReader.readXMLFileToString no longer throws a Transformer exception. fjc40 2017-08-11 22:38:39 +1200
  • e4b72fdfeb Update appearance on client arrow. zwu18 2017-08-11 20:38:54 +1200
  • 7474de9816 Created foundation classes and interfaces for collision architecture. - Added Collider interface - Added Collision class - Added ColliderRegistry class Connor Taylor-Brown 2017-08-11 14:05:36 +1200
  • 61d18f85c5 javadoc fixes. fjc40 2017-08-10 23:57:54 +1200
  • 19984772c0 Merge branch 'master' into story_61 fjc40 2017-08-10 23:49:21 +1200
  • a8af866228 Merge branch 'pom_profile_fix' into 'master' Fraser Cope 2017-08-10 13:29:05 +1200
  • d8628b4289 Boats now start the race with sails out. #story[1098] Joseph Gardner 2017-08-10 13:25:57 +1200
  • 5bc51343f5 Merge remote-tracking branch 'origin/master' into pom_profile_fix fjc40 2017-08-10 13:25:08 +1200
  • cdb6219cce Merge branch 'issue_28_36_decoders' into 'master' Fraser Cope 2017-08-10 13:21:42 +1200
  • 130ffcbf07 Fixed some merge issues. fjc40 2017-08-10 13:16:53 +1200
  • 20302496f0 Made SailsInCommand and SailsOutCommand one class. #story[1098] Joseph Gardner 2017-08-10 13:14:58 +1200
  • 805c12bf41 Merge remote-tracking branch 'origin/master' into issue_28_36_decoders fjc40 2017-08-10 13:12:26 +1200
  • 7b382e48ac Merge branch 'story63' into 'master' Fraser Cope 2017-08-10 12:57:21 +1200
  • 321dcde72f Implemented luffing sail without image (yet). Jessica Syder 2017-08-10 12:49:00 +1200
  • 39b5cc2edc MockBoat has autoVMG disabled by default. Wind/Tack commands disable autoVMG. VMG command enables it. Upwind command was turning until boat was at 0 degrees, instead of being aligned with wind direction, but that's fixed. #story[1096] fjc40 2017-08-10 12:44:42 +1200
  • 1a7152f54e Boats stop when the sails are out. Merged dev. #story[1098] Joseph Gardner 2017-08-10 12:32:05 +1200
  • 4da3734804 added the ability to toggle the race guide line on and off #story[1087] hba56 2017-08-10 12:17:19 +1200
  • 7cc39abe57 WIP. Probably need to cherry pick stuff out of here. Added ClientConnection and server-side handshake. Added MessageSerialiser and Deserialiser. #story[1095] fjc40 2017-08-10 12:13:40 +1200
  • 1302769a50 Merge branch 'Development' into story_64_sails Joseph Gardner 2017-08-10 11:56:09 +1200
  • e23f20753d Merged master. Added commands for sails in and out. Added logic to stop boat from moving when sails are out. Testing if the boat stops with sails out is blocked until command factory is merged. #story[1098] Joseph 2017-08-10 09:42:59 +1200
  • 41d09f587e Merge branch 'master' into story_64_sails Joseph 2017-08-10 08:58:43 +1200
  • 74f04a13f8 Merge remote-tracking branch 'origin/Development' into Development hba56 2017-08-09 23:27:04 +1200
  • e53d72f24b compound marks now can give the mark they have that needs to be rounded this is used to draw the line around the correct mark #story[1101] hba56 2017-08-09 23:25:42 +1200
  • da9915174c Merge branch 'master' into Development Connor Taylor-Brown 2017-08-09 23:05:07 +1200
  • 3cf0cf2ee0 Merge branch 'master' into story63 Connor Taylor-Brown 2017-08-09 22:56:55 +1200
  • 638413da1a Merge remote-tracking branch 'remotes/origin/story63' into Development Connor Taylor-Brown 2017-08-09 22:46:26 +1200
  • ce973fecfe Sails are displayed correctly for all wind and active boat directions. Jessica Syder 2017-08-09 21:48:17 +1200
  • 03713d3699 Added checkPosition into MockRace which was removed. Boat now updates legs again. zwu18 2017-08-09 16:37:29 +1200
  • e021dd328d Changed CompositeCommand stack to queue Connor Taylor-Brown 2017-08-08 23:56:59 +1200
  • e2605c3c7c Merge remote-tracking branch 'remotes/origin/story68' into Development hba56 2017-08-08 23:29:57 +1200
  • bb75806781 Cleaned up line to be in a shippable shape #story[1101] hba56 2017-08-08 23:23:46 +1200
  • 3ec87582d3 Merge remote-tracking branch 'origin/master' into story_61 fjc40 2017-08-08 20:58:53 +1200
  • 568458aca4 Merge branch 'story48' into 'master' David Wu 2017-08-08 20:50:41 +1200
  • 22722286ef all paths now join up #story[1087] hba56 2017-08-08 14:47:11 +1200
  • 53c9192130 Merge branch 'CommandFactory' into Development zwu18 2017-08-08 02:52:29 +1200
  • ef3f468b19 arrows displayed for each leg #story[1101] hba56 2017-08-08 00:02:07 +1200
  • ace1252c1d Fixed sails so they behave correctly Jessica Syder 2017-08-07 17:40:21 +1200
  • 2920b6cf23 Removed build-breaking code from MockRace cbt24 2017-08-07 16:47:25 +1200
  • a460df3e4d Fixed Javadocs that were causing the build to fail. #story[1096] Fan-Wu Yang 2017-08-07 16:30:06 +1200
  • 0f9b191ccb Added doc strings to RaceXML Creator #story[1096] Fan-Wu Yang 2017-08-07 16:13:15 +1200
  • 8ee4e84236 Merge remote-tracking branch 'remotes/origin/story63' into Development Connor Taylor-Brown 2017-08-07 15:02:13 +1200
  • f6cdf66bfe Sails can be toggled on the visualiser and the rotate sails button rotates the sail visually. #story[1098] Joseph Gardner 2017-08-07 15:01:16 +1200
  • dad4fa57c6 Fixed WindCommand not updating downwind command when moving upwind. Connor Taylor-Brown 2017-08-07 14:51:32 +1200
  • 55798447ab Cherry-picked CommandFactory connection between ControllerServer and RaceLogic. Connor Taylor-Brown 2017-08-07 14:25:30 +1200
  • e76de1cbf9 Added test for WindCommand Connor Taylor-Brown 2017-08-07 14:13:14 +1200
  • 634d78ab70 Added names to threads created. MockOutput had a nested while loop, but it wasn't needed. Also tidied some of the error handling in MockOutput. fjc40 2017-08-07 13:42:50 +1200
  • 62752c142a building blocks for drawing the race line around the course #story[1087] hba56 2017-08-07 12:47:55 +1200
  • 747c31b948 Merge remote-tracking branch 'remotes/origin/story68' into Development hba56 2017-08-07 12:29:56 +1200
  • 4195d41814 removed outdated comments #story[1087] hba56 2017-08-07 12:28:44 +1200
  • 7c5670f8c2 Sails are displayed on first boat in a race. Optimised imports. Jessica Syder 2017-08-07 12:20:52 +1200
  • 950a801d16 rounding fix for the xml #story[1087] hba56 2017-08-07 12:16:37 +1200
  • 0bf2c6106b Boat updating speed after key press has been fixed. #fix #story[1094] Joseph Gardner 2017-08-07 12:03:34 +1200
  • ddaa2623ca Added tests for TackGybeCommand class. zwu18 2017-08-07 02:56:24 +1200
  • fef35d0b00 The race is rotated with it's initial rotation in mind - RaceXMLCreator now checks the bearing of the race with getLineAngle() - Split some methods into functions so that it is more readable #story[1096] Fan-Wu Yang 2017-08-07 02:37:05 +1200
  • 2ce1c0786e The course points can now be rotated, - Created markToGPSCoordinate Class - Added Rotation to marks #story[1092] Fan-Wu Yang 2017-08-07 02:01:41 +1200
  • 134586f407 The message encoders and decoders now catch exceptions, and throw InvalidMessageException. Removed the big switch statement from BinaryMessageDecoder - it now uses the decoder factory instead. issue #35 #36 #story[1095] fjc40 2017-08-06 22:25:43 +1200
  • 9c64b678e3 Added MarkRoundingEncoder. Refactored MarkRoundingDecoder - it now implements MessageDecoder. Tidied up MarkRounding - it is now documented and has getters. Also Created MarkRoundingBoatStatusEnum, MarkRoundingIDEnum, MarkRoundingSideEnum, MarkRoundingTypeEnum. Added MarkRoundingDecoderTest. issue #35 #36 #story[1095] fjc40 2017-08-06 21:38:12 +1200
  • da800e659a Added AverageWindEncoder. Refactored AverageWindDecoder - it now implements MessageDecoder. Refactored AverageWind - it now uses milliseconds and knots, instead of packed MMperSec and tenths of a second. It also exposes its attributes now. Added (un)packAverageWindPeriod to AC35UnitConverter. Added AverageWindDecoderTest. issue #35 #36 #story[1095] fjc40 2017-08-06 20:31:21 +1200
  • ce63f58429 Added RaceStartStatusEncoder. Added RaceStartTypeEnum. Refactored RaceStartStatusDecoder to implement the MessageDecoder interface. Documented RaceStartStatus, and it actually exposes its properties now. Updated RaceStartStatusDecoderTest. issue #35 #36 #story[1095] fjc40 2017-08-06 19:36:21 +1200
  • e99ad00294 Javadoc fixes. fjc40 2017-08-06 18:54:45 +1200
  • 750ea5c141 Added MessageDecoder interface. All decoder implement this. Added DecoderFactory. This creates an appropriate decoder based on a MessageType. BoatActionDecoder implements MessageDecoder. BoatLocationDecoder implements MessageDecoder. HeartBeatDecoder implements MessageDecoder. JoinAcceptance implements MessageDecoder. RaceStatusDecoder implements MessageDecoder. RequestToJoinDecoder implements MessageDecoder. XMLMessageDecoder implements MessageDecoder. Refactored CourseWind decoder/encoder. CourseWind decoder/encoder is for an individual CourseWind. CourseWinds decoder/encoder is for the combined message from the API. Documented BoatAction, and it now contains a BoatActionEnum instead of a byte. Refactored CourseWind and CourseWinds classes. They now expose correct units, instead of packed units. Added CourseWindDecoderTest, and updated CourseWindsDecoderTest. issue #35 #36 #story[1095] fjc40 2017-08-06 18:51:13 +1200
  • a388989827 Reworked TackGybeCommand. Current boat in race will now tack and gybe when control is pressed. zwu18 2017-08-06 16:38:44 +1200
  • 1fbdd09d70 Refactored BoatLocation message, encoders, decoders. It now exposes datatypes that we actually use in the program (double knots, bearings, etc..), instead of the bits-on-the-wire packed units (like int mmPerSec). Also documented it, and updated test. issue #35 #36 #story[1095] fjc40 2017-08-06 16:13:25 +1200
  • 18f14c7542 VMGCommand now toggles autoVMG on and off. Linked up observer and observable so the current boat can now be controlled. Fixed autoVMG not working. zwu18 2017-08-06 16:12:53 +1200
  • ff262a6227 Added Knots <-> MMperSec conversions to AC35UnitConverter. Removed redundant/unused conversions. Documented all of the conversions, and renamed them to pack/unpackX, to match the API spec. Updated/added some tests in AC35UnitConverterTest. RaceStatus now contains a Bearing instead of a packed int bearing. RaceStatus now contains wind speed in knots, instead of MMperSec packed. This means that only RaceStatus decoder/encoder need to care about the bits-over-wire packed values. issue #35 #36 #story[1095] fjc40 2017-08-06 14:57:51 +1200
  • dab0f2b402 Merge branch 'story63' into CommandFactory zwu18 2017-08-06 14:54:21 +1200
  • 074e2e590b VMGCommand now toggles autoVMG on and off. Linked up observer and observable so the current boat can now be controlled. zwu18 2017-08-06 14:48:46 +1200
  • a0f98eadaa Added some documentation to BoatStatus. issue #35 #36 #story[1095] fjc40 2017-08-06 13:57:09 +1200
  • 3d417c3a40 Merge branch 'story63' into CommandFactory zwu18 2017-08-06 13:48:41 +1200
  • b1922fc3fc Added RaceStatusEncoder. Refactored RaceStatusDecoder to be more consistent with other decoders - it now has a getMessage() function. Added BoatStatus encoder and decoder - the RaceStatus encoder and decoder uses this for BoatStatuses. The BoatStatus encoder doesn't implement the MessageEncoder interface as BoatStatus is not a proper message type (doesn't inherit from AC35Data). Added remaining cases to EncoderFactory, but commented them out. BoatStatus now uses BoatStatusEnum instead of a byte. Added some comments to RaceStatus, and it uses enums instead of bytes. MockOutput logs a warning if a RaceStatus cannot be encoded. Added a BoatStatusDecoderTest. Updated RaceStatusDecoder to use new encoders/decoders. issue #35 #36 #story[1095] fjc40 2017-08-06 13:38:27 +1200
  • e464ee298e javadoc fixes for some warnings. fjc40 2017-08-06 01:08:47 +1200
  • b486f99dbe Added XMLMessageEncoder. Refactored XMLMessageDecoder to be consistent with other decoders - only needs to expose the XMLMessage. Refactored BoatLocationDecoder to be consistent with other decoders - only needs to expose the BoatLocation. Updated XMLMessageDecoderTest to use new encoder/decoder. Also tests all three message types. Removed XMLMessageEncoderTest as it was redundant. Updated BinaryMessageDecoderTest.xmlMessageTest() to use updated XMLMessage encoder/decoder. issue #35 #36 #story[1095] fjc40 2017-08-06 01:01:05 +1200
  • 8ef906472b Renamed Heartbeat to HeartBeat. Added HeartBeatDecoder. Added HeartBeatEncoder. BinaryMessageDecoder now uses HeartBeatDecoder. MockOutput now logs a warning if a heartBeat cannot be encoded. Added HeartBeatDecoderTest. issue #35 #36 #story[1095] fjc40 2017-08-05 23:27:28 +1200
  • c3ed30019c Added BoatLocationEncoder. Updated BoatLocationDecoder test to use new encoder. Updated MockOutput to use new encoder. It logs a warning if encoding fails. fjc40 2017-08-05 22:11:54 +1200
  • 31ce9fff94 Added BoatActonEncoder. Updated ControllerClient to use RaceVisionByteEncoder.encode(message). It also logs a warning if the encoding fails. Also removed pointless and out of place encode/decode of the action enum. Added a BoatActionDecoderTest which tests encoding/decoding a BoatAction Message. issue #35 #36 #story[1095] fjc40 2017-08-05 21:53:54 +1200
  • 16686678a7 Added an InvalidMessageTypeException - thrown whenever we encounter a MessageType that isn't recognised or isn't supported. Added EncoderFactory. This creates specific MessageEncoders. Supports JoinAcceptance and RequestToJoin. Added MessageEncoder interface. Added JoinAcceptanceEncoder. Added encode(AC35Data) function to RaceVisionByteEncoder. Added RequestToJonEncoder. Updated RequestToJoin and JoinAcceptance decode/encode tests to use the above. fjc40 2017-08-05 21:31:47 +1200
  • 7ea5b31fa1 RequestToJoinEnum contains an int instead of a byte. Added requestToJoin and joinAcceptance encoding functions to RaceVisionByteEncoder. Implemented JoinAcceptanceDecoder. Implemented RequestToJoinDecoder. Added tests for encoding/decoding RequestToJoin and JoinAcceptance messages. fjc40 2017-08-05 20:42:25 +1200
  • ca2b8a8899 Added missing javadoc. #story[1095] fjc40 2017-08-05 19:43:58 +1200