org.onebusaway.transit_data.model.tripplanning
Class ConstraintsBean
java.lang.Object
org.onebusaway.transit_data.model.tripplanning.ConstraintsBean
- All Implemented Interfaces:
- Serializable
public class ConstraintsBean
- extends Object
- implements Serializable
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConstraintsBean
public ConstraintsBean()
ConstraintsBean
public ConstraintsBean(ConstraintsBean c)
isDepartNow
public boolean isDepartNow()
setDepartNow
public void setDepartNow(boolean departNow)
isArriveBy
public boolean isArriveBy()
setArriveBy
public void setArriveBy(boolean arriveBy)
getResultCount
public int getResultCount()
setResultCount
public void setResultCount(int resultCount)
isUseRealTime
public boolean isUseRealTime()
setUseRealTime
public void setUseRealTime(boolean useRealTime)
getModes
public Set<String> getModes()
setModes
public void setModes(Set<String> modes)
getMaxTripDuration
public int getMaxTripDuration()
- Returns:
- maximum trip duration, in seconds
setMaxTripDuration
public void setMaxTripDuration(int maxTripDuration)
- Parameters:
maxTripDuration
- time, in seconds
getOptimizeFor
public String getOptimizeFor()
setOptimizeFor
public void setOptimizeFor(String optimizeFor)
getWalkSpeed
public double getWalkSpeed()
setWalkSpeed
public void setWalkSpeed(double walkSpeed)
getWalkReluctance
public double getWalkReluctance()
setWalkReluctance
public void setWalkReluctance(double walkReluctance)
getMaxWalkingDistance
public double getMaxWalkingDistance()
setMaxWalkingDistance
public void setMaxWalkingDistance(double maxWalkingDistance)
getInitialWaitReluctance
public double getInitialWaitReluctance()
setInitialWaitReluctance
public void setInitialWaitReluctance(double initialWaitReluctance)
getWaitReluctance
public double getWaitReluctance()
setWaitReluctance
public void setWaitReluctance(double waitReluctance)
getMinTransferTime
public int getMinTransferTime()
setMinTransferTime
public void setMinTransferTime(int minTransferTime)
getTransferCost
public int getTransferCost()
setTransferCost
public void setTransferCost(int transferCost)
getMaxTransfers
public int getMaxTransfers()
setMaxTransfers
public void setMaxTransfers(int maxTransfers)
getMaxComputationTime
public long getMaxComputationTime()
setMaxComputationTime
public void setMaxComputationTime(long maxComputationTime)
getCurrentTime
public long getCurrentTime()
setCurrentTime
public void setCurrentTime(long currentTime)
getLookaheadTime
public int getLookaheadTime()
- When you've specified a departure time, the
lookaheadTime
parameter specifies a time value, in seconds, that will shift the departure
time forward to include trips that start after the lookahead-adjusted start
time. Why not just modify the departure time yourself? Trips that start
between the lookahead departure time and the original departure time are
not counted against resultCount
. This parameter is designed to
allow you to include trips that JUST left in the result set while still
including the trips that depart as normal.
For arriveBy trips, the semantics are reversed aka the arrival time is
shifted to be later by the lookaheadTime
parameter.
- Returns:
- time, in seconds
setLookaheadTime
public void setLookaheadTime(int lookaheadTime)
getSelectedItinerary
public ItineraryBean getSelectedItinerary()
setSelectedItinerary
public void setSelectedItinerary(ItineraryBean selectedItinerary)
Copyright © 2012 OneBusAway. All Rights Reserved.