Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

look at trips with mode ride_hail_pooled in events analysis #2140

Merged
merged 1 commit into from
Aug 31, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
public class RideHailWaitingAnalysis implements GraphAnalysis, IterationSummaryAnalysis {

public static final String RIDE_HAIL = "ride_hail";
public static final String RIDE_HAIL_POOLED = "ride_hail_pooled";
public static final String WALK_TRANSIT = "walk_transit";

public RideHailWaitingAnalysis(StatsComputation<Tuple<List<Double>, Map<Integer, List<Double>>>, Tuple<Map<Integer, Map<Double, Integer>>, double[][]>> statComputation) {
Expand Down Expand Up @@ -174,7 +175,7 @@ public void processStats(Event event) {
if (event instanceof ModeChoiceEvent) {
ModeChoiceEvent modeChoiceEvent = (ModeChoiceEvent) event;
String mode = modeChoiceEvent.mode;
if (mode.equalsIgnoreCase(RIDE_HAIL)) {
if (mode.equalsIgnoreCase(RIDE_HAIL) || mode.equalsIgnoreCase(RIDE_HAIL_POOLED)) {

Id<Person> personId = modeChoiceEvent.getPersonId();
rideHailWaiting.put(personId.toString(), event);
Expand Down