Toshio Koide

Implement link resource request/allocation objects.

......@@ -3,6 +3,14 @@ package org.onlab.onos.net.resource;
/**
* Representation of allocated bandwidth resource.
*/
public interface BandwidthResourceAllocation extends BandwidthResourceRequest {
public class BandwidthResourceAllocation extends BandwidthResourceRequest {
/**
* Creates a new {@link BandwidthResourceAllocation} with {@link Bandwidth}
* object.
*
* @param bandwidth allocated bandwidth
*/
public BandwidthResourceAllocation(Bandwidth bandwidth) {
super(bandwidth);
}
}
......
......@@ -3,7 +3,7 @@ package org.onlab.onos.net.resource;
/**
* Representation of a request for bandwidth resource.
*/
public final class BandwidthResourceRequest implements ResourceRequest {
public class BandwidthResourceRequest implements ResourceRequest {
private final Bandwidth bandwidth;
/**
......
......@@ -3,11 +3,25 @@ package org.onlab.onos.net.resource;
/**
* Representation of allocated lambda resource.
*/
public interface LambdaResourceAllocation extends LambdaResourceRequest {
public class LambdaResourceAllocation extends LambdaResourceRequest {
private final Lambda lambda;
/**
* Creates a new {@link LambdaResourceAllocation} with {@link Lambda}
* object.
*
* @param lambda allocated lambda
*/
public LambdaResourceAllocation(Lambda lambda) {
this.lambda = lambda;
}
/**
* Returns the lambda resource.
*
* @return the lambda resource
*/
Lambda lambda();
Lambda lambda() {
return lambda;
}
}
......
......@@ -5,7 +5,7 @@ import org.onlab.onos.net.Link;
/**
* Representation of allocated link resources.
*/
public interface LinkResourceAllocations extends LinkResourceRequest {
public interface LinkResourceAllocations {
/**
* Returns allocated resource for the given link.
*
......