Commit Graph

3 Commits

Author SHA1 Message Date
Haoming Yin 0ab2e7881f Fixed fileParser in order to read time scale in decimal
- json-simple can read either long or double. Updated getScaleTime to make it capable to read a decimal number.

#fix #story[5]
2017-03-08 14:13:23 +13:00
Haoming Yin 85b8047229 Updated FileParser to read team name, boat velocity, and race size.
- minor code rearrange for readFile()
- changed getTeam() to read to an array of team maps, where map contains team name and boat velocity
- added getTotalNumberOfTeams() to get the total number of teams in file
- added getRaceSize to get the the number of boat competing in a race

#implement #story[6] #story[8]
2017-03-06 21:44:31 +13:00
Haoming Yin c197083d7c Created FileParser class
- Created FileParser class which processes team setting file in Json format.
- Implement get** methods, which extract information from setting file more efficient.
- Took more time than expected because need to learn Json-simple dependency first.
\#story[3]
2017-03-05 22:08:15 +13:00