-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding ScoreStrategies feature (#34)
- Added model - Added model unit testing - Added compilation of the library
- Loading branch information
Showing
33 changed files
with
1,533 additions
and
307 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
import { ScoreStrategy } from "./ScoreStrategy"; | ||
/** | ||
* ScoreStrategies constants | ||
*/ | ||
export declare const MULTIPLY = "multiply"; | ||
export declare const SUM = "sum"; | ||
export declare const AVG = "avg"; | ||
export declare const MAX = "max"; | ||
export declare const MIN = "min"; | ||
/** | ||
* ScoreStrategies | ||
*/ | ||
export declare class ScoreStrategies { | ||
private scoreStrategies; | ||
private scoreMode; | ||
/** | ||
* Create empty | ||
* | ||
* @param scoreMode | ||
* | ||
* @return {ScoreStrategies} | ||
*/ | ||
static createEmpty(scoreMode?: string): ScoreStrategies; | ||
/** | ||
* Add score strategy | ||
* | ||
* @param scoreStrategy | ||
* | ||
* @return {ScoreStrategies} | ||
*/ | ||
addScoreStrategy(scoreStrategy: ScoreStrategy): ScoreStrategies; | ||
/** | ||
* Get score strategies | ||
* | ||
* @return {ScoreStrategy[]} | ||
*/ | ||
getScoreStrategies(): ScoreStrategy[]; | ||
/** | ||
* Get score mode | ||
* | ||
* @return {string} | ||
*/ | ||
getScoreMode(): string; | ||
/** | ||
* To array | ||
* | ||
* @return {{ | ||
* score_mode: string, | ||
* score_strategies: any | ||
* }} | ||
*/ | ||
toArray(): { | ||
score_mode: string; | ||
score_strategies: any; | ||
}; | ||
/** | ||
* Create from array | ||
* | ||
* @param array | ||
* | ||
* @return {ScoreStrategies} | ||
*/ | ||
static createFromArray(array: any): ScoreStrategies; | ||
} |
Oops, something went wrong.