edu.columbia.surge
Interface PPFactory

All Known Implementing Classes:
PPFactoryH

public abstract interface PPFactory

This class holds the factory methods for the PP class. Users can use this class to create instances of PP objects with their desired parameters.

See Also:
PP

Field Summary
static PPFactory factory
          The static instance which helps users to access to the methods in this class.
 
Method Summary
 PP create()
          A factory method which creates a default instance of PP.
 PP create(java.lang.String prep, FD np)
          A factory method which returns a PP object with the input preposition and the body of the NP which resides in the prepositional phrase.
 

Field Detail

factory

public static final PPFactory factory
The static instance which helps users to access to the methods in this class.
Method Detail

create

public PP create()
A factory method which creates a default instance of PP.
Returns:
a default instance of PP

create

public PP create(java.lang.String prep,
                 FD np)
          throws InvalidConstructorException,
                 InvalidPathException
A factory method which returns a PP 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
Returns:
a PP object which has the properties of the given parameters