OSID Logo
OSID Specifications
mapping route package
Version 3.1.0
Interfaceosid.mapping.route.RouteList
Implementsosid.OsidList
Used Byosid.mapping.route.RouteLookupSession
osid.mapping.route.RouteMapSession
osid.mapping.route.RouteQuerySession
osid.mapping.route.RouteSearchResults
Description

Like all OsidLists, RouteList provides a means for accessing Route elements sequentially either one at a time or many at a time. Examples:

while (rl.hasNext()) {
     Route route = rl.getNextRoute();
}
                
or
while (rl.hasNext()) {
     Route[] routes = rl.getNextRoutes(rl.available());
}
                
MethodgetNextRoute
Description

Gets the next Route in this list.

Returnosid.mapping.route.Route the next Route in this list. The hasNext() method should be used to test that a next Route is available before calling this method.
ErrorsILLEGAL_STATE no more elements available in this list
OPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodgetNextRoutes
Description

Gets the next set of Route elements in this list. The specified amount must be less than or equal to the return from available().

Parameterscardinaln the number of Route elements requested which must be less than or equal to available()
Returnosid.mapping.route.Route[] an array of Route elements. The length of the array is less than or equal to the number specified.
ErrorsILLEGAL_STATE no more elements available in this list
OPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.