org.onebusaway.transit_data_federation.model.tripplanner
Class TripPlannerConstants

java.lang.Object
  extended by org.onebusaway.transit_data_federation.model.tripplanner.TripPlannerConstants

public class TripPlannerConstants
extends Object


Constructor Summary
TripPlannerConstants()
           
 
Method Summary
 double getInitialMaxDistanceToWalkNode()
           
 double getInitialWaitTimePenaltyRatio()
           
 double getMaxDistanceToWalkNode()
           
 double getMaxTransferDistance()
           
 double getMaxTransitVelocity()
           
 long getMinTransferTime()
           
 long getTransferPenalty()
          Additive penalty for making a transfer in travel sequence.
 double getTransferWaitTimePenaltyRatio()
           
 double getWalkingVelocity()
           
 double getWalkTimePenaltyRatio()
           
 boolean isTransferPenaltyAdditive()
          Should the transfer penalty (getTransferPenalty()) be added once for each transfer in a travel sequence (return true) or should it be added just once if transfers are present in a travel sequence, regardless of the total number of transfers (return false).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TripPlannerConstants

public TripPlannerConstants()
Method Detail

getWalkingVelocity

public double getWalkingVelocity()
Returns:
walking velocity in meters/ms

getMaxTransferDistance

public double getMaxTransferDistance()
Returns:
max transfier distance, in meters

getMaxTransitVelocity

public double getMaxTransitVelocity()
Returns:
max transit vehicle velocity, in meters per millisecond

getMinTransferTime

public long getMinTransferTime()
Returns:
min transfer time, in milliseconds

getInitialMaxDistanceToWalkNode

public double getInitialMaxDistanceToWalkNode()

getMaxDistanceToWalkNode

public double getMaxDistanceToWalkNode()

getWalkTimePenaltyRatio

public double getWalkTimePenaltyRatio()

getInitialWaitTimePenaltyRatio

public double getInitialWaitTimePenaltyRatio()
Returns:

getTransferWaitTimePenaltyRatio

public double getTransferWaitTimePenaltyRatio()
Returns:

getTransferPenalty

public long getTransferPenalty()
Additive penalty for making a transfer in travel sequence. See also isTransferPenaltyAdditive() for details on handling multiple transfers.

Returns:
time, in ms, to add to the perceived travel time in the presence of a transfer

isTransferPenaltyAdditive

public boolean isTransferPenaltyAdditive()
Should the transfer penalty (getTransferPenalty()) be added once for each transfer in a travel sequence (return true) or should it be added just once if transfers are present in a travel sequence, regardless of the total number of transfers (return false).

Returns:


Copyright © 2012 OneBusAway. All Rights Reserved.