|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectCADI.Server.Util
public class Util
This class finds out the JPEG2000 parameters from the J2C headers.
| Constructor Summary | |
|---|---|
Util()
|
|
| Method Summary | |
|---|---|
static float |
calculateAverageWeighted(long[] bytes,
long[] times)
Calculates the average of bytes per second. |
static long |
waitTime(long[] bytes,
long[] times,
long bytesToSend,
float maxTxRate)
Deprecated. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Util()
| Method Detail |
|---|
public static float calculateAverageWeighted(long[] bytes,
long[] times)
bytes - is an one-dimensional array with the amount of bytes.times - is an one-dimensional array with the time where bytes
was sent. It is expressed in miliseconds. The first index is
when the first dada was sent, and the last one is the most
most recently time.
@Deprecated
public static long waitTime(long[] bytes,
long[] times,
long bytesToSend,
float maxTxRate)
bytes - times - maxTxRate -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||