|
GridSim 5.0 beta | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object Thread Sim_entity Link FlowLink
public class FlowLink
This class enables flow level networking over a shared link. It is partially based on SimpleLink.java by Gokul Poduval & Chen-Khong Tham
Nested Class Summary |
---|
Nested classes/interfaces inherited from class Thread |
---|
Thread.State, Thread.UncaughtExceptionHandler |
Field Summary |
---|
Fields inherited from class Link |
---|
baudRate_, DEFAULT_BAUD_RATE, DEFAULT_MTU, DEFAULT_PROP_DELAY, delay_, MILLI_SEC, MTU_ |
Fields inherited from class Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
FlowLink(String name,
double baudRate,
double propDelay,
int MTU)
Constructs a Link which simulates a physical link between two entities. |
Method Summary | |
---|---|
void |
attach(Sim_entity end1,
Sim_entity end2)
Connects one entity to another via this link |
void |
attach(String end1,
String end2)
Connects one entity to another via this link |
void |
body()
Handles external events that are coming to this link. |
void |
deregisterFlow(Packet np)
Deregisters active flow on link. |
double |
getBaudRate()
Returns available baudRate depending on number of active flows (MIN_MAX bandwidth sharing model) |
Methods inherited from class Link |
---|
getDelay, getMTU |
Methods inherited from class Thread |
---|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FlowLink(String name, double baudRate, double propDelay, int MTU) throws ParameterException, NullPointerException
name
- Name of this LinkbaudRate
- baud rate of this link (bits/s)propDelay
- Propogation delay of the Link in milli secondsMTU
- Maximum Transmission Unit of the Link in bytes.
Packets which are larger than the MTU should be split
up into MTU size units. NullPointerException
- This happens when name is empty or null
ParameterException
- This happens for the following conditions:
Method Detail |
---|
public void attach(Sim_entity end1, Sim_entity end2)
attach
in class Link
end1
- an entityend2
- an entitypublic void attach(String end1, String end2)
attach
in class Link
end1
- an Entity nameend2
- an Entity namepublic void body()
body
in class Sim_entity
public void deregisterFlow(Packet np)
np
- a packetpublic double getBaudRate()
getBaudRate
in class Link
|
GridSim 5.0 beta | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |