Subversion Repositories SmartDukaan

Rev

Rev 1584 | Rev 2094 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1584 Rev 1929
Line 114... Line 114...
114
	/**
114
	/**
115
	 * 
115
	 * 
116
	 * @param slideScoresByEntity
116
	 * @param slideScoresByEntity
117
	 * @throws Exception
117
	 * @throws Exception
118
	 */
118
	 */
119
	public static void storeSlideScores( Map<Long, Map<Long, Integer>> slideScoresByEntity) throws Exception {
119
	public static void storeSlideScores( Map<Long, Map<Long, Double>> slideScoresByEntity) throws Exception {
120
		StorageManager.getStorageManager().storeDataObject(CreationUtils.SLIDE_SCORES, slideScoresByEntity);
120
		StorageManager.getStorageManager().storeDataObject(CreationUtils.SLIDE_SCORES, slideScoresByEntity);
121
	}
121
	}
122
 
122
 
123
	/**
123
	/**
124
	 * 
124
	 * 
125
	 * @return
125
	 * @return
126
	 * @throws Exception
126
	 * @throws Exception
127
	 */
127
	 */
128
	@SuppressWarnings("unchecked")
128
	@SuppressWarnings("unchecked")
129
	public static Map<Long, Map<Long, Integer>> getSlideScores() throws Exception {
129
	public static Map<Long, Map<Long, Double>> getSlideScores() throws Exception {
130
		return (Map<Long, Map<Long, Integer>>) StorageManager.getStorageManager().getDataObject(CreationUtils.SLIDE_SCORES);
130
		return (Map<Long, Map<Long, Double>>) StorageManager.getStorageManager().getDataObject(CreationUtils.SLIDE_SCORES);
131
	}
131
	}
132
 
132
 
133
	/**
133
	/**
134
	 * 
134
	 * 
135
	 * @param entityID
135
	 * @param entityID
136
	 * @return
136
	 * @return
137
	 * @throws Exception
137
	 * @throws Exception
138
	 */
138
	 */
139
	@SuppressWarnings("unchecked")
139
	@SuppressWarnings("unchecked")
140
	public static Map<Long, Integer> getSlideComparisonScores(long entityID) throws Exception{
140
	public static Map<Long, Double> getSlideComparisonScores(long entityID) throws Exception{
141
		Map<Long, Map<Long, Integer>> slideScores = (Map<Long, Map<Long, Integer>>) StorageManager.getStorageManager().getDataObject(CreationUtils.SLIDE_SCORES);
141
		Map<Long, Map<Long, Double>> slideScores = (Map<Long, Map<Long, Double>>) StorageManager.getStorageManager().getDataObject(CreationUtils.SLIDE_SCORES);
142
		return slideScores.get(entityID);
142
		return slideScores.get(entityID);
143
	}
143
	}
144
	
144
	
145
	
145
	
146
	/**
146
	/**
147
	 * 
147
	 * 
148
	 * @param finalScoreByEntityID
148
	 * @param finalScoreByEntityID
149
	 * @throws Exception
149
	 * @throws Exception
150
	 */
150
	 */
151
	public static void storeDefaultEntityScores(Map<Long, Integer> finalScoreByEntityID) throws Exception {
151
	public static void storeDefaultEntityScores(Map<Long, Double> finalScoreByEntityID) throws Exception {
152
		StorageManager.getStorageManager().storeDataObject(CreationUtils.DEFAULT_ENTITY_SCORES, finalScoreByEntityID);
152
		StorageManager.getStorageManager().storeDataObject(CreationUtils.DEFAULT_ENTITY_SCORES, finalScoreByEntityID);
153
	}
153
	}
154
	
154
	
155
	/**
155
	/**
156
	 * 
156
	 *