public class StopPattern extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
int[] |
dropoffs |
static int |
PICKDROP_CALL_AGENCY |
static int |
PICKDROP_COORDINATE_WITH_DRIVER |
static int |
PICKDROP_NONE |
static int |
PICKDROP_SCHEDULED |
int[] |
pickups |
int |
size |
org.onebusaway.gtfs.model.Stop[] |
stops |
Constructor and Description |
---|
StopPattern(List<org.onebusaway.gtfs.model.StopTime> stopTimes)
Assumes that stopTimes are already sorted by time.
|
Modifier and Type | Method and Description |
---|---|
boolean |
containsStop(String stopId) |
boolean |
equals(Object other) |
int |
hashCode() |
com.google.common.hash.HashCode |
semanticHash(com.google.common.hash.HashFunction hashFunction)
In most cases we want to use identity equality for StopPatterns.
|
String |
toString() |
public static final int PICKDROP_SCHEDULED
public static final int PICKDROP_NONE
public static final int PICKDROP_CALL_AGENCY
public static final int PICKDROP_COORDINATE_WITH_DRIVER
public final int size
public final org.onebusaway.gtfs.model.Stop[] stops
public final int[] pickups
public final int[] dropoffs
public StopPattern(List<org.onebusaway.gtfs.model.StopTime> stopTimes)
public boolean containsStop(String stopId)
stopId
- in agency_id formatpublic com.google.common.hash.HashCode semanticHash(com.google.common.hash.HashFunction hashFunction)
Copyright © 2018. All rights reserved.