cz.zcu.fav.kiv.jsim
Class JSimInvalidProcessStateException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--cz.zcu.fav.kiv.jsim.JSimException
                    |
                    +--cz.zcu.fav.kiv.jsim.JSimInvalidProcessStateException
All Implemented Interfaces:
java.io.Serializable

public class JSimInvalidProcessStateException
extends JSimException

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.

Since:
J-Sim version 0.1.2
Version:
J-Sim version 0.3.0
Author:
Jarda KAČER
See Also:
Serialized Form

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

oldState

private int oldState

newState

private int newState
Constructor Detail

JSimInvalidProcessStateException

public JSimInvalidProcessStateException(java.lang.String param,
                                        int oldSt,
                                        int newSt)
Creates a new JSimInvalidProcessStateException with a specific information.

Parameters:
oldSt - The current state of a process.
newSt - The state that the user or J-Sim attempted to switch to.
Method Detail

printComment

public void printComment(java.io.PrintStream ps)
Description copied from class: JSimException
Prints an explanation why this exception was thrown. The explanation is printed out to a print stream.

Overrides:
printComment in class JSimException
Parameters:
ps - The print stream that the explanation is to be printed to.


Copyright © 2000-2004 University of West Bohemia, FAV-KIV. All Rights Reserved. Build date 20040510.