@Override public Id<Link> getDestinationLinkId() { return basicAgentDelegate.getDestinationLinkId() ; } @Override
@Override public final Id<Link> getDestinationLinkId() { return basicAgentDelegate.getDestinationLinkId(); } @Override
@Override public Id<Link> getDestinationLinkId() { return this.basicPlanAgentDelegate.getDestinationLinkId() ; }
@Override public final Id<Link> getDestinationLinkId() { return basicAgentDelegate.getDestinationLinkId(); }
@Override public final void endLegAndComputeNextState(final double now) { this.getEvents().processEvent(new PersonArrivalEvent( now, this.getId(), this.getDestinationLinkId(), getCurrentLeg().getMode())); if( (!(this.getCurrentLinkId() == null && this.getDestinationLinkId() == null)) && !this.getCurrentLinkId().equals(this.getDestinationLinkId())) { log.error("The agent " + this.getPerson().getId() + " has destination link " + this.getDestinationLinkId() + ", but arrived on link " + this.getCurrentLinkId() + ". Setting agent state to ABORT."); this.setState(MobsimAgent.State.ABORT) ; } else { // note that when we are here we don't know if next is another leg, or an activity Therefore, we go to a general method: advancePlan(now) ; } this.currentLinkIndex = 0 ; }