SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This class encapsulates important attributes for justifying the routing algorithm.
Author: JANField Summary | |
String
|
TYPE_ECONOMY
Most economic route. |
String
|
TYPE_LENGTH
Shortest route. |
String
|
TYPE_SPEED
Fastest route. |
Constructor Summary | |
IWRouteOptions()
Creates a new router option object. |
Method Summary | |
int
|
getCitySpeed()
Returns the average driving speed in cities. |
int
|
getCountryRoadSpeed()
Returns the average driving speed on country roads. |
int
|
getHighwaySpeed()
Returns the average driving speed on highways. |
String
|
getType()
Returns the current routing type. |
void
|
setCitySpeed(citySpeed)
Sets the average driving speed in cities. |
void
|
setCountryRoadSpeed(countryRoadSpeed)
Sets the average driving speed on country roads. |
void
|
setHighwaySpeed(highwaySpeed)
Sets the average driving speed on highways. |
void
|
setType(type)
Sets the routing mode to calculate the route.
The default value is set to IWRouteOptions.TYPE_SPEED. |
String
|
toString()
Returns a string representation for this object. |
Methods inherited from class ARouteOptions |
setShapeEnabled(shapeEnabled) |
isShapeEnabled() |
Field Detail |
String TYPE_ECONOMY
String TYPE_LENGTH
String TYPE_SPEED
Constructor Detail |
IWRouteOptions()
Method Detail |
int getCitySpeed()
int
the average driving speed in cities.
int getCountryRoadSpeed()
int
the average driving speed on country roads
int getHighwaySpeed()
int
the average driving speed on highways
String getType()
String
the current routing type
void setCitySpeed(citySpeed)
int citySpeed
- the average driving speed in cities
void
Throws
an exception if the speed value is not greater than zero.
void setCountryRoadSpeed(countryRoadSpeed)
int countryRoadSpeed
void
Throws
an exception if the speed value is not greater than zero.
void setHighwaySpeed(highwaySpeed)
int highwaySpeed
- the average driving speed on highways
void
Throws
an exception if the speed value is not greater than zero.
void setType(type)
The default value is set to IWRouteOptions.TYPE_SPEED.
String type
- the new routing mode
void
String toString()
String