|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnz.ac.waikato.modeljunit.examples.SpecialFSMNoLoops
public class SpecialFSMNoLoops
Simple FSM that is specialized so All Round Trips runs better
Constructor Summary | |
---|---|
SpecialFSMNoLoops()
|
Method Summary | |
---|---|
void |
action0()
|
boolean |
action0Guard()
|
void |
action1()
|
void |
action10()
|
boolean |
action10Guard()
|
void |
action11()
|
boolean |
action11Guard()
|
void |
action12()
|
boolean |
action12Guard()
|
void |
action13()
|
boolean |
action13Guard()
|
void |
action14()
|
boolean |
action14Guard()
|
void |
action15()
|
boolean |
action15Guard()
|
void |
action16()
|
boolean |
action16Guard()
|
void |
action17()
|
boolean |
action17Guard()
|
void |
action18()
|
boolean |
action18Guard()
|
void |
action19()
|
boolean |
action19Guard()
|
boolean |
action1Guard()
|
void |
action2()
|
void |
action20()
|
boolean |
action20Guard()
|
boolean |
action2Guard()
|
void |
action3()
|
boolean |
action3Guard()
|
void |
action4()
|
boolean |
action4Guard()
|
void |
action5()
|
boolean |
action5Guard()
|
void |
action6()
|
boolean |
action6Guard()
|
void |
action7()
|
boolean |
action7Guard()
|
void |
action8()
|
boolean |
action8Guard()
|
void |
action9()
|
boolean |
action9Guard()
|
java.lang.String |
getState()
Return the current state of the FSM model. |
static void |
main(java.lang.String[] args)
This main method illustrates how we can use ModelJUnit to generate a small test suite. |
void |
reset(boolean testing)
Reset the model to its initial state. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SpecialFSMNoLoops()
Method Detail |
---|
public java.lang.String getState()
FsmModel
Advanced Feature: This method can be used to define
equivalence classes over the states, if you want to reduce
the number of states to keep the FSM small.
For example, if you have a integer state variable I that can
have a huge number of possible values, you could define your
getState() method to return new Integer(I % 10)
.
This would reduce the FSM to just 10 states, where FSM state 0
represents all the states where I=0 or I=10 or I=20 etc., and
FSM state 1 represents all the states where I=1 or I=11 or I=21 etc.
getState
in interface FsmModel
public void reset(boolean testing)
FsmModel
reset
in interface FsmModel
testing
- true means the SUT should be reset too.public boolean action0Guard()
public void action0()
public boolean action1Guard()
public void action1()
public boolean action2Guard()
public void action2()
public boolean action3Guard()
public void action3()
public boolean action4Guard()
public void action4()
public boolean action5Guard()
public void action5()
public boolean action6Guard()
public void action6()
public boolean action7Guard()
public void action7()
public boolean action8Guard()
public void action8()
public boolean action9Guard()
public void action9()
public boolean action10Guard()
public void action10()
public boolean action11Guard()
public void action11()
public boolean action12Guard()
public void action12()
public boolean action13Guard()
public void action13()
public boolean action14Guard()
public void action14()
public boolean action15Guard()
public void action15()
public boolean action16Guard()
public void action16()
public boolean action17Guard()
public void action17()
public boolean action18Guard()
public void action18()
public boolean action19Guard()
public void action19()
public boolean action20Guard()
public void action20()
public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |