OSID Logo
OSID Specifications
resourcing package
Version 3.0.0
Interfaceosid.resourcing.FoundryList
Implementsosid.OsidList
Used Byosid.resourcing.AvailabilityFoundrySession
osid.resourcing.CommissionFoundrySession
osid.resourcing.CompetencyFoundrySession
osid.resourcing.EffortFoundrySession
osid.resourcing.FoundryHierarchySession
osid.resourcing.FoundryLookupSession
osid.resourcing.FoundryQuerySession
osid.resourcing.FoundrySearchResults
osid.resourcing.JobFoundrySession
osid.resourcing.WorkFoundrySession
show 6 more…
osid.resourcing.rules.AvailabilityEnablerFoundrySession
osid.resourcing.rules.CommissionEnablerFoundrySession
osid.resourcing.rules.JobConstrainerEnablerFoundrySession
osid.resourcing.rules.JobConstrainerFoundrySession
osid.resourcing.rules.JobProcessorEnablerFoundrySession
osid.resourcing.rules.JobProcessorFoundrySession
Description

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

while (fl.hasNext()) {
     Foundry foundry = fl.getNextFoundry();
}            
                
or
while (fl.hasNext()) {
     Foundry[] foundries = fl.getNextFoundries(fl.available());
}            
                
MethodgetNextFoundry
Description

Gets the next Foundry in this list.

Returnosid.resourcing.Foundrythe next Foundry in this list. The hasNext() method should be used to test that a next Foundry is available before calling this method.
ErrorsILLEGAL_STATEno more elements available in this list
OPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodgetNextFoundries
Description

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

Parameterscardinalnthe number of Foundry elements requested which must be less than or equal to available()
Returnosid.resourcing.Foundry[]an array of Foundry elements. The length of the array is less than or equal to the number specified.
ErrorsILLEGAL_STATEno more elements available in this list
OPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.