avrora.util.profiling
Class Proportion.Share

java.lang.Object
  extended byavrora.util.profiling.DataItem
      extended byavrora.util.profiling.Counter
          extended byavrora.util.profiling.Proportion.Share
Enclosing class:
Proportion

public class Proportion.Share
extends Counter

Internal class that encapsulates both a counter and the fraction of the total that this named Share represents.


Field Summary
 
Fields inherited from class avrora.util.profiling.Counter
count
 
Fields inherited from class avrora.util.profiling.DataItem
name
 
Constructor Summary
Proportion.Share(java.lang.String newname)
           
Proportion.Share(java.lang.String newname, int count)
           
 
Method Summary
 float getFraction()
           
 void processData()
           
 void textReport()
           
 
Methods inherited from class avrora.util.profiling.Counter
getTotal, hasData, increment, increment, reset
 
Methods inherited from class avrora.util.profiling.DataItem
getName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Proportion.Share

public Proportion.Share(java.lang.String newname)

Proportion.Share

public Proportion.Share(java.lang.String newname,
                        int count)
Method Detail

getFraction

public float getFraction()

processData

public void processData()
Overrides:
processData in class Counter

textReport

public void textReport()
Overrides:
textReport in class Counter