@Override public Plan getModifiablePlan() { return this.basicAgentDelegate.getModifiablePlan(); }
@Override public final Plan getModifiablePlan() { return basicAgentDelegate.getModifiablePlan() ; } // final void calculateAndSetDepartureTime( Activity act ) {
private void initializeActivity(Activity act, double now) { this.setState(MobsimAgent.State.ACTIVITY) ; this.getEvents().processEvent( new ActivityStartEvent(now, this.getId(), this.getCurrentLinkId(), act.getFacilityId(), act.getType())); calculateAndSetDepartureTime(act); getModifiablePlan(); // this is necessary to make the plan modifiable, so that setting the start time (next line) is actually feasible. kai/mz, oct'16 ((Activity) getCurrentPlanElement()).setStartTime(now); }