|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Object
|
+--Thread
|
+--eduni.simjava.Sim_entity
|
+--gridsim.Output
GridSim Output defines a port through which a simulation entity sends data to the simulated network.
It maintains an event queue to serialize the data-out-flow and delivers to the destination entity. It works along with Input entity to simulate network communication delay. Simultaneous outputs can be modeled by using multiple instances of this class
| Field Summary |
| Fields inherited from class eduni.simjava.Sim_entity |
|
| Fields inherited from class Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
Output(String name,
double baudRate)
Allocates a new Output object |
|
| Method Summary | |
void |
body()
A method that gets one process event at one time until the end of a simulation, then delivers an event to the entity (its parent) |
double |
getBaudRate()
Gets the baud rate |
double |
GetBaudRate()
Deprecated. As of GridSim 2.1, replaced by getBaudRate() |
double |
real_io(double value)
Deprecated. As of GridSim 2.1, replaced by realIO(double) |
double |
realIO(double value)
Gets the I/O real number based on a given value |
| 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, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Output(String name,
double baudRate)
throws NullPointerException
name - the name of this objectbaudRate - the communication speed
NullPointerException - This happens when creating this entity
before initializing GridSim package or this entity name
is null or empty| Method Detail |
public double GetBaudRate()
getBaudRate()
public double getBaudRate()
public double real_io(double value)
realIO(double)
value - the specified value
public double realIO(double value)
value - the specified value
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 | |||||||||