|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectkorat.testing.impl.StateSpaceExplorer
public class StateSpaceExplorer
StateSpaceExplorer implements Korat search strategy
| Field Summary | |
|---|---|
protected IIntList |
accessedFields
|
protected CandidateBuilder |
candidateBuilder
|
protected int[] |
candidateVector
|
protected IIntList |
changedFields
|
protected int[] |
endCV
|
protected boolean |
firstTestCase
|
protected int[] |
startCV
|
protected StateSpace |
stateSpace
|
(package private) Map<Object,Object> |
visited
|
| Constructor Summary | |
|---|---|
StateSpaceExplorer(IFinitization ifin)
|
|
| Method Summary | |
|---|---|
IIntList |
getAccessedFields()
Gets the list of accessed fields during the last search. |
int[] |
getCandidateVector()
Gets candidate vector that corresponds to the test case returned last. |
protected boolean |
getNextCandidate()
|
Object |
nextTestCase()
Searches for next test case. |
private boolean |
reachedEndCV()
|
void |
reportCurrentAsValid()
Reports the current test case as valid structure The current test case is the last one returned with nextTestCase. |
void |
setEndCandidateVector(int[] endCV)
|
void |
setStartCandidateVector(int[] startCV)
|
protected void |
touch(Object obj)
|
private void |
touchArray(Object obj)
|
private void |
touchField(int fldIndex)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected StateSpace stateSpace
protected CandidateBuilder candidateBuilder
protected int[] candidateVector
protected int[] startCV
protected int[] endCV
protected IIntList accessedFields
protected IIntList changedFields
protected boolean firstTestCase
Map<Object,Object> visited
| Constructor Detail |
|---|
public StateSpaceExplorer(IFinitization ifin)
| Method Detail |
|---|
public IIntList getAccessedFields()
IKoratSearchStrategy
getAccessedFields in interface IKoratSearchStrategypublic int[] getCandidateVector()
IKoratSearchStrategy
getCandidateVector in interface IKoratSearchStrategypublic void setEndCandidateVector(int[] endCV)
setEndCandidateVector in interface IKoratSearchStrategypublic void setStartCandidateVector(int[] startCV)
setStartCandidateVector in interface IKoratSearchStrategypublic Object nextTestCase()
IKoratSearchStrategy
nextTestCase in interface IKoratSearchStrategyprotected boolean getNextCandidate()
private boolean reachedEndCV()
public void reportCurrentAsValid()
IKoratSearchStrategynextTestCase.
If this method is executed before first nextTestCase, the behaviour
is undefined
reportCurrentAsValid in interface IKoratSearchStrategyprotected void touch(Object obj)
private void touchField(int fldIndex)
private void touchArray(Object obj)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||