ItEr60S08CUAsignacionRecursosLimitantesItEr59S08: Make the method generic so it can be reused for another types
This commit is contained in:
parent
c2a75ee836
commit
afe96dde85
1 changed files with 3 additions and 4 deletions
|
|
@ -334,10 +334,9 @@ public class QueuesState {
|
|||
return onlyAssigned(toList(topologicalIterator(subGraph)));
|
||||
}
|
||||
|
||||
private TopologicalOrderIterator<LimitingResourceQueueElement, LimitingResourceQueueDependency> topologicalIterator(
|
||||
DirectedGraph<LimitingResourceQueueElement, LimitingResourceQueueDependency> subGraph) {
|
||||
return new TopologicalOrderIterator<LimitingResourceQueueElement, LimitingResourceQueueDependency>(
|
||||
subGraph);
|
||||
public static <V, E> TopologicalOrderIterator<V, E> topologicalIterator(
|
||||
DirectedGraph<V, E> subGraph) {
|
||||
return new TopologicalOrderIterator<V, E>(subGraph);
|
||||
}
|
||||
|
||||
private static <T> List<T> toList(final Iterator<T> iterator) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue