|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ISearcher
This interface is the top-level interface for a state-space search algorithm.
| Field Summary | |
|---|---|
static int |
ASSERTION_FAILED_CODE
The error code for assertion failure. |
static int |
EXT_FAILED_CODE
The error code for extension failure. |
static int |
ILL_FORMED_MODEL_CODE
The error code for ill-formed model. |
static int |
INVALID_END_STATE_CODE
The error code for invalid end state. |
static int |
INVARIANT_VIOLATED_CODE
The error code for Ill-formed model. |
static int |
RANGE_EXCEPTION_CODE
The error code for integer range exception. |
static int |
UNCAUGHT_EXCEPTION_CODE
The error code for uncaught exception. |
| Method Summary | |
|---|---|
boolean |
backtrack()
Backtracks and executes the next unexecuted transformation sibling (if any). |
IState |
createInitialState()
Creates the initial state. |
void |
doTransition(int threadDesc,
Transformation t,
Action a)
Executes a transformation. |
void |
error(int errCode)
Signal an error has been found. |
ArrayList<IBacktrackingInfo> |
getBacktrackingInfos()
Gets the list of backtacking information from the initial state to the current state (last completed transformation). |
int |
getErrorCount()
Gets the number of errors found in the model so far. |
IState |
getState()
Gets the current state. |
void |
initialize()
Perform all work preceding the a call to search(). |
void |
search()
Starts the search. |
boolean |
shouldStore()
Determines whether the current state should be stored in the seen before set. |
boolean |
step()
Executes an enabled transformation (if any). |
boolean |
stepBackward()
Backtracks to just before the beginning of the most recent transition executed. |
boolean |
store()
Stores the current state. |
void |
writeCounterExamples()
Externalize all counter-examples found so far. |
| Methods inherited from interface edu.ksu.cis.projects.bogor.module.IModule |
|---|
connect, getCopyrightNotice, setOptions |
| Methods inherited from interface edu.ksu.cis.projects.bogor.util.Disposable |
|---|
dispose |
| Field Detail |
|---|
static final int ILL_FORMED_MODEL_CODE
static final int INVALID_END_STATE_CODE
static final int ASSERTION_FAILED_CODE
static final int UNCAUGHT_EXCEPTION_CODE
static final int RANGE_EXCEPTION_CODE
static final int EXT_FAILED_CODE
static final int INVARIANT_VIOLATED_CODE
| Method Detail |
|---|
ArrayList<IBacktrackingInfo> getBacktrackingInfos()
int getErrorCount()
IState getState()
boolean backtrack()
IState createInitialState()
void doTransition(int threadDesc,
Transformation t,
Action a)
threadDesc - The thread descriptor that executes the transformation. Must
be an active thread descriptor at the current state.t - The transformation to be executed. Non-null.a - The action to start from. Must be null if t is not an instance
of BlockTransformation. If it is non-null, it
indicates the execution starts from the action a.void error(int errCode)
errCode - The error code.void initialize()
search().
void search()
boolean shouldStore()
boolean step()
boolean stepBackward()
step() and stepBackward()
successively is not guaranteed to be reflexive.
boolean store()
void writeCounterExamples()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||