FreeHEP API
Version current

hep.aida.ref.remote
Class RemoteDataPointSet

java.lang.Object
  extended byhep.aida.ref.event.AIDAObservable
      extended byhep.aida.ref.ManagedObject
          extended byhep.aida.ref.remote.RemoteManagedObject
              extended byhep.aida.ref.remote.RemoteDataPointSet
All Implemented Interfaces:
Connectable, hep.aida.IDataPointSet, hep.aida.dev.IDevManagedObject, hep.aida.IManagedObject, IsObservable

public class RemoteDataPointSet
extends RemoteManagedObject
implements hep.aida.IDataPointSet

This is implementation of IDataPointSet that can not be modified by user. This is a simple implementation that does not guarantee internal consistency. So extra care should be taken when setting data for this class. For more information look into RemoteHistogram1D comments.

Author:
serbo
Source Code:
RemoteDataPointSet.java

Nested Class Summary
 class RemoteDataPointSet.RemoteDataPoint
           
 class RemoteDataPointSet.RemoteMeasurement
           
 
Field Summary
protected  Annotation annotation
           
protected  int dimension
           
protected  double[] lowerExtent
           
protected  double[] minusErrors
           
protected  double[] plusErrors
           
protected  double[] upperExtent
           
protected  double[] values
           
protected  double[] weights
           
 
Fields inherited from class hep.aida.ref.remote.RemoteManagedObject
aidaType, dataIsValid, DEFAULT_DOUBLE, DEFAULT_FLOAT, DEFAULT_INT, DEFAULT_LONG, remoteLogger, stateDidChange, store, treePath
 
Fields inherited from class hep.aida.ref.ManagedObject
fillable
 
Fields inherited from class hep.aida.ref.event.AIDAObservable
connectionDidChange, isConnected, isValid
 
Constructor Summary
RemoteDataPointSet(IDevMutableStore store, String name)
           
RemoteDataPointSet(IDevMutableStore store, String name, String title, int dimOfPoint)
           
RemoteDataPointSet(String name)
          Creates a new instance of RemoteDataPointSet
 
Method Summary
 hep.aida.IDataPoint addPoint()
           
 void addPoint(hep.aida.IDataPoint iDataPoint)
           
 hep.aida.IAnnotation annotation()
           
 void clear()
           
protected  EventObject createEvent()
           
 int dimension()
           
protected  void init(int dimOfPoint)
           
 double lowerExtent(int coordinate)
           
 hep.aida.IDataPoint point(int index)
           
 void print()
           
 void removePoint(int index)
           
 void scale(double param)
           
 void scaleErrors(double param)
           
 void scaleValues(double param)
           
 void setCoordinate(int param, double[] values, double[] values2)
           
 void setCoordinate(int param, double[] values, double[] values2, double[] values3)
           
 void setDimension(int dimension)
           
 void setLowerExtent(double[] lowerExtent)
           
 void setMinusErrors(double[] minusErrors)
           
 void setPlusErrors(double[] plusErrors)
           
 void setTitle(String title)
           
 void setUpperExtent(double[] upperExtent)
           
 void setValues(double[] values)
           
 void setWeights(double[] w)
           
 int size()
           
 String title()
           
 double upperExtent(int coordinate)
           
 
Methods inherited from class hep.aida.ref.remote.RemoteManagedObject
getStore, getTreePath, isDataValid, makeSureDataIsValid, setConnected, setDataValid, setStore, setTreeFolder, setValid, setValidForAll, type
 
Methods inherited from class hep.aida.ref.ManagedObject
isFillable, name, setFillable, setName
 
Methods inherited from class hep.aida.ref.event.AIDAObservable
addListener, fireStateChanged, fireStateChanged, fireStateChanged, isConnected, removeAllListeners, removeListener, setIsValidAfterNotify
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface hep.aida.ref.event.IsObservable
addListener, removeAllListeners, removeListener
 
Methods inherited from interface hep.aida.ref.event.Connectable
isConnected
 

Field Detail

annotation

protected Annotation annotation

