|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface GWS
Object representing a Graph Weighting Scheme containing :
Method Summary | |
---|---|
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 e)
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. |
Method Detail |
---|
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 edge
void setWeight(E e, double w)
e
- the edgew
- the weightboolean existsWeight(org.openrdf.model.URI predicate)
predicate
-
Double getWeight(org.openrdf.model.URI e)
predicate
- the predicate
void setWeight(org.openrdf.model.URI e, double w)
e
- the default URIw
- the weight
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |