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:37:51 -0700
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
d707d7a88613ede04a5b9e27ec369722228699cc
d707d7a8
1 parent
65e890f1
Update getResourceAllocation() of LinkResourceAllocations to return set of resource allocations
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
3 deletions
core/api/src/main/java/org/onlab/onos/net/resource/BandwidthResourceAllocation.java
core/api/src/main/java/org/onlab/onos/net/resource/LambdaResourceAllocation.java
core/api/src/main/java/org/onlab/onos/net/resource/LinkResourceAllocations.java
core/api/src/main/java/org/onlab/onos/net/resource/BandwidthResourceAllocation.java
View file @
d707d7a
...
...
@@ -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.
...
...
core/api/src/main/java/org/onlab/onos/net/resource/LambdaResourceAllocation.java
View file @
d707d7a
...
...
@@ -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
;
/**
...
...
core/api/src/main/java/org/onlab/onos/net/resource/LinkResourceAllocations.java
View file @
d707d7a
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
);
}
...
...
Please
register
or
login
to post a comment