Update getResourceAllocation() of LinkResourceAllocations to return set of resource allocations
Showing
3 changed files
with
7 additions
and
3 deletions
| ... | @@ -3,7 +3,8 @@ package org.onlab.onos.net.resource; | ... | @@ -3,7 +3,8 @@ package org.onlab.onos.net.resource; |
| 3 | /** | 3 | /** |
| 4 | * Representation of allocated bandwidth resource. | 4 | * Representation of allocated bandwidth resource. |
| 5 | */ | 5 | */ |
| 6 | -public class BandwidthResourceAllocation extends BandwidthResourceRequest { | 6 | +public class BandwidthResourceAllocation extends BandwidthResourceRequest |
| 7 | + implements ResourceAllocation { | ||
| 7 | /** | 8 | /** |
| 8 | * Creates a new {@link BandwidthResourceAllocation} with {@link Bandwidth} | 9 | * Creates a new {@link BandwidthResourceAllocation} with {@link Bandwidth} |
| 9 | * object. | 10 | * object. | ... | ... |
| ... | @@ -3,7 +3,8 @@ package org.onlab.onos.net.resource; | ... | @@ -3,7 +3,8 @@ package org.onlab.onos.net.resource; |
| 3 | /** | 3 | /** |
| 4 | * Representation of allocated lambda resource. | 4 | * Representation of allocated lambda resource. |
| 5 | */ | 5 | */ |
| 6 | -public class LambdaResourceAllocation extends LambdaResourceRequest { | 6 | +public class LambdaResourceAllocation extends LambdaResourceRequest |
| 7 | + implements ResourceAllocation { | ||
| 7 | private final Lambda lambda; | 8 | private final Lambda lambda; |
| 8 | 9 | ||
| 9 | /** | 10 | /** | ... | ... |
| 1 | package org.onlab.onos.net.resource; | 1 | package org.onlab.onos.net.resource; |
| 2 | 2 | ||
| 3 | +import java.util.Set; | ||
| 4 | + | ||
| 3 | import org.onlab.onos.net.Link; | 5 | import org.onlab.onos.net.Link; |
| 4 | 6 | ||
| 5 | /** | 7 | /** |
| ... | @@ -12,5 +14,5 @@ public interface LinkResourceAllocations extends LinkResourceRequest { | ... | @@ -12,5 +14,5 @@ public interface LinkResourceAllocations extends LinkResourceRequest { |
| 12 | * @param link the target link | 14 | * @param link the target link |
| 13 | * @return allocated resource for the link | 15 | * @return allocated resource for the link |
| 14 | */ | 16 | */ |
| 15 | - ResourceAllocation getResourceAllocation(Link link); | 17 | + Set<ResourceAllocation> getResourceAllocation(Link link); |
| 16 | } | 18 | } | ... | ... |
-
Please register or login to post a comment