Subversion Repositories SmartDukaan

Rev

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

Rev 5930 Rev 7975
Line 100... Line 100...
100
			}
100
			}
101
		}
101
		}
102
		
102
		
103
		return slideScoresByEntityID;
103
		return slideScoresByEntityID;
104
	}
104
	}
-
 
105
 
-
 
106
	public Map<Long, Map<Long, Double>> getSlideScores(int dummy) throws Exception {
-
 
107
		Map<Long, Map<Long, Double>> slideScoresByEntityID = 
-
 
108
			new TreeMap<Long, Map<Long, Double>>();
-
 
109
		
-
 
110
		for(Entity entity : entities) {
-
 
111
			// Skip categories with value as -1 or categories except mobile phones and tablets
-
 
112
			long categoryId = entity.getCategoryID();
-
 
113
			if(categoryId == -1){
-
 
114
				continue;
-
 
115
			}
-
 
116
			Category category = Catalog.getInstance().getDefinitionsContainer().getCategory(categoryId);
-
 
117
			
-
 
118
				ExpandedEntity expEntity = new ExpandedEntity(entity);
-
 
119
				
-
 
120
				Map<Long, Double> slideScores = this.getSlideScores(expEntity);
-
 
121
				slideScoresByEntityID.put(entity.getID(), slideScores);
-
 
122
		}
-
 
123
		
-
 
124
		return slideScoresByEntityID;
-
 
125
	}
105
	
126
	
106
	/**
127
	/**
107
	 * 
128
	 * 
108
	 * @param entity
129
	 * @param entity
109
	 * @return Map<Long, Double>
130
	 * @return Map<Long, Double>