|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Throwable | +--java.lang.Exception | +--cz.zcu.fav.kiv.jsim.JSimException | +--cz.zcu.fav.kiv.jsim.JSimInvalidProcessStateException
The JSimInvalidProcessStateException is thrown whenever an attempt is made to change a process's state with JSimProcess.setProcessState() but there is not a transition between the current and the desired state in the graph of J-Sim process states. You should never need to create an instance of this class.
Field Summary | |
private int |
newState
|
private int |
oldState
|
Fields inherited from class cz.zcu.fav.kiv.jsim.JSimException |
|
Fields inherited from class java.lang.Exception |
|
Fields inherited from class java.lang.Throwable |
|
Constructor Summary | |
JSimInvalidProcessStateException(java.lang.String param,
int oldSt,
int newSt)
Creates a new JSimInvalidProcessStateException with a specific information. |
Method Summary | |
void |
printComment(java.io.PrintStream ps)
Prints an explanation why this exception was thrown. |
Methods inherited from class cz.zcu.fav.kiv.jsim.JSimException |
getSpecificInfo |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private int oldState
private int newState
Constructor Detail |
public JSimInvalidProcessStateException(java.lang.String param, int oldSt, int newSt)
oldSt
- The current state of a process.newSt
- The state that the user or J-Sim attempted to switch to.Method Detail |
public void printComment(java.io.PrintStream ps)
JSimException
printComment
in class JSimException
ps
- The print stream that the explanation is to be printed to.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |