public void setForecastMode(Date deadline) {
		for (int j = 0; j < users.size(); j++) {
			User user = users.get(j);			
			Set<Long> reallyBuy = new HashSet<Long>();
			for (int i = user.getBehaviors().size() - 1; i >= 0; i--) {
				if (user.getBehaviors().get(i).getVisitDatetime().getTime() > deadline.getTime()) {
					if (user.getBehaviors().get(i).getType() == Consts.ActionType.BUY
							&& !reallyBuy.contains(user.getBehaviors().get(i)
									.getBrandID())) {
						reallyBuy.add(user.getBehaviors().get(i).getBrandID());
					}
					user.getBehaviors().remove(i);
				}
			}

			user.setReallyBuy(reallyBuy);
		}
	}