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 11:46:44 -0700
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
fa0dff61cfbf900e89c87b64a98319320c201823
fa0dff61
1 parent
569ca70f
Implement link resource request/allocation objects.
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
28 additions
and
6 deletions
core/api/src/main/java/org/onlab/onos/net/resource/BandwidthResourceAllocation.java
core/api/src/main/java/org/onlab/onos/net/resource/BandwidthResourceRequest.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 @
fa0dff6
...
...
@@ -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
);
}
}
...
...
core/api/src/main/java/org/onlab/onos/net/resource/BandwidthResourceRequest.java
View file @
fa0dff6
...
...
@@ -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
;
/**
...
...
core/api/src/main/java/org/onlab/onos/net/resource/LambdaResourceAllocation.java
View file @
fa0dff6
...
...
@@ -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
;
}
}
...
...
core/api/src/main/java/org/onlab/onos/net/resource/LinkResourceAllocations.java
View file @
fa0dff6
...
...
@@ -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.
*
...
...
Please
register
or
login
to post a comment