@Entity
public class TravelTimesForStopPath
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
TravelTimesForStopPath.HowSet
This enumeration is for keeping track of how the travel times were
determined.
|
Constructor and Description |
---|
TravelTimesForStopPath(int configRev,
int travelTimesRev,
java.lang.String stopPathId,
double travelTimeSegmentDistance,
java.util.List<java.lang.Integer> travelTimesMsec,
int stopTimeMsec,
int daysOfWeekOverride,
TravelTimesForStopPath.HowSet howSet,
Trip trip)
Constructs a new TravelTimesForStopPath object.
|
Modifier and Type | Method and Description |
---|---|
TravelTimesForStopPath |
clone(int newTravelTimesRev)
Creates a new object.
|
boolean |
equals(java.lang.Object obj)
Defined so can use as key in map
|
int |
getConfigRev()
Getter Methods
|
int |
getDaysOfWeekOverride() |
TravelTimesForStopPath.HowSet |
getHowSet() |
int |
getNumberTravelTimeSegments() |
java.lang.String |
getStopPathId() |
int |
getStopPathTravelTimeMsec()
Returns total travel time for the stop path.
|
int |
getStopTimeMsec()
How long the vehicle is expected to dwell at stop.
|
static java.util.List<TravelTimesForStopPath> |
getTravelTimes(org.hibernate.SessionFactory sessionFactory,
int configRev)
Reads in all the travel times for the specified rev
|
double |
getTravelTimeSegmentLength()
The travel time segment distance specifies how the stop path is divided
up with respect to travel times.
|
int |
getTravelTimeSegmentMsec(int segmentIndex)
Returns the travel time for the specified travel time segment in msec
|
java.util.List<java.lang.Integer> |
getTravelTimesMsec() |
int |
getTravelTimesRev() |
int |
hashCode()
Defined so can use as key in map
|
java.lang.String |
toString() |
java.lang.String |
toStringEmphasizeTravelTimes()
For when the travelTimesMsec are most important element.
|
public TravelTimesForStopPath(int configRev, int travelTimesRev, java.lang.String stopPathId, double travelTimeSegmentDistance, java.util.List<java.lang.Integer> travelTimesMsec, int stopTimeMsec, int daysOfWeekOverride, TravelTimesForStopPath.HowSet howSet, Trip trip) throws java.lang.ArrayIndexOutOfBoundsException
configRev
- travelTimesRev
- stopPathId
- travelTimeSegmentDistance
- travelTimesMsec
- The travel times for the travel time segments.stopTimeMsec
- howSet
- daysOfWeekOverride
- trip
- for logging useful error message. OK if null.java.lang.ArrayIndexOutOfBoundsException
- Thrown if not enough memory allocated for column
travelTimesMsec for serializing the object.public TravelTimesForStopPath clone(int newTravelTimesRev)
newTravelTimesRev
- The new travel times rev to use for the clonepublic java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toStringEmphasizeTravelTimes()
public int getConfigRev()
public int getTravelTimesRev()
public java.lang.String getStopPathId()
public double getTravelTimeSegmentLength()
public java.util.List<java.lang.Integer> getTravelTimesMsec()
public int getNumberTravelTimeSegments()
public int getStopPathTravelTimeMsec()
public int getTravelTimeSegmentMsec(int segmentIndex)
segmentIndex
- public int getStopTimeMsec()
public int getDaysOfWeekOverride()
public TravelTimesForStopPath.HowSet getHowSet()
public static java.util.List<TravelTimesForStopPath> getTravelTimes(org.hibernate.SessionFactory sessionFactory, int configRev)
sessionFactory
- configRev
- public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object