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
Sho SHIMIZU
2015-11-25 15:48:48 -0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
9e1e9deec96db12b0635c8a5bb703b8f67dfff78
9e1e9dee
1 parent
d9fe3a3f
Add Javadoc
Change-Id: I14530d5f0f6f156dcd90a1d44109275ad31f3975
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
core/api/src/main/java/org/onosproject/net/newresource/ResourcePath.java
core/api/src/main/java/org/onosproject/net/newresource/ResourcePath.java
View file @
9e1e9de
...
...
@@ -143,12 +143,27 @@ public abstract class ResourcePath {
return
Optional
.
ofNullable
(
parent
);
}
/**
* Returns a child resource path of this instance with specifying the child object.
* The child resource path is discrete-type.
*
* @param child child object
* @return a child resource path
*/
public
ResourcePath
child
(
Object
child
)
{
checkState
(
this
instanceof
Discrete
);
return
new
Discrete
((
Discrete
)
this
,
child
);
}
/**
* Returns a child resource path of this instance with specifying a child object and
* value. The child resource path is continuous-type.
*
* @param child child object
* @param value value
* @return a child resource path
*/
public
ResourcePath
child
(
Object
child
,
double
value
)
{
checkState
(
this
instanceof
Discrete
);
...
...
Please
register
or
login
to post a comment