jas.hist.normalization
Class DataSourceNormalizer
java.lang.Object
  
java.util.Observable
      
jas.hist.normalization.SimpleNormalizer
          
jas.hist.normalization.DataSourceNormalizer
- All Implemented Interfaces: 
 - Normalizer, Observer
 
- Direct Known Subclasses: 
 - AreaNormalizer, BinNormalizer, MaxBinNormalizer, StatisticsNormalizer
 
public abstract class DataSourceNormalizer
- extends SimpleNormalizer
- implements Observer
  
A base class for Normalizers which depend upon a DataSource
- Version:
 
  - $Id: DataSourceNormalizer.java 11553 2007-06-05 22:06:23Z duns $
 
- Author:
 
  - tonyj
 
 
 
 
 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
hurry
protected boolean hurry
source
protected DataSource source
DataSourceNormalizer
public DataSourceNormalizer(DataSource source)
- Creates a new DataSourceNormalizer
- Parameters:
 source - The Data Source
 
init
protected void init()
- To be called by superclasses, typically at the end of the constructor.
 
 
 
update
public void update(Observable obs,
                   Object arg)
- Specified by:
 update in interface Observer
 
 
getNormalizationFactor
public double getNormalizationFactor()
- Description copied from interface: 
Normalizer 
- The displayed data will be divided by this factor
- Specified by:
 getNormalizationFactor in interface Normalizer- Overrides:
 getNormalizationFactor in class SimpleNormalizer
 
 
 
calculateNormalization
protected abstract double calculateNormalization()
- Calculates the normalization factor.
 
- Returns:
 - The normalization factor.
 
 
 
Copyright © 2000-2009 FreeHEP. All Rights Reserved.