OSID Logo
OSID Specifications
topology package
Version 3.1.0
Interfaceosid.topology.GraphList
Implementsosid.OsidList
Used Byosid.topology.EdgeGraphSession
osid.topology.GraphHierarchySession
osid.topology.GraphLookupSession
osid.topology.GraphQuerySession
osid.topology.GraphSearchResults
osid.topology.NodeGraphSession
osid.topology.path.PathGraphSession
osid.topology.rules.EdgeEnablerGraphSession
Description

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

while (gl.hasNext()) {
     Graph graph = gl.getNextGraph();
}
                
or
while (gl.hasNext()) {
     Graph[] graphs = gl.getNextGraphs(gl.available());
}
                
MethodgetNextGraph
Description

Gets the next Graph in this list.

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

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

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