uk.ac.imperial.ph.hep.service
Class DaqApplication

java.lang.Object
  extended by uk.ac.imperial.ph.hep.service.DaqApplication

public class DaqApplication
extends java.lang.Object

A class to handle Gui requests, and invoke the underlying DAQ commands. The "View" in the "MVC" design pattern.

Author:
Jamie Ballin, HEP, Imperial College London

Nested Class Summary
static class DaqApplication.AppIcon
           
 
Field Summary
static java.lang.String SHORT_TITLE
           
 
Method Summary
 void closeApp()
          Does maintenance tasks, such as saving the properties file to disk.
static DaqApplication getApp()
           
static DaqApplication getApp(java.lang.String propsFile)
           
 java.lang.String getAppTitle()
          Returns my capricious title for this application.
 java.lang.String getGuiDir()
           
 java.util.logging.Logger getLogger()
          For all to use.
 SessionFactory getSessionFactory()
           
 void listRuns()
           
 void saveRun(CandidateRun cr)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SHORT_TITLE

public static final java.lang.String SHORT_TITLE
See Also:
Constant Field Values
Method Detail

getLogger

public java.util.logging.Logger getLogger()
For all to use. This will start a logger which will write to the console with a level of "ALL".

Returns:

getApp

public static DaqApplication getApp(java.lang.String propsFile)

getApp

public static DaqApplication getApp()

closeApp

public void closeApp()
Does maintenance tasks, such as saving the properties file to disk.


getAppTitle

public java.lang.String getAppTitle()
Returns my capricious title for this application.

Returns:

getGuiDir

public java.lang.String getGuiDir()

getSessionFactory

public SessionFactory getSessionFactory()

saveRun

public void saveRun(CandidateRun cr)

listRuns

public void listRuns()