slib.sglib.model.impl.graph.weight
Class GWS_impl

java.lang.Object
  extended by 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.
 
Method Summary
 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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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 -
Method Detail

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.