pal.misc
Class SimpleSummarizable

java.lang.Object
  extended by pal.misc.SimpleSummarizable
All Implemented Interfaces:
java.io.Serializable, Summarizable

public class SimpleSummarizable
extends java.lang.Object
implements Summarizable, java.io.Serializable

See Also:
Serialized Form

Constructor Summary
SimpleSummarizable(java.lang.String[] types, double[] values)
          The simple constructor
SimpleSummarizable(Summarizable toImitate)
          The Imitation constructor - for immitating another Summarizable object with minimum memory requirements
 
Method Summary
 java.lang.String[] getSummaryTypes()
           
 double getSummaryValue(int type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleSummarizable

public SimpleSummarizable(java.lang.String[] types,
                          double[] values)
The simple constructor


SimpleSummarizable

public SimpleSummarizable(Summarizable toImitate)
The Imitation constructor - for immitating another Summarizable object with minimum memory requirements

Parameters:
toImitiate - - the Summarizable to imitate. This summarizable with contatin the same types and values as toImitate (at the time of construction)
Method Detail

getSummaryTypes

public java.lang.String[] getSummaryTypes()
Specified by:
getSummaryTypes in interface Summarizable

getSummaryValue

public double getSummaryValue(int type)
Specified by:
getSummaryValue in interface Summarizable