com.goldenhammer.modality
Class ImageStats

java.lang.Object
  extended bycom.goldenhammer.modality.ImageStats
All Implemented Interfaces:
java.io.Serializable

public class ImageStats
extends java.lang.Object
implements java.io.Serializable

This class contains the means to capture the statistics involving an image's details as a simulation runs.

See Also:
Serialized Form

Constructor Summary
ImageStats()
           
 
Method Summary
 void addStat(java.lang.String key, long value)
          A convenience method for adding a stat to the object's collection.
 void addStat(java.lang.String key, java.lang.Object value)
          Adds a stat to the object's collection.
 java.lang.Object getStat(java.lang.String key)
          Returns a stat for the given key, if it exists.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageStats

public ImageStats()
Method Detail

addStat

public void addStat(java.lang.String key,
                    java.lang.Object value)
Adds a stat to the object's collection.

Parameters:
key - The key for the statistic value to be added to the object.
value - The statistic to add to the object.

getStat

public java.lang.Object getStat(java.lang.String key)
Returns a stat for the given key, if it exists.

Parameters:
key - A key for the value
Returns:
The value corresponding to the key provided, or null if the value does not exist.

addStat

public void addStat(java.lang.String key,
                    long value)
A convenience method for adding a stat to the object's collection.

Parameters:
key - The key for the statistic value to be added to the object.
value - The statistic to add to the object.