edu.columbia.surge
Interface ProcFactory
- All Known Implementing Classes:
- ProcFactoryH
- public abstract interface ProcFactory
This class holds the factory methods for the Proc class. Users can
use this class to create instances of Proc objects with their
desired parameters.
- See Also:
Proc
Field Summary |
static ProcFactory |
factory
The static instance which helps users to access to the methods in
this class. |
Method Summary |
Proc |
create()
A factory method which creates a default instance of Proc. |
Proc |
create(java.lang.String type,
java.lang.String lex)
A factory method which takes in the lexical entry and the process
type as parameters to compute and return an instance of Proc. |
Proc |
create(java.lang.String type,
java.lang.String lex,
java.lang.String effect_type,
boolean agentive,
boolean effective,
java.lang.String mode,
java.lang.String relation_type,
java.lang.String polarity)
A factory method to compute and return an instance of Proc that
gives user the option to create an instance of Proc with all the
most common and most frequently used properties. |
factory
public static final ProcFactory factory
- The static instance which helps users to access to the methods in
this class.
create
public Proc create()
- A factory method which creates a default instance of Proc.
- Returns:
- a default instance of Proc
create
public Proc create(java.lang.String type,
java.lang.String lex)
throws InvalidConstructorException
- A factory method which takes in the lexical entry and the process
type as parameters to compute and return an instance of Proc. An
exception will be thrown if the parameters are invalid.
- Parameters:
type
- the process typelex
- the lexical entry/verb of the process- Returns:
- an instance of Proc
- Throws:
- InvalidConstructorException -
create
public Proc create(java.lang.String type,
java.lang.String lex,
java.lang.String effect_type,
boolean agentive,
boolean effective,
java.lang.String mode,
java.lang.String relation_type,
java.lang.String polarity)
throws InvalidConstructorException
- A factory method to compute and return an instance of Proc that
gives user the option to create an instance of Proc with all the
most common and most frequently used properties. If user does not
want to specify certain properties, simply put in a null for that
entry. However, as the minimum requirement for constructing a
proc, user has to at least supply the type (process type) and the
lexical entry. Otherwise, an InvalidConstructorException will be
thrown.
- Parameters:
type
- the process typelex
- the lexical entry/verb of the processeffect_type
- the effect type of the processagentive
- set whether the process is agentiveeffective
- set whether the process is effectivemode
- the mode of the processrelation_type
- the relation_type of the process- Returns:
- an instance of Proc
- Throws:
- InvalidConstructorException -