Skip to content

Commit

Permalink
Merge pull request #2140 from LBNL-UCB-STI/zn/plot-rh-pooled-wait-tim…
Browse files Browse the repository at this point in the history
…es-too

look at trips with mode ride_hail_pooled in events analysis
  • Loading branch information
wrashid authored Aug 31, 2019
2 parents bbb7c1f + 3ded524 commit 187e811
Showing 1 changed file with 2 additions and 1 deletion.
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

0 comments on commit 187e811

Please sign in to comment.