citysdk.tourism.client.poi.single
Class Route

java.lang.Object
  extended by citysdk.tourism.client.poi.base.POIBaseType
      extended by citysdk.tourism.client.poi.base.POIType
          extended by citysdk.tourism.client.poi.single.POI
              extended by citysdk.tourism.client.poi.single.Route
All Implemented Interfaces:
Deserializable

public class Route
extends POI

A simple representation of a Route.

A Route is a set of PointOfInterest ordered by a given theme - represented by a ListPointOfInterest.

Author:
Pedro Cruz

Constructor Summary
Route()
          Initializes an empty Route with an empty ListPointOfInterest.
 
Method Summary
 void addPoi(PointOfInterest poi)
          Adds a PointOfInterest to the Route.
 ListPointOfInterest getListPoi()
          Gets the ListPointOfInterest of the Route.
 int getNumPois()
          Gets the number of PointOfInterests that the Route has.
 PointOfInterest getPoi(int i)
          Gets the PointOfInterest in a given index of a Route.
 
Methods inherited from class citysdk.tourism.client.poi.single.POI
getLocation, hasAddress, setLocation
 
Methods inherited from class citysdk.tourism.client.poi.base.POIType
addCategory, addDescription, addLabel, addLink, addTime, getCategory, getDescription, getLabel, getLink, getTime, hasCategories, hasDescriptions, hasLabels, hasLinks, hasTimes
 
Methods inherited from class citysdk.tourism.client.poi.base.POIBaseType
getAuthor, getBase, getCreated, getDeleted, getHref, getId, getLang, getLicense, getType, getUpdated, getValue, setAuthor, setBase, setCreated, setDeleted, setHref, setId, setLang, setLicense, setType, setUpdated, setValue
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Route

public Route()
Initializes an empty Route with an empty ListPointOfInterest.

Method Detail

addPoi

public void addPoi(PointOfInterest poi)
Adds a PointOfInterest to the Route.

Parameters:
poi - the PointOfInterest to be added.

getNumPois

public int getNumPois()
Gets the number of PointOfInterests that the Route has.

Returns:
the number of total PointOfInterest.

getPoi

public PointOfInterest getPoi(int i)
Gets the PointOfInterest in a given index of a Route.

Parameters:
i - the index of the PointOfInterest.
Returns:
the PointOfInterest stored in the index.

getListPoi

public ListPointOfInterest getListPoi()
Gets the ListPointOfInterest of the Route.

Returns:
the ListPointOfInterest of the Route.