|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Thread
simnet.Application
simnet.SpeedTest
An application that is used to test how well bandwidth and latency are modelled.
| Nested Class Summary | |
(package private) class |
SpeedTest.STThread
Inner class used to send out packets for a SpeedTest. |
| Field Summary | |
protected static Histogram |
hist
|
protected boolean |
keep_going
|
(package private) DatagramSocket |
sock
|
static int |
SpeedTestPort
Which port to run the speed test on. |
protected static int |
st_left
|
protected java.lang.Thread |
test_thread
|
| Fields inherited from class simnet.Application |
appid, appstart, frame, initialized, node, NODE_ID, pid, random, sim, win |
| Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
SpeedTest()
|
|
| Method Summary | |
void |
customInit()
Create a UDP socket and bind it to the speed test port. |
boolean |
prePlugout(java.lang.Object replacement)
If a test is currently running from this application, stop it. |
void |
run()
Receive speed test packets, and record them. |
void |
SpeedTest(java.lang.Integer rounds,
java.lang.Integer delay)
Run a speed test for the specified number of rounds, with the specified delay between rounds. |
void |
SpeedTest(java.lang.Integer rounds,
java.lang.Integer delay,
java.lang.Integer stagger)
Run a speed test for the specified number of rounds, with the specified delay between rounds. |
void |
SpeedTest(java.lang.String all,
java.lang.Integer rounds,
java.lang.Integer delay)
Run a speed test with the specified parameters, and a stagger of 0. |
void |
SpeedTest(java.lang.String all,
java.lang.Integer rounds,
java.lang.Integer delay,
java.lang.Integer stagger)
Run a speed test for the specified number of rounds with delay between each round. |
void |
SpeedTestResults()
Print out the results of a speed test, waiting for it to finish, if necessary. |
| Methods inherited from class simnet.Application |
closeWindow, finalize, getTitleString, initialize, plugoutNotification, printout, printout, processWindowCommand, rawOut, window |
| 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, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int SpeedTestPort
DatagramSocket sock
protected transient boolean keep_going
protected static int st_left
protected static Histogram hist
protected transient java.lang.Thread test_thread
| Constructor Detail |
public SpeedTest()
| Method Detail |
public void customInit()
customInit in class Applicationpublic void SpeedTestResults()
public void SpeedTest(java.lang.String all,
java.lang.Integer rounds,
java.lang.Integer delay)
public void SpeedTest(java.lang.String all,
java.lang.Integer rounds,
java.lang.Integer delay,
java.lang.Integer stagger)
public void SpeedTest(java.lang.Integer rounds,
java.lang.Integer delay)
public void SpeedTest(java.lang.Integer rounds,
java.lang.Integer delay,
java.lang.Integer stagger)
public void run()
run in interface java.lang.Runnablerun in class Applicationpublic boolean prePlugout(java.lang.Object replacement)
prePlugout in interface Pluggable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||