edu.columbia.surge.hashImpl
Class ProcH

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

public class ProcH
extends FDH
implements Proc

The process of a FD. This is used together with the Clause and the Partic class in order to create a clause sentence. There are methods in this class to set and to create various properties of a process. Moreover, this interface also provides various constants to help users setting the properties of a process. For example, when user wants to set the process type of the Process to be material, user can just use setProcessType(Proc.MATERIAL). Factory methods are also provided to help users to construct instance of Proc in a more efficient fashion. User can either use the ProcH class or directly use the constructor of this class to create instances of ProcH.

See Also:
ProcFactoryH, Clause, Partic, setProcessType(String processType), Proc.MATERIAL, Serialized Form

Constructor Summary
ProcH()
          Constructor which creates a default instance of ProcFactoryH.
ProcH(java.lang.String type, java.lang.String lex)
          Constructor which takes in the lexical entry and the process type as parameters to compute and return an instance of ProcH.
ProcH(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)
          Constructo which computes and returns an instance of ProcH that gives user the option to create an instance of ProcH with all the most common and most frequently used properties.
 
Method Summary
 void setAgentive(boolean agentive)
          A method to set whether the process is going to be agentive
 void setEffective(boolean effective)
          A method to set whether the process is going to be effective
 void setEffectType(java.lang.String effectType)
          A method to set the effect-type of the process
 void setLex(java.lang.String lex)
          A method to set the lexical of the process
 void setMode(java.lang.String mode)
          A method to set the mode of the process
 void setPolarity(java.lang.String polarity)
          A method to set the polarity of the process
 void setProcessType(java.lang.String processType)
          A method to set the type of the process
 void setRelationType(java.lang.String relation_type)
          A method to set the relation-type of the process
 
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

ProcH

public ProcH()
Constructor which creates a default instance of ProcFactoryH.

ProcH

public ProcH(java.lang.String type,
             java.lang.String lex)
      throws InvalidConstructorException
Constructor which takes in the lexical entry and the process type as parameters to compute and return an instance of ProcH. An exception will be thrown if the parameters are invalid.
Parameters:
type - the process type
lex - the lexical entry/verb of the process
Throws:
InvalidConstructorException -  

ProcH

public ProcH(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
Constructo which computes and returns an instance of ProcH that gives user the option to create an instance of ProcH 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 type
lex - the lexical entry/verb of the process
effect_type - the effect type of the process
agentive - set whether the process is agentive
effective - set whether the process is effective
mode - the mode of the process
relation_type - the relation_type of the process
Throws:
InvalidConstructorException -  
Method Detail

setProcessType

public void setProcessType(java.lang.String processType)
A method to set the type of the process
Specified by:
setProcessType in interface Proc
Parameters:
type - the type of the process

setPolarity

public void setPolarity(java.lang.String polarity)
A method to set the polarity of the process
Specified by:
setPolarity in interface Proc
Parameters:
polarity - the options are given as static variables in FDProperties interface.
See Also:
FDProperties

setEffectType

public void setEffectType(java.lang.String effectType)
A method to set the effect-type of the process
Specified by:
setEffectType in interface Proc
Parameters:
effectType - the effect-type of the process

setLex

public void setLex(java.lang.String lex)
A method to set the lexical of the process
Specified by:
setLex in interface Proc
Parameters:
lex - the lexical word of the process

setMode

public void setMode(java.lang.String mode)
A method to set the mode of the process
Specified by:
setMode in interface Proc
Parameters:
mode - the mode of the process

setEffective

public void setEffective(boolean effective)
A method to set whether the process is going to be effective
Specified by:
setEffective in interface Proc
Parameters:
effective - true to set to effective, and vice versa.

setAgentive

public void setAgentive(boolean agentive)
A method to set whether the process is going to be agentive
Specified by:
setAgentive in interface Proc
Parameters:
agentive - true to set to agentive, and vice versa

setRelationType

public void setRelationType(java.lang.String relation_type)
A method to set the relation-type of the process
Specified by:
setRelationType in interface Proc
Parameters:
relation_type -