|
MATSIM
|

Public Member Functions | |
| AcceptTurn | isAcceptingTurn (Link currentLink, QLaneI currentLane, Id< Link > nextLinkId, QVehicle veh, QNetwork qNetwork, double now) |
Static Private Attributes | |
| static final Logger | log = LogManager.getLogger( DefaultTurnAcceptanceLogic.class) |
this class checks whether turning is physically possible, i.e. if the next link exists and if it is connected to the current link
Definition at line 35 of file DefaultTurnAcceptanceLogic.java.
| AcceptTurn org.matsim.core.mobsim.qsim.qnetsimengine.DefaultTurnAcceptanceLogic.isAcceptingTurn | ( | Link | currentLink, |
| QLaneI | currentLane, | ||
| Id< Link > | nextLinkId, | ||
| QVehicle | veh, | ||
| QNetwork | qNetwork, | ||
| double | now | ||
| ) |
We need qNetwork to get the next QLink, because the link lookup may lead to a NullPointer otherwise
Implements org.matsim.core.mobsim.qsim.qnetsimengine.TurnAcceptanceLogic.
Definition at line 40 of file DefaultTurnAcceptanceLogic.java.
References org.matsim.core.mobsim.qsim.qnetsimengine.TurnAcceptanceLogic.AcceptTurn.ABORT, org.matsim.core.mobsim.qsim.interfaces.MobsimVehicle.getCurrentLink(), org.matsim.vis.snapshotwriters.VisVehicle.getDriver(), org.matsim.api.core.v01.network.Link.getFromNode(), org.matsim.api.core.v01.Identifiable< T >.getId(), org.matsim.vis.snapshotwriters.VisLink.getLink(), org.matsim.core.mobsim.qsim.qnetsimengine.QNetwork.getNetsimLinks(), org.matsim.api.core.v01.network.Link.getToNode(), and org.matsim.core.mobsim.qsim.qnetsimengine.TurnAcceptanceLogic.AcceptTurn.GO.

|
staticprivate |
Definition at line 36 of file DefaultTurnAcceptanceLogic.java.
1.8.13