FreeHEP API
Version current

hep.aida.ref.plotter.adapter
Class AIDAFunctionAdapter

java.lang.Object
  extended byjava.util.Observable
      extended byjas.hist.Basic1DFunction
          extended byjas.hist.Fittable1DFunction
              extended byhep.aida.ref.plotter.adapter.AIDAFunctionAdapter
All Implemented Interfaces:
jas.hist.DataSource, jas.hist.ExtendedStatistics, FunctionCoreListener, jas.hist.FunctionData, FunctionListener, jas.hist.HasHandles, jas.hist.HasStatistics, Serializable, jas.hist.Statistics

public class AIDAFunctionAdapter
extends jas.hist.Fittable1DFunction
implements jas.hist.ExtendedStatistics, jas.hist.HasHandles, FunctionListener, FunctionCoreListener

Version:
$Id: AIDAFunctionAdapter.java,v 1.10 2005/03/16 20:53:29 turri Exp $
Author:
Tony Johnson
See Also:
Serialized Form
Source Code:
AIDAFunctionAdapter.java

Field Summary
 
Fields inherited from interface jas.hist.DataSource
DATE, DELTATIME, DOUBLE, INTEGER, STRING
 
Constructor Summary
AIDAFunctionAdapter(hep.aida.IFunction function)
           
 
Method Summary
 void coreChanged()
           
 hep.aida.IFunction function()
           
 void functionChanged(FunctionChangedEvent event)
           
 jas.hist.Handle[] getHandles(double xLow, double xHigh, double yLow, double yHigh)
           
 String[] getParameterNames()
           
 double[] getParameterValues()
           
 String getTitle()
           
 void setFit(jas.hist.Fitter fitter, double[] values)
           
 void setParameter(int index, double value)
           
 void setTitle(String title)
           
 double valueAt(double x)
           
 double valueAt(double x, double[] values)
           
 
Methods inherited from class jas.hist.Fittable1DFunction
clearFit, clearFitParams, destroy, getDerivatives, getExtendedStatistic, getFit, getIncludeParametersInFit, getStatistic, getStatisticNames, initIncludeParametersInFit, setFit, setIncludeParameterInFit
 
Methods inherited from class jas.hist.Basic1DFunction
getStatistics, setBatch, setChanged, setChanged
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface jas.hist.ExtendedStatistics
getExtendedStatistic
 
Methods inherited from interface jas.hist.Statistics
getStatistic, getStatisticNames
 

Constructor Detail

AIDAFunctionAdapter

public AIDAFunctionAdapter(hep.aida.IFunction function)
Method Detail

setParameter

public void setParameter(int index,
                         double value)
                  throws jas.hist.InvalidFunctionParameter
Specified by:
setParameter in interface jas.hist.FunctionData
Throws:
jas.hist.InvalidFunctionParameter

getParameterNames

public String[] getParameterNames()
Specified by:
getParameterNames in interface jas.hist.FunctionData

getParameterValues

public double[] getParameterValues()
Specified by:
getParameterValues in interface jas.hist.FunctionData

valueAt

public double valueAt(double x)
               throws jas.hist.FunctionValueUndefined
Specified by:
valueAt in interface jas.hist.FunctionData
Throws:
jas.hist.FunctionValueUndefined

valueAt

public double valueAt(double x,
                      double[] values)
               throws jas.hist.FunctionValueUndefined
Throws:
jas.hist.FunctionValueUndefined

getTitle

public String getTitle()
Specified by:
getTitle in interface jas.hist.DataSource

setTitle

public void setTitle(String title)

setFit

public void setFit(jas.hist.Fitter fitter,
                   double[] values)
            throws jas.hist.InvalidFunctionParameter
Throws:
jas.hist.InvalidFunctionParameter

function

public hep.aida.IFunction function()

getHandles

public jas.hist.Handle[] getHandles(double xLow,
                                    double xHigh,
                                    double yLow,
                                    double yHigh)
Specified by:
getHandles in interface jas.hist.HasHandles

functionChanged

public void functionChanged(FunctionChangedEvent event)
Specified by:
functionChanged in interface FunctionListener

coreChanged

public void coreChanged()
Specified by:
coreChanged in interface FunctionCoreListener

FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.