Toggle navigation
Toggle navigation
This project
Loading...
Sign in
홍길동
/
onos
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
Toshio Koide
2014-10-23 12:49:40 -0700
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
a363f43b96788987298034a9c7979330f15eee23
a363f43b
1 parent
d1865a40
Cosmetic changes
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
5 deletions
core/api/src/main/java/org/onlab/onos/net/resource/BandwidthResourceAllocation.java
core/api/src/main/java/org/onlab/onos/net/resource/ResourceAllocation.java
core/api/src/main/java/org/onlab/onos/net/resource/BandwidthResourceAllocation.java
View file @
a363f43
...
...
@@ -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
;
}
}
...
...
core/api/src/main/java/org/onlab/onos/net/resource/ResourceAllocation.java
View file @
a363f43
...
...
@@ -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
();
}
...
...
Please
register
or
login
to post a comment