|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--org.moyoman.module.Module
|
+--org.moyoman.module.joseki.josekiimpl.JosekiImpl
| Field Summary |
| Fields inherited from class org.moyoman.module.Module |
|
| Fields inherited from interface org.moyoman.module.joseki.Joseki |
CONFIDENCE |
| Constructor Summary | |
JosekiImpl(GameId id,
ModuleName name)
Create a JosekiImpl object. |
|
| Method Summary | |
Object |
clone()
Clone the module. |
float |
evaluateMove(Stone next)
Evaluate the parameter as a possible move. |
void |
generateMove(Module[] modules)
Generate the move for this module. |
Debug[] |
getDebugInformation(DebugType[] types)
Return the debug information for this module. |
DebugType[] |
getDebugTypes()
Return the types of debug information that this module supports. |
RatedMove[] |
getMoves()
Return the moves generated by the module. |
ModuleType[] |
getRequiredModuleList()
Return the modules that this module requires to perform its task. |
MoveDescriptorForest |
getSequences()
Return sequences of moves that match positions on the board. |
void |
makeMove(Move move,
Module[] modules)
Update the internal data structures of this module with the new move. |
| Methods inherited from class org.moyoman.module.Module |
checkTime, create, createHelper, debug, error, error, fatal, fatal, getAllHelpers, getHelper, getId, getKomi, getModule, getModuleName, getScheduler, information, setTime, warning, warning |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.moyoman.module.ModuleInterface |
getScheduler |
| Constructor Detail |
public JosekiImpl(GameId id,
ModuleName name)
throws InternalErrorException
id - The id of the game.name - The name of the module.
InternalErrorException - Thrown if anything goes wrong.| Method Detail |
public Object clone()
ModuleInterface
clone in interface ModuleInterfaceclone in class Module
public void generateMove(Module[] modules)
throws InternalErrorException
Module
generateMove in class Modulemodules - An array of modules which this module needs
in order to perform its work. Those modules reflect the
current state of the board but are copies of the actual modules,
so this method is free to manipulate them.
InternalErrorExceptionpublic Debug[] getDebugInformation(DebugType[] types)
Module
getDebugInformation in class Moduletypes - The debug types that the caller knows how to handle.
public DebugType[] getDebugTypes()
Module
getDebugTypes in class Modulepublic RatedMove[] getMoves()
ModuleInterface
getMoves in interface ModuleInterfacegetMoves in class Modulepublic ModuleType[] getRequiredModuleList()
Module
getRequiredModuleList in class Module
public void makeMove(Move move,
Module[] modules)
throws IllegalMoveException,
InternalErrorException
Module
makeMove in class Modulemove - The move that was just made.modules - The modules that this method needs to perform its job.
IllegalMoveException
InternalErrorExceptionpublic MoveDescriptorForest getSequences()
Joseki
getSequences in interface Josekipublic float evaluateMove(Stone next)
Joseki
evaluateMove in interface Josekinext - The potential next move.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||