Main Page | Packages | Class Hierarchy | Class List | Directories | File List | Class Members | Related Pages

RealPaper Class Reference

Inheritance diagram for RealPaper:

Inheritance graph
[legend]
Collaboration diagram for RealPaper:

Collaboration graph
[legend]
List of all members.

Detailed Description

Represents a paper and the real experimental result plots it contains

Definition at line 17 of file RealPaper.java.


Public Member Functions

 RealPaper ()
 RealPaper (Integer id) throws JetWebException
RealPaper setIRN (Integer irn)
Integer getIRN ()
RealPaper setDirName (String directory)
String getDirName ()
RealPaper setCollaboration (String collaboration)
String getCollaboration ()
RealPaper setReference (String reference)
String getReference ()
RealPaper setCodeAuthor (String codeAuthor)
String getCodeAuthor ()
RealPaper setCodeContact (String contact)
String getCodeContact ()
RealPaper setNPlots (Integer nplots)
Integer getNPlots ()
RealPaper setAccelerator (String accelerator)
String getAccelerator ()
Collection< RealPlotgetPlots ()
HashMap< Integer, RealPlotgetIndexedPlots ()
RealPaper addPlot (RealPlot plot)
RealPlot getPlot (Integer csnId)
RealPaper setTitle (String title)
String getTitle ()
RealPaper setId (Integer id)
int getId ()
boolean containsDataFor (MCProcessType proc) throws JetWebException
boolean containsDataFor (Collision collision) throws JetWebException
boolean store () throws JetWebException
boolean retrieve () throws JetWebException
void delete ()

Private Attributes

Integer id_ = -1
String directory_ = null
String title_
String reference_
String codeAuthor_
String contact_
Integer nplots_ = 0
String collaboration_
String accelerator_
Integer irn_
HashMap< Integer, RealPlotplots_

Constructor & Destructor Documentation

RealPaper  ) 
 

Definition at line 34 of file RealPaper.java.

00034                       {
00035     
00036     }

RealPaper Integer  id  )  throws JetWebException
 

Definition at line 38 of file RealPaper.java.

References RealPaper.id_, and RealPaper.retrieve().

00038                                                        {
00039     id_ = id;
00040     retrieve();
00041     }


Member Function Documentation

RealPaper addPlot RealPlot  plot  ) 
 

Definition at line 124 of file RealPaper.java.

References DataPlot.getId(), RealPaper.nplots_, and RealPaper.plots_.

00124                                            {
00125 
00126     plots_.put(plot.getId(), plot);
00127     nplots_ = plots_.size();
00128     return this;
00129     }

boolean containsDataFor Collision  collision  )  throws JetWebException
 

Definition at line 165 of file RealPaper.java.

References RealPaper.getPlots().

00166                           {
00167     for(RealPlot plot: getPlots()){
00168         if(plot.getMCProcessType().getCollision().equals(collision)){
00169         return true;
00170         }
00171     }
00172     return false;
00173     }

boolean containsDataFor MCProcessType  proc  )  throws JetWebException
 

Definition at line 155 of file RealPaper.java.

References RealPaper.getPlots().

00156                           {
00157     for(RealPlot plot: getPlots()){
00158         if(plot.getMCProcessType().equals(proc)){
00159         return true;
00160         }
00161     }
00162     return false;
00163     }

void delete  ) 
 

Definition at line 186 of file RealPaper.java.

00186                         {
00187 
00188     return;
00189     }

String getAccelerator  ) 
 

Definition at line 112 of file RealPaper.java.

00112                                   {
00113     return accelerator_;
00114     }

String getCodeAuthor  ) 
 

Definition at line 85 of file RealPaper.java.

00085                                  {
00086     return codeAuthor_;
00087     }

String getCodeContact  ) 
 

Definition at line 94 of file RealPaper.java.

00094                                   {
00095     return contact_;
00096     }

String getCollaboration  ) 
 

Definition at line 67 of file RealPaper.java.

00067                                     {
00068     return collaboration_;
00069     }

String getDirName  ) 
 

Definition at line 58 of file RealPaper.java.

00058                               {
00059     return directory_;
00060     }

int getId  ) 
 

Get the unique ID of the object

Implements Storeable.

Definition at line 151 of file RealPaper.java.

Referenced by CombinedPaper.CombinedPaper(), and Fit.populatePapers().

00151                       {
00152     return id_;
00153     }

HashMap<Integer, RealPlot> getIndexedPlots  ) 
 

Definition at line 120 of file RealPaper.java.

00120                                                        {
00121     return plots_;
00122     }

Integer getIRN  ) 
 

Definition at line 48 of file RealPaper.java.

00048                            {
00049     return irn_;
00050     }

Integer getNPlots  ) 
 

Definition at line 103 of file RealPaper.java.

00103                               {
00104     return nplots_;
00105     }

RealPlot getPlot Integer  csnId  ) 
 

Definition at line 131 of file RealPaper.java.

References RealPaper.plots_.

Referenced by CombinedPaper.getFitChi2().

00131                                           {
00132 
00133     return plots_.get(csnId);
00134     }

Collection<RealPlot> getPlots  ) 
 

