org.qriterium.dogma
Class ARPAConnectionGenerator

java.lang.Object
  extended by org.qriterium.dogma.ARPAConnectionGenerator

public class ARPAConnectionGenerator
extends java.lang.Object


Constructor Summary
ARPAConnectionGenerator()
           
 
Method Summary
static java.util.Vector<DogmaResource> createRandomConnections(java.util.Vector<DogmaResource> res)
          Creates random connections for given resources.
static java.util.Vector<DogmaResource> createRandomResources()
           
static java.util.Vector<DogmaResource> createStraightConnections(java.util.Vector<DogmaResource> res)
          Creates straight connections for DogmaGraphWalker debugging purposes.
static DogmaResource getResource()
           
static java.util.Vector<DogmaResource> getResourceVector()
           
static java.util.Vector<DogmaResource> getResourceVectorWithUris()
           
static DogmaResource getResourceWithUris()
           
static DogmaURI getURI()
           
static java.util.Vector<DogmaURI> getURIVector()
           
static void printConnections(java.util.Vector<DogmaResource> res)
          Prints all the connections of given resources.
static void printOnlyOutConnections(java.util.Vector<DogmaResource> res)
          Prints only the connections pointing out from the handled resource
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ARPAConnectionGenerator

public ARPAConnectionGenerator()
Method Detail

createRandomResources

public static java.util.Vector<DogmaResource> createRandomResources()

createRandomConnections

public static java.util.Vector<DogmaResource> createRandomConnections(java.util.Vector<DogmaResource> res)
Creates random connections for given resources. Connections are only created to point to resources given as parameter.

Parameters:
res - The original resources
Returns:
resource vector with random connections

createStraightConnections

public static java.util.Vector<DogmaResource> createStraightConnections(java.util.Vector<DogmaResource> res)
Creates straight connections for DogmaGraphWalker debugging purposes. Connections are created: res1 -> res2, res2 -> res3, ... resN -> res1 Helps demostrating the graph walk.

Parameters:
res - The original resources
Returns:
resources with straight forward connections

printConnections

public static void printConnections(java.util.Vector<DogmaResource> res)
Prints all the connections of given resources.

Parameters:
res -

printOnlyOutConnections

public static void printOnlyOutConnections(java.util.Vector<DogmaResource> res)
Prints only the connections pointing out from the handled resource

Parameters:
res -

getResource

public static DogmaResource getResource()

getResourceVector

public static java.util.Vector<DogmaResource> getResourceVector()

getURI

public static DogmaURI getURI()

getURIVector

public static java.util.Vector<DogmaURI> getURIVector()

getResourceVectorWithUris

public static java.util.Vector<DogmaResource> getResourceVectorWithUris()

getResourceWithUris

public static DogmaResource getResourceWithUris()