core_lib
Class Statistics

java.lang.Object
  extended by core_lib.Statistics

public class Statistics
extends java.lang.Object

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

NUM_INVAL_TRANS

public int NUM_INVAL_TRANS
Transactions (completed) resulting in exchange of invalid file.


NUM_RECV_BLK_TR

public int NUM_RECV_BLK_TR
Incomplete transactions due to complications on receiving end.


NUM_SEND_BLK_TR

public int NUM_SEND_BLK_TR
Incomplete transactions due to complications on source end.


NUM_FBACK_TRUE

public int NUM_FBACK_TRUE
Honest feedbacks committed.


NUM_FBACK_LIES

public int NUM_FBACK_LIES
Dishonest feedbacks committed.


NUM_FBACK_SYBL

public int NUM_FBACK_SYBL
Sybil feedbacks committed.


NUM_GOOD_SUCC

public int NUM_GOOD_SUCC
Transactions w/valid file exchange and 'good' receiver


NUM_GOOD_FAIL

public int NUM_GOOD_FAIL
Transactions w/invalid file exchange and 'good' receiver

Constructor Detail

Statistics

public Statistics()
Method Detail

reset

public void reset()
Reset all statistical fields (integer counters) back to zero.