| Constructor and Description |
|---|
GWS_impl()
Create a weighting scheme with the default weight set to 1.
|
GWS_impl(double defaultWeight)
Create a weighting scheme with a specific default weight.
|
| 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 e)
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.
|
String |
toString() |
public GWS_impl()
public GWS_impl(double defaultWeight)
defaultWeight - public double getDefaultWeight()
GWSgetDefaultWeight in interface GWSpublic void setDefaultWeight(double w)
GWSsetDefaultWeight in interface GWSw - the new default weightpublic boolean existsWeight(E e)
GWSexistsWeight in interface GWSe - the edge we want to check if a weight is specified for.public double getWeight(E e)
GWSpublic void setWeight(E e, double w)
GWSpublic boolean existsWeight(org.openrdf.model.URI e)
GWSexistsWeight in interface GWSpublic Double getWeight(org.openrdf.model.URI e)
GWSpublic void setWeight(org.openrdf.model.URI e,
double w)
GWSCopyright © 2014. All rights reserved.