com.att.gs.codip.resource.rgraph
Class RGUtility

java.lang.Object
  |
  +--com.att.gs.codip.resource.rgraph.RGUtility

public class RGUtility
extends java.lang.Object

A colleciton static of utility methods.


Constructor Summary
RGUtility()
           
 
Method Summary
static void fullGC()
          Perform a full garbage collection.
static void printRGEdge(java.io.PrintStream outStream, RGEdge theRGEdge)
          Prints a property to the provided PrintStream.
static void printRGLiteral(java.io.PrintStream outStream, RGLiteral theRGLiteral)
          Prints a literal to the provided PrintStream.
static void printRGNode(java.io.PrintStream outStream, RGNode theNode)
          Prints a class to the provided PrintStream.
static void printRGraph(java.io.PrintStream outStream, RGraph aGraph)
          Prints an ontology, and all its components, to the provided PrintStream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RGUtility

public RGUtility()
Method Detail

fullGC

public static void fullGC()
Perform a full garbage collection. Repeatedly call the system garbage collection funciton until free memory stops increasing. This ensures that all available heap space is reclaimed. When working with large ontologies, this method may be useful after parsing or building the model to reclaim heap space.


printRGraph

public static void printRGraph(java.io.PrintStream outStream,
                               RGraph aGraph)
                        throws java.lang.Exception
Prints an ontology, and all its components, to the provided PrintStream.

Parameters:
outStream - The PrintStream to use.
aGraph - The ontology to print.
java.lang.Exception

printRGNode

public static void printRGNode(java.io.PrintStream outStream,
                               RGNode theNode)
                        throws java.lang.Exception
Prints a class to the provided PrintStream.

Parameters:
outStream - The PrintStream to use.
java.lang.Exception

printRGEdge

public static void printRGEdge(java.io.PrintStream outStream,
                               RGEdge theRGEdge)
                        throws java.lang.Exception
Prints a property to the provided PrintStream.

Parameters:
outStream - The PrintStream to use.
theRGEdge - The property to print.
java.lang.Exception

printRGLiteral

public static void printRGLiteral(java.io.PrintStream outStream,
                                  RGLiteral theRGLiteral)
                           throws java.lang.Exception
Prints a literal to the provided PrintStream.

Parameters:
outStream - The PrintStream to use.
theRGLiteral - The literal to print.
java.lang.Exception


CODIP AT&T Government Solutions, Inc.