public interface GWS
Modifier and Type | Method and Description |
---|---|
boolean |
existsWeight(E e)
Check if a specific weight is specified for this edge.
|
boolean |
existsWeight(org.openrdf.model.URI predicate)
Check if a weight is defined for a specific predicate.
|
double |
getDefaultWeight()
The default weight associated to an edge
|
double |
getWeight(E e)
Access to the weight of the edge.
|
Double |
getWeight(org.openrdf.model.URI predicate)
Access to the weight defined for a specific predicate.
|
void |
setDefaultWeight(double w)
Set the weight defined by default
|
void |
setWeight(E e,
double w)
Set the weight for an edge
|
void |
setWeight(org.openrdf.model.URI e,
double w)
Set the default weight for the specified URI.
|
double getDefaultWeight()
void setDefaultWeight(double w)
w
- the new default weightboolean existsWeight(E e)
e
- the edge we want to check if a weight is specified for.double getWeight(E e)
e
- the edgevoid setWeight(E e, double w)
e
- the edgew
- the weightboolean existsWeight(org.openrdf.model.URI predicate)
predicate
- Double getWeight(org.openrdf.model.URI predicate)
predicate
- the predicatevoid setWeight(org.openrdf.model.URI e, double w)
e
- the default URIw
- the weightCopyright © 2014. All rights reserved.