Toshio Koide | 485b478 | 2014-10-20 19:34:21 -0700 | [diff] [blame] | 1 | package org.onlab.onos.net.resource; |
| 2 | |
Toshio Koide | d707d7a | 2014-10-23 12:37:51 -0700 | [diff] [blame] | 3 | import java.util.Set; |
| 4 | |
Toshio Koide | 485b478 | 2014-10-20 19:34:21 -0700 | [diff] [blame] | 5 | import org.onlab.onos.net.Link; |
| 6 | |
| 7 | /** |
| 8 | * Representation of allocated link resources. |
| 9 | */ |
Toshio Koide | 65e890f | 2014-10-23 12:02:25 -0700 | [diff] [blame] | 10 | public interface LinkResourceAllocations extends LinkResourceRequest { |
Toshio Koide | 485b478 | 2014-10-20 19:34:21 -0700 | [diff] [blame] | 11 | /** |
| 12 | * Returns allocated resource for the given link. |
| 13 | * |
| 14 | * @param link the target link |
| 15 | * @return allocated resource for the link |
| 16 | */ |
Toshio Koide | d707d7a | 2014-10-23 12:37:51 -0700 | [diff] [blame] | 17 | Set<ResourceAllocation> getResourceAllocation(Link link); |
Toshio Koide | 485b478 | 2014-10-20 19:34:21 -0700 | [diff] [blame] | 18 | } |