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
-
EXTENDED
-
-
NATURAL
-
-
NUMERAL
-
-
Wizard()
-
-
getBank()
- Gets the current bank
-
recognize(Pattern)
- You give the Wizard a pattern and lets him recognize it.
-
setBank(byte)
- Tell the wizard in what bank to look in
NATURAL
public static final byte NATURAL
NUMERAL
public static final byte NUMERAL
EXTENDED
public static final byte EXTENDED
Wizard
public Wizard()
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
setBank
public void setBank(byte bank)
- Tell the wizard in what bank to look in
- Parameters:
- bank - One of NATURAL, NUMERAL or EXTENDED
getBank
public byte getBank()
- Gets the current bank
- Returns:
- The current bank
All Packages Class Hierarchy This Package Previous Next Index