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()
GWS
getDefaultWeight
in interface GWS
public void setDefaultWeight(double w)
GWS
setDefaultWeight
in interface GWS
w
- the new default weightpublic boolean existsWeight(E e)
GWS
existsWeight
in interface GWS
e
- the edge we want to check if a weight is specified for.public double getWeight(E e)
GWS
public void setWeight(E e, double w)
GWS
public boolean existsWeight(org.openrdf.model.URI e)
GWS
existsWeight
in interface GWS
public Double getWeight(org.openrdf.model.URI e)
GWS
public void setWeight(org.openrdf.model.URI e, double w)
GWS
Copyright © 2014. All rights reserved.