hep.analysis.partition
Class DefaultPartitionFactory

java.lang.Object
  |
  +--java.util.Observable
        |
        +--hep.analysis.Partition
              |
              +--hep.analysis.partition.PartitionFactory
                    |
                    +--hep.analysis.partition.DefaultPartitionFactory
All Implemented Interfaces:
OneDFillable, java.io.Serializable, StatisticsProvider, TwoDFillable
Direct Known Subclasses:
EfficiencyPartitionFactory, RMSPartitionFactory

public class DefaultPartitionFactory
extends PartitionFactory

The purpose of the DefaultPartitionFactory is to masquerade as a Partition, but the first time a fill method is called, to replace itself with a more suitable Partition, based on which fill method was called.

See Also:
Serialized Form

Fields inherited from class hep.analysis.Partition
DATE, DELTATIME, DOUBLE, HORIZONTAL_AXIS, INTEGER, m_owner, STRING, VERTICAL_AXIS
 
Constructor Summary
DefaultPartitionFactory()
           
 
Method Summary
protected  BinType createBinType()
          Subclasses can override this method to create a new default bin type.
 void fill(java.util.Date x)
           
 void fill(java.util.Date x, double y)
           
 void fill(double x)
           
 void fill(double x, double y)
           
 void fill(int x)
           
 void fill(java.lang.String x)
           
 void fillW(java.util.Date x, double weight)
           
 void fillW(java.util.Date x, double y, double weight)
           
 void fillW(double x, double weight)
           
 void fillW(double x, double y, double weight)
           
 void fillW(int x, double weight)
           
 void fillW(java.lang.String x, double weight)
           
 Partition makeCopy()
          Make a copy of this partition, maintaining the partition class and initial state, but not the data stored in the partition.
 
Methods inherited from class hep.analysis.partition.PartitionFactory
clear, done, getStatistics
 
Methods inherited from class hep.analysis.Partition
destroy, getStyle, setStyle
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultPartitionFactory

public DefaultPartitionFactory()
Method Detail

createBinType

protected BinType createBinType()
Subclasses can override this method to create a new default bin type. This method returns a new SimpleBinner if not overriden

fill

public void fill(double x)
Overrides:
fill in class PartitionFactory

fillW

public void fillW(double x,
                  double weight)
Overrides:
fillW in class PartitionFactory

fill

public void fill(int x)
Overrides:
fill in class PartitionFactory

fillW

public void fillW(int x,
                  double weight)
Overrides:
fillW in class PartitionFactory

fill

public void fill(java.lang.String x)
Overrides:
fill in class PartitionFactory

fillW

public void fillW(java.lang.String x,
                  double weight)
Overrides:
fillW in class PartitionFactory

fill

public void fill(java.util.Date x)
Overrides:
fill in class PartitionFactory

fillW

public void fillW(java.util.Date x,
                  double weight)
Overrides:
fillW in class PartitionFactory

fill

public void fill(double x,
                 double y)
Overrides:
fill in class PartitionFactory

fillW

public void fillW(double x,
                  double y,
                  double weight)
Overrides:
fillW in class PartitionFactory

fill

public void fill(java.util.Date x,
                 double y)
Overrides:
fill in class PartitionFactory

fillW

public void fillW(java.util.Date x,
                  double y,
                  double weight)
Overrides:
fillW in class PartitionFactory

makeCopy

public Partition makeCopy()
Description copied from class: Partition
Make a copy of this partition, maintaining the partition class and initial state, but not the data stored in the partition.
Overrides:
makeCopy in class Partition