public TripRouter getTripRouter() { return delegate.getTripRouter(); }
public TripRouter getTripRouter() { if (delegate instanceof PlanRouter) { return ((PlanRouter) delegate).getTripRouter(); } if (delegate instanceof JointPlanRouter) { return ((JointPlanRouter) delegate).getTripRouter(); } throw new IllegalStateException( ""+delegate.getClass() ); } }
/** * @param person * @param leg the leg to calculate the route for. * @param fromAct the Act the leg starts * @param toAct the Act the leg ends * @param depTime the time (seconds from midnight) the leg starts * @return the estimated travel time for this leg */ @Deprecated // use TripRouter instead. kai, dec'13 public double handleLeg( final Person person, final Leg leg, final Activity fromAct, final Activity toAct, final double depTime) { TripRouter tripRouter = this.planRouter.getTripRouter(); return handleLeg(tripRouter, person, leg, fromAct, toAct, depTime); }