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
2014-11-05 09:06:29 -0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
d6a18709c629ed9c2e29df6294a942d16bfa72f8
d6a18709
1 parent
1f8cd5ff
Add more descriptive Javadoc
Change-Id: I531722465a7575793c3efbf0bf44ee4ff9bac928
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
core/api/src/main/java/org/onlab/onos/net/intent/constraint/BooleanConstraint.java
core/api/src/main/java/org/onlab/onos/net/intent/constraint/BooleanConstraint.java
View file @
d6a1870
...
...
@@ -35,6 +35,15 @@ public abstract class BooleanConstraint implements Constraint {
*/
public
abstract
boolean
isValid
(
Link
link
,
LinkResourceService
resourceService
);
/**
* {@inheritDoc}
*
* Negative return value means the specified link does not satisfy this constraint.
*
* @param link {@inheritDoc}
* @param resourceService {@inheritDoc}
* @return {@inheritDoc}
*/
@Override
public
double
cost
(
Link
link
,
LinkResourceService
resourceService
)
{
return
isValid
(
link
,
resourceService
)
?
+
1
:
-
1
;
...
...
Please
register
or
login
to post a comment