slib.sglib.model.impl.graph.weight
Class GWS_impl
java.lang.Object
slib.sglib.model.impl.graph.weight.GWS_impl
- All Implemented Interfaces:
- slib.sglib.model.graph.weight.GWS
public class GWS_impl
- extends Object
- implements slib.sglib.model.graph.weight.GWS
In memory Graph Weighting Scheme (GWS) implementation of GWS
- Author:
- Sebastien Harispe
Constructor Summary |
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. |
GWS_impl
public GWS_impl()
- Create a weighting scheme with the default weight set to 1.
GWS_impl
public GWS_impl(double defaultWeight)
- Create a weighting scheme with a specific default weight.
- Parameters:
defaultWeight
-
getDefaultWeight
public double getDefaultWeight()
- Specified by:
getDefaultWeight
in interface slib.sglib.model.graph.weight.GWS
setDefaultWeight
public void setDefaultWeight(double w)
- Specified by:
setDefaultWeight
in interface slib.sglib.model.graph.weight.GWS
existsWeight
public boolean existsWeight(slib.sglib.model.graph.elements.E e)
- Specified by:
existsWeight
in interface slib.sglib.model.graph.weight.GWS
getWeight
public double getWeight(slib.sglib.model.graph.elements.E e)
- Specified by:
getWeight
in interface slib.sglib.model.graph.weight.GWS
setWeight
public void setWeight(slib.sglib.model.graph.elements.E e,
double w)
- Specified by:
setWeight
in interface slib.sglib.model.graph.weight.GWS
existsWeight
public boolean existsWeight(org.openrdf.model.URI e)
- Specified by:
existsWeight
in interface slib.sglib.model.graph.weight.GWS
getWeight
public Double getWeight(org.openrdf.model.URI e)
- Specified by:
getWeight
in interface slib.sglib.model.graph.weight.GWS
setWeight
public void setWeight(org.openrdf.model.URI e,
double w)
- Specified by:
setWeight
in interface slib.sglib.model.graph.weight.GWS
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2013. All Rights Reserved.