edu.cmu.minorthird.classify.relational
Class Link

java.lang.Object
  extended by edu.cmu.minorthird.classify.relational.Link

public class Link
extends java.lang.Object

A link has 'from' 'to' 'type' fields, more attrs can be added

Author:
Zhenzhen Kou

Field Summary
protected  java.lang.String from
           
protected  java.lang.String to
           
protected  java.lang.String type
           
 
Constructor Summary
Link(java.lang.String from, java.lang.String to, java.lang.String type)
           
 
Method Summary
 java.lang.String getFrom()
          get the from ExampleID
 java.lang.String getTo()
          Get the to ExampleID
 java.lang.String getType()
          Get the link type.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

from

protected java.lang.String from

to

protected java.lang.String to

type

protected java.lang.String type
Constructor Detail

Link

public Link(java.lang.String from,
            java.lang.String to,
            java.lang.String type)
Method Detail

getFrom

public java.lang.String getFrom()
get the from ExampleID


getTo

public java.lang.String getTo()
Get the to ExampleID


getType

public java.lang.String getType()
Get the link type.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object