Commit graph

22 commits

Author SHA1 Message Date
Pradyumna Kaushik
5a6edb802e fixed comment. 2017-01-28 19:43:12 -05:00
Pradyumna Kaushik
e63784b007 Created utilities/offerUtils that can can hold all the utility functions for Offers. 2017-01-28 19:32:54 -05:00
Pradyumna Kaushik
6d4446413d Created utilities/mesosUtils that can hold all the interactions with mesos. Moved longFilter and defaultFilter to mesosUtils. 2017-01-28 19:32:12 -05:00
Pradyumna Kaushik
2cd77a7ba8 Changed Window to ConsiderationWindow. 2017-01-28 18:29:00 -05:00
Renan DelValle
2678032c2c Go fmt on the entire project 2017-01-03 20:57:25 -05:00
Renan DelValle
147bbc8b5a Fixing commit history 2016-12-22 23:27:18 -05:00
Renan DelValle
71c889982f resolved merge conflicts 2016-12-22 23:17:01 -05:00
Pradyumna Kaushik
50d1d79051 fixed naming convensions to be camel cased. Reformatted the code. 2016-12-22 22:59:03 -05:00
Pradyumna Kaushik
6ae59d4be5 Revert "Removed a comment"
This reverts commit fcdffb5c1006d7938d8be4aacad7ec5a7b78f20e.
2016-12-22 22:59:03 -05:00
Pradyumna Kaushik
2a9c0eb81a Removed a comment 2016-12-22 22:59:03 -05:00
Pradyumna Kaushik
81d795f197 formatted the code 2016-12-22 22:59:03 -05:00
Pradyumna Kaushik
04d6d4b631 Utility data structures and functions. 2016-12-22 22:59:02 -05:00
Pradyumna Kaushik
9b5ac0bfa8 removed unnecessary variable 'numberOfElementsInWindow' and just used window.Len() instead 2016-12-22 22:59:01 -05:00
Pradyumna Kaushik
1b821735ed fixed bug in Remove() where the currentSum and numberOfTasksInWindow weren't getting updated. 2016-12-22 22:59:01 -05:00
Pradyumna Kaushik
e0a16da97a Added functionality to be able to remove elements from the window by providing a unique ID. Also, added another function to the interface that needs to be implemented by all the structs implementing this interface. This function should return a unique ID identifying the object so as to be able to distinguish between multiple instances of the same type. 2016-12-22 22:59:00 -05:00
Pradyumna Kaushik
59b8303aaf Generic running average calculator. 2016-12-22 22:59:00 -05:00
Pradyumna Kaushik
1321010d6f Changed comment. The utility can be used to sort any map[string]float64 by value, and not just availablePower. 2016-12-22 22:59:00 -05:00
Pradyumna Kaushik
6aa849bbe7 fixed naming convensions to be camel cased. Reformatted the code. 2016-12-22 22:59:00 -05:00
Pradyumna Kaushik
262b13e6b7 Revert "Removed a comment"
This reverts commit fcdffb5c1006d7938d8be4aacad7ec5a7b78f20e.
2016-12-22 22:59:00 -05:00
Pradyumna Kaushik
7ef10e6310 Removed a comment 2016-12-22 22:59:00 -05:00
Pradyumna Kaushik
892d9b86dc formatted the code 2016-12-22 22:59:00 -05:00
Pradyumna Kaushik
0d6b714e1d Utility data structures and functions. 2016-12-22 22:58:59 -05:00