public class GWS_impl extends Object implements slib.sglib.model.graph.weight.GWS
GWS
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(slib.sglib.model.graph.elements.E e) |
boolean |
existsWeight(org.openrdf.model.URI e) |
double |
getDefaultWeight() |
double |
getWeight(slib.sglib.model.graph.elements.E e) |
Double |
getWeight(org.openrdf.model.URI e) |
void |
setDefaultWeight(double w) |
void |
setWeight(slib.sglib.model.graph.elements.E e,
double w) |
void |
setWeight(org.openrdf.model.URI e,
double w) |
String |
toString() |
public GWS_impl()
public GWS_impl(double defaultWeight)
defaultWeight
- public double getDefaultWeight()
getDefaultWeight
in interface slib.sglib.model.graph.weight.GWS
public void setDefaultWeight(double w)
setDefaultWeight
in interface slib.sglib.model.graph.weight.GWS
public boolean existsWeight(slib.sglib.model.graph.elements.E e)
existsWeight
in interface slib.sglib.model.graph.weight.GWS
public double getWeight(slib.sglib.model.graph.elements.E e)
getWeight
in interface slib.sglib.model.graph.weight.GWS
public void setWeight(slib.sglib.model.graph.elements.E e, double w)
setWeight
in interface slib.sglib.model.graph.weight.GWS
public boolean existsWeight(org.openrdf.model.URI e)
existsWeight
in interface slib.sglib.model.graph.weight.GWS
public Double getWeight(org.openrdf.model.URI e)
getWeight
in interface slib.sglib.model.graph.weight.GWS
public void setWeight(org.openrdf.model.URI e, double w)
setWeight
in interface slib.sglib.model.graph.weight.GWS
Copyright © 2014. All rights reserved.