edu.columbia.surge.hashImpl
Class PPH

java.lang.Object
  |
  +--java.util.AbstractMap
        |
        +--java.util.HashMap
              |
              +--edu.columbia.surge.hashImpl.FDH
                    |
                    +--edu.columbia.surge.hashImpl.NPH
                          |
                          +--edu.columbia.surge.hashImpl.PPH

public class PPH
extends NPH
implements PP

The PP (prepositional phrase) category for a FD. Methods are provided to set the preposition and the np (noun phrase) which is essential in creating PPs. Factory methods are also provided for easier constructing purpose. User can either use the PPFactoryH class or directly use the constructor of this class to create instances of PPH.

See Also:
PP, PPFactoryH, Serialized Form

Constructor Summary
PPH()
          Constructor which creates a default instance of PPH.
PPH(java.lang.String prep, FD np)
          Constructor which returns a PPH object with the input preposition and the body of the NP which resides in the prepositional phrase.
 
Method Summary
 void setNP(FD np)
          A method to set the NP within a PP
 void setPrep(java.lang.String preposition)
          A method to set the preposition of a prepositional phrase
 
Methods inherited from class edu.columbia.surge.hashImpl.NPH
setHead, setLex
 
Methods inherited from class edu.columbia.surge.hashImpl.FDH
checkPath, checkPath, computePathDifference, getPath, getPath, putPath, putPath, putPathOverride, putPathOverride, stackToPath, stringToArray, toString, toString, toXML
 
Methods inherited from class java.util.HashMap
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PPH

public PPH()
Constructor which creates a default instance of PPH.

PPH

public PPH(java.lang.String prep,
           FD np)
    throws InvalidConstructorException,
           InvalidPathException
Constructor which returns a PPH object with the input preposition and the body of the NP which resides in the prepositional phrase.
Parameters:
prep - the preposition of the PP
np - the NP within the PP
Method Detail

setPrep

public void setPrep(java.lang.String preposition)
             throws InvalidPathException
A method to set the preposition of a prepositional phrase
Specified by:
setPrep in interface PP
Parameters:
preposition - the user-specified preposition entry

setNP

public void setNP(FD np)
A method to set the NP within a PP
Specified by:
setNP in interface PP
Parameters:
NP - the user-specified NP body