jetweb is hosted by Hepforge, IPPP Durham

cedar.jetweb.model.paper
Class PaperBank

java.lang.Object
  extended by cedar.jetweb.model.paper.PaperBank
All Implemented Interfaces:
java.io.Serializable

public abstract class PaperBank
extends java.lang.Object
implements java.io.Serializable

A container for lots of papers and plots.

Version:
$Date: 2006-04-04 16:05:09 +0100 (Tue, 04 Apr 2006) $ $Revision: 1091 $
Author:
J.Butterworth
See Also:
Serialized Form

Constructor Summary
PaperBank()
           
 
Method Summary
static java.util.Enumeration<Paper> getAll()
          Deprecated.  
static java.util.Enumeration<DataPlot> getAllPlots()
          Return an enumeration containing all the plots of all the papers.
static void getConfig()
          Initialise the PaperBank database.
static Paper getMatch(Paper paper2)
          Return the Data Paper which matches any Paper sent (with Real or MC data).
static int getNPapers()
          Return the number of papers
static java.util.Vector<Paper> getPapers()
          Return an enumeration containing all the Papers.
static java.util.Vector<Paper> getPapers(java.lang.String accelerator)
          Get papers for a given accelerator
static DataPlot getPlot(int plotId)
          Return the DataPlot with the given Id.
static void mkdirs(java.io.File xmldir)
          Make subdirectories for all papers in the directory specified
static void rmdirs(java.io.File dir)
          Delete subdirectories and contents of specified directory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PaperBank

public PaperBank()
Method Detail

getPapers

public static java.util.Vector<Paper> getPapers(java.lang.String accelerator)
Get papers for a given accelerator


getPapers

public static java.util.Vector<Paper> getPapers()
Return an enumeration containing all the Papers.

Returns:
Enumeration of Paper objects


getAll

public static java.util.Enumeration<Paper> getAll()
Deprecated. 

Return an enumeration containing all the Papers. Use getPapers instead.

Returns:
Enumeration of Paper objects


getNPapers

public static int getNPapers()
Return the number of papers


getAllPlots

public static java.util.Enumeration<DataPlot> getAllPlots()
Return an enumeration containing all the plots of all the papers. Probably should use a Collection?

Returns:
Enumeration of DataPlot objects


getConfig

public static void getConfig()
                      throws JetWebException
Initialise the PaperBank database.

Throws:
JetWebException


mkdirs

public static void mkdirs(java.io.File xmldir)
Make subdirectories for all papers in the directory specified

Parameters:
xmldir - paper top directory


rmdirs

public static void rmdirs(java.io.File dir)
Delete subdirectories and contents of specified directory

Parameters:
xmldir - directory


getMatch

public static Paper getMatch(Paper paper2)
Return the Data Paper which matches any Paper sent (with Real or MC data).

Parameters:
paper - to match
Returns:
matching real data paper


getPlot

public static DataPlot getPlot(int plotId)
Return the DataPlot with the given Id.