jas.hist.normalization
Class DataSourceNormalizer

java.lang.Object
  extended by java.util.Observable
      extended by jas.hist.normalization.SimpleNormalizer
          extended by 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

Field Summary
protected  boolean hurry
           
protected  DataSource source
           
 
Constructor Summary
DataSourceNormalizer(DataSource source)
          Creates a new DataSourceNormalizer
 
Method Summary
protected abstract  double calculateNormalization()
          Calculates the normalization factor.
 double getNormalizationFactor()
          The displayed data will be divided by this factor
protected  void init()
          To be called by superclasses, typically at the end of the constructor.
 void update(Observable obs, Object arg)
           
 
Methods inherited from class jas.hist.normalization.SimpleNormalizer
normalizationChanged, setFactor
 
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
 

Field Detail

hurry

protected boolean hurry

source

protected DataSource source
Constructor Detail

DataSourceNormalizer

public DataSourceNormalizer(DataSource source)
Creates a new DataSourceNormalizer

Parameters:
source - The Data Source
Method Detail

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.