@Entity
public class Stop
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
Stop(int configRev,
GtfsStop gtfsStop,
TitleFormatter titleFormatter)
Constructor
|
Modifier and Type | Method and Description |
---|---|
static int |
deleteFromRev(org.hibernate.Session session,
int configRev)
Deletes rev from the Stops table
|
boolean |
equals(java.lang.Object obj)
Needed because have a composite ID for Hibernate storage
|
java.lang.Integer |
getCode() |
int |
getConfigRev() |
java.lang.String |
getId() |
Location |
getLoc() |
java.lang.String |
getName() |
static java.util.List<Stop> |
getStops(org.hibernate.Session session,
int configRev)
Returns List of Stop objects for the specified database revision.
|
int |
hashCode()
Needed because have a composite ID for Hibernate storage
|
boolean |
isHidden() |
java.lang.Boolean |
isLayoverStop()
Indicates that vehicle can leave route path before departing this stop
since the driver is taking a break.
|
boolean |
isTimepointStop()
Specifies if system should determine schedule adherence times
for this stop.
|
java.lang.Boolean |
isWaitStop()
Indicates that vehicle is not supposed to depart the stop until the
scheduled departure time.
|
java.lang.String |
toString() |
public Stop(int configRev, GtfsStop gtfsStop, TitleFormatter titleFormatter)
configRev
- gtfsStop
- titleFormatter
- public java.lang.String toString()
toString
in class java.lang.Object
public static int deleteFromRev(org.hibernate.Session session, int configRev) throws org.hibernate.HibernateException
session
- configRev
- org.hibernate.HibernateException
public static java.util.List<Stop> getStops(org.hibernate.Session session, int configRev) throws org.hibernate.HibernateException
session
- configRev
- org.hibernate.HibernateException
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int getConfigRev()
public java.lang.String getId()
public java.lang.Integer getCode()
public java.lang.String getName()
public Location getLoc()
public boolean isTimepointStop()
public java.lang.Boolean isLayoverStop()
public java.lang.Boolean isWaitStop()
public boolean isHidden()