Class DirectionsResponder

java.lang.Object
  |
  +--mstar.Responder
        |
        +--DirectionsResponder
Direct Known Subclasses:
LocatorResponder

public class DirectionsResponder
extends Responder

Responds to questions about how to get to places in the collaborative environment. If asked how to get to Carnegie Hall, it will respond "Practice!"

Version:
1.1
Author:
Thaddeus O. Cooper

Constructor Summary
DirectionsResponder()
           
 
Method Summary
 boolean canProcess(Chatter c)
          Determines if this responder will respond to the data contained in the chatter.
protected  boolean getDirections(java.lang.String where)
           
protected  java.lang.String getWhere()
           
 void process()
          Actually process the input from the collaborative environment and add the actions and responses to the Vector to be output when this routine returns.
 java.lang.String serviceType()
          Returns a string the defines the type of service that this responder provides.
 
Methods inherited from class mstar.Responder
addAction, addResponse, addRobotAction, getAction, getActions, getCommands, getConnection, getHow, getInputStream, getMap, getOutputStream, getOwner, getPlayerMap, getProcessTable, getProperties, getResponse, getRobotName, getRoomParser, getShared, getState, getWhat, getWho, setAction, setCommands, setConnection, setHow, setInputStream, setMap, setOutputStream, setOwner, setPlayerMap, setProcessTable, setProperties, setResponse, setRobotName, setRoomParser, setShared, setState, setWhat, setWho
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DirectionsResponder

public DirectionsResponder()
Method Detail

getWhere

protected java.lang.String getWhere()

getDirections

protected boolean getDirections(java.lang.String where)

process

public void process()
Description copied from class: Responder
Actually process the input from the collaborative environment and add the actions and responses to the Vector to be output when this routine returns.
Overrides:
process in class Responder

serviceType

public java.lang.String serviceType()
Description copied from class: Responder
Returns a string the defines the type of service that this responder provides. Some examples include: NEWS, DIRECTIONS, and DEFAULT.
Overrides:
serviceType in class Responder
Tags copied from class: Responder
Returns:
the String that defines the type of service.

canProcess

public boolean canProcess(Chatter c)
Description copied from class: Responder
Determines if this responder will respond to the data contained in the chatter. If the chatter is able to be processed by this responder, then it should return true, if not it should return false.
Overrides:
canProcess in class Responder
Tags copied from class: Responder
Returns:
true if this reponder can process the input, false otherwise.