|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectJSimProcess
cz.zcu.kiv.vsp.msloup.patient.PatientGenerator
public class PatientGenerator
Generuje pacienty v simulaci
Constructor Summary | |
---|---|
PatientGenerator(String name,
JSimSimulation simulation,
IGenerator generator,
Counter count)
Konstruktor generatoru pacientu v simulaci |
Method Summary | |
---|---|
IGenerator |
getGenerator()
Vraci generator doby cekani mezi generovanim pacientu |
double |
getLq()
Vraci stredni celkovy pocet pacientu |
IRequestInput |
getOutput()
Vraci objekt, ktery prijima vygenerovane pacienty |
long |
getRequestCount()
Vraci pocet vytvorenych pacientu |
protected void |
life()
Zivotni cyklus generatoru pacientu |
void |
setOutput(IRequestInput output)
Nastavuje prijemce vygenerovaneho pacienta |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PatientGenerator(String name, JSimSimulation simulation, IGenerator generator, Counter count) throws JSimSimulationAlreadyTerminatedException, JSimInvalidParametersException, JSimTooManyProcessesException
name
- nazev objektu v simulacisimulation
- objekt simulatorugenerator
- objekt generatoru doby cekani mezi generovanim pacientucount
- pocet generovanych pacientu
JSimSimulationAlreadyTerminatedException
- Vyjimka je vyhozena, pokud simulace byla jiz ukocena.
JSimInvalidParametersException
- Vyjimka je vyhozena, pokud neni specifikovan objekt simulatoru.
JSimTooManyProcessesException
- Vyjimka je vyhozena, pokud neni mozne jiz do simulatoru pridat dalsi proces.Method Detail |
---|
protected void life()
public void setOutput(IRequestInput output)
output
- prijemce pacientapublic IRequestInput getOutput()
public IGenerator getGenerator()
public double getLq()
public long getRequestCount()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |