|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.unisaarland.cs.st.jerify.verifier.typestate.StateChangeTransition
public class StateChangeTransition
Encapsulates the typestate transitions (e.g. open->close)
| Constructor Summary | |
|---|---|
StateChangeTransition()
Create a new empty Transition Class |
|
StateChangeTransition(java.util.Map<java.lang.String,java.util.Set<java.lang.String>> stateChanges)
Create a initialised Transition Class |
|
| Method Summary | |
|---|---|
void |
addTransition(Pair<java.lang.String,java.util.Set<java.lang.String>> transition)
Add a new Transition to the current |
void |
addTransition(java.lang.String from,
java.util.Set<java.lang.String> to)
Add a new Transition form one to many states |
State |
applyChanges(java.util.Set<java.lang.String> stateSet)
Apply the changes encapsulated to the States passed |
boolean |
containsStateChangeFor(java.lang.String state)
Test if the StateChanges handle a specific state |
boolean |
isEmpty()
Test if there are any changes |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StateChangeTransition()
public StateChangeTransition(java.util.Map<java.lang.String,java.util.Set<java.lang.String>> stateChanges)
stateChanges - the transitions| Method Detail |
|---|
public void addTransition(Pair<java.lang.String,java.util.Set<java.lang.String>> transition)
transition - the transition to add
public void addTransition(java.lang.String from,
java.util.Set<java.lang.String> to)
from - the start stateto - the to statespublic boolean isEmpty()
isEmpty in interface StateChangespublic boolean containsStateChangeFor(java.lang.String state)
containsStateChangeFor in interface StateChangesState - the state
public State applyChanges(java.util.Set<java.lang.String> stateSet)
applyChanges in interface StateChangesstateSet - the State to change
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||