edu.upenn.cis.pdtb
Class PDTBInferenceSiteImpl

java.lang.Object
  extended byedu.upenn.cis.pdtb.PDTBInferenceSiteImpl
All Implemented Interfaces:
PDTBInferenceSite

public class PDTBInferenceSiteImpl
extends java.lang.Object
implements PDTBInferenceSite

Implementation of the PDTBInferenceSite interface.

Author:
nikhild

Constructor Summary
PDTBInferenceSiteImpl(int stringPosition, int sentenceNo, PTBTreeNode sentence)
          Creates a new instance of PDTBInferenceSiteImpl
 
Method Summary
 PDTBNode getPDTBNode()
          Get the associated PDTBImplicitRelation.
 PTBTreeNode getSentence()
          The sentence corresponding to getSentenceNo().
 int getSentenceNo()
          Sentence, at the start of which, the implicit relation was inferred.
 int getStringPosition()
          The character offset where the relation was inferred.
 void save(java.io.Writer writer)
           
 void setPDTBNode(PDTBNode node)
          Set the associated implicit relation.
 void updateAttributesOnNode()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PDTBInferenceSiteImpl

public PDTBInferenceSiteImpl(int stringPosition,
                             int sentenceNo,
                             PTBTreeNode sentence)
Creates a new instance of PDTBInferenceSiteImpl

Method Detail

getPDTBNode

public PDTBNode getPDTBNode()
Description copied from interface: PDTBInferenceSite
Get the associated PDTBImplicitRelation.

Specified by:
getPDTBNode in interface PDTBInferenceSite

getStringPosition

public int getStringPosition()
Description copied from interface: PDTBInferenceSite
The character offset where the relation was inferred. Usually points to the first character of the sentence containing Arg2.

Specified by:
getStringPosition in interface PDTBInferenceSite

getSentence

public PTBTreeNode getSentence()
Description copied from interface: PDTBInferenceSite
The sentence corresponding to getSentenceNo().

Specified by:
getSentence in interface PDTBInferenceSite

getSentenceNo

public int getSentenceNo()
Description copied from interface: PDTBInferenceSite
Sentence, at the start of which, the implicit relation was inferred. Usually the sentence containing Arg2.

Specified by:
getSentenceNo in interface PDTBInferenceSite

setPDTBNode

public void setPDTBNode(PDTBNode node)
Description copied from interface: PDTBInferenceSite
Set the associated implicit relation.

Specified by:
setPDTBNode in interface PDTBInferenceSite

updateAttributesOnNode

public void updateAttributesOnNode()
Specified by:
updateAttributesOnNode in interface PDTBInferenceSite

save

public void save(java.io.Writer writer)
          throws java.io.IOException
Throws:
java.io.IOException