Definition at line 116 of file RealPaper.java.

References RealPaper.plots_.

Referenced by RealPaper.containsDataFor().

00116                                           {
00117     return plots_.values();
00118     }

String getReference  ) 
 

Definition at line 76 of file RealPaper.java.

00076                                 {
00077     return reference_;
00078     }

String getTitle  ) 
 

Definition at line 142 of file RealPaper.java.

00142                             {
00143     return title_;
00144     }

boolean retrieve  )  throws JetWebException
 

Populate the object in memory from the database. Return true if the information retrieved is up to date.

Implements Storeable.

Definition at line 181 of file RealPaper.java.

Referenced by RealPaper.RealPaper().

00181                                                     {
00182     DBPlotManager.fillRealPaper(this);
00183     return true;
00184     }

RealPaper setAccelerator String  accelerator  ) 
 

Definition at line 107 of file RealPaper.java.

References RealPaper.accelerator_.

00107                                                        {
00108     accelerator_ = accelerator;
00109     return this;
00110     }

RealPaper setCodeAuthor String  codeAuthor  ) 
 

Definition at line 80 of file RealPaper.java.

References RealPaper.codeAuthor_.

00080                                                      {
00081     codeAuthor_ = codeAuthor;
00082     return this;
00083     }

RealPaper setCodeContact String  contact  ) 
 

Definition at line 89 of file RealPaper.java.

References RealPaper.contact_.

00089                                                    {
00090     contact_ = contact;
00091     return this;
00092     }

RealPaper setCollaboration String  collaboration  ) 
 

Definition at line 62 of file RealPaper.java.

References RealPaper.collaboration_.

00062                                                            {
00063     collaboration_ = collaboration;
00064     return this;
00065     }

RealPaper setDirName String  directory  ) 
 

Definition at line 53 of file RealPaper.java.

References RealPaper.directory_.

00053                                                  {
00054     directory_ = directory;
00055     return this;
00056     }

RealPaper setId Integer  id  ) 
 

Definition at line 146 of file RealPaper.java.

References RealPaper.id_.

00146                                       {
00147     id_ = id;
00148     return this;
00149     }

RealPaper setIRN Integer  irn  ) 
 

Definition at line 43 of file RealPaper.java.

References RealPaper.irn_.

00043                                         {
00044     irn_ = irn;
00045     return this;
00046     }

RealPaper setNPlots Integer  nplots  ) 
 

Definition at line 98 of file RealPaper.java.

References RealPaper.nplots_.

00098                                               {
00099     nplots_ = nplots;
00100     return this;
00101     }

RealPaper setReference String  reference  ) 
 

Definition at line 71 of file RealPaper.java.

References RealPaper.reference_.

00071                                                    {
00072     reference_ = reference;
00073     return this;
00074     }

RealPaper setTitle String  title  ) 
 

Definition at line 137 of file RealPaper.java.

References RealPaper.title_.

00137                                            {
00138     title_ = title;
00139     return this;
00140     }

boolean store  )  throws JetWebException
 

Write the object in memory to the database. If the ID does not exist in the DB the object is inserted as a new entry. If the ID exists, that entry is updated.

Returns:
true if the object was inserted, false otherwise.

Implements Storeable.

Definition at line 176 of file RealPaper.java.

00176                                                  {
00177     boolean paperExisted = DBPlotManager.addRealPaper(this);
00178     return !paperExisted;
00179     }


Member Data Documentation

String accelerator_ [private]
 

Definition at line 27 of file RealPaper.java.

Referenced by RealPaper.setAccelerator().

String codeAuthor_ [private]
 

Definition at line 23 of file RealPaper.java.

Referenced by RealPaper.setCodeAuthor().

String collaboration_ [private]
 

Definition at line 26 of file RealPaper.java.

Referenced by RealPaper.setCollaboration().

String contact_ [private]
 

Definition at line 24 of file RealPaper.java.

Referenced by RealPaper.setCodeContact().

String directory_ = null [private]
 

Definition at line 20 of file RealPaper.java.

Referenced by RealPaper.setDirName().

Integer id_ = -1 [private]
 

Definition at line 19 of file RealPaper.java.

Referenced by RealPaper.RealPaper(), and RealPaper.setId().

Integer irn_ [private]
 

Definition at line 28 of file RealPaper.java.

Referenced by RealPaper.setIRN().

Integer nplots_ = 0 [private]
 

Definition at line 25 of file RealPaper.java.

Referenced by RealPaper.addPlot(), and RealPaper.setNPlots().

HashMap<Integer, RealPlot> plots_ [private]
 

Initial value:

 
    new HashMap<Integer RealPlot>()

Definition at line 30 of file RealPaper.java.

Referenced by RealPaper.addPlot(), RealPaper.getPlot(), and RealPaper.getPlots().

String reference_ [private]
 

Definition at line 22 of file RealPaper.java.

Referenced by RealPaper.setReference().

String title_ [private]
 

Definition at line 21 of file RealPaper.java.

Referenced by RealPaper.setTitle().


The documentation for this class was generated from the following file:

Generated Wed Jan 17 09:14:27 GMT 2007