All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class merlin.wizard.Wizard

java.lang.Object
   |
   +----merlin.wizard.Wizard

public abstract class Wizard
extends Object
The interface of a Wizard. A Wizard takes a Pattern and produces a guess of what it looks like

Version:
0.9
Author:
Stefan Hellkvist

Variable Index

 o EXTENDED
 o NATURAL
 o NUMERAL

Constructor Index

 o Wizard()

Method Index

 o getBank()
Gets the current bank
 o recognize(Pattern)
You give the Wizard a pattern and lets him recognize it.
 o setBank(byte)
Tell the wizard in what bank to look in

Variables

 o NATURAL
 public static final byte NATURAL
 o NUMERAL
 public static final byte NUMERAL
 o EXTENDED
 public static final byte EXTENDED

Constructors

 o Wizard
 public Wizard()

Methods

 o recognize
 public abstract char recognize(Pattern p)
You give the Wizard a pattern and lets him recognize it. You don't need to preprocess the pattern with any filter. The Wizard will do all the necessary filtering.

Parameters:
p - The pattern to recognize
Returns:
The ascii value of the pattern
 o setBank
 public void setBank(byte bank)
Tell the wizard in what bank to look in

Parameters:
bank - One of NATURAL, NUMERAL or EXTENDED
 o getBank
 public byte getBank()
Gets the current bank

Returns:
The current bank

All Packages  Class Hierarchy  This Package  Previous  Next  Index