mro.util.experimentation
Class PathTable

java.lang.Object
  extended by mro.util.experimentation.PathTable

public class PathTable
extends java.lang.Object

Path Table. A class for handling a xml-table of paths.


Field Summary
private  java.lang.String commonPath
           
private  GenericOrderedDoubleHashMap<java.lang.Integer,java.lang.Integer,PathEntry> map
           
 
Constructor Summary
PathTable()
           
 
Method Summary
 java.util.Vector<java.lang.String> getAllPathsWithCommonPath()
           
 java.lang.String getCommonPath()
           
 GenericOrderedDoubleHashMap<java.lang.Integer,java.lang.Integer,PathEntry> getGenericOrderedDoubleHashMap()
           
 void print()
           
static void printDTD(java.io.PrintWriter pw)
          Prints the complete DTD of a Table-XML-file to a PrintWriter.
static void printPartDTD(java.io.PrintWriter pw)
          Prints the DTD of a Table-XML-file to a PrintWriter.
 void printPartXML(java.io.PrintWriter pw)
           
static void printTableXSLReference(java.io.PrintWriter pw)
          Prints a reference to the Table-XSL-file to a PrintWriter.
 void printXML(java.io.PrintWriter pw)
          Prints the Table to a PrintWriter.
 void printXSL(java.io.PrintWriter pw)
          Prints a basic XSL-file for Table XML-files to a PrintWriter.
 void put(int r, int c, PathEntry pe)
           
 void save(java.io.File file)
          Saves a Table-object to the specified file.
 void save(java.lang.String fileName)
          Saves a Table-object to a file with the specified file name.
 void setCommonPath(java.lang.String commonPath)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

commonPath

private java.lang.String commonPath

map

private GenericOrderedDoubleHashMap<java.lang.Integer,java.lang.Integer,PathEntry> map
Constructor Detail

PathTable

public PathTable()
Method Detail

put

public void put(int r,
                int c,
                PathEntry pe)

getCommonPath

public java.lang.String getCommonPath()

setCommonPath

public void setCommonPath(java.lang.String commonPath)

getGenericOrderedDoubleHashMap

public GenericOrderedDoubleHashMap<java.lang.Integer,java.lang.Integer,PathEntry> getGenericOrderedDoubleHashMap()

getAllPathsWithCommonPath

public java.util.Vector<java.lang.String> getAllPathsWithCommonPath()

print

public void print()

save

public void save(java.lang.String fileName)
          throws java.io.IOException
Saves a Table-object to a file with the specified file name.

Throws:
java.io.IOException

save

public void save(java.io.File file)
          throws java.io.IOException
Saves a Table-object to the specified file.

Throws:
java.io.IOException

printDTD

public static void printDTD(java.io.PrintWriter pw)
                     throws java.io.IOException
Prints the complete DTD of a Table-XML-file to a PrintWriter.

Throws:
java.io.IOException

printPartDTD

public static void printPartDTD(java.io.PrintWriter pw)
                         throws java.io.IOException
Prints the DTD of a Table-XML-file to a PrintWriter. Only the elements. This method may be used when the Table-XML should be part of a larger XML.

Throws:
java.io.IOException

printTableXSLReference

public static void printTableXSLReference(java.io.PrintWriter pw)
                                   throws java.io.IOException
Prints a reference to the Table-XSL-file to a PrintWriter.

Throws:
java.io.IOException

printXML

public void printXML(java.io.PrintWriter pw)
              throws java.io.IOException
Prints the Table to a PrintWriter.

Throws:
java.io.IOException

printPartXML

public void printPartXML(java.io.PrintWriter pw)
                  throws java.io.IOException
Throws:
java.io.IOException

printXSL

public void printXSL(java.io.PrintWriter pw)
              throws java.io.IOException
Prints a basic XSL-file for Table XML-files to a PrintWriter.

Throws:
java.io.IOException