edu.washington.cs.knowitall.type
Class TypeHierarchy

java.lang.Object
  extended by edu.washington.cs.knowitall.type.TypeHierarchy

public class TypeHierarchy
extends Object


Constructor Summary
TypeHierarchy()
           
 
Method Summary
 void buildDescendents()
           
 boolean containsKey(String key)
           
 Collection<String> getChildren(String parent)
           
 Collection<String> getDescendents(String parent)
           
 void put(String parent, String child)
           
static TypeHierarchy read(BufferedReader reader)
           
 void write(PrintWriter writer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TypeHierarchy

public TypeHierarchy()
Method Detail

put

public void put(String parent,
                String child)

containsKey

public boolean containsKey(String key)

getChildren

public Collection<String> getChildren(String parent)

getDescendents

public Collection<String> getDescendents(String parent)

buildDescendents

public void buildDescendents()

write

public void write(PrintWriter writer)

read

public static TypeHierarchy read(BufferedReader reader)
                          throws IOException
Throws:
IOException


Copyright © 2011 University of Washington CSE. All Rights Reserved.