ItEr32S12CUAsignacionGrupoRecursosAPlanificacionItEr31S15: Adding method to retrieve specific and generic allocations

This commit is contained in:
Óscar González Fernández 2009-10-28 20:53:49 +01:00
parent ad09773692
commit 04abf12b2d

View file

@ -109,4 +109,14 @@ public class AggregateOfResourceAllocations {
return one.compareTo(other) > 0 ? one : other;
}
public List<SpecificResourceAllocation> getSpecificAllocations() {
return ResourceAllocation.getOfType(SpecificResourceAllocation.class,
resourceAllocations);
}
public List<GenericResourceAllocation> getGenericAllocations() {
return ResourceAllocation.getOfType(GenericResourceAllocation.class,
resourceAllocations);
}
}