Subversion Repositories SmartDukaan

Rev

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

Rev 4676 Rev 8749
Line 154... Line 154...
154
			}
154
			}
155
		}
155
		}
156
 
156
 
157
		//Utils.info("learnedBullets=" + learnedBullets);
157
		//Utils.info("learnedBullets=" + learnedBullets);
158
		CreationUtils.storeLearnedBullets(learnedBullets);
158
		CreationUtils.storeLearnedBullets(learnedBullets);
-
 
159
		//learnedBullets.toString().length()
159
		
160
		
160
	}
161
	}
161
 
162
 
162
	
163
	
163
	/**
164
	/**
Line 200... Line 201...
200
					List<ExpandedBullet> collectedBullets = 
201
					List<ExpandedBullet> collectedBullets = 
201
						learnedBullets.get(new Long(featureDefID));
202
						learnedBullets.get(new Long(featureDefID));
202
					
203
					
203
					if(collectedBullets == null) {
204
					if(collectedBullets == null) {
204
						collectedBullets = new ArrayList<ExpandedBullet>();
205
						collectedBullets = new ArrayList<ExpandedBullet>();
-
 
206
						learnedBullets.put(new Long(featureDefID), collectedBullets);
205
					}
207
					}
206
					
208
					
207
					for(ExpandedBullet expBullet : expBullets) {
209
					for(ExpandedBullet expBullet : expBullets) {
208
						if(!collectedBullets.contains(expBullet)) {
210
						if(!collectedBullets.contains(expBullet)) {		
209
							
-
 
210
							collectedBullets.add(expBullet);
211
							collectedBullets.add(expBullet);
211
						}
212
						}
212
					}
213
					}
213
					
214
					
214
					learnedBullets.put(new Long(featureDefID), 
-
 
215
							collectedBullets);
-
 
216
				}
215
				}
217
				
216
				
218
			}
217
			}
219
		}
218
		}
220
		
219
		
Line 226... Line 225...
226
				this.learn(childSlide, learnedBullets);
225
				this.learn(childSlide, learnedBullets);
227
			}
226
			}
228
		}
227
		}
229
	}
228
	}
230
	
229
	
231
	
230
    
232
	
231
	
233
	/**
232
	/**
234
	 * Learns all features where definition is marked "learned=true"
233
	 * Learns all features where definition is marked "learned=true"
235
	 * @throws Exception 
234
	 * @throws Exception 
236
	 */
235
	 */