org.qriterium.dogma
Class DogmaGraphHandler

java.lang.Object
  extended by org.qriterium.dogma.DogmaGraphHandler
All Implemented Interfaces:
iDogmaGraphHandler

public class DogmaGraphHandler
extends java.lang.Object
implements iDogmaGraphHandler


Method Summary
 void addResource(java.util.Vector<DogmaResource> r)
          Adds DogmaResources to the graph.
static DogmaGraphHandler getInstance()
          Returns the singleton instance of DogmaGraphHandler
static void main(java.lang.String[] args)
          Main class.
 void setGraphWalkDistance(int distance)
          User API for changing the amount of steps taken in graph walk (default: 3)
 void setResourceBase(ResourceBase rb)
          Sets the database to use the given configuration file.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static DogmaGraphHandler getInstance()
Returns the singleton instance of DogmaGraphHandler

Returns:
singleton instance

setResourceBase

public void setResourceBase(ResourceBase rb)
Sets the database to use the given configuration file.

Specified by:
setResourceBase in interface iDogmaGraphHandler
Parameters:
confFile -

setGraphWalkDistance

public void setGraphWalkDistance(int distance)
User API for changing the amount of steps taken in graph walk (default: 3)

Specified by:
setGraphWalkDistance in interface iDogmaGraphHandler
Parameters:
distance - number of steps to be taken

addResource

public void addResource(java.util.Vector<DogmaResource> r)
Adds DogmaResources to the graph. If Guess has already been initialized, we only add resources to the graph. Otherwise we'll write a gdf-file and launch Guess through it.

Specified by:
addResource in interface iDogmaGraphHandler
Parameters:
r - DogmaResources we want to add.

main

public static void main(java.lang.String[] args)
Main class. For for debugging purposes only.

Parameters:
args -