vsp.uloha437
Class Generator

java.lang.Object
  extended by java.lang.Thread
      extended by cz.zcu.fav.kiv.jsim.JSimProcess
          extended by vsp.uloha437.Generator
All Implemented Interfaces:
cz.zcu.fav.kiv.jsim.gui.JSimDisplayable, java.lang.Comparable<cz.zcu.fav.kiv.jsim.JSimProcess>, java.lang.Runnable

public class Generator
extends cz.zcu.fav.kiv.jsim.JSimProcess

Generator pozadavku.

Casove intervaly mezi vystupnimi pozadavky maji exponencialni rozdeleni.


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class cz.zcu.fav.kiv.jsim.JSimProcess
INT_REQUESTS_TO_IGNORE, myParent
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
Generator(java.lang.String name, cz.zcu.fav.kiv.jsim.JSimSimulation simulation, double lambda, int count, Junction out)
          Konstruktor tridy.
 
Method Summary
 void life()
          V nekonecne smycce: - vygeneruje pozadavek - posle jej na vystup - ceka nahodnou dobu s exponencialnim rozdelenim
 
Methods inherited from class cz.zcu.fav.kiv.jsim.JSimProcess
activate, activateNow, blockOnSemaphore, cancel, compareTo, copyToMessageClipboard, createDetailedInfoWindow, equals, error, getDetailedInformationArray, getMessageBox, getObjectListItemDescription, getParent, getPrivateLock, getProcessName, getProcessNumber, getProcessState, getProcessStateAsString, getReady, getSenderIAmWaitingFor, getScheduleTime, hasBeenStarted, hasEmptyMessageClipboard, hashCode, hold, isIdle, mainSwitchingRoutine, message, messageNoNL, passivate, reactivate, readFromClipboard, receiveMessageWithBlocking, receiveMessageWithBlocking, receiveMessageWithBlocking, receiveMessageWithBlocking, receiveMessageWithoutBlocking, receiveMessageWithoutBlocking, receiveMessageWithoutBlocking, receiveMessageWithoutBlocking, run, sendMessageWithBlocking, sendMessageWithBlocking, sendMessageWithBlocking, sendMessageWithoutBlocking, sendMessageWithoutBlocking, sendMessageWithoutBlocking, setProcessState, start, toString, unblockFromSemaphore, wait
 
Methods inherited from class java.lang.Thread
activeCount, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, checkAccess, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, stop, stop, suspend, yield
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Generator

public Generator(java.lang.String name,
                 cz.zcu.fav.kiv.jsim.JSimSimulation simulation,
                 double lambda,
                 int count,
                 Junction out)
          throws cz.zcu.fav.kiv.jsim.JSimSimulationAlreadyTerminatedException,
                 cz.zcu.fav.kiv.jsim.JSimInvalidParametersException,
                 cz.zcu.fav.kiv.jsim.JSimTooManyProcessesException
Konstruktor tridy.

Parameters:
name - Nazev objektu.
simulation - Reference na objekt simulacniho modelu.
lambda - Parametr exponencialniho rozdeleni doby mezi vstupnimi pozadavky.
count - Pocet pozadavku, ktere budou vygenerovany.
out - Vystupni prvek.
Throws:
cz.zcu.fav.kiv.jsim.JSimSimulationAlreadyTerminatedException
cz.zcu.fav.kiv.jsim.JSimInvalidParametersException
cz.zcu.fav.kiv.jsim.JSimTooManyProcessesException
Method Detail

life

public void life()
V nekonecne smycce: - vygeneruje pozadavek - posle jej na vystup - ceka nahodnou dobu s exponencialnim rozdelenim

Overrides:
life in class cz.zcu.fav.kiv.jsim.JSimProcess