|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectanalysis.parsing.Tuple
public class Tuple
The tuple used in Earley's algorithm, consisting of a production index, a dot position at the production, a state, ahead strings and father tuples.
| Field Summary | |
|---|---|
int |
d
Current position (dot) |
int |
p
Index of production |
int |
s
State |
| Constructor Summary | |
|---|---|
Tuple()
Creates an instance of Tuple. |
|
Tuple(int pv,
int dv,
int sv)
Creates an instance of Tuple. |
|
Tuple(int pv,
int dv,
int sv,
Tuple father)
Creates an instance of Tuple. |
|
| Method Summary | |
|---|---|
void |
addFather(Tuple father)
Adds a tuple to the father tuple list. |
boolean |
equals(java.lang.Object obj)
|
Tuple[] |
getFathers()
Returns the fathers |
int |
hashCode()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public int p
public int d
public int s
| Constructor Detail |
|---|
public Tuple()
public Tuple(int pv,
int dv,
int sv)
pv - production indexdv - dot positionsv - state
public Tuple(int pv,
int dv,
int sv,
Tuple father)
Tuple.
pv - production indexdv - dot positionsv - statefather - father tuple| Method Detail |
|---|
public void addFather(Tuple father)
father - the tuple to addpublic Tuple[] getFathers()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||