edu.columbia.surge
Interface APFactory

All Known Implementing Classes:
APFactoryH

public abstract interface APFactory

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

See Also:
AP

Field Summary
static APFactory factory
          The static variable that is used to call the create() methods to create instances of the AP.
 
Method Summary
 AP create()
          The factory method to create a default instance of AP without ay parameters.
 AP create(FD head)
          The factory method to create an instance of AP with the given head entry represented as a FD.
 AP create(java.lang.String lex)
          The factory method to create an instance of AP with the given lexical entry.
 

Field Detail

factory

public static final APFactory factory
The static variable that is used to call the create() methods to create instances of the AP.
Method Detail

create

public AP create()
The factory method to create a default instance of AP without ay parameters.
Returns:
a default instance of AP

create

public AP create(java.lang.String lex)
          throws InvalidConstructorException
The factory method to create an instance of AP with the given lexical entry.
Parameters:
lex - the lexical entry of the FD
Returns:
an instance of AP which is instantiated with a given lexical entry.

create

public AP create(FD head)
          throws InvalidConstructorException
The factory method to create an instance of AP with the given head entry represented as a FD.
Returns:
an instance of AP which is instantiated with a given head entry.