edu.upenn.cis.pdtb
Class PDTBAltLexRelationFeaturesImpl

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

public class PDTBAltLexRelationFeaturesImpl
extends PDTBConnFeaturesImpl
implements PDTBAltLexRelationFeatures

Implementation of the PDTBAltLexRelationFeatures interface.

Author:
nikhild, geraud

Field Summary
 
Fields inherited from class edu.upenn.cis.pdtb.PDTBFeaturesImpl
fSel
 
Fields inherited from interface edu.upenn.cis.pdtb.PDTBAltLexRelationFeatures
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
PDTBAltLexRelationFeaturesImpl(java.lang.String source, java.lang.String type, java.lang.String polarity, java.lang.String determinancy, PDTBSelection sel, java.lang.String sClassA, java.lang.String sClassB)
          Creates a new instance of PDTBAltLexRelationFeaturesImpl
 
Method Summary
 TreeEnumFeature getSClassA()
          Get the first semantic class
 TreeEnumFeature getSClassB()
          Get the second semantic class
 void save(java.io.Writer writer)
           
 void updateAttributesOnNode()
          Adds the semantic class attributes to 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

PDTBAltLexRelationFeaturesImpl

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

Method Detail

updateAttributesOnNode

public void updateAttributesOnNode()
Adds the semantic class attributes to the ownerNode

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

getSClassA

public TreeEnumFeature getSClassA()
Description copied from interface: PDTBAltLexRelationFeatures
Get the first semantic class

Specified by:
getSClassA in interface PDTBAltLexRelationFeatures

getSClassB

public TreeEnumFeature getSClassB()
Description copied from interface: PDTBAltLexRelationFeatures
Get the second semantic class

Specified by:
getSClassB in interface PDTBAltLexRelationFeatures

save

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