jetweb is hosted by Hepforge, IPPP Durham

cedar.jetweb.model.plots
Class RealPlot

java.lang.Object
  extended by cedar.jetweb.model.plots.DataPlot
      extended by cedar.jetweb.model.plots.RealPlot
All Implemented Interfaces:
Storeable, java.io.Serializable

public class RealPlot
extends DataPlot
implements Storeable

Plot of a real data set.

Version:
$Date: 2006-05-02 21:23:13 +0100 (Tue, 02 May 2006) $ $Revision: 1126 $
Author:
S Butterworth, UCL.
See Also:
Serialized Form

Field Summary
 
Fields inherited from class cedar.jetweb.model.plots.DataPlot
chi2, collisionId, csnId, dataPoints, ecms, FITTED, hasdata, number, paperId, PREDICTED, proc, procIdWanted, REAL, shape, sysScale, title
 
Constructor Summary
RealPlot()
          Instantiates an empty DataPlot (to be filled from DB).
RealPlot(int number, int paperId)
          Instantiate a DataPlot based upon an plotML file.
 
Method Summary
 void delete()
          Delete this plot from the data base and remove all record of it from the paper.
 boolean equals(RealPlot rp)
          Override the Object equals method.
 MCProcessType getMCProcessType()
          Return the default MCProcessType for this plot.
 int getProcIdWanted()
          Not implemented for RealPlot.
 boolean retrieve()
          Populate the object in memory from the database.
 void setScale(double newScale)
          Set real data scaling factor.
 boolean store()
          Write the data plot to the DB.
 
Methods inherited from class cedar.jetweb.model.plots.DataPlot
addSwitch, deleteSwitch, getChi2, getChi2, getChi2, getCMEnergy, getCollisionId, getDataPoints, getId, getNDataSources, getNumber, getPaperId, getProcIdWanted, getSwitches, getSysScale, getTitle, getXLabel, getYLabel, getYMax, getYMin, getYMinNonZero, hasData, isDefaultFit, isDefaultSum, isLogarithmic, isPredictedBy, isShape, populateDBData, setChi2, setCMEnergy, setCollisionId, setDataPoints, setDefaultFit, setDefaultSum, setFrom, setHasData, setId, setLogarithmic, setNumber, setPaperId, setShape, setSysScale, setTitle, setXLabel, setYLabel, storeSwitches, zero
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface cedar.jetweb.Storeable
getId
 

Constructor Detail

RealPlot

public RealPlot(int number,
                int paperId)
         throws JetWebException
Instantiate a DataPlot based upon an plotML file.

Parameters:
number - integer ID of this plot within the paper (not the csn_id!)
paperId - integer ID of the paper to which this plot belongs. Warning: here the csnId is not set to a sensible value. This should be done externally using the setId method.
Throws:
JetWebException


RealPlot

public RealPlot()
Instantiates an empty DataPlot (to be filled from DB).

Method Detail

setScale

public void setScale(double newScale)
Set real data scaling factor.

Parameters:
newScale - the scale factor to apply.


retrieve

public boolean retrieve()
                 throws JetWebException
Description copied from interface: Storeable
Populate the object in memory from the database. Return true if the information retrieved is up to date.

Specified by:
retrieve in interface Storeable
Throws:
JetWebException


store

public boolean store()
              throws JetWebException
Write the data plot to the DB.

Specified by:
store in interface Storeable
Parameters:
paperId - DB - id of the paper this plot belongs to
Returns:
true if the object was inserted, false otherwise.
Throws:
JetWebException


getMCProcessType

public MCProcessType getMCProcessType()
                               throws JetWebException
Return the default MCProcessType for this plot.

Specified by:
getMCProcessType in class DataPlot
Throws:
JetWebException


equals

public boolean equals(RealPlot rp)
Override the Object equals method. Two RealPlots are equal if their id's are equal.


getProcIdWanted

public int getProcIdWanted()
                    throws JetWebException
Not implemented for RealPlot.

Specified by:
getProcIdWanted in class DataPlot
Throws:
JetWebException


delete

public void delete()
            throws JetWebException
Delete this plot from the data base and remove all record of it from the paper. Also delete all predictions and fits for this plot.

Throws:
JetWebException