SECI  1
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events
Public Member Functions | Static Public Member Functions | Properties | Events | Static Private Member Functions | Static Private Attributes | List of all members
Seci.Managers.SeciMgr Class Reference

A general manager class for SECI. Contains the stuff that does not fit into any of the other manager classes More...

Collaboration diagram for Seci.Managers.SeciMgr:
Collaboration graph

Public Member Functions

delegate void RemotingEventHandler (String[] vars)
 
delegate void ValuesUpdatedEventHandler (Boolean timeout)
 Delegate for passing "values updated" event to the GUI level. More...
 

Static Public Member Functions

static void ClearDatabaseQueues ()
 
static void ClearGraphs ()
 
static void CloseSeci ()
 Closes SECI by making sure everything is closed etc. More...
 
static Boolean InitialiseLabView (Boolean loadStandardVIs)
 Initialise LabVIEW and load any default VIs. More...
 
static void InitialiseSeci (String exeDir)
 Initialises SECI. Needs to be called before SECI does anything else. More...
 
static Boolean LogInAsManager (String password)
 Method for logging in as manager. Tests password against that of the manager account and returns true if it matches. More...
 
static void PauseThreads ()
 Pause the ValuesUpdater and LVMQUpdater. More...
 
static void ResumeThreads ()
 Resume the ValuesUpdater and LVMQUpdater after pausing. More...
 
static void StartThreads (Boolean startBlockUpdater, Boolean startLVMQUpdater)
 Start the ValuesUpdater and LVMQUpdater running. More...
 

Properties

static Boolean IsBusy [get, set]
 
static Boolean WebDashboardEnabled [get, set]
 
static Boolean WebDashboardShowTitle [get, set]
 

Events

static RemotingEventHandler ClearGraphRequested
 
static EventHandler OnLVNotThere
 
static EventHandler OnNewLVMessage
 Delegate for passing "new LabVIEW message" event to the GUI level. More...
 
static ValuesUpdatedEventHandler OnValuesUpdated
 

Static Private Member Functions

static void clearOutLabViewLogs ()
 This clears out any logfiles that are older than a certain amount More...
 
static void daeValuesUpdated (Boolean timeout)
 This method is run when the ValuesUpdater raises a OnValuesUpdated event. The event is just passed on to the GUI level. More...
 
static Boolean enableDotNetRemoting ()
 Enables Dot Net remoting for web access etc. More...
 
static void initialiseDae ()
 Initialise the DAE. This loads the DAE VI and starts it running. Also adds a event handler for watching for start and end of runs. More...
 
static void messageQLabviewNotThere (object sender, EventArgs e)
 
static void messageQNewLVMessage (object sender, EventArgs e)
 This method is run when the LVMQUpdater raises a OnNewLVMessage event. The event is just passed on to the GUI level. More...
 
static void runStartedOrEnded (DateTime time, string runNumber)
 Logs the block values at the start or end of the run. More...
 

Static Private Attributes

static LabView.LvmqUpdater _lvmqUpdater
 
static Boolean _lvmqUpdaterEnabled
 
static int _maxLVFileAge = 7
 
static Tools.ValuesUpdater _valuesUpdater
 
static Boolean _valuesUpdaterEnabled
 

Detailed Description

A general manager class for SECI. Contains the stuff that does not fit into any of the other manager classes

Definition at line 17 of file SeciMgr.cs.

Member Function Documentation

static void Seci.Managers.SeciMgr.ClearDatabaseQueues ( )
inlinestatic

Definition at line 335 of file SeciMgr.cs.

static void Seci.Managers.SeciMgr.ClearGraphs ( )
inlinestatic

Definition at line 361 of file SeciMgr.cs.

static void Seci.Managers.SeciMgr.clearOutLabViewLogs ( )
inlinestaticprivate

This clears out any logfiles that are older than a certain amount

Definition at line 87 of file SeciMgr.cs.

References Seci.Definitions.Status.LabViewErrorDir.

static void Seci.Managers.SeciMgr.CloseSeci ( )
inlinestatic

Closes SECI by making sure everything is closed etc.

Definition at line 124 of file SeciMgr.cs.

static void Seci.Managers.SeciMgr.daeValuesUpdated ( Boolean  timeout)
inlinestaticprivate

This method is run when the ValuesUpdater raises a OnValuesUpdated event. The event is just passed on to the GUI level.

Parameters
senderThe sender
eThe event arguments

Definition at line 140 of file SeciMgr.cs.

static Boolean Seci.Managers.SeciMgr.enableDotNetRemoting ( )
inlinestaticprivate

Enables Dot Net remoting for web access etc.

Returns
Result

Definition at line 180 of file SeciMgr.cs.

static void Seci.Managers.SeciMgr.initialiseDae ( )
inlinestaticprivate

Initialise the DAE. This loads the DAE VI and starts it running. Also adds a event handler for watching for start and end of runs.

