|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
cz.zcu.fav.kiv.jsim.JSimProcess
vsp.uloha437.Server
public class Server
Server pro zpracovani pozadavku.
Doba obsluhy pozadavku ma 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 | |
---|---|
Server(java.lang.String name,
cz.zcu.fav.kiv.jsim.JSimSimulation simulation,
double lambda,
Junction out)
Konstruktor tridy. |
Method Summary | |
---|---|
double |
getLq()
Vrati prumerny pocet pozadavku v serveru. |
Queue |
getQueue()
Vrati frontu serveru, do ktere mohou byt vkladany pozadavky. |
double |
getRo()
Vrati prumerne zatizeni serveru. |
void |
life()
V nekonecne smycce: - ceka nahodnou dobu s exponencialnim rozdelenim - vybere prvek z fronty - vlozi prvek na vystup |
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 |
---|
public Server(java.lang.String name, cz.zcu.fav.kiv.jsim.JSimSimulation simulation, double lambda, Junction out) throws cz.zcu.fav.kiv.jsim.JSimSimulationAlreadyTerminatedException, cz.zcu.fav.kiv.jsim.JSimInvalidParametersException, cz.zcu.fav.kiv.jsim.JSimTooManyProcessesException, cz.zcu.fav.kiv.jsim.JSimTooManyHeadsException, java.lang.Exception
name
- Nazev objektu.simulation
- Reference na objekt simulacniho modelu.lambda
- Parametr exponencialniho rozdeleni doby obsluhy pozadavku.out
- Vystupni prvek.
cz.zcu.fav.kiv.jsim.JSimSimulationAlreadyTerminatedException
cz.zcu.fav.kiv.jsim.JSimInvalidParametersException
cz.zcu.fav.kiv.jsim.JSimTooManyProcessesException
cz.zcu.fav.kiv.jsim.JSimTooManyHeadsException
java.lang.Exception
Method Detail |
---|
public Queue getQueue()
public double getRo()
public double getLq()
public void life()
life
in class cz.zcu.fav.kiv.jsim.JSimProcess
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |