|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object | +--Thread | +--eduni.simjava.Sim_entity | +--gridsim.GridSim | +--gridbroker.UserEntity
UserEntity class is an entity that simulates the user. It invokes the broker and passes the user requirements. When it receives the results of application processing, it records parameters of interest with gridsim.Statistics entity. When it has no more processing requirements, it sends END_OF_SIMULATION event to gridsim.GridSimShutdown entity.
Field Summary |
Fields inherited from class gridsim.GridSim |
input, output, rand, SimulationStartDate |
Fields inherited from class eduni.simjava.Sim_entity |
|
Fields inherited from class Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
UserEntity(String name,
Experiment expt,
double baudRate,
long seed,
double successiveExperimentDelay,
boolean resultDisplay)
Allocates a new UserEntity object |
Method Summary | |
void |
body()
A method that records statistics, sends entity and shuts down when the simulation finish |
Methods inherited from class eduni.simjava.Sim_entity |
add_param, add_port, get_id, get_name, get_port, get_port, run, send_on, set_invisible, sim_cancel, sim_current, sim_get_next, sim_get_next, sim_hold_for, sim_hold, sim_putback, sim_schedule, sim_schedule, sim_schedule, sim_schedule, sim_schedule, sim_schedule, sim_select, sim_trace, sim_wait_for, sim_wait, sim_waiting, sim_waiting |
Methods inherited from class Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public UserEntity(String name, Experiment expt, double baudRate, long seed, double successiveExperimentDelay, boolean resultDisplay) throws Exception
name
- the entity nameexpt
- an object of ExperimentbaudRate
- the communication speedseed
- the initial seedsuccessiveExperimentDelay
- the delay between successive
experimentresultDisplay
- display Gridlet processing report or not
Exception
- This happens when creating this entity before
initializing GridSim package or this entity name is
null or emptyGridSim.init(int, Calendar, boolean, String[], String[],
String)
,
Experiment
Method Detail |
public void body()
body
in class eduni.simjava.Sim_entity
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |