public class QueueImpl extends Object implements Queue
CURRENT_LENGTH, CURRENT_POS, DRATE_LENGTH, DRATE_POS, DUNITS_LENGTH, DUNITS_POS, PFRACT_LENGTH, PFRACT_POS, PUNITS_LENGTH, PUNITS_POS, QUEUE_INDEX_0_POS, QUEUE_INDEX_1_POS, QUEUE_INDEX_2_POS, QUEUE_INDEX_3_POS, QUEUE_INDEX_4_POS, QUEUE_INDEX_5_POS, QUEUE_INDEX_6_POS, QUEUE_INDEX_7_POS, QUEUE_INDEX_8_POS, QUEUE_INDEX_9_POS, QUEUE_INDEX_LENGTH, SENT_LENGTH, SENT_POS, URATE_LENGTH, URATE_POS, UUNITS_LENGTH, UUNITS_POS, VERSION_LENGTH, VERSION_POS, Z7156_LENGTH, Z7156_POS
Constructor and Description |
---|
QueueImpl(QueueReader reader)
Constructor to initialize variables
|
Modifier and Type | Method and Description |
---|---|
int |
getCurrent()
Get the value of Current index number.
|
int |
getDrate()
Get the value of Download rate sliding average.
|
int |
getDunits()
Get the value of Download rate unit weight.
|
int |
getPfract()
Get the value of Performance fraction.
|
int |
getPunits()
Get the value of Performance fraction unit weight.
|
QueueIndexImpl |
getQueueIndex(int index)
Get the value of queueIndex at specified index.
|
int |
getSent()
Get the value of Results Sent.
|
int |
getUrate()
Get the value of Upload rate sliding average.
|
int |
getUunits()
Get the value of Upload rate unit weight.
|
int |
getVersion()
Get the value of Queue (client) version.
|
String |
toString()
Generate a String representation of the QueueImpl
|
void |
update()
Update all values.
|
public QueueImpl(QueueReader reader)
reader
- QueueReader for queue.dat
public int getVersion()
getVersion
in interface Queue
public int getCurrent()
getCurrent
in interface Queue
public QueueIndexImpl getQueueIndex(int index)
getQueueIndex
in interface Queue
index
- the index requiredpublic int getPfract()
public int getPunits()
public int getDrate()
public int getDunits()
public int getUrate()
public int getUunits()
public int getSent()
public String toString()
Copyright © 2011–2017 Mike Thomas. All rights reserved.