@Override public double getLinkTravelDisutility(Link link, double time, Person person, Vehicle vehicle) { double randomizedTimeDistanceDisutilityForLink = this.randomizedTimeDistanceTravelDisutility.getLinkTravelDisutility( link, time, person, vehicle); double logNormalRnd = 1.; if (sigma != 0.) { logNormalRnd = (double) person.getCustomAttributes().get("logNormalRnd"); } double linkExpectedTollDisutility = calculateExpectedTollDisutility(link.getId(), time, person.getId()); double randomizedTollDisutility = linkExpectedTollDisutility * logNormalRnd; return randomizedTimeDistanceDisutilityForLink + randomizedTollDisutility; }
@Override public Map<String, Object> getCustomAttributes() { return delegate.getCustomAttributes(); }