testee.handleLeg((Leg) f.plan.getPlanElements().get(3)); testee.agentStuck(16*3600 + 7.5*60); testee.finish(); testee.getScore(); testee.handleActivity((Activity) f.plan.getPlanElements().get(2)); testee.handleLeg((Leg) f.plan.getPlanElements().get(3)); testee.agentStuck(16*3600 + 7.5*60); testee.finish(); testee.getScore();
if (scoringFunction != null) { if (o instanceof PersonStuckEvent) { scoringFunction.agentStuck(o.getTime()); } else if (o instanceof PersonMoneyEvent) { scoringFunction.addMoney(((PersonMoneyEvent) o).getAmount());