Toshio Koide

Update getResourceAllocation() of LinkResourceAllocations to return set of resource allocations

......@@ -3,7 +3,8 @@ package org.onlab.onos.net.resource;
/**
* Representation of allocated bandwidth resource.
*/
public class BandwidthResourceAllocation extends BandwidthResourceRequest {
public class BandwidthResourceAllocation extends BandwidthResourceRequest
implements ResourceAllocation {
/**
* Creates a new {@link BandwidthResourceAllocation} with {@link Bandwidth}
* object.
......
......@@ -3,7 +3,8 @@ package org.onlab.onos.net.resource;
/**
* Representation of allocated lambda resource.
*/
public class LambdaResourceAllocation extends LambdaResourceRequest {
public class LambdaResourceAllocation extends LambdaResourceRequest
implements ResourceAllocation {
private final Lambda lambda;
/**
......
package org.onlab.onos.net.resource;
import java.util.Set;
import org.onlab.onos.net.Link;
/**
......@@ -12,5 +14,5 @@ public interface LinkResourceAllocations extends LinkResourceRequest {
* @param link the target link
* @return allocated resource for the link
*/
ResourceAllocation getResourceAllocation(Link link);
Set<ResourceAllocation> getResourceAllocation(Link link);
}
......