APISonar


org.opentripplanner.routing.core.ServiceDay.time

> org > opentripplanner > routing > core > ServiceDay > time
org APIs opentripplanner APIs routing APIs core APIs ServiceDay APIs time APIs

Example 1
public int calculateWait(State s0, ServiceDay sd, TripTimes tripTimes) {
        return boarding ?
                (int)(sd.time(tripTimes.getDepartureTime(stopIndex)) - s0.getTimeSeconds()):
                (int)(s0.getTimeSeconds() - sd.time(tripTimes.getArrivalTime(stopIndex)));
    }
Example 2
public TripTimeShort(TripTimes tt, int i, Stop stop, ServiceDay sd) {
        this(tt, i, stop);
        tripId = tt.trip.getId();
        serviceDay = sd.time(0);
    }