public class FMASimulator extends Simulator
automa, pointer_state, pointer_string
Constructor and Description |
---|
FMASimulator(FSA automa) |
Modifier and Type | Method and Description |
---|---|
void |
changeAutoma(FSA automa)
Change the automaton
|
protected Continuation |
createContinuation()
Create a new Continuation with the freezed state of the automaton
|
protected boolean |
isValid(Transition tr,
int symbol)
A transition tr is valid if the symbol is contained in the registers and the label is equal to the index of the register
containing the symbol in input; or if the symbol in input is not contained in the registers and the label is equal to
the fuction rho in the actual state.
|
protected void |
restoreStateContinuation(Continuation c)
restore the state of the simulator with the parameters in the continuation C.
|
protected void |
updateState(Transition tr,
int symbol)
Update the register of the automaton if the symbol in input is not contained in the register, invoke the method
of the superclass for updating the other parameters.
|
backtracking, checkContinuation, contains, contains, run, sideConditions, step
public FMASimulator(FSA automa)
automa
- the automaton to simulatepublic void changeAutoma(FSA automa)
changeAutoma
in class Simulator
protected boolean isValid(Transition tr, int symbol)
protected void updateState(Transition tr, int symbol)
updateState
in class Simulator
tr
- the transition to be performedsymbol
- the symbol in inputprotected void restoreStateContinuation(Continuation c)
restoreStateContinuation
in class Simulator
c
- the continuation to be restoredprotected Continuation createContinuation()
createContinuation
in class Simulator