MATSIM
EventsToLegsAndActivities.java
Go to the documentation of this file.
1 
2 /* *********************************************************************** *
3  * project: org.matsim.*
4  * EventsToLegsAndActivities.java
5  * *
6  * *********************************************************************** *
7  * *
8  * copyright : (C) 2019 by the members listed in the COPYING, *
9  * LICENSE and WARRANTY file. *
10  * email : info at matsim dot org *
11  * *
12  * *********************************************************************** *
13  * *
14  * This program is free software; you can redistribute it and/or modify *
15  * it under the terms of the GNU General Public License as published by *
16  * the Free Software Foundation; either version 2 of the License, or *
17  * (at your option) any later version. *
18  * See also COPYING, LICENSE and WARRANTY file *
19  * *
20  * *********************************************************************** */
21 
22  package org.matsim.core.scoring;
23 
24 import org.matsim.api.core.v01.events.*;
30 
31 import jakarta.inject.Inject;
32 
41 
42  private final EventsToLegs legsDelegate;
44 
45  @Inject
46  public EventsToLegsAndActivities(EventsToLegs eventsToLegs, EventsToActivities eventsToActivities) {
47  this.legsDelegate = eventsToLegs;
48  this.actsDelegate = eventsToActivities;
49  }
50 
51  @Override
52  public void handleEvent(ActivityEndEvent event) {
53  this.actsDelegate.handleEvent(event);
54  }
55 
56  @Override
57  public void handleEvent(ActivityStartEvent event) {
58  this.actsDelegate.handleEvent(event);
59  }
60 
61  @Override
62  public void handleEvent(LinkEnterEvent event) {
63  this.legsDelegate.handleEvent(event);
64  }
65 
66  @Override
67  public void handleEvent(PersonArrivalEvent event) {
68  this.legsDelegate.handleEvent(event);
69  }
70 
71  @Override
72  public void handleEvent(PersonDepartureEvent event) {
73  this.legsDelegate.handleEvent(event);
74  }
75 
76  @Override
78  this.legsDelegate.handleEvent(event);
79  }
80 
81  @Override
83  this.legsDelegate.handleEvent(event);
84  }
85 
86  @Override
88  this.legsDelegate.handleEvent(event);
89  }
90 
91  @Override
93  this.legsDelegate.handleEvent(event);
94  }
95 
96  @Override
98  this.legsDelegate.handleEvent(event);
99  }
100 
101  @Override
103  this.legsDelegate.handleEvent(event);
104  }
105 
106  @Override
107  public void reset(int iteration) {
108  this.actsDelegate.reset(iteration);
109  this.legsDelegate.reset(iteration);
110  }
111 }
EventsToLegsAndActivities(EventsToLegs eventsToLegs, EventsToActivities eventsToActivities)
void handleEvent(PersonDepartureEvent event)
void handleEvent(VehicleArrivesAtFacilityEvent event)