Class DiscourseEvent

java.lang.Object
  |
  +--DiscourseEvent

Deprecated. part of my first attempt at discourse control; totally inadequate as it stands.

public class DiscourseEvent
extends java.lang.Object

Contains a simple event type. Just stops users from mistyping the name of the goal they want.


Field Summary
static DiscourseEvent BLOCK_EVENT
          Deprecated. Some goal wants to block all others from reacting.
static DiscourseEvent BYE
          Deprecated. The user said bye.
static DiscourseEvent CONSIDER
          Deprecated. A goal of considering a user's assertion that something is true--should have bindings.
static DiscourseEvent GREET
          Deprecated. The user greeted us.
static DiscourseEvent INFORM
          Deprecated. A goal of answering a user question--should have bindings.
static DiscourseEvent INTERP_ERROR
          Deprecated. An interpretation error.
static DiscourseEvent NO
          Deprecated. The user said no.
static DiscourseEvent NO_EVENT
          Deprecated. Nothing left to react to, free to act on our own.
static DiscourseEvent OUTPUT_ERROR
          Deprecated. A failure to queue output error.
static DiscourseEvent PARSE_ERROR
          Deprecated. A parse error.
static DiscourseEvent UNHANDLED_ERROR
          Deprecated. An error where the interpreter thinks the action required is one the current discourse manager is too stupid to handle.
static DiscourseEvent YES
          Deprecated. The user said yes.
 
Constructor Summary
protected DiscourseEvent(java.lang.String newName, boolean isError)
          Deprecated. Create an event named by some string.
 
Method Summary
 boolean isError()
          Deprecated. Return whether this event is an error.
 java.lang.String toString()
          Deprecated. Return the name of this event.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

INFORM

public static final DiscourseEvent INFORM
Deprecated. 
A goal of answering a user question--should have bindings.


GREET

public static final DiscourseEvent GREET
Deprecated. 
The user greeted us.


BYE

public static final DiscourseEvent BYE
Deprecated. 
The user said bye.


CONSIDER

public static final DiscourseEvent CONSIDER
Deprecated. 
A goal of considering a user's assertion that something is true--should have bindings.


YES

public static final DiscourseEvent YES
Deprecated. 
The user said yes.


NO

public static final DiscourseEvent NO
Deprecated. 
The user said no.


NO_EVENT

public static final DiscourseEvent NO_EVENT
Deprecated. 
Nothing left to react to, free to act on our own.


BLOCK_EVENT

public static final DiscourseEvent BLOCK_EVENT
Deprecated. 
Some goal wants to block all others from reacting. Never handle this.


PARSE_ERROR

public static final DiscourseEvent PARSE_ERROR
Deprecated. 
A parse error.


INTERP_ERROR

public static final DiscourseEvent INTERP_ERROR
Deprecated. 
An interpretation error.


OUTPUT_ERROR

public static final DiscourseEvent OUTPUT_ERROR
Deprecated. 
A failure to queue output error.


UNHANDLED_ERROR

public static final DiscourseEvent UNHANDLED_ERROR
Deprecated. 
An error where the interpreter thinks the action required is one the current discourse manager is too stupid to handle.

Constructor Detail

DiscourseEvent

protected DiscourseEvent(java.lang.String newName,
                         boolean isError)
Deprecated. 
Create an event named by some string.

Method Detail

toString

public java.lang.String toString()
Deprecated. 
Return the name of this event.

Overrides:
toString in class java.lang.Object
Returns:
the name of the event.

isError

public boolean isError()
Deprecated. 
Return whether this event is an error.

Returns:
true if the event is an error.