Subversion Repositories SmartDukaan

Rev

Rev 323 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 323 Rev 344
Line 81... Line 81...
81
	/**
81
	/**
82
	 * 
82
	 * 
83
	 * @return Map<Long, Map<Long, Integer>>
83
	 * @return Map<Long, Map<Long, Integer>>
84
	 * @throws Exception 
84
	 * @throws Exception 
85
	 */
85
	 */
86
	private Map<Long, Map<Long, Integer>> getSlideScores() throws Exception {
86
	public Map<Long, Map<Long, Integer>> getSlideScores() throws Exception {
87
		Map<Long, Map<Long, Integer>> slideScoresByEntityID = 
87
		Map<Long, Map<Long, Integer>> slideScoresByEntityID = 
88
			new TreeMap<Long, Map<Long, Integer>>();
88
			new TreeMap<Long, Map<Long, Integer>>();
89
		
89
		
90
		// Calculate scores based on rule
90
		// Calculate scores based on rule
91
		EntityContainer ents = 
91
		EntityContainer ents = 
Line 162... Line 162...
162
	 * 
162
	 * 
163
	 * @param slideScoresByEntity
163
	 * @param slideScoresByEntity
164
	 * @return Map<Long, Integer>
164
	 * @return Map<Long, Integer>
165
	 * @throws Exception 
165
	 * @throws Exception 
166
	 */
166
	 */
167
	private Map<Long, Integer> getFinalScores(
167
	public Map<Long, Integer> getFinalScores(
168
			Map<Long, Map<Long, Integer>> slideScoresByEntity) throws Exception {
168
			Map<Long, Map<Long, Integer>> slideScoresByEntity) throws Exception {
169
		Map<Long, Integer> finalScoreByEntityID = new TreeMap<Long, Integer>();
169
		Map<Long, Integer> finalScoreByEntityID = new TreeMap<Long, Integer>();
170
		
170
		
171
		// Considering default Weights per Slide bucket
171
		// Considering default Weights per Slide bucket
172
		// Slide buckets > List(Very Important, Regular, Not-so-Important)
172
		// Slide buckets > List(Very Important, Regular, Not-so-Important)