|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ow2.clif.scenario.transitions.TransitionTable
public class TransitionTable
This class provides utilities to design a scenario, which deals with these
aspects:
- Probability for the virtual user to reach a given link.
-
Probability for the virtual user to click on the back button.
-
Probability for the virtual user to end the session.
- Think time
between each virtual user action.
The structure is a matrix that represents the probability for a virtual user
to navigate from a specific page to another one.
This class need an external text file which has the following structure:
- Each value at ligne x and column y represents the probality for the
virtual user, to go from the "page y" to the "page x".
It must be a value between 0 and 1.
Constructor Summary | |
---|---|
TransitionTable(java.lang.String filename,
java.lang.String actions_file,
boolean useMatrixThinkTime,
boolean identifyByOrigin)
Create a transition table with specifics files and give information about how to handle think time. |
Method Summary | |
---|---|
TransitionTable |
createNewTransitionTable()
Create a new transition table, which have the same table than it table |
java.lang.String |
getCurrentStateName()
Return the name of the current state |
long |
getCurrentWaitingTime()
Return the time to wait for the current state |
Transition |
getNextTransition()
|
void |
resetPreviousState()
This method is used to reset all the previous states |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TransitionTable(java.lang.String filename, java.lang.String actions_file, boolean useMatrixThinkTime, boolean identifyByOrigin)
filename
- The transition file to load data from.actions_file
- The file containing the actions.useMatrixThinkTime
- true means that think time in the matrix are used.identifyByOrigin
- true means that the actions depends on the previous state.Method Detail |
---|
public TransitionTable createNewTransitionTable()
public void resetPreviousState()
public java.lang.String getCurrentStateName()
public long getCurrentWaitingTime()
public Transition getNextTransition()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |