|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectState
public class State
Instances of class State hold the four (short
) integers
x,y,dx,dy
representing a state of the automaton
described in Section 3.2.
Field Summary | |
---|---|
(package private) short |
dx
The encoding of the last h differences in the last
column of the limited-history lcs table. |
(package private) short |
dy
The encoding of the last h differences in the last
row of the limited-history lcs table. |
(package private) static int |
h
The history length. |
static boolean |
REDUCE
Control whether the reduction based on the symmetry between < x,y,dx,dy > and
<complement(x), complement(y),dx,dy >
is used. |
(package private) static boolean |
verbose
Control whether verbose output is produced. |
(package private) short |
x
The encoding of the last h bits of the upper input
string. |
(package private) short |
y
The encoding of the last h bits of the lower input
string. |
Constructor Summary | |
---|---|
State()
Create a new uninitialized state. |
|
State(int x,
int y,
int dx,
int dy)
Create a new state and initialize its components from the parameters. |
Method Summary | |
---|---|
boolean |
equals(State t)
Test whether all four components of this state are equal to the corresponding components of state t . |
int |
hashValue()
Return a hash value for this state. |
static void |
main(java.lang.String[] args)
Set the verbose flags to true and then perform several tests. |
void |
reduce()
Reduce this state to a canonical form for the equivalence between < x,y,dx,dy > and
<complement(x), complement(y),dx,dy > |
java.lang.String |
toString()
Produce a string representing this state (in hexadecimal). |
State |
transition(int character,
int padding)
Return the new state resulting from this state upon reading a minimal match pair. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final boolean REDUCE
x,y,dx,dy
> and
<complement(x),
complement(y),dx,dy
>
is used.
static boolean verbose
static int h
short x
h
bits of the upper input
string.
short y
h
bits of the lower input
string.
short dx
h
differences in the last
column of the limited-history lcs table.
short dy
h
differences in the last
row of the limited-history lcs table.
Constructor Detail |
---|
public State()
public State(int x, int y, int dx, int dy)
Method Detail |
---|
public boolean equals(State t)
t
.
public java.lang.String toString()
toString
in class java.lang.Object
public State transition(int character, int padding)
q.transition(character,padding)
computes
delta(q,Tcharacter,padding) where delta is the
procedure shown in Figure 7, and Tcharacter,padding
is as defined in the overview of the
code.
public void reduce()
x,y,dx,dy
> and
<complement(x),
complement(y),dx,dy
>
public int hashValue()
public static void main(java.lang.String[] args)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |