OSID Logo
OSID Specifications
mapping path package
Version 3.1.0
Interfaceosid.mapping.path.ObstacleList
Implementsosid.OsidList
Used Byosid.mapping.path.ObstacleLookupSession
osid.mapping.path.ObstacleMapSession
osid.mapping.path.ObstacleQuerySession
osid.mapping.path.ObstacleSearchResults
osid.mapping.path.PathTravelSession
osid.mapping.path.rules.ObstacleEnablerRuleLookupSession
Description

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

while (ol.hasNext()) {
     Obstacle obstacle = ol.getNextObstacle();
}
                
or
while (ol.hasNext()) {
     Obstacle[] obstacles = ol.getNextObstacles(ol.available());
}
                

Like all OsidLists, ObstacleList is stateful and must not be accessed by multiple processing threads.

MethodgetNextObstacle
Description

Gets the next Obstacle in this list.

Returnosid.mapping.path.Obstacle the next Obstacle in this list. The hasNext() method should be used to test that a next Obstacle 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.
MethodgetNextObstacles
Description

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

Parameterscardinaln the number of Obstacle elements requested which must be less than or equal to available()
Returnosid.mapping.path.Obstacle[] an array of Obstacle 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.