oracle.panama.spatial.traffic
Class RouteInfo
java.lang.Object
oracle.panama.spatial.traffic.RouteInfo
- public class RouteInfo
- extends java.lang.Object
Provide the information of the route name, and route type.
Constructor Summary |
RouteInfo(java.lang.String name)
Create a RouteInfo instance. |
RouteInfo(java.lang.String name, java.lang.String type)
Create a RouteInfo instance. |
Method Summary |
java.lang.String |
getName()
Returns the route name |
java.lang.String |
getType()
Returns the route type |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RouteInfo
public RouteInfo(java.lang.String name)
- Create a
RouteInfo
instance. Route type is null
. Note the name must be same as shown from function getRoutesInCity(CityInfo)
. So calling getRoutesInCity(CityInfo)
is recommended before specifying the name in the RouteInfo
constructor.
RouteInfo
public RouteInfo(java.lang.String name,
java.lang.String type)
- Create a
RouteInfo
instance. Currently route type is ignored. Note the name must be same as shown from function getRoutesInCity(CityInfo)
. So calling getRoutesInCity(CityInfo)
is recommended before specifying the name in the RouteInfo
constructor.
getName
public java.lang.String getName()
- Returns the route name
-
- Returns:
- the route name
getType
public java.lang.String getType()
- Returns the route type
-
- Returns:
- the route type
Copyright © 2004 Oracle Corporation. All Rights Reserved.