Toshio Koide

Cosmetic changes

......@@ -5,6 +5,12 @@ package org.onlab.onos.net.resource;
*/
public class BandwidthResourceAllocation extends BandwidthResourceRequest
implements ResourceAllocation {
@Override
public ResourceType type() {
return ResourceType.BANDWIDTH;
}
/**
* Creates a new {@link BandwidthResourceAllocation} with {@link Bandwidth}
* object.
......@@ -14,9 +20,4 @@ public class BandwidthResourceAllocation extends BandwidthResourceRequest
public BandwidthResourceAllocation(Bandwidth bandwidth) {
super(bandwidth);
}
@Override
public ResourceType type() {
return ResourceType.BANDWIDTH;
}
}
......
......@@ -4,5 +4,11 @@ package org.onlab.onos.net.resource;
* Abstraction of allocated resource.
*/
public interface ResourceAllocation extends ResourceRequest {
/**
* Returns the type of the allocated resource.
*
* @return the type of the allocated resource
*/
ResourceType type();
}
......