public void addParkedVehicle(MobsimVehicle veh, Id<Link> startLinkId) { if (this.vehicles.put(veh.getId(), (QVehicle) veh) != null) { if (wrnCnt < 1) { wrnCnt++ ; log.warn("existing vehicle in mobsim was just overwritten by other vehicle with same ID. Not clear what this means. Continuing anyways ...") ; log.warn(Gbl.ONLYONCE); } } QLinkI qlink = network.getNetsimLinks().get(startLinkId); if (qlink == null) { throw new RuntimeException("requested link with id=" + startLinkId + " does not exist in network. Possible vehicles " + "or activities or facilities are registered to a different network.") ; } qlink.addParkedVehicle(veh); }