fjc40
020c0329b0
Merge remote-tracking branch 'origin/TCPDisconnection' into submission
9 years ago
fjc40
83ce9b99d2
Mockoutput's main loop now pops messages off the message queue, rather than iterating over it like an array, and clearing it (this could have threading issues where the iteration starts (with e.g., 5 messages), as it is sending the messages another one is added, and then it ends up clearing the sent messages, and the unsent message.
...
Made a few quick fixes (to be tidied a bit later) to Mock.Race class. It now has this.startTime, instead of the AnimationTimers having their own starTime value. RaceStatus messages are now sent properly (still need a refactor though), so they actually send the race star time - this means that the visualizer using the mock data source displays the correct time instead of (midnight, jan 1, 1970).
Removed one of the constructors from RaceStatus - it allowed for constructing and sending essentially invalid RaceStatus messages, and simply wasn't needed.
Added a temporary title ("RaceVision - Team 7") to the visualiser - may be worth changing when we decide on a team name.
Fixed a bug with the order of operations in visualiser.StartController.countdownTimer(). Calling begin race before hiding panes caused them to never be hidden.
Mock.Event. Changed the scaleFactor to 5x for the time being - to easier testing of things like pre-race timers, countdowns, etc...
#story[778,782]
9 years ago
fjc40
01224c509a
Added some comments to MockOutput. Also removed instance of RaceVisionByteEncoder, as it has no state, and the functions used are all static.
9 years ago
fjc40
3481a882de
Fixed Team Oracle's boat name in mock data file.
...
#story[778]
9 years ago
David Wu
61ecdc2269
Merge branch 'submission' of https://eng-git.canterbury.ac.nz/seng302-2017/team-7 into submission
...
# Conflicts:
# visualiser/src/main/java/seng302/Controllers/MainController.java
# visualiser/src/main/java/seng302/Controllers/StartController.java
# visualiser/src/main/java/seng302/Model/Race.java
9 years ago
David Wu
61afe8d608
Created finish view to see when a race finishes.
...
-Implemented FinishController
-Fixed mock not sending Finish race status.
#Story[782]
9 years ago
cbt24
c038010bd2
Draws track for racing boats only to reduce information clutter.
...
- Add track point only when boat status is "Racing"
#story[782]
9 years ago
cbt24
f27dbc29b0
Added self-documenting RaceStatus boolean getters
...
- Deprecated RaceStatus.getRaceStatus
#story[782]
9 years ago
cbt24
cc824aa89a
Removed unnecessary countdownTimer from Race in visualiser module
...
- Run method now calls simulateRace directly
#story[782]
9 years ago
cbt24
a6adfb4960
Refactored RaceClock to act as central source of time and duration information throughout visualiser.
...
- StartController and RaceController use same RaceClock instance
- RaceClock updates automatically as Runnable for consistent operation
- Duration between starting and current time is now an observable property of RaceClock
#story[782]
9 years ago
Fan-Wu Yang
bdf215d0f1
TCP connection at the front menu will no longer bug out if the socket is bugged.
...
- Timeout set on connection socket so that the socket will return false after 5 seconds.
#story[782]
9 years ago
David Wu
a95a0c2543
Added documentation for multiple classes.
...
#Story[782]
9 years ago
hba56
12e457824d
fix for issue #5 gate lines
...
-removed drawing of lines between the marks as only the start and finish line should have a line drawn
#story[782]
9 years ago
Fan-Wu Yang
d52b09e74a
Visualiser Closes All threads on exit now.
...
- Added override for exiting the Visualiser which closes all threads: such as the TCP connection.
#story[782]
9 years ago
Fan-Wu Yang
a20dafea11
Annotations go on top and boundaries now update
...
- Fixed FPS and other annotations being hidden under the map
- Fixed boundaries not updating with the visualiser.
#story[782]
9 years ago
Fan-Wu Yang
982b47943a
Fixed blocking issue
...
- Fixed byte stream error where it would reinitilise every run
#story[782]
9 years ago
Fan-Wu Yang
b7f010a2fa
Fixed Network While loops
...
- Removed while blocking loops and replaced them with return statements
#story[782]
9 years ago
Fan-Wu Yang
565b7adaa2
Merge remote-tracking branch 'origin/race-timer-fixes' into layeredCanvas
...
# Conflicts:
# visualiser/src/main/java/seng302/Controllers/StartController.java
9 years ago
Fan-Wu Yang
862391d7ef
Canvas Layer Created
...
- Canvas is created via layering.
- Resizable canvas is now a seperate abstract class
#story[782]
9 years ago
cbt24
349bd50094
Everything works, don't ask questions
...
#story[782]
9 years ago
Erika Savell
62db7f333c
Frantically cherry-picking commit by commit
...
#story[778]
9 years ago
Erika Savell
8ed0ca5b4f
Quick way of adding extra leg to mock data
...
- To be redundant when the mock feed pulls from a proper xml instead of having two parsers
#story[778]
9 years ago
Fan-Wu Yang
284eb6d951
Added Test for AC35UnitConverter
...
- Added tests to make sure it was working properly
#story[782]
9 years ago
hba56
6888d0bddc
fixed all java doc errors
...
#story[782]
9 years ago
hba56
e409c8752c
Fix for now - Need to change
9 years ago
cbt24
89ba0f278d
Fixed StartController countdown
...
- Removed obsolete timer related code
- Consistently use RaceClock throughout StartController
#story[782]
9 years ago
cbt24
17afd9f775
Merge remote-tracking branch 'origin/splitIntoTwoModules' into splitIntoTwoModules
...
# Conflicts:
# visualiser/src/main/java/seng302/Controllers/StartController.java
9 years ago
cbt24
336a15d1a2
Fixed StartController countdown
...
- Removed obsolete timer related code
- Consistently use RaceClock throughout StartController
#story[782]
9 years ago
Erika Savell
288699b7c7
Merge branch 'splitIntoTwoModules' of https://eng-git.canterbury.ac.nz/seng302-2017/team-7 into splitIntoTwoModules
9 years ago
Erika Savell
2dab427092
Quick way of adding extra leg to mock data
...
- To be redundant when the mock feed pulls from a proper xml instead of having two parsers
#story[778]
9 years ago
Fan-Wu Yang
037c09b059
Merge branch 'splitIntoTwoModules' of https://eng-git.canterbury.ac.nz/seng302-2017/team-7 into splitIntoTwoModules
9 years ago
hba56
1f8941e37c
Merge remote-tracking branch 'origin/splitIntoTwoModules' into splitIntoTwoModules
9 years ago
Fan-Wu Yang
6bbc2ac4be
Merge branch 'splitIntoTwoModules' of https://eng-git.canterbury.ac.nz/seng302-2017/team-7 into splitIntoTwoModules
9 years ago
hba56
ccd90b91d7
Merge remote-tracking branch 'origin/splitIntoTwoModules' into splitIntoTwoModules
9 years ago
Fan-Wu Yang
bb57685faf
Added Test for AC35UnitConverter
...
- Added tests to make sure it was working properly
#story[782]
9 years ago
hba56
62ecd40967
fixed all java doc errors
...
#story[782]
9 years ago
David Wu
545ef7aa7f
Fix lobby not entering race when race status is "started".
...
-Race was previously stuck in lobby screen when race status was not 2.
#Story[782]
9 years ago
cbt24
e345f08ad8
Fixed AC35 stream crashing before status sent.
...
#story[782]
9 years ago
hba56
aa1d38ca9f
removed import * lines
...
#story[782]
9 years ago
David Wu
a07a90dfea
Merge branch 'splitIntoTwoModules' of https://eng-git.canterbury.ac.nz/seng302-2017/team-7 into splitIntoTwoModules
9 years ago
David Wu
88bb568ec7
Set it so the lobby view switches to race view depending on the race status passed in by the mock.
...
-Removed start button in lobby as it should be automatic.
-TODO: Synchronize the times across the whole race as they do not matching.
#Story[782]
9 years ago
cbt24
099995c41b
Fixed start controller visibility issues.
...
#story[782]
9 years ago
hba56
15179a1cdf
Merge remote-tracking branch 'origin/splitIntoTwoModules' into splitIntoTwoModules
9 years ago
hba56
810c3837c1
adding java doc tags
...
#story[782]
9 years ago
Fan-Wu Yang
43fb0df5be
Merge branch 'splitIntoTwoModules' of https://eng-git.canterbury.ac.nz/seng302-2017/team-7 into splitIntoTwoModules
9 years ago
Fan-Wu Yang
874953f763
Fixed issue win ResizableRaceCanvas
...
- Issue where the boat position may mess up if it is called before the server has sent us information about hte location.
#story[782]
9 years ago
Erika Savell
5ebd4251e2
Merge branch 'splitIntoTwoModules' of https://eng-git.canterbury.ac.nz/seng302-2017/team-7 into splitIntoTwoModules
9 years ago
Erika Savell
c3ee3ec9e2
Added new lines to the other two xml creators
...
#story[778]
9 years ago
David Wu
34ef1172ce
Merge branch 'splitIntoTwoModules' of https://eng-git.canterbury.ac.nz/seng302-2017/team-7 into splitIntoTwoModules
9 years ago
David Wu
bf12f77796
Set it so the lobby view switches to race view depending on the race status passed in by the mock.
...
-Removed start button in lobby as it should be automatic.
-TODO: Synchronize the times across the whole race as they do not matching.
#Story[782]
9 years ago