|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinpro.dm.acts.ArgumentStruct
public class ArgumentStruct
A convenience class for bundling intransitive, transitive, ditransitive argument structures for use in dialogue acts. Arguments are simple String representations.
| Field Summary | |
|---|---|
private java.lang.String |
arg1
The arguments |
private java.lang.String |
arg2
|
| Constructor Summary | |
|---|---|
ArgumentStruct(ArgumentStruct as)
Copy constructor |
|
ArgumentStruct(java.lang.String arg)
Transitive argument constructor |
|
ArgumentStruct(java.lang.String arg1,
java.lang.String arg2)
Ditransitive argument constructor |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
Compares this argument structure with another. |
java.lang.String |
getArg1()
Getter for this structure's first argument |
java.lang.String |
getArg2()
Getter for this structure's second argument |
int |
hashCode()
|
boolean |
isDitransitive()
Checks of this structure is transitive |
boolean |
isIntransitive()
Checks if this structure is intransitive |
boolean |
isTransitive()
Checks of this structure is transitive |
boolean |
resetArgumentfromAVPair(AVPair avp)
Attempts replacing the arguments of this structure from an AVPair. |
void |
setArg1(java.lang.String arg)
Setter for this structure's first argument |
void |
setArg2(java.lang.String arg)
Setter for this structure's second argument |
java.lang.String |
toString()
Builds a string representation of this arguemnt structure. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private java.lang.String arg1
private java.lang.String arg2
| Constructor Detail |
|---|
public ArgumentStruct(java.lang.String arg)
arg -
public ArgumentStruct(java.lang.String arg1,
java.lang.String arg2)
arg1 - the first argumentarg2 - the second argumentpublic ArgumentStruct(ArgumentStruct as)
as - the argument structure to copy.| Method Detail |
|---|
public boolean isTransitive()
public boolean isDitransitive()
public boolean isIntransitive()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectas - the argument structure to compare against
public int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String getArg1()
public java.lang.String getArg2()
public void setArg1(java.lang.String arg)
arg - the String to set arg1 topublic void setArg2(java.lang.String arg)
arg - the String to set arg2 topublic boolean resetArgumentfromAVPair(AVPair avp)
avp - the AVPair to reset from
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||