inpro.dm.acts
Class AbstractDialogueAct

java.lang.Object
  extended by inpro.dm.acts.AbstractDialogueAct
Direct Known Subclasses:
ClarifyDialogueAct, GroundDialogueAct, InformDialogueAct, RequestDialogueAct, UndoDialogueAct

public abstract class AbstractDialogueAct
extends java.lang.Object


Field Summary
protected  boolean done
          Flags the 'performed' status of this dialogue act
 
Constructor Summary
AbstractDialogueAct()
           
 
Method Summary
 boolean doThis()
          Setter for whether this act has been performed.
 boolean isDone()
          Returns whether this act has been performed.
abstract  java.lang.String toString()
          Builds and returns a string representation of this dialogue act.
 boolean undoThis()
          Setter to undo this act.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

done

protected boolean done
Flags the 'performed' status of this dialogue act

Constructor Detail

AbstractDialogueAct

public AbstractDialogueAct()
Method Detail

doThis

public boolean doThis()
Setter for whether this act has been performed. Successful only if not done already.

Returns:
success of this method

undoThis

public boolean undoThis()
Setter to undo this act. Successful only if done already.

Returns:
success of this method

isDone

public boolean isDone()
Returns whether this act has been performed.

Returns:
true if so

toString

public abstract java.lang.String toString()
Builds and returns a string representation of this dialogue act.

Overrides:
toString in class java.lang.Object