public class Pattern extends Entity
Entity.Loader<E extends Entity>, Entity.Writer<E extends Entity>| Modifier and Type | Field and Description |
|---|---|
Set<String> |
associatedShapes |
List<String> |
associatedTrips |
int |
direction_id |
String |
feed_id |
com.vividsolutions.jts.geom.LineString |
geometry |
static com.google.common.base.Joiner |
joiner |
String |
name |
List<String> |
orderedStops |
String |
pattern_id |
String |
route_id |
double[] |
segmentFraction |
int[] |
segmentIndex |
static long |
serialVersionUID |
DOUBLE_MISSING, id, INT_MISSING| Constructor and Description |
|---|
Pattern(List<String> orderedStops,
Collection<Trip> trips,
com.vividsolutions.jts.geom.LineString patternGeometry) |
| Modifier and Type | Method and Description |
|---|---|
String |
getId()
This method should be overridden by each Entity subtype to return the proper key field for that subtype.
|
void |
setStatementParameters(PreparedStatement statement,
boolean setDefaultId)
Sets the parameters for a prepared statement following the parameter order defined in
Table.PATTERNS. |
getSequenceNumber, human, setDoubleParameter, setIntParameterpublic static final long serialVersionUID
public String pattern_id
public int[] segmentIndex
public double[] segmentFraction
public com.vividsolutions.jts.geom.LineString geometry
public String name
public String route_id
public int direction_id
public static com.google.common.base.Joiner joiner
public String feed_id
public Pattern(List<String> orderedStops, Collection<Trip> trips, com.vividsolutions.jts.geom.LineString patternGeometry)
orderedStops - trips - the first trip will serve as an exemplar for all the others.patternGeometry - public String getId()
EntitygetId in class Entitypublic void setStatementParameters(PreparedStatement statement, boolean setDefaultId) throws SQLException
Table.PATTERNS. JDBC prepared statement parameters use a one-based index.setStatementParameters in class EntitySQLExceptionCopyright © 2019. All rights reserved.