khaledosman / terasoft-12

Automatically exported from code.google.com/p/terasoft-12
0 stars 0 forks source link

methods in Tools1 #291

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Add methods:
-public static void GetWinner(User1 user1, User1 user2, float raceLength)

-public static void CheckTheCommand(float timeInSeconds, User1 user1, User1 
user2, List<int> timeOfCommands, List<string> currentCommands, float tolerance)

-static List<float> GetSpeedsList(User1 user, int startIndex)

-static List<float[]> GetVelocitiesWithTime(User1 user, int startIndex)

-static int GetStartIndex(User1 user, float startCommandTime)

-public static List<float> GetAcceleration(List<float[]> velocities)

-static bool CheckForConstants(List<float> constantList, float tolerance)

-------------------------------------------------------------------------

Update methods to the new parameters:

-public static bool CommandSatisfied(string command, List<float> velocities, 
float currentTolerance, List<float[]> velocityListWithTime)

-public static bool ConstantVelocity(List<float> velocities, float 
currentTolerance)

-public static bool ConstantAcceleration(List<float[]> velocitiesWithTime, 
float currentTolerance)

-public static bool ConstantDisplacement(List<float> velocities)

-public static bool IncreasingAcceleration(List<float[]> velocitiesWithTime, 
float currentTolerance)

-public static bool DecreasingAcceleration(List<float[]> velocitiesWithTime, 
float currentTolerance)

------------------------------------------------------------------------
Remove method:

CheckEachSecond

Original issue reported on code.google.com by michel.n...@gmail.com on 24 May 2012 at 6:57

GoogleCodeExporter commented 9 years ago

Original comment by mk.cena92 on 24 May 2012 at 9:17