Class AbstractAutoPlayer

java.lang.Object
  extended by AbstractPlayer
      extended by AbstractAutoPlayer
All Implemented Interfaces:
IAutoPlayer, IPlayer
Direct Known Subclasses:
BadAutoPlayer

public abstract class AbstractAutoPlayer
extends AbstractPlayer
implements IAutoPlayer

Augments AutoPlayer by adding abstract method for autoplayer.

Author:
Owen Astrachan

Field Summary
 
Fields inherited from class AbstractPlayer
myModel, myScore, myView, myWords
 
Constructor Summary
AbstractAutoPlayer()
           
 
Method Summary
abstract  java.util.SortedSet<java.lang.String> getAllValidWords(int minLength)
          Return all the valid words as found by the player, presumably automatically.
 java.lang.String getName()
          Return string "AutoPlayer".
 
Methods inherited from class AbstractPlayer
add, getScore, initialize, setView
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface IPlayer
add, getScore, initialize, setView
 

Constructor Detail

AbstractAutoPlayer

public AbstractAutoPlayer()
Method Detail

getAllValidWords

public abstract java.util.SortedSet<java.lang.String> getAllValidWords(int minLength)
Description copied from interface: IAutoPlayer
Return all the valid words as found by the player, presumably automatically.

Specified by:
getAllValidWords in interface IAutoPlayer
Parameters:
minLength - of words found by an autoplayer
Returns:
set of all strings found by autoplayer

getName

public java.lang.String getName()
Return string "AutoPlayer".

Specified by:
getName in interface IPlayer
Specified by:
getName in class AbstractPlayer
Returns:
this player's name