Definition at line 259 of file SeciMgr.cs.

static Boolean Seci.Managers.SeciMgr.InitialiseLabView ( Boolean  loadStandardVIs)
inlinestatic

Initialise LabVIEW and load any default VIs.

Parameters
loadStandardVIsWhether the standard VIs (DAE, Beamlogger, etc.) should be loaded
Returns
Result

Definition at line 220 of file SeciMgr.cs.

References Seci.Definitions.Status.ExecutionDir, and Seci.Definitions.Status.UseDaeMonitorVI.

static void Seci.Managers.SeciMgr.InitialiseSeci ( String  exeDir)
inlinestatic

Initialises SECI. Needs to be called before SECI does anything else.

Parameters
exeDirThe directory from which SECI is running.

Definition at line 50 of file SeciMgr.cs.

static Boolean Seci.Managers.SeciMgr.LogInAsManager ( String  password)
inlinestatic

Method for logging in as manager. Tests password against that of the manager account and returns true if it matches.

Parameters
passwordThe password to compare against that of the manager
Returns
True if the manager is logged in

Definition at line 348 of file SeciMgr.cs.

static void Seci.Managers.SeciMgr.messageQLabviewNotThere ( object  sender,
EventArgs  e 
)
inlinestaticprivate

Definition at line 166 of file SeciMgr.cs.

static void Seci.Managers.SeciMgr.messageQNewLVMessage ( object  sender,
EventArgs  e 
)
inlinestaticprivate

This method is run when the LVMQUpdater raises a OnNewLVMessage event. The event is just passed on to the GUI level.

Parameters
senderThe sender
eThe event arguments

Definition at line 156 of file SeciMgr.cs.

static void Seci.Managers.SeciMgr.PauseThreads ( )
inlinestatic

Pause the ValuesUpdater and LVMQUpdater.

Definition at line 306 of file SeciMgr.cs.

delegate void Seci.Managers.SeciMgr.RemotingEventHandler ( String[]  vars)
static void Seci.Managers.SeciMgr.ResumeThreads ( )
inlinestatic

Resume the ValuesUpdater and LVMQUpdater after pausing.

Definition at line 322 of file SeciMgr.cs.

static void Seci.Managers.SeciMgr.runStartedOrEnded ( DateTime  time,
string  runNumber 
)
inlinestaticprivate

Logs the block values at the start or end of the run.

Parameters
timeThe time the run started or ended
runNumberThe relevant run number

Definition at line 276 of file SeciMgr.cs.

static void Seci.Managers.SeciMgr.StartThreads ( Boolean  startBlockUpdater,
Boolean  startLVMQUpdater 
)
inlinestatic

Start the ValuesUpdater and LVMQUpdater running.

Parameters
startBlockUpdaterWhether to start the block updater
startLVMQUpdaterWhether to start the LVMQ updater

Definition at line 288 of file SeciMgr.cs.

delegate void Seci.Managers.SeciMgr.ValuesUpdatedEventHandler ( Boolean  timeout)

Delegate for passing "values updated" event to the GUI level.

Member Data Documentation

LabView.LvmqUpdater Seci.Managers.SeciMgr._lvmqUpdater
staticprivate

Definition at line 22 of file SeciMgr.cs.

Boolean Seci.Managers.SeciMgr._lvmqUpdaterEnabled
staticprivate

Definition at line 23 of file SeciMgr.cs.

int Seci.Managers.SeciMgr._maxLVFileAge = 7
staticprivate

Definition at line 19 of file SeciMgr.cs.

Tools.ValuesUpdater Seci.Managers.SeciMgr._valuesUpdater
staticprivate

Definition at line 20 of file SeciMgr.cs.

Boolean Seci.Managers.SeciMgr._valuesUpdaterEnabled
staticprivate

Definition at line 21 of file SeciMgr.cs.

Property Documentation

Boolean Seci.Managers.SeciMgr.IsBusy
staticgetset

Definition at line 32 of file SeciMgr.cs.

Boolean Seci.Managers.SeciMgr.WebDashboardEnabled
staticgetset

Definition at line 27 of file SeciMgr.cs.

Boolean Seci.Managers.SeciMgr.WebDashboardShowTitle
staticgetset

Definition at line 28 of file SeciMgr.cs.

Event Documentation

RemotingEventHandler Seci.Managers.SeciMgr.ClearGraphRequested
static

Definition at line 25 of file SeciMgr.cs.

EventHandler Seci.Managers.SeciMgr.OnLVNotThere
static

Definition at line 44 of file SeciMgr.cs.

EventHandler Seci.Managers.SeciMgr.OnNewLVMessage
static

Delegate for passing "new LabVIEW message" event to the GUI level.

Definition at line 43 of file SeciMgr.cs.

ValuesUpdatedEventHandler Seci.Managers.SeciMgr.OnValuesUpdated
static

Definition at line 38 of file SeciMgr.cs.


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