edu.ucsb.nmsl.tools
Class DoubleStatistic
java.lang.Object
edu.ucsb.nmsl.tools.BaseStatistic
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
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 java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.
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>