
io.github.agentsoz.bdimatsim.NextLinkBlockedEvent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bdi-matsim Show documentation
Show all versions of bdi-matsim Show documentation
Allows the use of MATsim (www.matsim.org) as the underlying ABM
The newest version!
package io.github.agentsoz.bdimatsim;
/*
* #%L
* BDI-ABM Integration Package
* %%
* Copyright (C) 2014 - 2017 by its authors. See AUTHORS file.
* %%
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Lesser Public License for more details.
*
* You should have received a copy of the GNU General Lesser Public
* License along with this program. If not, see
* .
* #L%
*/
import org.matsim.api.core.v01.Id;
import org.matsim.api.core.v01.events.Event;
import org.matsim.api.core.v01.network.Link;
import org.matsim.api.core.v01.population.Person;
import org.matsim.vehicles.Vehicle;
public final class NextLinkBlockedEvent extends Event {
private static final String NEXT_LINK_BLOCKED_EVENT_NAME = "nextLinkBlocked";
private final Id driverId;
private final Id currentLinkId;
public NextLinkBlockedEvent( double time, Id vehicleId, Id driverId, Id currentLinkId, Id blockedLinkId ) {
super(time);
this.driverId = driverId ;
this.currentLinkId = currentLinkId;
}
@Override public String getEventType() {
return NEXT_LINK_BLOCKED_EVENT_NAME;
}
public Id getDriverId() {
return this.driverId ;
}
public Id currentLinkId() {
return this.currentLinkId ;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy