edu.upenn.cis.pdtb
Class PDTBExplicitRelationFeaturesImpl

java.lang.Object
  extended byedu.upenn.cis.pdtb.PDTBFeaturesImpl
      extended byedu.upenn.cis.pdtb.PDTBConnFeaturesImpl
          extended byedu.upenn.cis.pdtb.PDTBExplicitRelationFeaturesImpl
All Implemented Interfaces:
PDTBConnFeatures, PDTBExplicitRelationFeatures, PDTBFeatures

public class PDTBExplicitRelationFeaturesImpl
extends PDTBConnFeaturesImpl
implements PDTBExplicitRelationFeatures

Implementation of the PDTBExplicitRelationFeatures interface.

Author:
nikhild, geraud

Field Summary
 
Fields inherited from class edu.upenn.cis.pdtb.PDTBFeaturesImpl
fSel
 
Fields inherited from interface edu.upenn.cis.pdtb.PDTBExplicitRelationFeatures
ConnHeadAttributeQName, SClassA, SClassB
 
Fields inherited from interface edu.upenn.cis.pdtb.PDTBConnFeatures
conns, DeterminancyFeature, PolarityFeature, semanticClassesLong, semanticClassesShort, semanticClassesTree, SourceFeature, TypeFeature
 
Fields inherited from interface edu.upenn.cis.pdtb.PDTBFeatures
options
 
Constructor Summary
PDTBExplicitRelationFeaturesImpl(java.lang.String source, java.lang.String type, java.lang.String polarity, java.lang.String determinancy, PDTBSelection sel, java.lang.String connHead, java.lang.String sClassA, java.lang.String sClassB)
          Creates a new instance of PDTBExplicitRelationFeaturesImpl
 
Method Summary
 java.lang.String getConnHead()
          Get the head of the connective.
 TreeEnumFeature getSClassA()
          Get the first semantic class of the connHead
 TreeEnumFeature getSClassB()
          Get the second semantic class of the connHead
 void save(java.io.Writer writer)
           
 void updateAttributesOnNode()
          Sets the connHead attribute on the ownerNode.
 
Methods inherited from class edu.upenn.cis.pdtb.PDTBFeaturesImpl
getDeterminancy, getPDTBNode, getPolarity, getSelection, getSource, getType, setDeterminancy, setPDTBNode, setPolarity, setSelection, setSource, setType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface edu.upenn.cis.pdtb.PDTBFeatures
getDeterminancy, getPDTBNode, getPolarity, getSelection, getSource, getType, setDeterminancy, setPDTBNode, setPolarity, setSelection, setSource, setType
 

Constructor Detail

PDTBExplicitRelationFeaturesImpl

public PDTBExplicitRelationFeaturesImpl(java.lang.String source,
                                        java.lang.String type,
                                        java.lang.String polarity,
                                        java.lang.String determinancy,
                                        PDTBSelection sel,
                                        java.lang.String connHead,
                                        java.lang.String sClassA,
                                        java.lang.String sClassB)
Creates a new instance of PDTBExplicitRelationFeaturesImpl

Method Detail

updateAttributesOnNode

public void updateAttributesOnNode()
Sets the connHead attribute on the ownerNode.

Specified by:
updateAttributesOnNode in interface PDTBFeatures
Overrides:
updateAttributesOnNode in class PDTBConnFeaturesImpl

getConnHead

public java.lang.String getConnHead()
Description copied from interface: PDTBExplicitRelationFeatures
Get the head of the connective.

Specified by:
getConnHead in interface PDTBExplicitRelationFeatures

getSClassA

public TreeEnumFeature getSClassA()
Description copied from interface: PDTBExplicitRelationFeatures
Get the first semantic class of the connHead

Specified by:
getSClassA in interface PDTBExplicitRelationFeatures

getSClassB

public TreeEnumFeature getSClassB()
Description copied from interface: PDTBExplicitRelationFeatures
Get the second semantic class of the connHead

Specified by:
getSClassB in interface PDTBExplicitRelationFeatures

save

public void save(java.io.Writer writer)
          throws java.io.IOException
Overrides:
save in class PDTBConnFeaturesImpl
Throws:
java.io.IOException