commit | a363f43b96788987298034a9c7979330f15eee23 | [log] [tgz] |
---|---|---|
author | Toshio Koide <t-koide@onlab.us> | Thu Oct 23 12:49:40 2014 -0700 |
committer | Toshio Koide <t-koide@onlab.us> | Thu Oct 23 12:49:40 2014 -0700 |
tree | 7e542e524a4e87b1796fb384697d3907e023e06a | |
parent | d1865a4021b93ecdde9e1ad0cf5475f18ca35caa [diff] |
Cosmetic changes
diff --git a/core/api/src/main/java/org/onlab/onos/net/resource/BandwidthResourceAllocation.java b/core/api/src/main/java/org/onlab/onos/net/resource/BandwidthResourceAllocation.java index 37b56fe..5995d5f 100644 --- a/core/api/src/main/java/org/onlab/onos/net/resource/BandwidthResourceAllocation.java +++ b/core/api/src/main/java/org/onlab/onos/net/resource/BandwidthResourceAllocation.java
@@ -5,6 +5,12 @@ */ 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 BandwidthResourceAllocation(Bandwidth bandwidth) { super(bandwidth); } - - @Override - public ResourceType type() { - return ResourceType.BANDWIDTH; - } }
diff --git a/core/api/src/main/java/org/onlab/onos/net/resource/ResourceAllocation.java b/core/api/src/main/java/org/onlab/onos/net/resource/ResourceAllocation.java index 93e6ea5..3ddadbc 100644 --- a/core/api/src/main/java/org/onlab/onos/net/resource/ResourceAllocation.java +++ b/core/api/src/main/java/org/onlab/onos/net/resource/ResourceAllocation.java
@@ -4,5 +4,11 @@ * 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(); }