Class LinkEnteredProvider
- java.lang.Object
-
- org.matsim.withinday.trafficmonitoring.LinkEnteredProvider
-
- All Implemented Interfaces:
EventListener
,LinkEnterEventHandler
,PersonArrivalEventHandler
,PersonStuckEventHandler
,VehicleEntersTrafficEventHandler
,VehicleLeavesTrafficEventHandler
,MatsimExtensionPoint
,EventHandler
,MobsimAfterSimStepListener
,MobsimListener
,QSimComponent
public class LinkEnteredProvider extends Object implements LinkEnterEventHandler, PersonArrivalEventHandler, PersonStuckEventHandler, MobsimAfterSimStepListener, VehicleEntersTrafficEventHandler, VehicleLeavesTrafficEventHandler
Returns all agents that have entered a new link in the last time step. Agents who just ended an activity are NOT included, since they...- do not produce a link entered event.
- are limited in their possible replanning operations.
- Author:
- cdobler
-
-
Constructor Summary
Constructors Constructor Description LinkEnteredProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<Id<Person>,Id<Link>>
getLinkEnteredAgentsInLastTimeStep()
void
handleEvent(LinkEnterEvent event)
void
handleEvent(PersonArrivalEvent event)
void
handleEvent(PersonStuckEvent event)
void
handleEvent(VehicleEntersTrafficEvent event)
void
handleEvent(VehicleLeavesTrafficEvent event)
void
notifyMobsimAfterSimStep(MobsimAfterSimStepEvent e)
void
reset(int iteration)
Gives the event handler the possibility to clean up its internal state.
-
-
-
Constructor Detail
-
LinkEnteredProvider
public LinkEnteredProvider()
-
-
Method Detail
-
getLinkEnteredAgentsInLastTimeStep
public Map<Id<Person>,Id<Link>> getLinkEnteredAgentsInLastTimeStep()
-
reset
public void reset(int iteration)
Description copied from interface:EventHandler
Gives the event handler the possibility to clean up its internal state. Within a Controler-Simulation, this is called before the mobsim starts.- Specified by:
reset
in interfaceEventHandler
- Parameters:
iteration
- the up-coming iteration from which up-coming events will be from.
-
handleEvent
public void handleEvent(PersonStuckEvent event)
- Specified by:
handleEvent
in interfacePersonStuckEventHandler
-
handleEvent
public void handleEvent(PersonArrivalEvent event)
- Specified by:
handleEvent
in interfacePersonArrivalEventHandler
-
handleEvent
public void handleEvent(LinkEnterEvent event)
- Specified by:
handleEvent
in interfaceLinkEnterEventHandler
-
notifyMobsimAfterSimStep
public void notifyMobsimAfterSimStep(MobsimAfterSimStepEvent e)
- Specified by:
notifyMobsimAfterSimStep
in interfaceMobsimAfterSimStepListener
-
handleEvent
public void handleEvent(VehicleLeavesTrafficEvent event)
- Specified by:
handleEvent
in interfaceVehicleLeavesTrafficEventHandler
-
handleEvent
public void handleEvent(VehicleEntersTrafficEvent event)
- Specified by:
handleEvent
in interfaceVehicleEntersTrafficEventHandler
-
-