|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcore_lib.Statistics
public class Statistics
The Statistics class is simply a wrapper for several variables that maintain statistics during a trace simulation. All fields have public access. This class minimizes lengthy and confusing parameter passing.
Field Summary | |
---|---|
int |
NUM_FBACK_LIES
Dishonest feedbacks committed. |
int |
NUM_FBACK_SYBL
Sybil feedbacks committed. |
int |
NUM_FBACK_TRUE
Honest feedbacks committed. |
int |
NUM_GOOD_FAIL
Transactions w/invalid file exchange and 'good' receiver |
int |
NUM_GOOD_SUCC
Transactions w/valid file exchange and 'good' receiver |
int |
NUM_INVAL_TRANS
Transactions (completed) resulting in exchange of invalid file. |
int |
NUM_RECV_BLK_TR
Incomplete transactions due to complications on receiving end. |
int |
NUM_SEND_BLK_TR
Incomplete transactions due to complications on source end. |
Constructor Summary | |
---|---|
Statistics()
|
Method Summary | |
---|---|
void |
reset()
Reset all statistical fields (integer counters) back to zero. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public int NUM_INVAL_TRANS
public int NUM_RECV_BLK_TR
public int NUM_SEND_BLK_TR
public int NUM_FBACK_TRUE
public int NUM_FBACK_LIES
public int NUM_FBACK_SYBL
public int NUM_GOOD_SUCC
public int NUM_GOOD_FAIL
Constructor Detail |
---|
public Statistics()
Method Detail |
---|
public void reset()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |