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:44:55 -0700
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
d1865a4021b93ecdde9e1ad0cf5475f18ca35caa
d1865a40
1 parent
d707d7a8
Add ResourceType field for ResourceAllocation, and change visibility of some of methods
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
19 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/BandwidthResourceRequest.java
core/api/src/main/java/org/onlab/onos/net/resource/LambdaResourceAllocation.java
core/api/src/main/java/org/onlab/onos/net/resource/ResourceAllocation.java
core/api/src/main/java/org/onlab/onos/net/resource/ResourceType.java
core/api/src/main/java/org/onlab/onos/net/resource/BandwidthResourceAllocation.java
View file @
d1865a4
...
...
@@ -14,4 +14,9 @@ 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/BandwidthResourceRequest.java
View file @
d1865a4
...
...
@@ -30,7 +30,7 @@ public class BandwidthResourceRequest implements ResourceRequest {
*
* @return the bandwidth resource
*/
Bandwidth
bandwidth
()
{
public
Bandwidth
bandwidth
()
{
return
bandwidth
;
}
}
...
...
core/api/src/main/java/org/onlab/onos/net/resource/LambdaResourceAllocation.java
View file @
d1865a4
...
...
@@ -7,6 +7,11 @@ public class LambdaResourceAllocation extends LambdaResourceRequest
implements
ResourceAllocation
{
private
final
Lambda
lambda
;
@Override
public
ResourceType
type
()
{
return
ResourceType
.
LAMBDA
;
}
/**
* Creates a new {@link LambdaResourceAllocation} with {@link Lambda}
* object.
...
...
@@ -22,7 +27,7 @@ public class LambdaResourceAllocation extends LambdaResourceRequest
*
* @return the lambda resource
*/
Lambda
lambda
()
{
public
Lambda
lambda
()
{
return
lambda
;
}
}
...
...
core/api/src/main/java/org/onlab/onos/net/resource/ResourceAllocation.java
View file @
d1865a4
...
...
@@ -4,5 +4,5 @@ package org.onlab.onos.net.resource;
* Abstraction of allocated resource.
*/
public
interface
ResourceAllocation
extends
ResourceRequest
{
ResourceType
type
();
}
...
...
core/api/src/main/java/org/onlab/onos/net/resource/ResourceType.java
0 → 100644
View file @
d1865a4
package
org
.
onlab
.
onos
.
net
.
resource
;
public
enum
ResourceType
{
LAMBDA
,
BANDWIDTH
,
}
Please
register
or
login
to post a comment