public class Continuation
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected int |
pointer_state |
protected int |
pointer_string |
Constructor and Description |
---|
Continuation(int pe,
int pg,
java.util.Vector<Transition> tr)
Create a new Continuation
|
Modifier and Type | Method and Description |
---|---|
Continuation |
cloneWithoutTransition()
Clone this continuation, without specifying the transitions
|
boolean |
containTransition(Continuation c,
Transition t)
Check if the continuation c is equal without transition to this continuation, and if the transition t
is contained in this continuation
|
boolean |
equalWithoutTransition(Continuation c)
Check if the continuation c has the same pointer state and pointer string of this continuation
|
int |
getPointerState() |
int |
getPointerString() |
java.util.Vector<Transition> |
getTransition() |
void |
setTransition(java.util.Vector<Transition> v)
Update the transitions
|
public Continuation(int pe, int pg, java.util.Vector<Transition> tr)
pe
- the actual statepg
- pointer to the symbol in inputtr
- the possible transitions to be executedpublic java.util.Vector<Transition> getTransition()
public void setTransition(java.util.Vector<Transition> v)
v
- the new transitionspublic int getPointerState()
public int getPointerString()
public Continuation cloneWithoutTransition()
public boolean equalWithoutTransition(Continuation c)
c
- a continuation to be checkedpublic boolean containTransition(Continuation c, Transition t)
c
- the continuation to be searchedt
- the transition to be checked