Package org.svvrl.goal.core.aut
Class DoubleDFSTraverser
java.lang.Object
org.svvrl.goal.core.aut.DFSTraverser
org.svvrl.goal.core.aut.DoubleDFSTraverser
public abstract class DoubleDFSTraverser extends DFSTraverser
Deprecated.
use
DoubleDFS
insteadA
DoubleDFSTraverser
can traverse an automaton by a double
depth-first search. The implementation is based on recursive calls.- Author:
- Ming-Hsien Tsai
-
Constructor Summary
Constructors Constructor Description DoubleDFSTraverser(Automaton aut)
Deprecated.Constructor. -
Method Summary
Modifier and Type Method Description protected abstract boolean
goDFS2(StateList prefix, State s)
Deprecated.Checks if a second DFS should start from this state or not.protected abstract boolean
isLassoAccepted(StateRun run)
Deprecated.Check if a lasso found in the second DFS is accepted or not.protected void
onAllSuccessorsReturned(StateList prefix, State curr)
Deprecated.Invoked after the depth-first search of all successors of a state returns.protected abstract void
visitDFS2State(State s)
Deprecated.Invoked when a state is visited in the second DFS.Methods inherited from class org.svvrl.goal.core.aut.DFSTraverser
dfs, dfs, dfs, getAutomaton, getDFSNumber, getDFSPredecessor, getUnvisitedStates, getVisitedStates, isVisited, onSuccessorReturned, onVisitedStateFound, onVisitState, reset
-
Constructor Details
-
DoubleDFSTraverser
Deprecated.Constructor.- Parameters:
aut
- the automaton to be traversed
-
-
Method Details
-
goDFS2
Deprecated.Checks if a second DFS should start from this state or not.- Parameters:
prefix
- the traversed prefix in the first DFSs
- the current state- Returns:
true
if the second DFS should start here
-
visitDFS2State
Deprecated.Invoked when a state is visited in the second DFS.- Parameters:
s
- a state visited in the second DFS
-
isLassoAccepted
Deprecated.Check if a lasso found in the second DFS is accepted or not.- Parameters:
run
- the lasso- Returns:
true
if the lasso is accepted by this double DFS
-
onAllSuccessorsReturned
Deprecated.Description copied from class:DFSTraverser
Invoked after the depth-first search of all successors of a state returns.- Overrides:
onAllSuccessorsReturned
in classDFSTraverser
- Parameters:
prefix
- the path from the root to the current states
curr
- the current state- Throws:
FinishedException
- if the depth-first search should stop here
-