cz.zcu.fav.kiv.cs
Class CSProcess.Shadow

java.lang.Object
  extended byjava.lang.Thread
      extended bycz.zcu.fav.kiv.jsim.JSimProcess
          extended bycz.zcu.fav.kiv.cs.CSProcess.Shadow
All Implemented Interfaces:
java.lang.Comparable, cz.zcu.fav.kiv.jsim.gui.JSimDisplayable, java.lang.Runnable
Enclosing class:
CSProcess

private final class CSProcess.Shadow
extends cz.zcu.fav.kiv.jsim.JSimProcess

This nested class extends JSimProcess and represents this CSProcess in the J-Sim.


Field Summary
 
Fields inherited from class cz.zcu.fav.kiv.jsim.JSimProcess
INT_REQUESTS_TO_IGNORE, myParent, semaphoreIAmCurrentlyBlockedOn, STATE_ACTIVE, STATE_BLOCKEDONSEMAPHORE, STATE_NEW, STATE_PASSIVE, STATE_SCHEDULED, STATE_TERMINATED
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
CSProcess.Shadow(java.lang.String name, CSSimulation parent)
           
 
Method Summary
 boolean haveIstarted()
           
 void holdMe(double howLong)
           
protected  void life()
          Calls method csLife, which should user of CSProcess overwrite.
 void passivateMe()
           
 
Methods inherited from class cz.zcu.fav.kiv.jsim.JSimProcess
activate, blockOnSemaphore, cancel, compareTo, createDetailedInfoWindow, equals, error, getDetailedInformationArray, getNumber, getObjectListItemDescription, getParent, getPrivateLock, getScheduleTime, getState, getStateAsString, getStateAsString, hasBeenStarted, hashCode, hold, isIdle, message, messageNoNL, passivate, reactivate, run, start, toString, unblockFromSemaphore
 
Methods inherited from class java.lang.Thread
activeCount, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, checkAccess, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, stop, stop, suspend, yield
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CSProcess.Shadow

public CSProcess.Shadow(java.lang.String name,
                        CSSimulation parent)
                 throws cz.zcu.fav.kiv.jsim.JSimSimulationAlreadyTerminatedException,
                        cz.zcu.fav.kiv.jsim.JSimInvalidParametersException,
                        cz.zcu.fav.kiv.jsim.JSimTooManyProcessesException
Method Detail

life

protected void life()
Calls method csLife, which should user of CSProcess overwrite.


holdMe

public void holdMe(double howLong)
            throws cz.zcu.fav.kiv.jsim.JSimSecurityException
Throws:
cz.zcu.fav.kiv.jsim.JSimSecurityException

passivateMe

public void passivateMe()
                 throws cz.zcu.fav.kiv.jsim.JSimSecurityException
Throws:
cz.zcu.fav.kiv.jsim.JSimSecurityException

haveIstarted

public boolean haveIstarted()