|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Thread | +--transport.Unicast
This class is used for Unicasting a message to one user in wireless range. It adds in timing delays based on ratio of max range/distance to simulate bandwidth loss and delay due to wireless signal degradation.
Field Summary | |
private transport.protocol.UnicastMessage |
msg
The message to send in this thread. |
private java.util.Vector |
points
The list of all access points in the simulation. |
private java.util.Vector |
users
The list of all users in the simulation. |
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
Unicast(java.util.Vector users,
java.util.Vector points,
transport.protocol.UnicastMessage msg)
This Costructor preps the Thread for the given message to send. |
Method Summary | |
void |
run()
This method excutes the thread. |
Methods inherited from class java.lang.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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private transport.protocol.UnicastMessage msg
private java.util.Vector points
private java.util.Vector users
Constructor Detail |
public Unicast(java.util.Vector users, java.util.Vector points, transport.protocol.UnicastMessage msg)
msg
- The message to send to other users in range.Method Detail |
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |