edu.ucsb.nmsl.tools
Class DoubleStatistic

java.lang.Object
  extended by edu.ucsb.nmsl.tools.BaseStatistic
      extended by edu.ucsb.nmsl.tools.DoubleStatistic
All Implemented Interfaces:
Statistic

public class DoubleStatistic
extends BaseStatistic

This class represents a statistic that represents double information. The purpose of this class is to facilitate the research associated with the creation of the system and is not needed in the normal operation of AutoCap. Only the displayString method is overloaded withing the definition.

Version:
1.0
See Also:
StatisticsPackage

Field Summary
 
Fields inherited from class edu.ucsb.nmsl.tools.BaseStatistic
Name, Value
 
Constructor Summary
DoubleStatistic(java.lang.String n, double i)
          This contructor builds a DoubleStatistic instance with the name specified by "n" and with the value, as a double, specified by i.
DoubleStatistic(java.lang.String n, java.lang.Double i)
          This contructor builds a DoubleStatistic instance with the name specified by "n" and with the value, as a double, specified by i.
 
Method Summary
 java.lang.String displayString()
          This method returns a string that can be used to neatly show the statistical information associated with this particular instance.
 
Methods inherited from class edu.ucsb.nmsl.tools.BaseStatistic
equals, getName, getValue, setName, setValue
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DoubleStatistic

public DoubleStatistic(java.lang.String n,
                       java.lang.Double i)
This contructor builds a DoubleStatistic instance with the name specified by "n" and with the value, as a double, specified by i.

Parameters:
n - The name of the DoubleStatisic.
i - The percentage value of the statistic.

DoubleStatistic

public DoubleStatistic(java.lang.String n,
                       double i)
This contructor builds a DoubleStatistic instance with the name specified by "n" and with the value, as a double, specified by i.

Parameters:
n - The name of the DoubleStatisic.
i - The percentage value of the statistic.
Method Detail

displayString

public java.lang.String displayString()
This method returns a string that can be used to neatly show the statistical information associated with this particular instance.

Returns:
A string representing the statistical information. This string usually takes the form of <Name> = <Double>