dimension

protected int dimension

upperExtent

protected double[] upperExtent

lowerExtent

protected double[] lowerExtent

values

protected double[] values

plusErrors

protected double[] plusErrors

minusErrors

protected double[] minusErrors

weights

protected double[] weights
Constructor Detail

RemoteDataPointSet

public RemoteDataPointSet(String name)
Creates a new instance of RemoteDataPointSet


RemoteDataPointSet

public RemoteDataPointSet(IDevMutableStore store,
                          String name)

RemoteDataPointSet

public RemoteDataPointSet(IDevMutableStore store,
                          String name,
                          String title,
                          int dimOfPoint)
Method Detail

createEvent

protected EventObject createEvent()
Overrides:
createEvent in class AIDAObservable

init

protected void init(int dimOfPoint)

setValues

public void setValues(double[] values)

setPlusErrors

public void setPlusErrors(double[] plusErrors)

setWeights

public void setWeights(double[] w)

setMinusErrors

public void setMinusErrors(double[] minusErrors)

setUpperExtent

public void setUpperExtent(double[] upperExtent)

setLowerExtent

public void setLowerExtent(double[] lowerExtent)

setDimension

public void setDimension(int dimension)

print

public void print()

annotation

public hep.aida.IAnnotation annotation()
Specified by:
annotation in interface hep.aida.IDataPointSet

dimension

public int dimension()
Specified by:
dimension in interface hep.aida.IDataPointSet

size

public int size()
Specified by:
size in interface hep.aida.IDataPointSet

setTitle

public void setTitle(String title)
              throws IllegalArgumentException
Specified by:
setTitle in interface hep.aida.IDataPointSet
Throws:
IllegalArgumentException

title

public String title()
Specified by:
title in interface hep.aida.IDataPointSet

upperExtent

public double upperExtent(int coordinate)
                   throws IllegalArgumentException
Specified by:
upperExtent in interface hep.aida.IDataPointSet
Throws:
IllegalArgumentException

lowerExtent

public double lowerExtent(int coordinate)
                   throws IllegalArgumentException
Specified by:
lowerExtent in interface hep.aida.IDataPointSet
Throws:
IllegalArgumentException

point

public hep.aida.IDataPoint point(int index)
Specified by:
point in interface hep.aida.IDataPointSet

removePoint

public void removePoint(int index)
                 throws IllegalArgumentException
Specified by:
removePoint in interface hep.aida.IDataPointSet
Throws:
IllegalArgumentException

clear

public void clear()
Specified by:
clear in interface hep.aida.IDataPointSet

addPoint

public hep.aida.IDataPoint addPoint()
                             throws RuntimeException
Specified by:
addPoint in interface hep.aida.IDataPointSet
Throws:
RuntimeException

addPoint

public void addPoint(hep.aida.IDataPoint iDataPoint)
              throws IllegalArgumentException
Specified by:
addPoint in interface hep.aida.IDataPointSet
Throws:
IllegalArgumentException

scale

public void scale(double param)
           throws IllegalArgumentException
Specified by:
scale in interface hep.aida.IDataPointSet
Throws:
IllegalArgumentException

scaleErrors

public void scaleErrors(double param)
                 throws IllegalArgumentException
Specified by:
scaleErrors in interface hep.aida.IDataPointSet
Throws:
IllegalArgumentException

scaleValues

public void scaleValues(double param)
                 throws IllegalArgumentException
Specified by:
scaleValues in interface hep.aida.IDataPointSet
Throws:
IllegalArgumentException

setCoordinate

public void setCoordinate(int param,
                          double[] values,
                          double[] values2)
                   throws IllegalArgumentException
Specified by:
setCoordinate in interface hep.aida.IDataPointSet
Throws:
IllegalArgumentException

setCoordinate

public void setCoordinate(int param,
                          double[] values,
                          double[] values2,
                          double[] values3)
                   throws IllegalArgumentException
Specified by:
setCoordinate in interface hep.aida.IDataPointSet
Throws:
IllegalArgumentException

FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.