org.onebusaway.transit_data.model.tripplanning
Class ConstraintsBean

java.lang.Object
  extended by org.onebusaway.transit_data.model.tripplanning.ConstraintsBean
All Implemented Interfaces:
Serializable

public class ConstraintsBean
extends Object
implements Serializable

See Also:
Serialized Form

Constructor Summary
ConstraintsBean()
           
ConstraintsBean(ConstraintsBean c)
           
 
Method Summary
 long getCurrentTime()
           
 double getInitialWaitReluctance()
           
 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.
 long getMaxComputationTime()
           
 int getMaxTransfers()
           
 int getMaxTripDuration()
           
 double getMaxWalkingDistance()
           
 int getMinTransferTime()
           
 Set<String> getModes()
           
 String getOptimizeFor()
           
 int getResultCount()
           
 ItineraryBean getSelectedItinerary()
           
 int getTransferCost()
           
 double getWaitReluctance()
           
 double getWalkReluctance()
           
 double getWalkSpeed()
           
 boolean isArriveBy()
           
 boolean isDepartNow()
           
 boolean isUseRealTime()
           
 void setArriveBy(boolean arriveBy)
           
 void setCurrentTime(long currentTime)
           
 void setDepartNow(boolean departNow)
           
 void setInitialWaitReluctance(double initialWaitReluctance)
           
 void setLookaheadTime(int lookaheadTime)
           
 void setMaxComputationTime(long maxComputationTime)
           
 void setMaxTransfers(int maxTransfers)
           
 void setMaxTripDuration(int maxTripDuration)
           
 void setMaxWalkingDistance(double maxWalkingDistance)
           
 void setMinTransferTime(int minTransferTime)
           
 void setModes(Set<String> modes)
           
 void setOptimizeFor(String optimizeFor)
           
 void setResultCount(int resultCount)
           
 void setSelectedItinerary(ItineraryBean selectedItinerary)
           
 void setTransferCost(int transferCost)
           
 void setUseRealTime(boolean useRealTime)
           
 void setWaitReluctance(double waitReluctance)
           
 void setWalkReluctance(double walkReluctance)
           
 void setWalkSpeed(double walkSpeed)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConstraintsBean

public ConstraintsBean()

ConstraintsBean

public ConstraintsBean(ConstraintsBean c)
Method Detail

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 © 2011 OneBusAway. All Rights Reserved.