All pastes #124397 Raw Edit

Anonymous

public text v1 · immutable
·published 2006-08-10 01:23 UTC
rendered paste body
	public void atrisk() {
		for (ArrayList<Double> it : atrisk_data) {
			for (Cell cell : cells) {
				if (cell.getss() == it.get(0) 
						&& cell.getgs() == GOLDNA) {
					cell.setchanger(-1 * it.get(1) * cell.getamount());
					for (Cell cell_two : cells) {
						if (cell_two.getage() == cell.getage()
								&& cell_two.getsex() == cell.getsex()
								&& cell_two.getcs() == cell.getcs()
								&& cell_two.getss() == cell.getss()
								&& cell_two.getgs() == GOLDAR) {
							cell_two.setchanger(it.get(1) * cell.getamount());
						}
					}
				}
			}
		}
	}