|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.AbstractMap | +--java.util.HashMap | +--edu.columbia.surge.hashImpl.FDH | +--edu.columbia.surge.hashImpl.ClauseH
The clause category for a FD. This class is used whenever users want to create a clause. As the minimum requirement, this class must be used together with the Partic and Proc class. In addition to setting the process and the participant of a clause, there are methods in this class to set the various properties of a clause. For methods that set the properties of a clause such as the setTense(...) and setPolarity(...) methods, some of the possible values/options for these methods are provided in the FDProperties class. This class implements the Clause interface and is implemented in the form of a HashMap as it is inherrited from the FDH class. This class consists of methods and constructors to set the required components of a Clause. User can either use the ClauseFactoryH class or directly use the constructor of this class to create instances of ClauseH.
ClauseFactoryH
,
Proc
,
Partic
,
FDProperties
, Serialized FormConstructor Summary | |
ClauseH()
Default constructor which creates a default instance of ClauseH. |
|
ClauseH(Proc proc,
Partic partic)
Constructor to create an instance of Clause class that fulfills the minimum requirement of a clause, which consists of a process and a participant. |
|
ClauseH(Proc proc,
Partic partic,
java.lang.String tense,
java.lang.String adverb,
java.lang.String mood,
java.lang.String polarity,
java.lang.String complex,
boolean restrictiveness,
Circum circum,
PreMod preMod,
java.lang.String[] scope,
FDRef ref)
Constructor to create an instance of ClauseH class that gives user the option to create an instance of ClauseH with all the most common and frequently used properties. |
Method Summary | |
void |
setAdverb(java.lang.String adverb)
A method to set the adverb of a clause. |
void |
setCircum(Circum circum)
A method to set the circumstance of a clause. |
void |
setComplex(java.lang.String complex)
A method to set the complexity of a clause. |
void |
setMood(java.lang.String mood)
A method to set the mood of a clause. |
void |
setPartic(Partic partic)
A method to set the participants of a clause. |
void |
setPolarity(java.lang.String polarity)
A method to set the polarity of a clause. |
void |
setPreMod(PreMod preMod)
A method to set the pre-modifier of a clause. |
void |
setProc(Proc proc)
A method to set the process of a clause. |
void |
setRestrictive(boolean restrictive)
A method to set the restrictiveness of a clause. |
void |
setScope(java.lang.String[] scope)
A method to set the scope of a clause by specifying the path of the holes in an array. |
void |
setScopeUsingRef(FDRef ref)
A method to set the scope of a clause by making a referrence to the desired hole of the clause. |
void |
setTense(java.lang.String tense)
A method to allow the user to set the tense of the clause. |
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 |
public ClauseH()
public ClauseH(Proc proc, Partic partic) throws InvalidConstructorException
proc
- the process of the clausepartic
- the participant of the clauseFDH.putPathOverride(java.lang.String[], java.lang.Object)
public ClauseH(Proc proc, Partic partic, java.lang.String tense, java.lang.String adverb, java.lang.String mood, java.lang.String polarity, java.lang.String complex, boolean restrictiveness, Circum circum, PreMod preMod, java.lang.String[] scope, FDRef ref) throws InvalidConstructorException, InvalidPathException
proc
- the process of the clausepartic
- the participant of the clausetense
- the tense of the clauseadverb
- the possible adverb for the clausemood
- the possible mood of the clausepolarity
- the polarity of the clausecomplexity
- set whether the clause is complex, true to be
complex and vice versa.restrictiveness
- set whether the clause is restrictive,
true to be restrictive and vice versa.circum
- the circumstance of the clausepreMod
- the predefined-modifier of the clausescope
- specify the path to the hole and put them in the
right order into the array. For example, if the whole is
(partic (agent..)) then put String[] scope = {"partic",
"agent"}ref
- the FD node which serves as the hole of the clause.Method Detail |
public void setProc(Proc proc)
proc
- the process to be specifiedpublic void setPartic(Partic partic)
partic
- the participants to be specifiedpublic void setAdverb(java.lang.String adverb) throws InvalidPathException
adverb
- the adverb to be insertedpublic void setCircum(Circum circum)
circum
- the circumstance to be specifiedpublic void setComplex(java.lang.String complex)
complex
- the complexity to be specifiedpublic void setMood(java.lang.String mood)
mood
- the mood of the clausepublic void setPolarity(java.lang.String polarity)
polarity
- the polarity of a clausepublic void setPreMod(PreMod preMod)
preMod
- the pre-modifier to be specifiedpublic void setRestrictive(boolean restrictive)
restrictiveness
- true to be restrictive, false to be
non-restrictivepublic void setTense(java.lang.String tense)
tense
- the tense of the clausepublic void setScope(java.lang.String[] scope)
scope
- specify the order of the roles by putting them in
the right order into the array. For example, (scope {^ A B})
will be {"A", "B"}.public void setScopeUsingRef(FDRef ref)
ref
- the FD node which serves as the hole of the clause.FDNull
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |